@sonic-equipment/ui 1.1.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (488) hide show
  1. package/dist/algolia/algolia-hits-provider.js +4 -1
  2. package/dist/algolia/algolia-insights-provider.js +3 -3
  3. package/dist/algolia/algolia-provider.d.ts +4 -1
  4. package/dist/algolia/algolia-provider.js +6 -3
  5. package/dist/algolia/algolia-search-provider.js +1 -1
  6. package/dist/algolia/algolia-searchclient-reserved-slots.d.ts +25 -0
  7. package/dist/algolia/algolia-searchclient-reserved-slots.js +67 -0
  8. package/dist/algolia/use-algolia-hits.d.ts +5 -2
  9. package/dist/algolia/use-algolia-hits.js +9 -5
  10. package/dist/algolia/use-algolia-insights.js +2 -2
  11. package/dist/algolia/use-algolia-search.js +2 -2
  12. package/dist/badges/tag/tag.d.ts +2 -1
  13. package/dist/badges/tag/tag.js +3 -2
  14. package/dist/base.css +28 -1
  15. package/dist/breadcrumbs/breadcrumb.d.ts +1 -1
  16. package/dist/breadcrumbs/breadcrumb.js +2 -2
  17. package/dist/buttons/button/button.d.ts +2 -1
  18. package/dist/buttons/button/button.js +4 -2
  19. package/dist/buttons/icon-button/icon-button.d.ts +8 -1
  20. package/dist/buttons/icon-button/icon-button.js +4 -5
  21. package/dist/cards/data-card/data-card.js +1 -1
  22. package/dist/cards/product-card/product-card.js +2 -1
  23. package/dist/cards/product-card/product-card.module.css.js +1 -1
  24. package/dist/cards/table-card/table-card.d.ts +6 -1
  25. package/dist/cards/table-card/table-card.js +3 -4
  26. package/dist/carousel/card-carousel/card-carousel.d.ts +3 -1
  27. package/dist/carousel/card-carousel/card-carousel.js +5 -3
  28. package/dist/carousel/card-carousel/card-carousel.module.css.js +1 -1
  29. package/dist/carousel/carousel-navigation-button.d.ts +3 -1
  30. package/dist/carousel/carousel-navigation-button.js +2 -3
  31. package/dist/carousel/carousel.js +1 -1
  32. package/dist/carousel/usp-carousel/product-usp-carousel-slide.js +1 -1
  33. package/dist/carousel/usp-carousel/usp-carousel.d.ts +0 -1
  34. package/dist/cart-totals/cart-totals-summary.js +1 -1
  35. package/dist/cart-totals/cart-totals.d.ts +3 -1
  36. package/dist/cart-totals/cart-totals.js +9 -3
  37. package/dist/cart-totals/cart-totals.module.css.js +1 -1
  38. package/dist/client-case-banner/client-case-banner.d.ts +16 -0
  39. package/dist/client-case-banner/client-case-banner.js +13 -0
  40. package/dist/client-case-banner/client-case-banner.module.css.js +3 -0
  41. package/dist/collapsables/accordion/accordion-item.js +1 -1
  42. package/dist/collapsables/cascading-component/cascading-component-container-provider.js +1 -1
  43. package/dist/collapsables/cascading-component/use-cascading-component-container.js +2 -2
  44. package/dist/collapsables/collapsable/collapsable.d.ts +12 -0
  45. package/dist/collapsables/collapsable/collapsable.js +31 -0
  46. package/dist/collapsables/collapsable/collapsable.module.css.js +3 -0
  47. package/dist/collapsables/unmounter/unmounter.js +3 -3
  48. package/dist/cookies/cookie-provider.js +1 -1
  49. package/dist/cookies/use-cookie.js +2 -2
  50. package/dist/country-language-selection-list/country-language-selection-list.js +1 -1
  51. package/dist/country-language-selection-list/country-language-selection-list.module.css.js +1 -1
  52. package/dist/country-language-selector/connected-country-language-selector.d.ts +1 -2
  53. package/dist/country-language-selector/connected-country-language-selector.js +2 -2
  54. package/dist/country-language-selector/country-language-selector.d.ts +1 -2
  55. package/dist/country-language-selector/country-language-selector.js +12 -19
  56. package/dist/country-language-selector/country-language-selector.module.css.js +1 -1
  57. package/dist/country-language-selector/fixtures/fixtures.d.ts +13 -0
  58. package/dist/country-language-selector-button/country-language-selector-button.stories.d.ts +13 -0
  59. package/dist/display/details/details.d.ts +2 -1
  60. package/dist/display/details/details.js +2 -2
  61. package/dist/display/product-sku/product-sku.js +3 -1
  62. package/dist/exports.d.ts +65 -20
  63. package/dist/filters/pagination/pagination.d.ts +2 -1
  64. package/dist/filters/pagination/pagination.js +3 -2
  65. package/dist/fonts.css +58 -56
  66. package/dist/footer/fixtures/fixtures.d.ts +3 -0
  67. package/dist/footer/footer.js +3 -2
  68. package/dist/footer/footer.module.css.js +1 -1
  69. package/dist/forms/elements/input/input.js +4 -6
  70. package/dist/forms/elements/range-slider/range-slider.d.ts +18 -0
  71. package/dist/forms/elements/range-slider/range-slider.js +31 -0
  72. package/dist/forms/elements/range-slider/range-slider.module.css.js +3 -0
  73. package/dist/global-search/global-search.d.ts +6 -1
  74. package/dist/global-search/global-search.js +3 -2
  75. package/dist/global-search/search-highlight/highlight.d.ts +7 -7
  76. package/dist/global-search/search-highlight/highlight.js +9 -9
  77. package/dist/global-search/search-input/connected-search-input.js +4 -1
  78. package/dist/global-search/search-result-panel/panel-content.d.ts +3 -1
  79. package/dist/global-search/search-result-panel/panel-content.js +2 -2
  80. package/dist/global-search/search-result-panel/search-result-panel.d.ts +3 -1
  81. package/dist/global-search/search-result-panel/search-result-panel.js +2 -2
  82. package/dist/global-search/search-result-panel/sections/no-search-results.js +1 -3
  83. package/dist/global-search/search-result-panel/sections/no-search.d.ts +2 -1
  84. package/dist/global-search/search-result-panel/sections/no-search.js +7 -14
  85. package/dist/global-search/search-result-panel/sections/search-content.module.css.js +1 -1
  86. package/dist/global-search/search-result-panel/sections/section-container.js +2 -2
  87. package/dist/global-search/search-result-panel/sections/with-results.js +6 -6
  88. package/dist/header/drawers/desktop-navigation-drawer.js +2 -1
  89. package/dist/header/drawers/mobile-navigation-drawer.js +2 -1
  90. package/dist/header/drawers/search-drawer.d.ts +3 -1
  91. package/dist/header/drawers/search-drawer.js +3 -2
  92. package/dist/header/drawers/search-drawer.module.css.js +3 -0
  93. package/dist/header/fixtures/fixtures.d.ts +4 -0
  94. package/dist/header/header-layout/header-layout.d.ts +1 -1
  95. package/dist/header/header-layout/header-layout.js +2 -3
  96. package/dist/header/header-layout/header-layout.module.css.js +1 -1
  97. package/dist/header/header.d.ts +3 -2
  98. package/dist/header/header.js +3 -2
  99. package/dist/header/header.module.css.js +1 -1
  100. package/dist/hubspot-form/hubspot-form.d.ts +41 -0
  101. package/dist/hubspot-form/hubspot-form.js +125 -0
  102. package/dist/hubspot-form/hubspot-form.module.css.js +3 -0
  103. package/dist/icons/index.d.ts +86 -0
  104. package/dist/icons/index.js +86 -0
  105. package/dist/icons/other/media-captionsoff-icon.d.ts +1 -0
  106. package/dist/icons/other/media-captionsoff-icon.js +7 -0
  107. package/dist/icons/other/media-captionson-icon.d.ts +1 -0
  108. package/dist/icons/other/media-captionson-icon.js +7 -0
  109. package/dist/icons/other/media-chapters-icon.d.ts +1 -0
  110. package/dist/icons/other/media-chapters-icon.js +7 -0
  111. package/dist/icons/other/media-enterfullscreen-icon.d.ts +1 -0
  112. package/dist/icons/other/media-enterfullscreen-icon.js +7 -0
  113. package/dist/icons/other/media-exitfullscreen-icon.d.ts +1 -0
  114. package/dist/icons/other/media-exitfullscreen-icon.js +7 -0
  115. package/dist/icons/other/media-pause-icon.d.ts +1 -0
  116. package/dist/icons/other/media-pause-icon.js +7 -0
  117. package/dist/icons/other/media-play-icon.d.ts +1 -0
  118. package/dist/icons/other/media-play-icon.js +7 -0
  119. package/dist/icons/other/media-seekbackwards-icon.d.ts +1 -0
  120. package/dist/icons/other/media-seekbackwards-icon.js +7 -0
  121. package/dist/icons/other/media-seekforwards-icon.d.ts +1 -0
  122. package/dist/icons/other/media-seekforwards-icon.js +7 -0
  123. package/dist/icons/other/media-subsoff-icon.d.ts +1 -0
  124. package/dist/icons/other/media-subsoff-icon.js +7 -0
  125. package/dist/icons/other/media-subson-icon.d.ts +1 -0
  126. package/dist/icons/other/media-subson-icon.js +7 -0
  127. package/dist/icons/other/media-volumefull-icon.d.ts +1 -0
  128. package/dist/icons/other/media-volumefull-icon.js +7 -0
  129. package/dist/icons/other/media-volumelow-icon.d.ts +1 -0
  130. package/dist/icons/other/media-volumelow-icon.js +7 -0
  131. package/dist/icons/other/media-volumemedium-icon.d.ts +1 -0
  132. package/dist/icons/other/media-volumemedium-icon.js +7 -0
  133. package/dist/icons/other/media-volumemuted-icon.d.ts +1 -0
  134. package/dist/icons/other/media-volumemuted-icon.js +7 -0
  135. package/dist/icons/solid/solid-enterfullscreen-icon.d.ts +1 -0
  136. package/dist/icons/solid/solid-exitfullscreen-icon.d.ts +1 -0
  137. package/dist/icons/solid/solid-facebook-icon.js +7 -0
  138. package/dist/icons/solid/solid-instagram-icon.js +7 -0
  139. package/dist/icons/solid/solid-link-icon.js +7 -0
  140. package/dist/icons/solid/solid-linkedin-icon.js +7 -0
  141. package/dist/icons/solid/solid-tiktok-icon.js +7 -0
  142. package/dist/icons/solid/solid-youtube-icon.js +7 -0
  143. package/dist/icons/stroke/stroke-business-icon.js +7 -0
  144. package/dist/icons/stroke/stroke-captions-icon.d.ts +1 -0
  145. package/dist/icons/stroke/stroke-captions-icon.js +7 -0
  146. package/dist/icons/stroke/stroke-efficiency-icon.js +7 -0
  147. package/dist/icons/stroke/stroke-fallback-icon.js +7 -0
  148. package/dist/icons/stroke/stroke-happy-icon.js +7 -0
  149. package/dist/icons/stroke/stroke-innovate-icon.js +7 -0
  150. package/dist/icons/stroke/stroke-list-icon.d.ts +1 -0
  151. package/dist/icons/stroke/stroke-list-icon.js +7 -0
  152. package/dist/icons/stroke/stroke-modular-icon.js +7 -0
  153. package/dist/icons/stroke/stroke-okay-icon.js +7 -0
  154. package/dist/icons/stroke/stroke-package-icon.js +7 -0
  155. package/dist/icons/stroke/stroke-proactive-icon.js +7 -0
  156. package/dist/icons/stroke/stroke-productivity-icon.js +7 -0
  157. package/dist/icons/stroke/stroke-rating-icon.js +7 -0
  158. package/dist/icons/stroke/stroke-salecategory-icon.js +7 -0
  159. package/dist/icons/stroke/stroke-style-icon.js +7 -0
  160. package/dist/icons/stroke/stroke-support-icon.js +7 -0
  161. package/dist/icons/stroke/stroke-thumbsup-icon.js +7 -0
  162. package/dist/icons/stroke/stroke-warranty10y-icon.js +7 -0
  163. package/dist/icons/stroke/stroke-warranty1y-icon.js +7 -0
  164. package/dist/icons/stroke/stroke-warranty3y-icon.js +7 -0
  165. package/dist/icons/stroke/stroke-warranty5y-icon.js +7 -0
  166. package/dist/icons/stroke/stroke-warrantyconsumable-icon.js +7 -0
  167. package/dist/icons/stroke/stroke-warrantylifetime-icon.js +7 -0
  168. package/dist/image-banner/image-banner.d.ts +20 -0
  169. package/dist/image-banner/image-banner.js +15 -0
  170. package/dist/image-banner/image-banner.module.css.js +3 -0
  171. package/dist/index.js +76 -32
  172. package/dist/intl/intl-provider.js +1 -1
  173. package/dist/intl/missing-translation-provider.js +1 -1
  174. package/dist/intl/translation-id.d.ts +1 -1
  175. package/dist/intl/use-intl.js +2 -2
  176. package/dist/lists/download-document-list/download-document-list.js +2 -1
  177. package/dist/lists/menu-list/menu-list-provider.js +1 -1
  178. package/dist/lists/menu-list/use-menu-list.js +2 -2
  179. package/dist/lists/product-overview-grid/product-overview-grid.d.ts +17 -2
  180. package/dist/lists/product-overview-grid/product-overview-grid.js +20 -8
  181. package/dist/lists/product-overview-grid/product-overview-grid.module.css.js +1 -1
  182. package/dist/loading/dynamic-loading-overlay.js +1 -23
  183. package/dist/loading/dynamic-loading-overlay.module.css.js +1 -1
  184. package/dist/media/image-cdn/image-cdn-profile.d.ts +45 -0
  185. package/dist/media/image-cdn/image-cdn-profile.js +63 -0
  186. package/dist/media/image-cdn/image-cdn-profile.test.d.ts +1 -0
  187. package/dist/media/image-cdn/image-cdn-provider.d.ts +10 -0
  188. package/dist/media/image-cdn/image-cdn-provider.js +15 -0
  189. package/dist/media/image-cdn/storyblok-profile.d.ts +3 -0
  190. package/dist/media/image-cdn/storyblok-profile.js +37 -0
  191. package/dist/media/image-cdn/storyblok-profile.test.d.ts +1 -0
  192. package/dist/media/image-lightbox/image-lightbox.module.css.js +1 -1
  193. package/dist/media/media-controls/media-chapters-control/media-chapters-control.d.ts +8 -0
  194. package/dist/media/media-controls/media-chapters-control/media-chapters-control.js +63 -0
  195. package/dist/media/media-controls/media-control/media-control.d.ts +19 -0
  196. package/dist/media/media-controls/media-control/media-control.js +15 -0
  197. package/dist/media/media-controls/media-controls.d.ts +12 -0
  198. package/dist/media/media-controls/media-controls.js +17 -0
  199. package/dist/media/media-controls/media-controls.module.css.js +3 -0
  200. package/dist/media/media-controls/media-popover/media-popover.d.ts +12 -0
  201. package/dist/media/media-controls/media-popover/media-popover.js +67 -0
  202. package/dist/media/media-controls/media-progress-circle/media-progress-circle.d.ts +20 -0
  203. package/dist/media/media-controls/media-progress-circle/media-progress-circle.js +31 -0
  204. package/dist/media/media-controls/media-seek-control/media-seek-control.d.ts +6 -0
  205. package/dist/media/media-controls/media-seek-control/media-seek-control.js +30 -0
  206. package/dist/media/media-controls/media-subs-control/media-subs-control.d.ts +8 -0
  207. package/dist/media/media-controls/media-subs-control/media-subs-control.js +65 -0
  208. package/dist/media/media-controls/media-volume-control/media-volume-control.d.ts +7 -0
  209. package/dist/media/media-controls/media-volume-control/media-volume-control.js +103 -0
  210. package/dist/media/media-utils.d.ts +19 -0
  211. package/dist/media/media-utils.js +28 -0
  212. package/dist/media/responsive-image/responsive-image.d.ts +37 -0
  213. package/dist/media/responsive-image/responsive-image.js +119 -0
  214. package/dist/media/responsive-image/responsive-image.module.css.js +3 -0
  215. package/dist/media/responsive-video/responsive-video.d.ts +36 -0
  216. package/dist/media/responsive-video/responsive-video.js +365 -0
  217. package/dist/media/responsive-video/responsive-video.module.css.js +3 -0
  218. package/dist/modals/dialog/dialog.js +1 -1
  219. package/dist/navigation/panel-navigation/panel-navigation.js +1 -1
  220. package/dist/notifications/announcements/announcement-list.d.ts +10 -1
  221. package/dist/notifications/announcements/announcement-list.js +1 -13
  222. package/dist/notifications/announcements/announcement-list.module.css.js +1 -1
  223. package/dist/notifications/announcements/announcement.d.ts +13 -2
  224. package/dist/notifications/announcements/announcement.js +14 -6
  225. package/dist/notifications/announcements/fixtures/fixtures.d.ts +22 -0
  226. package/dist/page-layout/fixtures/fixtures.d.ts +15 -0
  227. package/dist/page-layout/page-layout.d.ts +2 -0
  228. package/dist/page-layout/page-layout.js +33 -0
  229. package/dist/page-layout/page-layout.module.css.js +3 -0
  230. package/dist/page-layout/types.d.ts +52 -0
  231. package/dist/pages/account/change-password-page/change-password-page.js +6 -2
  232. package/dist/pages/account/components/change-password-form/change-password-form.js +1 -5
  233. package/dist/pages/account/components/create-account-form/create-account-form.js +1 -4
  234. package/dist/pages/account/components/sign-in-form/sign-in-form.js +2 -6
  235. package/dist/pages/account/create-account-page/create-account-page.d.ts +1 -1
  236. package/dist/pages/account/create-account-page/create-account-page.js +8 -4
  237. package/dist/pages/account/sign-in-page/sign-in-page.d.ts +1 -1
  238. package/dist/pages/account/sign-in-page/sign-in-page.js +6 -4
  239. package/dist/pages/checkout/cart-page/cart-page.d.ts +1 -1
  240. package/dist/pages/checkout/cart-page/cart-page.js +35 -68
  241. package/dist/pages/checkout/components/billing-and-invoice-information.js +1 -1
  242. package/dist/pages/checkout/components/billing-and-invoice-information.module.css.js +1 -1
  243. package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-header.d.ts +1 -1
  244. package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-header.js +2 -2
  245. package/dist/pages/checkout/components/checkout-page-section.js +12 -0
  246. package/dist/pages/checkout/components/checkout-page-section.module.css.js +3 -0
  247. package/dist/pages/checkout/order-confirmation-page/order-confirmation-page-content.js +50 -63
  248. package/dist/pages/checkout/payment-page/payment-page-content.js +25 -25
  249. package/dist/pages/checkout/shipping-page/components/edit-checkout-bill-to-address-form.js +2 -2
  250. package/dist/pages/checkout/shipping-page/components/readonly-address.js +3 -3
  251. package/dist/pages/checkout/shipping-page/components/readonly-address.module.css.js +1 -1
  252. package/dist/pages/checkout/shipping-page/shipping-page-content.js +12 -12
  253. package/dist/pages/components/page/page.js +1 -1
  254. package/dist/pages/countries-page/countries-page.js +7 -4
  255. package/dist/pages/error-page/error-page.js +2 -7
  256. package/dist/pages/my-sonic/navigation/connected-my-sonic-navigation.js +2 -1
  257. package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.d.ts +0 -3
  258. package/dist/pages/my-sonic/pages/create-ship-to-address-details-page/create-ship-to-address-details-page.js +16 -17
  259. package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.d.ts +0 -3
  260. package/dist/pages/my-sonic/pages/edit-bill-to-address-details-page/edit-bill-to-address-details-page.js +16 -17
  261. package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.d.ts +0 -4
  262. package/dist/pages/my-sonic/pages/edit-ship-to-address-details-page/edit-ship-to-address-details-page.js +16 -17
  263. package/dist/pages/my-sonic/pages/favorites/favorites-page.d.ts +0 -1
  264. package/dist/pages/my-sonic/pages/favorites/favorites-page.js +31 -33
  265. package/dist/pages/my-sonic/pages/favorites/favorites-page.module.css.js +3 -0
  266. package/dist/pages/my-sonic/pages/my-account/my-account-page.d.ts +0 -1
  267. package/dist/pages/my-sonic/pages/my-account/my-account-page.js +12 -12
  268. package/dist/pages/my-sonic/pages/order-details/order-details-content.js +3 -2
  269. package/dist/pages/my-sonic/pages/order-details/order-details-content.module.css.js +1 -1
  270. package/dist/pages/my-sonic/pages/order-details/order-details-page.d.ts +0 -3
  271. package/dist/pages/my-sonic/pages/order-details/order-details-page.js +17 -28
  272. package/dist/pages/my-sonic/pages/order-history/order-history-page.d.ts +0 -1
  273. package/dist/pages/my-sonic/pages/order-history/order-history-page.js +112 -116
  274. package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.d.ts +0 -1
  275. package/dist/pages/my-sonic/pages/upload-order-page/upload-order-page.js +12 -12
  276. package/dist/pages/product/components/product-overview.d.ts +11 -3
  277. package/dist/pages/product/components/product-overview.js +11 -7
  278. package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.js +5 -7
  279. package/dist/pages/product/product-details-page/components/product-details-panel/product-details-panel.module.css.js +1 -1
  280. package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.d.ts +3 -1
  281. package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.js +9 -10
  282. package/dist/pages/product/product-details-page/product-details.js +18 -18
  283. package/dist/pages/product/product-details-page/product-details.module.css.js +3 -0
  284. package/dist/pages/product/product-listing-page/no-results/no-results.d.ts +3 -5
  285. package/dist/pages/product/product-listing-page/no-results/no-results.js +2 -4
  286. package/dist/pages/product/product-listing-page/no-results/no-results.module.css.js +1 -1
  287. package/dist/pages/product/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.js +6 -4
  288. package/dist/pages/product/product-listing-page/product-listing-page-category-carousel/product-listing-page-category-carousel.module.css.js +3 -0
  289. package/dist/pages/product/product-listing-page/product-listing-page-provider/product-listing-page-provider.js +3 -3
  290. package/dist/pages/product/product-listing-page/product-listing-page.js +1 -1
  291. package/dist/pages/product/product-listing-page/product-listing-page.module.css.js +1 -1
  292. package/dist/pages/product/product-listing-page/product-listing-product-overview/product-listing-product-overview.d.ts +2 -1
  293. package/dist/pages/product/product-listing-page/product-listing-product-overview/product-listing-product-overview.js +2 -2
  294. package/dist/pages/product/product-listing-page/product-listing.d.ts +8 -1
  295. package/dist/pages/product/product-listing-page/product-listing.js +23 -23
  296. package/dist/pages/product/search-result-page/search-result-product-overview/search-result-product-overview.d.ts +2 -1
  297. package/dist/pages/product/search-result-page/search-result-product-overview/search-result-product-overview.js +2 -2
  298. package/dist/pages/product/search-result-page/search-results-page.js +20 -19
  299. package/dist/promos/promo-banners/promo-banners.js +2 -1
  300. package/dist/responsive-banner/responsive-banner.d.ts +30 -0
  301. package/dist/responsive-banner/responsive-banner.js +23 -0
  302. package/dist/responsive-banner/responsive-banner.module.css.js +3 -0
  303. package/dist/responsive-carousel/responsive-carousel.d.ts +18 -0
  304. package/dist/responsive-carousel/responsive-carousel.js +209 -0
  305. package/dist/responsive-carousel/responsive-carousel.module.css.js +3 -0
  306. package/dist/rich-text/rich-text.d.ts +7 -0
  307. package/dist/rich-text/rich-text.js +10 -0
  308. package/dist/rich-text/rich-text.module.css.js +3 -0
  309. package/dist/rte-asset/rte-asset.d.ts +8 -0
  310. package/dist/rte-asset/rte-asset.js +10 -0
  311. package/dist/rte-asset/rte-asset.module.css.js +3 -0
  312. package/dist/rte-blockquote/rte-blockquote.d.ts +8 -0
  313. package/dist/rte-blockquote/rte-blockquote.js +10 -0
  314. package/dist/rte-blockquote/rte-blockquote.module.css.js +3 -0
  315. package/dist/rte-details/rte-details.d.ts +7 -0
  316. package/dist/rte-details/rte-details.js +10 -0
  317. package/dist/rte-details/rte-details.module.css.js +3 -0
  318. package/dist/rte-ordered-list/rte-ordered-list.d.ts +14 -0
  319. package/dist/rte-ordered-list/rte-ordered-list.js +34 -0
  320. package/dist/rte-ordered-list/rte-ordered-list.module.css.js +3 -0
  321. package/dist/sections/about-section/about-section.d.ts +13 -0
  322. package/dist/sections/about-section/about-section.js +13 -0
  323. package/dist/sections/about-section/about-section.module.css.js +3 -0
  324. package/dist/sections/about-section/media-contact.d.ts +7 -0
  325. package/dist/sections/about-section/media-contact.js +12 -0
  326. package/dist/sections/banner-section/banner-section.d.ts +13 -0
  327. package/dist/sections/banner-section/banner-section.js +12 -0
  328. package/dist/sections/banner-section/banner-section.module.css.js +3 -0
  329. package/dist/sections/banner-section/fixtures/fixtures.d.ts +5 -0
  330. package/dist/sections/case-studies-listing-section/case-studies-listing-section.constants.d.ts +10 -0
  331. package/dist/sections/case-studies-listing-section/case-studies-listing-section.constants.js +12 -0
  332. package/dist/sections/case-studies-listing-section/case-studies-listing-section.d.ts +26 -0
  333. package/dist/sections/case-studies-listing-section/case-studies-listing-section.js +30 -0
  334. package/dist/sections/case-studies-listing-section/case-studies-listing-section.module.css.js +3 -0
  335. package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.d.ts +13 -0
  336. package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.js +13 -0
  337. package/dist/sections/client-cases-carousel-section/client-cases-carousel-section.module.css.js +3 -0
  338. package/dist/sections/downloadable-documents-section/downloadable-documents-section.d.ts +21 -0
  339. package/dist/sections/downloadable-documents-section/downloadable-documents-section.js +16 -0
  340. package/dist/sections/downloadable-documents-section/downloadable-documents-section.module.css.js +3 -0
  341. package/dist/sections/event-info-section/event-info-section.d.ts +9 -0
  342. package/dist/sections/event-info-section/event-info-section.js +23 -0
  343. package/dist/sections/event-info-section/event-info-section.module.css.js +3 -0
  344. package/dist/sections/faq-section/faq-section.d.ts +24 -0
  345. package/dist/sections/faq-section/faq-section.js +20 -0
  346. package/dist/sections/faq-section/faq-section.module.css.js +3 -0
  347. package/dist/sections/hero-section/hero-section.d.ts +22 -0
  348. package/dist/sections/hero-section/hero-section.js +16 -0
  349. package/dist/sections/hero-section/hero-section.module.css.js +3 -0
  350. package/dist/sections/hubspot-form-section/hubspot-form-section.d.ts +18 -0
  351. package/dist/sections/hubspot-form-section/hubspot-form-section.js +18 -0
  352. package/dist/sections/hubspot-form-section/hubspot-form-section.module.css.js +3 -0
  353. package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.d.ts +12 -0
  354. package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.js +13 -0
  355. package/dist/sections/image-banner-carousel-section/image-banner-carousel-section.module.css.js +3 -0
  356. package/dist/sections/image-banner-section/image-banner-section.d.ts +12 -0
  357. package/dist/sections/image-banner-section/image-banner-section.js +12 -0
  358. package/dist/sections/image-banner-section/image-banner-section.module.css.js +3 -0
  359. package/dist/sections/image-hubspot-section/image-hubspot-form-section.d.ts +21 -0
  360. package/dist/sections/image-hubspot-section/image-hubspot-form-section.js +19 -0
  361. package/dist/sections/image-hubspot-section/image-hubspot-form-section.module.css.js +3 -0
  362. package/dist/sections/image-section/image-section.d.ts +25 -0
  363. package/dist/sections/image-section/image-section.js +14 -0
  364. package/dist/sections/image-section/image-section.module.css.js +3 -0
  365. package/dist/sections/image-text-section/image-text-block.d.ts +13 -0
  366. package/dist/sections/image-text-section/image-text-block.js +13 -0
  367. package/dist/sections/image-text-section/image-text-section.d.ts +15 -0
  368. package/dist/sections/image-text-section/image-text-section.js +12 -0
  369. package/dist/sections/image-text-section/image-text-section.module.css.js +3 -0
  370. package/dist/sections/legal-section/legal-section.d.ts +10 -0
  371. package/dist/sections/legal-section/legal-section.js +13 -0
  372. package/dist/sections/legal-section/legal-section.module.css.js +3 -0
  373. package/dist/sections/multi-column-section/multi-column-section.d.ts +24 -0
  374. package/dist/sections/multi-column-section/multi-column-section.js +24 -0
  375. package/dist/sections/multi-column-section/multi-column-section.module.css.js +3 -0
  376. package/dist/sections/news-list-section/news-listing-section.d.ts +17 -0
  377. package/dist/sections/news-list-section/news-listing-section.js +27 -0
  378. package/dist/sections/news-list-section/news-listing-section.module.css.js +3 -0
  379. package/dist/sections/numbers-section/numbers-section.d.ts +18 -0
  380. package/dist/sections/numbers-section/numbers-section.js +15 -0
  381. package/dist/sections/numbers-section/numbers-section.module.css.js +3 -0
  382. package/dist/sections/page-meta-section/page-meta-section.d.ts +8 -0
  383. package/dist/sections/page-meta-section/page-meta-section.js +23 -0
  384. package/dist/sections/page-meta-section/page-meta-section.module.css.js +3 -0
  385. package/dist/sections/page-section/page-section.d.ts +297 -0
  386. package/dist/sections/page-section/page-section.js +23 -0
  387. package/dist/sections/page-section/page-section.module.css.js +3 -0
  388. package/dist/sections/percentages-section/percentages-section.d.ts +21 -0
  389. package/dist/sections/percentages-section/percentages-section.js +18 -0
  390. package/dist/sections/percentages-section/percentages-section.module.css.js +3 -0
  391. package/dist/sections/product-comparison-section/product-comparison-section.d.ts +17 -0
  392. package/dist/sections/product-comparison-section/product-comparison-section.js +19 -0
  393. package/dist/sections/product-comparison-section/product-comparison-section.module.css.js +3 -0
  394. package/dist/sections/rich-text-section/rich-text-section.d.ts +11 -0
  395. package/dist/sections/rich-text-section/rich-text-section.js +12 -0
  396. package/dist/sections/rich-text-section/rich-text-section.module.css.js +3 -0
  397. package/dist/sections/social-media-section/social-media-section.d.ts +20 -0
  398. package/dist/sections/social-media-section/social-media-section.js +27 -0
  399. package/dist/sections/social-media-section/social-media-section.module.css.js +3 -0
  400. package/dist/sections/subheadline-section/subheadline-section.d.ts +7 -0
  401. package/dist/sections/subheadline-section/subheadline-section.js +12 -0
  402. package/dist/sections/subheadline-section/subheadline-section.module.css.js +3 -0
  403. package/dist/sections/usp-section/usp-section.d.ts +19 -0
  404. package/dist/sections/usp-section/usp-section.js +17 -0
  405. package/dist/sections/usp-section/usp-section.module.css.js +3 -0
  406. package/dist/sections/video-section/video-section.d.ts +30 -0
  407. package/dist/sections/video-section/video-section.js +13 -0
  408. package/dist/sections/video-section/video-section.module.css.js +3 -0
  409. package/dist/shared/error/default-error-view.d.ts +1 -1
  410. package/dist/shared/error/default-error-view.js +4 -2
  411. package/dist/shared/error/default-error-view.module.css.js +1 -1
  412. package/dist/shared/error/global-unhandled-error-handler.js +3 -3
  413. package/dist/shared/feature-flags/use-feature-flags.d.ts +1 -0
  414. package/dist/shared/feature-flags/use-feature-flags.js +3 -2
  415. package/dist/shared/hooks/use-drag-scroll.d.ts +20 -0
  416. package/dist/shared/hooks/use-drag-scroll.js +107 -0
  417. package/dist/shared/local-storage/local-storage-provider.js +1 -1
  418. package/dist/shared/local-storage/use-local-storage.js +2 -2
  419. package/dist/shared/local-storage/use-session-storage.js +2 -2
  420. package/dist/shared/model/announcement.d.ts +1 -0
  421. package/dist/shared/model/image.d.ts +5 -0
  422. package/dist/shared/providers/global-state-provider.js +3 -3
  423. package/dist/shared/routing/route-provider.js +1 -1
  424. package/dist/shared/routing/use-router.js +2 -2
  425. package/dist/shared/utils/array.d.ts +1 -0
  426. package/dist/shared/utils/array.js +9 -1
  427. package/dist/shared/utils/array.test.d.ts +1 -0
  428. package/dist/sidebar/sidebar.js +2 -2
  429. package/dist/site-layout/site-layout.d.ts +15 -0
  430. package/dist/site-layout/site-layout.js +39 -0
  431. package/dist/site-layout/site-layout.module.css.js +3 -0
  432. package/dist/styles.css +10825 -3363
  433. package/dist/table/elements/table-provider.js +1 -1
  434. package/dist/table/elements/table-row-provider.js +1 -1
  435. package/dist/table/elements/table.js +2 -2
  436. package/dist/table/elements/use-table-row.js +2 -2
  437. package/dist/table/elements/use-table.js +2 -2
  438. package/dist/toast/toast.d.ts +6 -1
  439. package/dist/toast/toast.js +2 -3
  440. package/dist/typography/heading/heading.d.ts +18 -10
  441. package/dist/typography/heading/heading.js +28 -14
  442. package/dist/typography/heading/heading.module.css.js +1 -1
  443. package/package.json +6 -5
  444. package/dist/footer/connected-footer.d.ts +0 -3
  445. package/dist/footer/connected-footer.js +0 -21
  446. package/dist/header/connected-header.d.ts +0 -3
  447. package/dist/header/connected-header.js +0 -21
  448. package/dist/notifications/announcements/connected-announcement-list.d.ts +0 -3
  449. package/dist/notifications/announcements/connected-announcement-list.js +0 -22
  450. package/dist/notifications/announcements/use-filter-announcements.d.ts +0 -2
  451. package/dist/notifications/announcements/use-filter-announcements.js +0 -35
  452. package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.d.ts +0 -6
  453. package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-background-image.js +0 -9
  454. package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.d.ts +0 -9
  455. package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.js +0 -12
  456. package/dist/pages/account/layouts/sign-in-page-layout/sign-in-page-layout.module.css.js +0 -3
  457. package/dist/pages/checkout/cart-page/components/empty-cart-page.d.ts +0 -1
  458. package/dist/pages/checkout/cart-page/components/empty-cart-page.js +0 -12
  459. package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.d.ts +0 -11
  460. package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.js +0 -34
  461. package/dist/pages/checkout/layouts/checkout-page-layout/checkout-page-layout.module.css.js +0 -3
  462. package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.js +0 -11
  463. package/dist/pages/checkout/layouts/checkout-page-layout/components/checkout-page-section.module.css.js +0 -3
  464. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.d.ts +0 -4
  465. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-aside.js +0 -9
  466. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.d.ts +0 -4
  467. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js +0 -9
  468. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.d.ts +0 -4
  469. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-main.js +0 -9
  470. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.d.ts +0 -5
  471. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-page.js +0 -10
  472. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.d.ts +0 -4
  473. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-pre-aside.js +0 -9
  474. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.d.ts +0 -4
  475. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout-title.js +0 -10
  476. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.d.ts +0 -5
  477. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.js +0 -10
  478. package/dist/pages/my-sonic/layouts/my-sonic-layout/my-sonic-layout.module.css.js +0 -3
  479. package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.d.ts +0 -9
  480. package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.js +0 -10
  481. package/dist/pages/product/layouts/product-details-page-layout/product-details-page-layout.module.css.js +0 -3
  482. package/dist/pages/product/product-details-page/components/product-details-recently-viewed-section/product-details-recently-viewed-section.module.css.js +0 -3
  483. package/dist/pages/product/search-result-page/search-results-page.module.css.js +0 -3
  484. /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-content.d.ts +0 -0
  485. /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-content.js +0 -0
  486. /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-link.d.ts +0 -0
  487. /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section-link.js +0 -0
  488. /package/dist/pages/checkout/{layouts/checkout-page-layout/components → components}/checkout-page-section.d.ts +0 -0
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
+ import { Breadcrumb } from '../../../breadcrumbs/breadcrumb.js';
3
4
  import { Button } from '../../../buttons/button/button.js';
4
5
  import { OrderLineCard } from '../../../cards/orderline-card/orderline-card.js';
5
6
  import { CartTotals } from '../../../cart-totals/cart-totals.js';
@@ -8,14 +9,14 @@ import { FormattedDate } from '../../../intl/formatted-date.js';
8
9
  import { FormattedMessage } from '../../../intl/formatted-message.js';
9
10
  import { useFormattedMessage } from '../../../intl/use-formatted-message.js';
10
11
  import { OrderLineList } from '../../../lists/orderline-list/orderline-list.js';
12
+ import { PageLayout } from '../../../page-layout/page-layout.js';
13
+ import { PageSection } from '../../../sections/page-section/page-section.js';
11
14
  import { getCurrencyCodeBySymbol } from '../../../shared/model/currency.js';
12
15
  import { usePaths } from '../../../shared/routing/use-paths.js';
13
16
  import { ensureNumber } from '../../../shared/utils/number.js';
14
- import { Page } from '../../components/page/page.js';
15
17
  import { BillingAndInvoiceInformation } from '../components/billing-and-invoice-information.js';
16
- import { CheckoutPageLayout } from '../layouts/checkout-page-layout/checkout-page-layout.js';
17
- import { CheckoutPageSection } from '../layouts/checkout-page-layout/components/checkout-page-section.js';
18
- import { CheckoutPageSectionContent } from '../layouts/checkout-page-layout/components/checkout-page-section-content.js';
18
+ import { CheckoutPageSection } from '../components/checkout-page-section.js';
19
+ import { CheckoutPageSectionContent } from '../components/checkout-page-section-content.js';
19
20
  import styles from './order-confirmation-page.module.css.js';
20
21
 
21
22
  function OrderConfirmationPageContent({ cart, }) {
@@ -41,69 +42,55 @@ function OrderConfirmationPageContent({ cart, }) {
41
42
  const currencyCode = getCurrencyCodeBySymbol(cart.currencySymbol);
42
43
  if (!currencyCode)
43
44
  throw new Error(`Currency code not found for symbol ${cart.currencySymbol}`);
44
- return (jsx(Page, { breadcrumb: [
45
+ const pageBreadcrumb = (jsx(Breadcrumb, { links: [
45
46
  { href: paths.HOME, label: t('Home') },
46
47
  {
47
48
  href: `${paths.ORDER_CONFIRMATION}?cartId=${cart.id}`,
48
49
  label: t('Order confirmation'),
49
50
  },
50
- ], "data-test-selector": "orderConfirmationPage", title: t('Order confirmation'), children: jsx(CheckoutPageLayout, { actions: {
51
- primary: (jsx(Button, { withArrow: true, "data-test-selector": "checkoutReviewAndSubmit_continueShopping", href: paths.HOME, children: jsx(FormattedMessage, { id: "Continue shopping" }) })),
52
- // secondary: (
53
- // <>
54
- // {cart.canSaveOrder && (
55
- // <Button
56
- // color="secondary"
57
- // onClick={() => {
58
- // saveCartForLater.mutate({ cart })
59
- // }}
60
- // variant="outline">
61
- // <FormattedMessage id="Save order" />
62
- // </Button>
63
- // )}
64
- // </>
65
- // ),
66
- }, overview: jsx(CartTotals, { currencyCode: currencyCode, fulfillmentMethod: cart.fulfillmentMethod, orderNumber: cart.orderNumber, shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate }), children: jsxs("div", { children: [jsx(CheckoutPageSection, { hasBorder: false, title: t('General'), children: jsx(CheckoutPageSectionContent, { children: jsxs("div", { className: styles['general-order-info'], children: [cart.orderDate && (jsx(InfoDisplay, { id: "order-date", label: t('Order date'), value: jsx(FormattedDate, { date: cart.orderDate }) })), cart.requestedDeliveryDateDisplay && (jsx(InfoDisplay, { id: "requested-delivery-date", label: t('Requested delivery date'), value: jsx(FormattedDate, { date: cart.requestedDeliveryDateDisplay }) })), cart.poNumber && (jsx(InfoDisplay, { id: "po-number", label: t('PO Number'), value: cart.poNumber }))] }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: t('Billing and shipping information'), children: jsx(CheckoutPageSectionContent, { children: jsx(BillingAndInvoiceInformation, { billToAddress: cart.billTo && {
67
- address1: cart.billTo.address1,
68
- address2: cart.billTo.address2,
69
- address3: cart.billTo.address3,
70
- attention: '',
71
- city: cart.billTo.city,
72
- companyName: cart.billTo.companyName,
73
- country: cart.billTo.country,
74
- email: cart.billTo.email,
75
- firstName: '',
76
- lastName: '',
77
- phone: cart.billTo.phone,
78
- postalCode: cart.billTo.postalCode,
79
- }, shipToAddress: cart.shipTo && {
80
- address1: cart.shipTo.address1,
81
- address2: cart.shipTo.address2,
82
- address3: cart.shipTo.address3,
83
- attention: '',
84
- city: cart.shipTo.city,
85
- companyName: cart.shipTo.companyName,
86
- country: cart.shipTo.country,
87
- email: cart.shipTo.email,
88
- firstName: '',
89
- lastName: '',
90
- phone: cart.shipTo.phone,
91
- postalCode: cart.shipTo.postalCode,
92
- } }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: t('Order'), children: jsx(CheckoutPageSectionContent, { stretch: true, children: jsx(OrderLineList, { children: cart.cartLines?.map(cartLine => (jsx(OrderLineCard, { deliveryDate: undefined, href: cartLine.productUri, image: {
93
- fit: 'contain',
94
- image: {
95
- '1': cartLine.smallImagePath,
96
- '2': cartLine.smallImagePath,
97
- '3': cartLine.smallImagePath,
98
- altText: cartLine.altText,
99
- },
100
- title: cartLine.altText,
101
- }, isReadonly: true, price: {
102
- currencyCode,
103
- originalTotalPrice: ensureNumber(cartLine.properties.totalListPrice),
104
- pricePerUnit: cartLine.pricing?.unitNetPrice || 0,
105
- totalPrice: cartLine.pricing?.extendedUnitNetPrice || 0,
106
- }, productId: cartLine.productId || '', quantity: cartLine.qtyOrdered || 1, sku: cartLine.erpNumber || '', tags: [], title: cartLine.shortDescription }, cartLine.id))) }) }) })] }) }) }));
51
+ ] }));
52
+ const pageAside = (jsx(PageSection, { children: jsx(CartTotals, { actions: jsx(Fragment, { children: jsx(Button, { withArrow: true, "data-test-selector": "checkoutReviewAndSubmit_continueShopping", href: paths.HOME, children: jsx(FormattedMessage, { id: "Continue shopping" }) }) }), currencyCode: currencyCode, fulfillmentMethod: cart.fulfillmentMethod, orderNumber: cart.orderNumber, shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate }) }));
53
+ return (jsxs(PageLayout, { asideSticky: true, aside: pageAside, breadcrumb: pageBreadcrumb, "data-test-selector": "orderConfirmationPage", title: t('Order confirmation'), type: "check-out", children: [jsx(CheckoutPageSection, { hasBorder: false, title: t('General'), children: jsx(CheckoutPageSectionContent, { children: jsxs("div", { className: styles['general-order-info'], children: [cart.orderDate && (jsx(InfoDisplay, { id: "order-date", label: t('Order date'), value: jsx(FormattedDate, { date: cart.orderDate }) })), cart.requestedDeliveryDateDisplay && (jsx(InfoDisplay, { id: "requested-delivery-date", label: t('Requested delivery date'), value: jsx(FormattedDate, { date: cart.requestedDeliveryDateDisplay }) })), cart.poNumber && (jsx(InfoDisplay, { id: "po-number", label: t('PO Number'), value: cart.poNumber }))] }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: t('Billing and shipping information'), children: jsx(CheckoutPageSectionContent, { children: jsx(BillingAndInvoiceInformation, { billToAddress: cart.billTo && {
54
+ address1: cart.billTo.address1,
55
+ address2: cart.billTo.address2,
56
+ address3: cart.billTo.address3,
57
+ attention: '',
58
+ city: cart.billTo.city,
59
+ companyName: cart.billTo.companyName,
60
+ country: cart.billTo.country,
61
+ email: cart.billTo.email,
62
+ firstName: '',
63
+ lastName: '',
64
+ phone: cart.billTo.phone,
65
+ postalCode: cart.billTo.postalCode,
66
+ }, shipToAddress: cart.shipTo && {
67
+ address1: cart.shipTo.address1,
68
+ address2: cart.shipTo.address2,
69
+ address3: cart.shipTo.address3,
70
+ attention: '',
71
+ city: cart.shipTo.city,
72
+ companyName: cart.shipTo.companyName,
73
+ country: cart.shipTo.country,
74
+ email: cart.shipTo.email,
75
+ firstName: '',
76
+ lastName: '',
77
+ phone: cart.shipTo.phone,
78
+ postalCode: cart.shipTo.postalCode,
79
+ } }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: t('Order'), children: jsx(CheckoutPageSectionContent, { stretch: true, children: jsx(OrderLineList, { children: cart.cartLines?.map(cartLine => (jsx(OrderLineCard, { deliveryDate: undefined, href: cartLine.productUri, image: {
80
+ fit: 'contain',
81
+ image: {
82
+ '1': cartLine.smallImagePath,
83
+ '2': cartLine.smallImagePath,
84
+ '3': cartLine.smallImagePath,
85
+ altText: cartLine.altText,
86
+ },
87
+ title: cartLine.altText,
88
+ }, isReadonly: true, price: {
89
+ currencyCode,
90
+ originalTotalPrice: ensureNumber(cartLine.properties.totalListPrice),
91
+ pricePerUnit: cartLine.pricing?.unitNetPrice || 0,
92
+ totalPrice: cartLine.pricing?.extendedUnitNetPrice || 0,
93
+ }, productId: cartLine.productId || '', quantity: cartLine.qtyOrdered || 1, sku: cartLine.erpNumber || '', tags: [], title: cartLine.shortDescription }, cartLine.id))) }) }) })] }));
107
94
  }
108
95
 
109
96
  export { OrderConfirmationPageContent };
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
+ import { Breadcrumb } from '../../../breadcrumbs/breadcrumb.js';
3
4
  import { Button } from '../../../buttons/button/button.js';
4
5
  import { OrderLineCard } from '../../../cards/orderline-card/orderline-card.js';
5
6
  import { CartTotals } from '../../../cart-totals/cart-totals.js';
6
- import { CartTotalsSummary } from '../../../cart-totals/cart-totals-summary.js';
7
7
  import { FormattedMessage } from '../../../intl/formatted-message.js';
8
8
  import { useFormattedMessage } from '../../../intl/use-formatted-message.js';
9
9
  import { OrderLineList } from '../../../lists/orderline-list/orderline-list.js';
10
+ import { PageLayout } from '../../../page-layout/page-layout.js';
11
+ import { PageSection } from '../../../sections/page-section/page-section.js';
10
12
  import { getCurrencyCodeBySymbol } from '../../../shared/model/currency.js';
11
13
  import { usePaths } from '../../../shared/routing/use-paths.js';
12
14
  import { ensureNumber } from '../../../shared/utils/number.js';
13
- import { Page } from '../../components/page/page.js';
14
- import { CheckoutPageLayout } from '../layouts/checkout-page-layout/checkout-page-layout.js';
15
- import { CheckoutPageSection } from '../layouts/checkout-page-layout/components/checkout-page-section.js';
16
- import { CheckoutPageSectionContent } from '../layouts/checkout-page-layout/components/checkout-page-section-content.js';
15
+ import { CheckoutPageSection } from '../components/checkout-page-section.js';
16
+ import { CheckoutPageSectionContent } from '../components/checkout-page-section-content.js';
17
17
  import { Payment } from './components/payment.js';
18
18
 
19
19
  function PaymentPageContent({ atp, cart, formId, hasAtp, isProcessing, onPaymentComplete, setIsProcessing, }) {
@@ -22,30 +22,30 @@ function PaymentPageContent({ atp, cart, formId, hasAtp, isProcessing, onPayment
22
22
  const currencyCode = getCurrencyCodeBySymbol(cart.currencySymbol);
23
23
  if (!currencyCode)
24
24
  throw new Error(`Currency code not found for symbol ${cart.currencySymbol}`);
25
- return (jsx(Page, { breadcrumb: [
25
+ const pageBreadcrumb = (jsx(Breadcrumb, { links: [
26
26
  { href: paths.HOME, label: t('Home') },
27
27
  {
28
28
  href: paths.REVIEW_AND_SUBMIT,
29
29
  label: t('Review and payment'),
30
30
  },
31
- ], "data-test-selector": "paymentPage", title: t('Review and payment'), children: jsxs(CheckoutPageLayout, { actions: {
32
- primary: (jsx(Button, { withArrow: true, "data-test-selector": "checkoutReviewAndSubmit_placeOrder", form: formId, isDisabled: isProcessing, isLoading: isProcessing ? jsx(FormattedMessage, { id: "Processing" }) : false, type: "submit", children: cart.paymentMethod?.name === 'PBI' ? (jsx(FormattedMessage, { id: "Finalize order" })) : (jsx(FormattedMessage, { id: "Finalize payment" })) })),
33
- }, mobileSummary: jsx(CartTotalsSummary, { currencyCode: currencyCode, totalAmount: cart.orderGrandTotal }), overview: jsx(CartTotals, { currencyCode: currencyCode, deliveryDate: hasAtp ? undefined : cart.requestedDeliveryDate, fulfillmentMethod: cart.fulfillmentMethod, isPayByInvoice: (cart.paymentOptions?.paymentMethods?.length || 1) <= 1 &&
34
- cart.paymentMethod?.name === 'PBI', shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate || 0 }), children: [jsx(CheckoutPageSection, { hasBorder: false, title: jsx(FormattedMessage, { id: "Payment" }), children: jsx(CheckoutPageSectionContent, { children: jsx(Payment, { atp: atp, cart: cart, form: formId, isProcessing: isProcessing, onPaymentComplete: onPaymentComplete, onProcessing: setIsProcessing }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: jsx(FormattedMessage, { id: "Order" }), children: jsx(CheckoutPageSectionContent, { stretch: true, children: jsx(OrderLineList, { children: cart.cartLines?.map(cartLine => (jsx(OrderLineCard, { deliveryDate: cartLine.atp?.date ?? null, href: cartLine.productUri, image: {
35
- fit: 'contain',
36
- image: {
37
- '1': cartLine.smallImagePath,
38
- '2': cartLine.smallImagePath,
39
- '3': cartLine.smallImagePath,
40
- altText: cartLine.altText,
41
- },
42
- title: cartLine.altText,
43
- }, isReadonly: true, price: {
44
- currencyCode,
45
- originalTotalPrice: ensureNumber(cartLine.properties.totalListPrice),
46
- pricePerUnit: cartLine.pricing?.unitNetPrice || 0,
47
- totalPrice: cartLine.pricing?.extendedUnitNetPrice || 0,
48
- }, productId: cartLine.productId || '', quantity: cartLine.qtyOrdered || 1, sku: cartLine.erpNumber || '', tags: [], title: cartLine.shortDescription }, cartLine.id))) }) }) })] }) }));
31
+ ] }));
32
+ const pageAside = (jsx(PageSection, { children: jsx(CartTotals, { actions: jsx(Fragment, { children: jsx(Button, { withArrow: true, "data-test-selector": "checkoutReviewAndSubmit_placeOrder", form: formId, isDisabled: isProcessing, isLoading: isProcessing ? jsx(FormattedMessage, { id: "Processing" }) : false, type: "submit", children: cart.paymentMethod?.name === 'PBI' ? (jsx(FormattedMessage, { id: "Finalize order" })) : (jsx(FormattedMessage, { id: "Finalize payment" })) }) }), currencyCode: currencyCode, deliveryDate: hasAtp ? undefined : cart.requestedDeliveryDate, fulfillmentMethod: cart.fulfillmentMethod, isPayByInvoice: (cart.paymentOptions?.paymentMethods?.length || 1) <= 1 &&
33
+ cart.paymentMethod?.name === 'PBI', shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate || 0 }) }));
34
+ return (jsxs(PageLayout, { asideSticky: true, aside: pageAside, breadcrumb: pageBreadcrumb, "data-test-selector": "paymentPage", title: t('Review and payment'), type: "check-out", children: [jsx(CheckoutPageSection, { hasBorder: false, title: jsx(FormattedMessage, { id: "Payment" }), children: jsx(CheckoutPageSectionContent, { children: jsx(Payment, { atp: atp, cart: cart, form: formId, isProcessing: isProcessing, onPaymentComplete: onPaymentComplete, onProcessing: setIsProcessing }) }) }), jsx(CheckoutPageSection, { hasBorder: false, title: jsx(FormattedMessage, { id: "Order" }), children: jsx(CheckoutPageSectionContent, { stretch: true, children: jsx(OrderLineList, { children: cart.cartLines?.map(cartLine => (jsx(OrderLineCard, { deliveryDate: cartLine.atp?.date ?? null, href: cartLine.productUri, image: {
35
+ fit: 'contain',
36
+ image: {
37
+ '1': cartLine.smallImagePath,
38
+ '2': cartLine.smallImagePath,
39
+ '3': cartLine.smallImagePath,
40
+ altText: cartLine.altText,
41
+ },
42
+ title: cartLine.altText,
43
+ }, isReadonly: true, price: {
44
+ currencyCode,
45
+ originalTotalPrice: ensureNumber(cartLine.properties.totalListPrice),
46
+ pricePerUnit: cartLine.pricing?.unitNetPrice || 0,
47
+ totalPrice: cartLine.pricing?.extendedUnitNetPrice || 0,
48
+ }, productId: cartLine.productId || '', quantity: cartLine.qtyOrdered || 1, sku: cartLine.erpNumber || '', tags: [], title: cartLine.shortDescription }, cartLine.id))) }) }) })] }));
49
49
  }
50
50
 
51
51
  export { PaymentPageContent };
@@ -8,8 +8,8 @@ import { InfoIconTooltip } from '../../../../info-icon-tooltip/info-icon-tooltip
8
8
  import { FormattedMessage } from '../../../../intl/formatted-message.js';
9
9
  import { useFormattedMessage } from '../../../../intl/use-formatted-message.js';
10
10
  import { useFetchCurrentCart } from '../../../../shared/api/storefront/hooks/cart/use-fetch-current-cart.js';
11
- import { CheckoutPageSection } from '../../layouts/checkout-page-layout/components/checkout-page-section.js';
12
- import { CheckoutPageSectionContent } from '../../layouts/checkout-page-layout/components/checkout-page-section-content.js';
11
+ import { CheckoutPageSection } from '../../components/checkout-page-section.js';
12
+ import { CheckoutPageSectionContent } from '../../components/checkout-page-section-content.js';
13
13
  import { SonicAddress } from './sonic-address.js';
14
14
  import styles from './edit-checkout-bill-to-address-form.module.css.js';
15
15
 
@@ -6,8 +6,8 @@ import { TextField } from '../../../../forms/fields/text-field/text-field.js';
6
6
  import { AddressForm } from '../../../../forms/partials/address-form/address-form.js';
7
7
  import { FormattedMessage } from '../../../../intl/formatted-message.js';
8
8
  import { useFormattedMessage } from '../../../../intl/use-formatted-message.js';
9
- import { CheckoutPageSection } from '../../layouts/checkout-page-layout/components/checkout-page-section.js';
10
- import { CheckoutPageSectionContent } from '../../layouts/checkout-page-layout/components/checkout-page-section-content.js';
9
+ import { CheckoutPageSection } from '../../components/checkout-page-section.js';
10
+ import { CheckoutPageSectionContent } from '../../components/checkout-page-section-content.js';
11
11
  import { AddressBookSelector } from './address-book-selector.js';
12
12
  import { EDIT_ADDRESS_FORM_ID } from './edit-checkout-bill-to-address-form.js';
13
13
  import ShipToModeSelector from './ship-to-mode-selector.js';
@@ -108,7 +108,7 @@ function ReadOnlyAddresses({ billTo, cartId, countries, currentCountry, isLoadin
108
108
  break;
109
109
  }
110
110
  };
111
- return (jsxs(Form, { id: EDIT_ADDRESS_FORM_ID, onSubmit: onSubmitHandler, children: [jsx(CheckoutPageSection, { title: jsx(FormattedMessage, { id: "Billing address" }), children: jsxs(CheckoutPageSectionContent, { children: [billTo && (jsx(AddressInfoDisplay, { address: {
111
+ return (jsxs(Form, { className: styles.form, id: EDIT_ADDRESS_FORM_ID, onSubmit: onSubmitHandler, children: [jsx(CheckoutPageSection, { title: jsx(FormattedMessage, { id: "Billing address" }), children: jsxs(CheckoutPageSectionContent, { children: [billTo && (jsx(AddressInfoDisplay, { address: {
112
112
  address1: billTo.address1,
113
113
  address2: billTo.address2,
114
114
  address3: billTo.address3,
@@ -1,3 +1,3 @@
1
- var styles = {"notes":"readonly-address-module-1hAQK","ship-to-info-display":"readonly-address-module-1bMRB","address-book-selector":"readonly-address-module-8Y-8n","new-address-form":"readonly-address-module-p6QoO"};
1
+ var styles = {"form":"readonly-address-module-h-mZx","notes":"readonly-address-module-1hAQK","ship-to-info-display":"readonly-address-module-1bMRB","address-book-selector":"readonly-address-module-8Y-8n","new-address-form":"readonly-address-module-p6QoO"};
2
2
 
3
3
  export { styles as default };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
3
3
  import { useMemo } from 'react';
4
+ import { Breadcrumb } from '../../../breadcrumbs/breadcrumb.js';
4
5
  import { Button } from '../../../buttons/button/button.js';
5
6
  import { CartTotals } from '../../../cart-totals/cart-totals.js';
6
- import { CartTotalsSummary } from '../../../cart-totals/cart-totals-summary.js';
7
7
  import { Select } from '../../../forms/elements/select/select.js';
8
8
  import { FormattedMessage } from '../../../intl/formatted-message.js';
9
9
  import { useFormattedMessage } from '../../../intl/use-formatted-message.js';
10
+ import { PageLayout } from '../../../page-layout/page-layout.js';
11
+ import { PageSection } from '../../../sections/page-section/page-section.js';
10
12
  import { getCurrencyCodeBySymbol } from '../../../shared/model/currency.js';
11
13
  import { usePaths } from '../../../shared/routing/use-paths.js';
12
- import { Page } from '../../components/page/page.js';
13
- import { CheckoutPageLayout } from '../layouts/checkout-page-layout/checkout-page-layout.js';
14
- import { CheckoutPageSection } from '../layouts/checkout-page-layout/components/checkout-page-section.js';
15
- import { CheckoutPageSectionContent } from '../layouts/checkout-page-layout/components/checkout-page-section-content.js';
14
+ import { CheckoutPageSection } from '../components/checkout-page-section.js';
15
+ import { CheckoutPageSectionContent } from '../components/checkout-page-section-content.js';
16
16
  import { EDIT_ADDRESS_FORM_ID } from './components/edit-checkout-bill-to-address-form.js';
17
17
  import styles from './shipping-page.module.css.js';
18
18
 
@@ -27,17 +27,17 @@ function ShippingPageContent({ cart, editAddress, errorPatchBillingAddress, fulf
27
27
  const currencyCode = getCurrencyCodeBySymbol(cart.currencySymbol);
28
28
  if (!currencyCode)
29
29
  throw new Error(`Currency code not found for symbol ${cart.currencySymbol}`);
30
- return (jsx(Page, { breadcrumb: [
30
+ const pageBreadcrumb = (jsx(Breadcrumb, { links: [
31
31
  { href: paths.HOME, label: t('Home') },
32
32
  {
33
33
  href: paths.CHECKOUT_SHIPPING,
34
34
  label: t('Shipping details'),
35
35
  },
36
- ], "data-test-selector": "shippingPage", title: t('Shipping details'), children: jsxs(CheckoutPageLayout, { actions: {
37
- primary: (jsx(Button, { withArrow: true, "data-test-selector": "checkoutShippingCartTotalContinueButton", form: EDIT_ADDRESS_FORM_ID, isDisabled: isPatching, isLoading: isPatching || isPatchingSession ? (jsx(FormattedMessage, { id: "Updating address" })) : undefined, type: "submit", children: jsx(FormattedMessage, { id: "Checkout order" }) })),
38
- }, mobileSummary: jsx(CartTotalsSummary, { currencyCode: currencyCode, totalAmount: cart.orderGrandTotal }), overview: jsx(CartTotals, { currencyCode: currencyCode, fulfillmentMethod: fulfillmentMethods && fulfillmentMethods.length === 1
39
- ? cart.fulfillmentMethod
40
- : undefined, shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate }), children: [jsxs(Fragment, { children: [fulfillmentMethods && fulfillmentMethods.length > 1 && (jsx(CheckoutPageSection, { hasBorder: true, title: t('Fulfillment method'), children: jsx(CheckoutPageSectionContent, { children: jsx("div", { className: styles['fulfillment-select-wrapper'], children: jsx(Select, { isRequired: true, showLabel: true, "data-test-selector": "fulfillmentMethodSelect", defaultSelectedOption: cart.fulfillmentMethod, isLoading: isLoadingFulfillmentMethods, label: t('Fulfillment method'), name: "fulfillmentMethod", onChange: onChangeFulfillmentMethod, options: fulfillmentMethodOptions || {}, variant: "solid" }) }) }) })), hasBillToAddress && !isGuest ? readOnlyAddress : editAddress] }), Boolean(errorPatchBillingAddress) && (jsx("div", { className: styles['error-message'], children: jsx(FormattedMessage, { id: "An unexpected error occured" }) }))] }) }));
36
+ ] }));
37
+ const pageAside = (jsx(PageSection, { children: jsx(CartTotals, { actions: jsx(Fragment, { children: jsx(Button, { withArrow: true, "data-test-selector": "checkoutShippingCartTotalContinueButton", form: EDIT_ADDRESS_FORM_ID, isDisabled: isPatching, isLoading: isPatching || isPatchingSession ? (jsx(FormattedMessage, { id: "Updating address" })) : undefined, type: "submit", children: jsx(FormattedMessage, { id: "Checkout order" }) }) }), currencyCode: currencyCode, fulfillmentMethod: fulfillmentMethods && fulfillmentMethods.length === 1
38
+ ? cart.fulfillmentMethod
39
+ : undefined, shippingCost: cart.shippingAndHandling, subtotal: cart.orderSubTotal, tax: cart.totalTax, total: cart.orderGrandTotal, vatPercentage: cart.cartLines?.[0]?.pricing?.vatRate }) }));
40
+ return (jsxs(PageLayout, { asideSticky: true, aside: pageAside, breadcrumb: pageBreadcrumb, "data-test-selector": "shippingPage", title: t('Shipping details'), type: "check-out", children: [jsxs(Fragment, { children: [fulfillmentMethods && fulfillmentMethods.length > 1 && (jsx(CheckoutPageSection, { hasBorder: true, title: t('Fulfillment method'), children: jsx(CheckoutPageSectionContent, { children: jsx("div", { className: styles['fulfillment-select-wrapper'], children: jsx(Select, { isRequired: true, showLabel: true, "data-test-selector": "fulfillmentMethodSelect", defaultSelectedOption: cart.fulfillmentMethod, isLoading: isLoadingFulfillmentMethods, label: t('Fulfillment method'), name: "fulfillmentMethod", onChange: onChangeFulfillmentMethod, options: fulfillmentMethodOptions || {}, variant: "solid" }) }) }) })), hasBillToAddress && !isGuest ? readOnlyAddress : editAddress] }), Boolean(errorPatchBillingAddress) && (jsx("div", { className: styles['error-message'], children: jsx(FormattedMessage, { id: "An unexpected error occured" }) }))] }));
41
41
  }
42
42
 
43
43
  export { ShippingPageContent };
@@ -6,7 +6,7 @@ import { PageContainer } from '../page-container/page-container.js';
6
6
  import { PageMetaData } from '../page-meta-data/page-meta-data.js';
7
7
 
8
8
  function PageTitle({ children }) {
9
- return (jsx(Heading, { italic: true, uppercase: true, breakpoints: { lg: 'm', xxl: 'xl' }, "data-test-selector": "pageTitle", size: "s", tag: "h1", children: children }));
9
+ return (jsx(Heading, { italic: true, uppercase: true, "data-test-selector": "pageTitle", size: "xxl", tag: "h1", children: children }));
10
10
  }
11
11
  function Page({ alternateLanguageUrls, breadcrumb, canonicalUrl, children, className, 'data-test-selector': dataTestSelector, fluid, fullHeight, meta, openGraph, title, windowTitle, }) {
12
12
  return (jsxs(Fragment, { children: [jsx(PageMetaData, { alternateLanguageUrls: alternateLanguageUrls, canonicalUrl: canonicalUrl, meta: meta, openGraph: openGraph, windowTitle: windowTitle }), jsx(PageContainer, { breadcrumbSlot: breadcrumb && jsx(Breadcrumb, { links: breadcrumb }), className: className, "data-test-selector": dataTestSelector, fluid: fluid, fullHeight: fullHeight, titleSlot: title && jsx(PageTitle, { children: title }), children: children })] }));
@@ -1,18 +1,21 @@
1
1
  "use client";
2
2
  import { jsx } from 'react/jsx-runtime';
3
+ import { Breadcrumb } from '../../breadcrumbs/breadcrumb.js';
3
4
  import { ConnectedCountryLanguageSelectionList } from '../../country-language-selection-list/connected-country-language-selection-list.js';
4
5
  import { useFormattedMessage } from '../../intl/use-formatted-message.js';
6
+ import { PageLayout } from '../../page-layout/page-layout.js';
7
+ import { PageSection } from '../../sections/page-section/page-section.js';
5
8
  import { usePaths } from '../../shared/routing/use-paths.js';
6
- import { Page } from '../components/page/page.js';
7
9
 
8
10
  function CountriesPage() {
9
11
  const paths = usePaths();
10
12
  const t = useFormattedMessage();
11
13
  const title = t('Choose your country or region…');
12
- return (jsx(Page, { breadcrumb: [
13
- { href: paths.HOME, label: 'Home' },
14
+ const breadcrumb = (jsx(Breadcrumb, { links: [
15
+ { href: paths.HOME, label: 'home' },
14
16
  { href: '', label: 'Countries' },
15
- ], "data-test-selector": "countriesPage", title: title, children: jsx(ConnectedCountryLanguageSelectionList, {}) }));
17
+ ] }));
18
+ return (jsx(PageLayout, { breadcrumb: breadcrumb, "data-test-selector": "countriesPage", title: title, type: "default", children: jsx(PageSection, { as: "div", children: jsx(ConnectedCountryLanguageSelectionList, {}) }) }));
16
19
  }
17
20
 
18
21
  export { CountriesPage };
@@ -2,19 +2,14 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { useEffect } from 'react';
4
4
  import { logger } from '../../logging/logger.js';
5
+ import { PageLayout } from '../../page-layout/page-layout.js';
5
6
  import { DefaultErrorView } from '../../shared/error/default-error-view.js';
6
- import { usePaths } from '../../shared/routing/use-paths.js';
7
- import { Page } from '../components/page/page.js';
8
7
 
9
8
  function ErrorPage({ error, title = 'Something went wrong', }) {
10
- const paths = usePaths();
11
9
  useEffect(() => {
12
10
  logger.error('ErrorPage error:', error);
13
11
  }, [error]);
14
- return (jsx(Page, { breadcrumb: [
15
- { href: paths.HOME, label: 'Home' },
16
- { href: '', label: 'Error' },
17
- ], "data-test-selector": "errorPage", title: title, children: jsx(DefaultErrorView, { error: error, title: "" }) }));
12
+ return (jsx(PageLayout, { "data-test-selector": "errorPage", title: title, type: "utility", children: jsx(DefaultErrorView, { error: error }) }));
18
13
  }
19
14
 
20
15
  export { ErrorPage };
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
+ import { PageSection } from '../../../sections/page-section/page-section.js';
3
4
  import { useSignOut } from '../../../shared/api/storefront/hooks/authentication/use-sign-out.js';
4
5
  import { useLocation } from '../../../shared/routing/use-location.js';
5
6
  import { MySonicDesktopNavigation } from './my-sonic-desktop-navigation.js';
@@ -9,7 +10,7 @@ import styles from './connected-my-sonic-navigation.module.css.js';
9
10
  function ConnectedMySonicNavigation() {
10
11
  const { fullPathname } = useLocation();
11
12
  const signOut = useSignOut();
12
- return (jsxs("div", { style: { display: 'grid' }, children: [jsx(MySonicDesktopNavigation, { className: styles['large'], currentPath: fullPathname, onSignOut: signOut }), jsx(MySonicMobileNavigation, { className: styles['small'], currentPath: fullPathname, onSignOut: signOut })] }));
13
+ return (jsxs(PageSection, { as: "div", children: [jsx(MySonicDesktopNavigation, { className: styles['large'], currentPath: fullPathname, onSignOut: signOut }), jsx(MySonicMobileNavigation, { className: styles['small'], currentPath: fullPathname, onSignOut: signOut })] }));
13
14
  }
14
15
 
15
16
  export { ConnectedMySonicNavigation };
@@ -3,6 +3,3 @@ export declare function CreateShipToAddressDetailsPage({ billToId, makeDefault,
3
3
  makeDefault?: boolean;
4
4
  returnUrl?: string;
5
5
  }): import("react/jsx-runtime").JSX.Element;
6
- export declare function CreateShipToAddressDetailsPageBreadcrumb({ billToId, }: {
7
- billToId: string;
8
- }): import("react/jsx-runtime").JSX.Element;
@@ -2,28 +2,27 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Breadcrumb } from '../../../../breadcrumbs/breadcrumb.js';
4
4
  import { useFormattedMessage } from '../../../../intl/use-formatted-message.js';
5
+ import { PageLayout } from '../../../../page-layout/page-layout.js';
6
+ import { PageSection } from '../../../../sections/page-section/page-section.js';
5
7
  import { usePaths } from '../../../../shared/routing/use-paths.js';
6
8
  import { ConnectedCreateShipToAddressForm } from '../../actions/create-ship-to-address/connected-create-ship-to-address-form.js';
7
- import { MySonicLayoutBreadcrumb } from '../../layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js';
8
- import { MySonicLayoutPage } from '../../layouts/my-sonic-layout/my-sonic-layout-page.js';
9
+ import { ConnectedMySonicNavigation } from '../../navigation/connected-my-sonic-navigation.js';
9
10
 
10
11
  function CreateShipToAddressDetailsPage({ billToId, makeDefault, returnUrl, }) {
11
12
  const t = useFormattedMessage();
12
13
  const paths = usePaths();
13
- return (jsx(MySonicLayoutPage, { title: t('Shipping address'), children: jsx(ConnectedCreateShipToAddressForm, { billToId: billToId, makeDefault: makeDefault, returnUrl: returnUrl || paths.ACCOUNT }) }));
14
- }
15
- function CreateShipToAddressDetailsPageBreadcrumb({ billToId, }) {
16
- const t = useFormattedMessage();
17
- const paths = usePaths();
18
- return (jsx(MySonicLayoutBreadcrumb, { children: jsx(Breadcrumb, { links: [
19
- { href: paths.HOME, label: t('Home') },
20
- { href: paths.MY_SONIC, label: t('My Sonic') },
21
- { href: paths.ACCOUNT, label: t('Account') },
22
- {
23
- href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}${paths.ACCOUNT_EDIT_SHIP_TO_ADDRESS}/new`,
24
- label: t('Shipping address'),
25
- },
26
- ] }) }));
14
+ const title = t('Shipping address');
15
+ const breadcrumb = (jsx(Breadcrumb, { links: [
16
+ { href: paths.HOME, label: t('Home') },
17
+ { href: paths.MY_SONIC, label: t('My Sonic') },
18
+ { href: paths.ACCOUNT, label: t('Account') },
19
+ {
20
+ href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}${paths.ACCOUNT_EDIT_SHIP_TO_ADDRESS}/new`,
21
+ label: t('Shipping address'),
22
+ },
23
+ ] }));
24
+ const aside = jsx(ConnectedMySonicNavigation, {});
25
+ return (jsx(PageLayout, { aside: aside, breadcrumb: breadcrumb, "data-test-selector": "create-ship-to-address-details-page", title: title, type: "account", children: jsx(PageSection, { as: "div", children: jsx(ConnectedCreateShipToAddressForm, { billToId: billToId, makeDefault: makeDefault, returnUrl: returnUrl || paths.ACCOUNT }) }) }));
27
26
  }
28
27
 
29
- export { CreateShipToAddressDetailsPage, CreateShipToAddressDetailsPageBreadcrumb };
28
+ export { CreateShipToAddressDetailsPage };
@@ -2,6 +2,3 @@ export declare function EditBillToAddressDetailsPage({ billToId, returnUrl, }: {
2
2
  billToId: string;
3
3
  returnUrl?: string;
4
4
  }): import("react/jsx-runtime").JSX.Element;
5
- export declare function EditBillToAddressDetailsPageBreadcrumb({ billToId, }: {
6
- billToId: string;
7
- }): import("react/jsx-runtime").JSX.Element;
@@ -2,28 +2,27 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Breadcrumb } from '../../../../breadcrumbs/breadcrumb.js';
4
4
  import { useFormattedMessage } from '../../../../intl/use-formatted-message.js';
5
+ import { PageLayout } from '../../../../page-layout/page-layout.js';
6
+ import { PageSection } from '../../../../sections/page-section/page-section.js';
5
7
  import { usePaths } from '../../../../shared/routing/use-paths.js';
6
8
  import { ConnectedEditBillToAddressForm } from '../../actions/edit-bill-to-address/connected-edit-bill-to-address-form.js';
7
- import { MySonicLayoutBreadcrumb } from '../../layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js';
8
- import { MySonicLayoutPage } from '../../layouts/my-sonic-layout/my-sonic-layout-page.js';
9
+ import { ConnectedMySonicNavigation } from '../../navigation/connected-my-sonic-navigation.js';
9
10
 
10
11
  function EditBillToAddressDetailsPage({ billToId, returnUrl, }) {
11
12
  const t = useFormattedMessage();
12
13
  const paths = usePaths();
13
- return (jsx(MySonicLayoutPage, { title: t('Billing address'), children: jsx(ConnectedEditBillToAddressForm, { billToId: billToId, returnUrl: returnUrl || paths.ACCOUNT }) }));
14
- }
15
- function EditBillToAddressDetailsPageBreadcrumb({ billToId, }) {
16
- const t = useFormattedMessage();
17
- const paths = usePaths();
18
- return (jsx(MySonicLayoutBreadcrumb, { children: jsx(Breadcrumb, { links: [
19
- { href: paths.HOME, label: t('Home') },
20
- { href: paths.MY_SONIC, label: t('My Sonic') },
21
- { href: paths.ACCOUNT, label: t('Account') },
22
- {
23
- href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}`,
24
- label: t('Billing address'),
25
- },
26
- ] }) }));
14
+ const title = t('Billing address');
15
+ const breadcrumb = (jsx(Breadcrumb, { links: [
16
+ { href: paths.HOME, label: t('Home') },
17
+ { href: paths.MY_SONIC, label: t('My Sonic') },
18
+ { href: paths.ACCOUNT, label: t('Account') },
19
+ {
20
+ href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}`,
21
+ label: t('Billing address'),
22
+ },
23
+ ] }));
24
+ const aside = jsx(ConnectedMySonicNavigation, {});
25
+ return (jsx(PageLayout, { aside: aside, breadcrumb: breadcrumb, "data-test-selector": "edit-bill-to-address-details-page", title: title, type: "account", children: jsx(PageSection, { as: "div", children: jsx(ConnectedEditBillToAddressForm, { billToId: billToId, returnUrl: returnUrl || paths.ACCOUNT }) }) }));
27
26
  }
28
27
 
29
- export { EditBillToAddressDetailsPage, EditBillToAddressDetailsPageBreadcrumb };
28
+ export { EditBillToAddressDetailsPage };
@@ -3,7 +3,3 @@ export declare function EditShipToAddressDetailsPage({ billToId, returnUrl, ship
3
3
  returnUrl?: string;
4
4
  shipToId: string;
5
5
  }): import("react/jsx-runtime").JSX.Element;
6
- export declare function EditShipToAddressDetailsPageBreadcrumb({ billToId, shipToId, }: {
7
- billToId: string;
8
- shipToId: string;
9
- }): import("react/jsx-runtime").JSX.Element;
@@ -2,28 +2,27 @@
2
2
  import { jsx } from 'react/jsx-runtime';
3
3
  import { Breadcrumb } from '../../../../breadcrumbs/breadcrumb.js';
4
4
  import { useFormattedMessage } from '../../../../intl/use-formatted-message.js';
5
+ import { PageLayout } from '../../../../page-layout/page-layout.js';
6
+ import { PageSection } from '../../../../sections/page-section/page-section.js';
5
7
  import { usePaths } from '../../../../shared/routing/use-paths.js';
6
8
  import { ConnectedEditShipToAddressForm } from '../../actions/edit-ship-to-address/connected-edit-ship-to-address-form.js';
7
- import { MySonicLayoutBreadcrumb } from '../../layouts/my-sonic-layout/my-sonic-layout-breadcrumb.js';
8
- import { MySonicLayoutPage } from '../../layouts/my-sonic-layout/my-sonic-layout-page.js';
9
+ import { ConnectedMySonicNavigation } from '../../navigation/connected-my-sonic-navigation.js';
9
10
 
10
11
  function EditShipToAddressDetailsPage({ billToId, returnUrl, shipToId, }) {
11
12
  const t = useFormattedMessage();
12
13
  const paths = usePaths();
13
- return (jsx(MySonicLayoutPage, { title: t('Shipping address'), children: jsx(ConnectedEditShipToAddressForm, { billToId: billToId, returnUrl: returnUrl || paths.ACCOUNT, shipToId: shipToId }) }));
14
- }
15
- function EditShipToAddressDetailsPageBreadcrumb({ billToId, shipToId, }) {
16
- const t = useFormattedMessage();
17
- const paths = usePaths();
18
- return (jsx(MySonicLayoutBreadcrumb, { children: jsx(Breadcrumb, { links: [
19
- { href: paths.HOME, label: t('Home') },
20
- { href: paths.MY_SONIC, label: t('My Sonic') },
21
- { href: paths.ACCOUNT, label: t('Account') },
22
- {
23
- href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}${paths.ACCOUNT_EDIT_SHIP_TO_ADDRESS}/${shipToId}`,
24
- label: t('Shipping address'),
25
- },
26
- ] }) }));
14
+ const title = t('Shipping address');
15
+ const breadcrumb = (jsx(Breadcrumb, { links: [
16
+ { href: paths.HOME, label: t('Home') },
17
+ { href: paths.MY_SONIC, label: t('My Sonic') },
18
+ { href: paths.ACCOUNT, label: t('Account') },
19
+ {
20
+ href: `${paths.ACCOUNT_EDIT_BILL_TO_ADDRESS}/${billToId}${paths.ACCOUNT_EDIT_SHIP_TO_ADDRESS}/${shipToId}`,
21
+ label: t('Shipping address'),
22
+ },
23
+ ] }));
24
+ const aside = jsx(ConnectedMySonicNavigation, {});
25
+ return (jsx(PageLayout, { aside: aside, breadcrumb: breadcrumb, "data-test-selector": "edit-ship-to-address-details-page", title: title, type: "account", children: jsx(PageSection, { as: "div", children: jsx(ConnectedEditShipToAddressForm, { billToId: billToId, returnUrl: returnUrl || paths.ACCOUNT, shipToId: shipToId }) }) }));
27
26
  }
28
27
 
29
- export { EditShipToAddressDetailsPage, EditShipToAddressDetailsPageBreadcrumb };
28
+ export { EditShipToAddressDetailsPage };
@@ -1,2 +1 @@
1
1
  export declare function FavoritesPage(): import("react/jsx-runtime").JSX.Element;
2
- export declare function FavoritesPageBreadcrumb(): import("react/jsx-runtime").JSX.Element;