@faststore/core 3.44.2 → 3.46.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 (317) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +122 -57
  3. package/.next/cache/.tsbuildinfo +1 -1
  4. package/.next/cache/config.json +3 -3
  5. package/.next/cache/webpack/client-production/0.pack +0 -0
  6. package/.next/cache/webpack/client-production/index.pack +0 -0
  7. package/.next/cache/webpack/server-production/0.pack +0 -0
  8. package/.next/cache/webpack/server-production/index.pack +0 -0
  9. package/.next/prerender-manifest.js +1 -1
  10. package/.next/prerender-manifest.json +1 -1
  11. package/.next/react-loadable-manifest.json +65 -73
  12. package/.next/routes-manifest.json +1 -1
  13. package/.next/server/chunks/129.js +1 -0
  14. package/.next/server/chunks/1506.js +1 -1
  15. package/.next/server/chunks/1999.js +1 -0
  16. package/.next/server/chunks/2091.js +1 -0
  17. package/.next/server/chunks/2230.js +1 -0
  18. package/.next/server/chunks/2773.js +1 -0
  19. package/.next/server/chunks/2880.js +1 -1
  20. package/.next/server/chunks/3006.js +1 -0
  21. package/.next/server/chunks/4289.js +2 -2
  22. package/.next/server/chunks/4559.js +16 -3
  23. package/.next/server/chunks/4746.js +1 -1
  24. package/.next/server/chunks/5636.js +2 -0
  25. package/.next/server/chunks/5772.js +1 -0
  26. package/.next/server/chunks/6594.js +1 -1
  27. package/.next/server/chunks/674.js +1 -1
  28. package/.next/server/chunks/7228.js +1 -1
  29. package/.next/server/chunks/8038.js +1 -0
  30. package/.next/server/chunks/804.js +1 -1
  31. package/.next/server/chunks/8307.js +1 -0
  32. package/.next/server/chunks/831.js +1 -1
  33. package/.next/server/chunks/8562.js +1 -1
  34. package/.next/server/chunks/8646.js +1 -1
  35. package/.next/server/chunks/9559.js +9 -0
  36. package/.next/server/chunks/9664.js +1 -0
  37. package/.next/server/chunks/UIBannerText.js +1 -1
  38. package/.next/server/functions-config-manifest.json +1 -1
  39. package/.next/server/middleware-build-manifest.js +1 -1
  40. package/.next/server/middleware-react-loadable-manifest.js +1 -1
  41. package/.next/server/pages/404.js +1 -1
  42. package/.next/server/pages/404.js.nft.json +1 -1
  43. package/.next/server/pages/500.js +1 -1
  44. package/.next/server/pages/500.js.nft.json +1 -1
  45. package/.next/server/pages/[...slug].js +1 -1
  46. package/.next/server/pages/[...slug].js.nft.json +1 -1
  47. package/.next/server/pages/[slug]/p.js +1 -1
  48. package/.next/server/pages/[slug]/p.js.nft.json +1 -1
  49. package/.next/server/pages/_app.js.nft.json +1 -1
  50. package/.next/server/pages/_document.js.nft.json +1 -1
  51. package/.next/server/pages/_error.js.nft.json +1 -1
  52. package/.next/server/pages/account/403.js +1 -0
  53. package/.next/server/pages/account/403.js.nft.json +1 -0
  54. package/.next/server/pages/account/404.js +1 -0
  55. package/.next/server/pages/account/404.js.nft.json +1 -0
  56. package/.next/server/pages/account/[...unknown].js +1 -0
  57. package/.next/server/pages/account/[...unknown].js.nft.json +1 -0
  58. package/.next/server/pages/account/orders/[id].js +1 -0
  59. package/.next/server/pages/account/orders/[id].js.nft.json +1 -0
  60. package/.next/server/pages/account/orders.js +1 -0
  61. package/.next/server/pages/account/orders.js.nft.json +1 -0
  62. package/.next/server/pages/account/profile.js +1 -1
  63. package/.next/server/pages/account/profile.js.nft.json +1 -1
  64. package/.next/server/pages/account/security.js +1 -0
  65. package/.next/server/pages/account/security.js.nft.json +1 -0
  66. package/.next/server/pages/account/user-details.js +1 -0
  67. package/.next/server/pages/account/user-details.js.nft.json +1 -0
  68. package/.next/server/pages/account.js +1 -1
  69. package/.next/server/pages/account.js.nft.json +1 -1
  70. package/.next/server/pages/api/graphql.js +2 -2
  71. package/.next/server/pages/api/graphql.js.nft.json +1 -1
  72. package/.next/server/pages/api/health/live.js.nft.json +1 -1
  73. package/.next/server/pages/api/health/ready.js.nft.json +1 -1
  74. package/.next/server/pages/api/preview.js.nft.json +1 -1
  75. package/.next/server/pages/checkout.js +1 -1
  76. package/.next/server/pages/checkout.js.nft.json +1 -1
  77. package/.next/server/pages/en-US/404.html +2 -2
  78. package/.next/server/pages/en-US/500.html +2 -2
  79. package/.next/server/pages/en-US/account/403.html +28 -0
  80. package/.next/server/pages/en-US/account/403.json +1 -0
  81. package/.next/server/pages/en-US/account/404.html +28 -0
  82. package/.next/server/pages/en-US/account/404.json +1 -0
  83. package/.next/server/pages/en-US/checkout.html +2 -2
  84. package/.next/server/pages/en-US/login.html +2 -2
  85. package/.next/server/pages/en-US/s.html +2 -2
  86. package/.next/server/pages/en-US.html +2 -2
  87. package/.next/server/pages/index.js +1 -1
  88. package/.next/server/pages/index.js.nft.json +1 -1
  89. package/.next/server/pages/login.js +1 -1
  90. package/.next/server/pages/login.js.nft.json +1 -1
  91. package/.next/server/pages/s.js +1 -1
  92. package/.next/server/pages/s.js.nft.json +1 -1
  93. package/.next/server/pages-manifest.json +1 -1
  94. package/.next/static/chunks/4349-e6912711a345e5b6.js +1 -0
  95. package/.next/static/chunks/4625-a77d5db94b3a2b8f.js +1 -0
  96. package/.next/static/chunks/4746.f94ab461c31311bb.js +1 -0
  97. package/.next/static/chunks/4774.0450cb0efbfe76f4.js +1 -0
  98. package/.next/static/chunks/5836.92639eae2107d7af.js +1 -0
  99. package/.next/static/chunks/630.a3bf6c7cd8c945e1.js +6 -0
  100. package/.next/static/chunks/6335-1380989b5cc84425.js +1 -0
  101. package/.next/static/chunks/{2004.a778e11dd3802b72.js → 6410.bd3fa399df59cc80.js} +1 -1
  102. package/.next/static/chunks/6536.be112cd4a3efe253.js +1 -0
  103. package/.next/static/chunks/6867.27c1cb57ed76dd02.js +1 -0
  104. package/.next/static/chunks/7498-9b4ed9d4a65914cc.js +1 -0
  105. package/.next/static/chunks/7959.df78bb2e81b8d29c.js +1 -0
  106. package/.next/static/chunks/{9.89f24163370f3a22.js → 9.1db9e34673fbd5c9.js} +1 -1
  107. package/.next/static/chunks/9540.19d844fec8517602.js +1 -0
  108. package/.next/static/chunks/{1418-e86227bcf9a5d486.js → 9770-6f30493e3f7ab51b.js} +3 -3
  109. package/.next/static/chunks/BannerNewsletter.3031c9944928c34a.js +1 -0
  110. package/.next/static/chunks/BannerText.ca4ae220fed6bdd6.js +1 -0
  111. package/.next/static/chunks/CartSidebar.3d23093834f2c79a.js +1 -0
  112. package/.next/static/chunks/{Dropdown.7fe839c5ffce4687.js → Dropdown.534482865327310f.js} +1 -1
  113. package/.next/static/chunks/{DropdownButton.3991a37657e1d194.js → DropdownButton.90e7cb14e5866e74.js} +1 -1
  114. package/.next/static/chunks/{DropdownItem.0b3c39f881ca0832.js → DropdownItem.e74df13f69f8c3aa.js} +1 -1
  115. package/.next/static/chunks/{DropdownMenu.943b2d11ffa50ff6.js → DropdownMenu.56cde48e9fbbefe5.js} +1 -1
  116. package/.next/static/chunks/{Footer.1f83637df0884013.js → Footer.4bb5645e731073e7.js} +1 -1
  117. package/.next/static/chunks/Newsletter.f87cd1eca34af5e1.js +1 -0
  118. package/.next/static/chunks/ProductShelf.9b64813b3d1f4c9a.js +1 -0
  119. package/.next/static/chunks/ProductTiles.ebf02b46a32f5a53.js +1 -0
  120. package/.next/static/chunks/RegionModal.cdf4facd086a88e0.js +1 -0
  121. package/.next/static/chunks/Toast.fbfeced8149ed940.js +1 -0
  122. package/.next/static/chunks/{UIBannerText.45cf608e46cde628.js → UIBannerText.ef0582cb5cb01720.js} +1 -1
  123. package/.next/static/chunks/UISKUMatrixSidebar.64a50464062c77e9.js +1 -0
  124. package/.next/static/chunks/UIToast.22fea5cca8ee2b21.js +1 -0
  125. package/.next/static/chunks/pages/{404-6300c433469b7262.js → 404-e89b928faf6b9125.js} +1 -1
  126. package/.next/static/chunks/pages/{500-2d1dd344c8a8827f.js → 500-604704ba70e1e80a.js} +1 -1
  127. package/.next/static/chunks/pages/[...slug]-f80d7d8c8c7948a4.js +1 -0
  128. package/.next/static/chunks/pages/[slug]/p-748d6a1dbe59a2c8.js +1 -0
  129. package/.next/static/chunks/pages/_app-e5a4d3ef47f1b5c3.js +1 -0
  130. package/.next/static/chunks/pages/account/403-e4e6145815eeef01.js +1 -0
  131. package/.next/static/chunks/pages/account/404-ecfebfad41d655e9.js +1 -0
  132. package/.next/static/chunks/pages/account/[...unknown]-b233f92b64bd80cb.js +1 -0
  133. package/.next/static/chunks/pages/account/orders/[id]-8ab11c6c528911e9.js +1 -0
  134. package/.next/static/chunks/pages/account/orders-41bc5ef76c592a64.js +1 -0
  135. package/.next/static/chunks/pages/account/profile-2f501aabce910508.js +1 -0
  136. package/.next/static/chunks/pages/account/security-10e9e41318110950.js +1 -0
  137. package/.next/static/chunks/pages/account/user-details-5a7f30c290c25ec9.js +1 -0
  138. package/.next/static/chunks/pages/{checkout-93b647fc45454d97.js → checkout-cf3d3c3669a5e50b.js} +1 -1
  139. package/.next/static/chunks/pages/{index-07bc320fc045538c.js → index-e79b4e1ce52a8ea0.js} +1 -1
  140. package/.next/static/chunks/pages/{login-2454f1cd309c27d2.js → login-013b1f7a2b4bb9e0.js} +1 -1
  141. package/.next/static/chunks/pages/s-deeb7a0bdb02aaa9.js +1 -0
  142. package/.next/static/chunks/webpack-889c9cccd383a436.js +1 -0
  143. package/.next/static/css/2557aa3eaecf6ef0.css +1 -0
  144. package/.next/static/css/{b8945ac5f5327c34.css → 25ded555cb9a704f.css} +1 -1
  145. package/.next/static/css/5347dbc8b71de47d.css +1 -0
  146. package/.next/static/css/84d35f475d0dc928.css +1 -0
  147. package/.next/static/css/9d1abf05f9ffaf8f.css +1 -0
  148. package/.next/static/css/b7bba8fce075688b.css +1 -0
  149. package/.next/static/ptJ56QsnBqlWtpbKOLiri/_buildManifest.js +1 -0
  150. package/.next/static/ptJ56QsnBqlWtpbKOLiri/_ssgManifest.js +1 -0
  151. package/.next/trace +129 -112
  152. package/.turbo/turbo-build.log +40 -30
  153. package/.turbo/turbo-test.log +5 -5
  154. package/@generated/gql.ts +34 -2
  155. package/@generated/graphql.ts +1569 -2
  156. package/@generated/persisted-documents.json +4 -1
  157. package/@generated/schema.graphql +750 -0
  158. package/CHANGELOG.md +12 -0
  159. package/discovery.config.default.js +1 -1
  160. package/package.json +7 -8
  161. package/public/icons.svg +106 -0
  162. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +68 -0
  163. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerBody.tsx +21 -0
  164. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerHeader.tsx +39 -0
  165. package/src/components/account/MyAccountDrawer/OrganizationDrawer/index.ts +3 -0
  166. package/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss +125 -0
  167. package/src/components/account/MyAccountDrawer/OrganizationSignInButton/OrganizationSignInButton.tsx +50 -0
  168. package/src/components/account/MyAccountDrawer/OrganizationSignInButton/index.ts +1 -0
  169. package/src/components/account/MyAccountDrawer/ProfileSummary/ProfileSummary.tsx +69 -0
  170. package/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss +128 -0
  171. package/src/components/account/MyAccountLayout/MyAccountLayout.tsx +2 -2
  172. package/src/components/account/MyAccountLayout/styles.scss +8 -4
  173. package/src/components/account/MyAccountMenu/styles.scss +3 -2
  174. package/src/components/account/components/BottomSheet/BottomSheet.tsx +58 -0
  175. package/src/components/account/components/BottomSheet/styles.scss +35 -0
  176. package/src/components/account/components/MyAccountAccordion/MyAccountAccordion.tsx +13 -0
  177. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionButton.tsx +35 -0
  178. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionItem.tsx +21 -0
  179. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionPanel.tsx +16 -0
  180. package/src/components/account/components/MyAccountAccordion/index.ts +4 -0
  181. package/src/components/account/components/MyAccountAccordion/styles.scss +88 -0
  182. package/src/components/account/components/MyAccountCard/MyAccountCard.tsx +13 -0
  183. package/src/components/account/components/MyAccountCard/index.ts +1 -0
  184. package/src/components/account/components/MyAccountCard/styles.scss +23 -0
  185. package/src/components/account/components/MyAccountStatusBadge/MyAccountStatusBadge.tsx +28 -0
  186. package/src/components/account/components/MyAccountStatusBadge/index.ts +1 -0
  187. package/src/components/account/components/MyAccountStatusBadge/styles.scss +54 -0
  188. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/MyAccountFilterFacetDateRange.tsx +113 -0
  189. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/index.ts +2 -0
  190. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/styles.scss +43 -0
  191. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx +209 -0
  192. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/index.ts +1 -0
  193. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +24 -0
  194. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +296 -0
  195. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/MyAccountListOrdersEmptyState.tsx +20 -0
  196. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/index.ts +1 -0
  197. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/styles.scss +43 -0
  198. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +210 -0
  199. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/index.ts +1 -0
  200. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +153 -0
  201. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/MyAccountSelectedTags.tsx +119 -0
  202. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/index.ts +1 -0
  203. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/styles.scss +69 -0
  204. package/src/components/account/orders/MyAccountListOrders/index.ts +1 -0
  205. package/src/components/account/orders/MyAccountListOrders/styles.module.scss +100 -0
  206. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/MyAccountDeliveryCard.tsx +47 -0
  207. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/index.ts +1 -0
  208. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/styles.scss +44 -0
  209. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordion.tsx +93 -0
  210. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionDeliveryInfo.tsx +86 -0
  211. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionProducts.tsx +74 -0
  212. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/index.ts +6 -0
  213. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss +193 -0
  214. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/MyAccountMoreInformationCard.tsx +31 -0
  215. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/index.ts +1 -0
  216. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss +22 -0
  217. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/MyAccountOrderActionModal.tsx +121 -0
  218. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/index.ts +2 -0
  219. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss +40 -0
  220. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/useOrderActionModal.ts +38 -0
  221. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/MyAccountOrderActions.tsx +154 -0
  222. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/index.ts +1 -0
  223. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss +33 -0
  224. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +106 -0
  225. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/MyAccountOrderedByCard.tsx +54 -0
  226. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/index.ts +1 -0
  227. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/styles.scss +65 -0
  228. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentCard.tsx +157 -0
  229. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentFlagsIcon.tsx +106 -0
  230. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/index.ts +1 -0
  231. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/styles.scss +76 -0
  232. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/MyAccountStatusCard.tsx +276 -0
  233. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/index.ts +1 -0
  234. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss +205 -0
  235. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/useConnectorPositioning.ts +74 -0
  236. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/MyAccountSummaryCard.tsx +92 -0
  237. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/index.ts +1 -0
  238. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/styles.scss +45 -0
  239. package/src/components/account/orders/MyAccountOrderDetails/index.ts +1 -0
  240. package/src/components/account/orders/MyAccountOrderDetails/section.module.scss +114 -0
  241. package/src/components/account/utils/useFormatPrice.ts +18 -0
  242. package/src/components/cms/RenderSections.tsx +1 -1
  243. package/src/components/navigation/Navbar/Navbar.tsx +16 -1
  244. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +18 -3
  245. package/src/customizations/src/myAccount/extensions/orders/[id]/after.tsx +7 -0
  246. package/src/customizations/src/myAccount/extensions/orders/[id]/before.tsx +7 -0
  247. package/src/customizations/src/myAccount/extensions/orders/after.tsx +7 -0
  248. package/src/customizations/src/myAccount/extensions/orders/before.tsx +7 -0
  249. package/src/customizations/src/myAccount/extensions/profile/after.tsx +7 -0
  250. package/src/customizations/src/myAccount/extensions/profile/before.tsx +7 -0
  251. package/src/customizations/src/myAccount/extensions/security/after.tsx +7 -0
  252. package/src/customizations/src/myAccount/extensions/security/before.tsx +7 -0
  253. package/src/customizations/src/myAccount/extensions/user-details/after.tsx +7 -0
  254. package/src/customizations/src/myAccount/extensions/user-details/before.tsx +7 -0
  255. package/src/experimental/myAccountSeverSideProps.ts +12 -1
  256. package/src/pages/account/403.tsx +103 -0
  257. package/src/pages/account/404.tsx +95 -0
  258. package/src/pages/account/[...unknown].tsx +39 -0
  259. package/src/pages/account/index.tsx +8 -16
  260. package/src/pages/account/orders/[id].tsx +764 -0
  261. package/src/pages/account/orders/index.tsx +273 -0
  262. package/src/pages/account/orders/styles.module.scss +35 -0
  263. package/src/pages/account/profile.tsx +62 -17
  264. package/src/pages/account/security.tsx +94 -0
  265. package/src/pages/account/user-details.tsx +94 -0
  266. package/src/sdk/account/getMyAccountRoutes.ts +13 -12
  267. package/src/sdk/account/useApproveOrder.ts +53 -0
  268. package/src/sdk/account/useCancelOrder.ts +34 -0
  269. package/src/sdk/account/useDebounce.ts +23 -0
  270. package/src/sdk/account/useRejectOrder.ts +53 -0
  271. package/src/sdk/search/useMyAccountFilter.ts +157 -0
  272. package/src/sdk/session/index.ts +9 -0
  273. package/src/utils/myAccountRedirect.tsx +36 -0
  274. package/src/utils/userOrderStatus.ts +141 -0
  275. package/src/utils/utilities.ts +35 -3
  276. package/test/server/index.test.ts +9 -1
  277. package/.next/server/chunks/1246.js +0 -1
  278. package/.next/server/chunks/2443.js +0 -1
  279. package/.next/server/chunks/4725.js +0 -1
  280. package/.next/server/chunks/563.js +0 -1
  281. package/.next/server/chunks/6968.js +0 -10
  282. package/.next/server/chunks/7468.js +0 -1
  283. package/.next/server/chunks/8355.js +0 -1
  284. package/.next/static/chunks/1173.ca14a5bc4e1264f4.js +0 -1
  285. package/.next/static/chunks/2206.44239ce81a09bc17.js +0 -1
  286. package/.next/static/chunks/4349-87a956a73b97519c.js +0 -1
  287. package/.next/static/chunks/4625-553d20c86b0ca577.js +0 -1
  288. package/.next/static/chunks/4746.2e16ec0663a3873f.js +0 -1
  289. package/.next/static/chunks/4774.8e70c01dcd0ed4b3.js +0 -1
  290. package/.next/static/chunks/4865.4017be0f8e7c8cf0.js +0 -1
  291. package/.next/static/chunks/5259-90f7ef92cf24e49a.js +0 -1
  292. package/.next/static/chunks/5836.48126b7866819f9e.js +0 -1
  293. package/.next/static/chunks/630.13d3dd939b789798.js +0 -6
  294. package/.next/static/chunks/6335-6eb4ff84af184b88.js +0 -1
  295. package/.next/static/chunks/6536.d5260107222db13c.js +0 -1
  296. package/.next/static/chunks/7498-72289e704e7c7056.js +0 -1
  297. package/.next/static/chunks/7959.7c721505286572c0.js +0 -1
  298. package/.next/static/chunks/BannerNewsletter.8982f42e60ed8828.js +0 -1
  299. package/.next/static/chunks/BannerText.5b250db1cf67e44f.js +0 -1
  300. package/.next/static/chunks/CartSidebar.aa9e43be37034654.js +0 -1
  301. package/.next/static/chunks/Newsletter.9db4df2d4fb33227.js +0 -1
  302. package/.next/static/chunks/ProductShelf.9cea36116836c161.js +0 -1
  303. package/.next/static/chunks/ProductTiles.059a4a6360e1d4ea.js +0 -1
  304. package/.next/static/chunks/RegionModal.4594b707a1092551.js +0 -1
  305. package/.next/static/chunks/Toast.01d4ac8bf14c1be5.js +0 -1
  306. package/.next/static/chunks/UIButton.3186f933c0ecfb31.js +0 -1
  307. package/.next/static/chunks/UISKUMatrixSidebar.9ac3980a60cfc358.js +0 -1
  308. package/.next/static/chunks/UIToast.221eb10681d2f642.js +0 -1
  309. package/.next/static/chunks/pages/[...slug]-c1a62d58f5940747.js +0 -1
  310. package/.next/static/chunks/pages/[slug]/p-555dc09a5e78260e.js +0 -1
  311. package/.next/static/chunks/pages/_app-d5641120092ee13b.js +0 -1
  312. package/.next/static/chunks/pages/account/profile-23b2e9fbbd95a30b.js +0 -1
  313. package/.next/static/chunks/pages/s-9901e6857f517b8b.js +0 -1
  314. package/.next/static/chunks/webpack-f338de6955d58a39.js +0 -1
  315. package/.next/static/css/249b9deaabc0d32d.css +0 -1
  316. package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_buildManifest.js +0 -1
  317. package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_ssgManifest.js +0 -1
@@ -0,0 +1,100 @@
1
+ .page {
2
+ @import "./MyAccountListOrdersTable/styles.scss";
3
+ @import "./MyAccountSelectedTags/styles.scss";
4
+ @import "./MyAccountListOrdersEmptyState/styles.scss";
5
+ @import "../../components/MyAccountStatusBadge/styles.scss";
6
+
7
+ // --------------------------------------------------------
8
+ // Design Tokens
9
+ // --------------------------------------------------------
10
+
11
+ // Default properties
12
+ --fs-list-orders-padding : var(--fs-spacing-5);
13
+ --fs-page-height : 100%;
14
+
15
+ // Title
16
+ --fs-list-orders-title-margin-bottom : var(--fs-spacing-5);
17
+ --fs-list-orders-title-font-size : var(--fs-spacing-4);
18
+ --fs-list-orders-title-font-weight : var(--fs-text-weight-semibold);
19
+
20
+ // Search Filters
21
+ --fs-list-orders-filter-width : 55%;
22
+ --fs-list-orders-filter-margin-bottom : var(--fs-spacing-3);
23
+ --fs-list-orders-filter-gap-mobile : var(--fs-grid-gap-0);
24
+ --fs-list-orders-filter-width-mobile : 100%;
25
+ --fs-list-orders-filter-margin-bottom-mobile : 0;
26
+
27
+ --fs-list-orders-filter-input-border-color-hover : var(--fs-input-border-color-hover);
28
+ --fs-list-orders-filter-input-shadow-hover : var(--fs-input-box-shadow-hover);
29
+
30
+ --fs-list-orders-filter-button-border-radius : var(--fs-border-radius-pill);
31
+ --fs-list-orders-filter-button-height : 2.375rem;
32
+ --fs-list-orders-filter-button-margin-left : 0.6rem;
33
+
34
+ height: var(--fs-page-height);
35
+
36
+ [data-fs-list-orders] {
37
+ padding: var(--fs-list-orders-padding);
38
+
39
+ @include media("<notebook") {
40
+ padding-bottom: 0;
41
+ }
42
+ }
43
+
44
+ [data-fs-list-orders-title] {
45
+ margin-bottom: var(--fs-list-orders-title-margin-bottom);
46
+ font-size: var(--fs-list-orders-title-font-size);
47
+ font-weight: var(--fs-list-orders-title-font-weight);
48
+ }
49
+
50
+ [data-fs-list-orders-header] {
51
+ display: flex;
52
+ align-items: baseline;
53
+ justify-content: space-between;
54
+ }
55
+
56
+ [data-fs-list-orders-search-filters] {
57
+ display: flex;
58
+ align-items: center;
59
+ justify-content: space-between;
60
+ width: var(--fs-list-orders-filter-width);
61
+ margin-bottom: var(--fs-list-orders-filter-margin-bottom);
62
+
63
+ @include media("<notebook") {
64
+ flex-direction: column;
65
+ gap: var(--fs-list-orders-filter-gap-mobile);
66
+ align-items: flex-end;
67
+ width: var(--fs-list-orders-filter-width-mobile);
68
+ margin-bottom: var(--fs-list-orders-filter-margin-bottom-mobile);
69
+ }
70
+
71
+ [data-fs-search-input-field] {
72
+ [data-fs-search-input-field-input] {
73
+ @include media("<notebook") {
74
+ border: var(--fs-input-border-width) solid var(--fs-input-border-color);
75
+
76
+ @include input-focus-ring;
77
+
78
+ &:hover:not(:disabled):not(:focus-visible):not(:focus) {
79
+ border-color: var(--fs-list-orders-filter-input-border-color-hover);
80
+ box-shadow: var(--fs-list-orders-filter-input-shadow-hover);
81
+ }
82
+ }
83
+ }
84
+
85
+ [data-fs-icon-button][data-fs-button-variant] {
86
+ @include media("<notebook") {
87
+ position: absolute;
88
+ right: 0;
89
+ }
90
+ }
91
+ }
92
+
93
+ [data-fs-list-orders-search-filters-button] {
94
+ --fs-button-border-radius : var(--fs-list-orders-filter-button-border-radius);
95
+ --fs-button-height : var(--fs-list-orders-filter-button-height);
96
+
97
+ margin-left: var(--fs-list-orders-filter-button-margin-left);
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,47 @@
1
+ import type { UserOrderDeliveryOptionsData } from '@generated/graphql'
2
+ import { camelCaseToTitle } from 'src/utils/utilities'
3
+ import MyAccountCard from '../../../components/MyAccountCard'
4
+
5
+ interface MyAccountDeliveryCardProps {
6
+ deliveryOptionsData?: UserOrderDeliveryOptionsData
7
+ fields?: Array<{
8
+ name: string
9
+ value: string
10
+ refId?: string
11
+ }>
12
+ }
13
+
14
+ export default function MyAccountDeliveryCard({
15
+ deliveryOptionsData,
16
+ fields,
17
+ }: MyAccountDeliveryCardProps) {
18
+ return (
19
+ <MyAccountCard title="Delivery" data-fs-order-delivery-card>
20
+ <div data-fs-delivery-methods>
21
+ {deliveryOptionsData.deliveryOptions.map((option, index) => (
22
+ <p key={option.friendlyDeliveryOptionName} data-fs-delivery-method>
23
+ {option.friendlyDeliveryOptionName}
24
+ </p>
25
+ ))}
26
+ </div>
27
+
28
+ {deliveryOptionsData.contact && (
29
+ <div data-fs-delivery-contact>
30
+ <p data-fs-delivery-contact-name>
31
+ {deliveryOptionsData.contact.name}
32
+ </p>
33
+ {deliveryOptionsData.contact.phone && (
34
+ <p data-fs-delivery-contact-phone>
35
+ {deliveryOptionsData.contact.phone}
36
+ </p>
37
+ )}
38
+ {fields?.length > 0 && (
39
+ <p data-fs-delivery-contact-fields>
40
+ {`${camelCaseToTitle(fields[0]?.name)}: ${fields[0]?.value}`}
41
+ </p>
42
+ )}
43
+ </div>
44
+ )}
45
+ </MyAccountCard>
46
+ )
47
+ }
@@ -0,0 +1 @@
1
+ export { default } from './MyAccountDeliveryCard'
@@ -0,0 +1,44 @@
1
+ [data-fs-order-delivery-card] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens for Delivery Card
4
+ // --------------------------------------------------------
5
+
6
+ // Default properties
7
+ --fs-ordered-by-text-size: var(--fs-text-size-2);
8
+ --fs-ordered-by-text-line-height: 1.5;
9
+ --fs-ordered-by-text-letter-spacing: -2%;
10
+ --fs-ordered-by-text-contact-weight: var(--fs-text-weight-regular);
11
+ --fs-ordered-by-text-contact-strong-weight: var(--fs-text-weight-medium);
12
+ --fs-ordered-by-text-delivery-options-weight: var(--fs-text-weight-semibold);
13
+
14
+ [data-fs-card-body] {
15
+ display: flex;
16
+ flex-direction: column;
17
+ gap: var(--fs-spacing-3);
18
+
19
+ [data-fs-delivery-methods] {
20
+ display: flex;
21
+ flex-direction: column;
22
+ align-items: flex-start;
23
+
24
+ [data-fs-delivery-method] {
25
+ font-size: var(--fs-ordered-by-text-size);
26
+ font-weight: var(--fs-ordered-by-text-delivery-options-weight);
27
+ line-height: var(--fs-ordered-by-text-line-height);
28
+ letter-spacing: var(--fs-ordered-by-text-letter-spacing);
29
+ }
30
+ }
31
+
32
+ [data-fs-delivery-contact] {
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: var(--fs-spacing-1);
36
+
37
+ [data-fs-delivery-contact-name], [data-fs-delivery-contact-phone] {
38
+ font-size: var(--fs-ordered-by-text-size);
39
+ font-weight: var(--fs-ordered-by-text-contact-weight);
40
+ letter-spacing: var(--fs-ordered-by-text-letter-spacing);
41
+ }
42
+ }
43
+ }
44
+ }
@@ -0,0 +1,93 @@
1
+ import type {
2
+ UserOrderDeliveryOption,
3
+ UserOrderDeliveryOptionsContact,
4
+ } from '@generated/graphql'
5
+ import { useState } from 'react'
6
+ import {
7
+ MyAccountAccordion,
8
+ MyAccountAccordionButton,
9
+ MyAccountAccordionItem,
10
+ MyAccountAccordionPanel,
11
+ } from '../../../components/MyAccountAccordion'
12
+ import { useFormatPrice } from '../../../utils/useFormatPrice'
13
+ import MyAccountDeliveryOptionAccordionDeliveryInfo from './MyAccountDeliveryOptionAccordionDeliveryInfo'
14
+ import {
15
+ MyAccountDeliveryOptionAccordionProduct,
16
+ MyAccountDeliveryOptionAccordionProducts,
17
+ } from './MyAccountDeliveryOptionAccordionProducts'
18
+
19
+ interface MyAccountDeliveryOptionAccordionProps {
20
+ deliveryOption: UserOrderDeliveryOption
21
+ contact?: UserOrderDeliveryOptionsContact | null
22
+ currencyCode: string
23
+ customFields?: Array<{
24
+ type: string
25
+ id: string
26
+ fields?: Array<{
27
+ name: string
28
+ value: string
29
+ refId?: string
30
+ }>
31
+ }>
32
+ }
33
+
34
+ function MyAccountDeliveryOptionAccordion({
35
+ deliveryOption,
36
+ contact,
37
+ currencyCode,
38
+ customFields,
39
+ }: MyAccountDeliveryOptionAccordionProps) {
40
+ const [indicesExpanded, setIndicesExpanded] = useState<Set<number>>(
41
+ new Set([])
42
+ )
43
+ const formatPrice = useFormatPrice()
44
+
45
+ const title = deliveryOption.friendlyDeliveryOptionName
46
+
47
+ const summary = `${deliveryOption.quantityOfDifferentItems} ${deliveryOption.quantityOfDifferentItems === 1 ? 'item' : 'items'} – Total ${formatPrice(deliveryOption.total ?? 0, currencyCode)}`
48
+
49
+ const onChange = (index: number) => {
50
+ if (indicesExpanded.has(index)) {
51
+ indicesExpanded.delete(index)
52
+ setIndicesExpanded(new Set(indicesExpanded))
53
+ } else {
54
+ setIndicesExpanded(new Set(indicesExpanded.add(index)))
55
+ }
56
+ }
57
+
58
+ return (
59
+ <MyAccountAccordion
60
+ indices={indicesExpanded}
61
+ onChange={onChange}
62
+ data-fs-delivery-option-accordion
63
+ >
64
+ <MyAccountAccordionItem index={0} key={String(0)}>
65
+ <MyAccountAccordionButton title={title} summary={summary} />
66
+ <MyAccountAccordionPanel>
67
+ <MyAccountDeliveryOptionAccordionDeliveryInfo
68
+ deliveryOption={deliveryOption}
69
+ contact={contact}
70
+ />
71
+ <MyAccountDeliveryOptionAccordionProducts>
72
+ {deliveryOption.items?.map((item, index) => (
73
+ <MyAccountDeliveryOptionAccordionProduct
74
+ key={index}
75
+ image={item.imageUrl || ''}
76
+ quantity={item.quantity}
77
+ name={item.name}
78
+ field={customFields
79
+ ?.find((cf) => cf.id === item.id)
80
+ ?.fields?.find((f) => f.name === 'costCenter')}
81
+ price={formatPrice(item.price ?? 0, currencyCode)}
82
+ tax={formatPrice(item.tax ?? 0, currencyCode)}
83
+ total={formatPrice(item.total ?? 0, currencyCode)}
84
+ />
85
+ ))}
86
+ </MyAccountDeliveryOptionAccordionProducts>
87
+ </MyAccountAccordionPanel>
88
+ </MyAccountAccordionItem>
89
+ </MyAccountAccordion>
90
+ )
91
+ }
92
+
93
+ export default MyAccountDeliveryOptionAccordion
@@ -0,0 +1,86 @@
1
+ import type { ReactNode } from 'react'
2
+ import type {
3
+ UserOrderDeliveryOption,
4
+ UserOrderDeliveryOptionsContact,
5
+ } from '@generated/graphql'
6
+
7
+ interface InfoContainerProps {
8
+ title: string
9
+ children: ReactNode
10
+ }
11
+
12
+ function InfoContainer({ title, children }: InfoContainerProps) {
13
+ return (
14
+ <div data-fs-delivery-option-accordion-info-container>
15
+ <span data-fs-delivery-option-accordion-info-title>{title}</span>
16
+ {children}
17
+ </div>
18
+ )
19
+ }
20
+
21
+ interface MyAccountDeliveryOptionAccordionDeliveryInfoProps {
22
+ deliveryOption: UserOrderDeliveryOption
23
+ contact?: UserOrderDeliveryOptionsContact | null
24
+ }
25
+
26
+ function MyAccountDeliveryOptionAccordionDeliveryInfo({
27
+ deliveryOption,
28
+ contact,
29
+ }: MyAccountDeliveryOptionAccordionDeliveryInfoProps) {
30
+ const isPickup = deliveryOption.deliveryChannel === 'pickup-in-point'
31
+ const address = isPickup
32
+ ? deliveryOption.pickupStoreInfo?.address
33
+ : deliveryOption.address
34
+
35
+ if (!address && !contact && !deliveryOption.deliveryWindow) {
36
+ return null
37
+ }
38
+
39
+ return (
40
+ <div data-fs-delivery-option-accordion-delivery-info>
41
+ {!isPickup && contact && (
42
+ <InfoContainer title="Recipient">
43
+ <span data-fs-delivery-option-accordion-info>
44
+ <strong>{contact.name}</strong>
45
+ </span>
46
+ {contact.phone && (
47
+ <span data-fs-delivery-option-accordion-info>{contact.phone}</span>
48
+ )}
49
+ {contact.email && (
50
+ <span data-fs-delivery-option-accordion-info>{contact.email}</span>
51
+ )}
52
+ </InfoContainer>
53
+ )}
54
+
55
+ <InfoContainer title={isPickup ? 'Store address' : 'Delivery address'}>
56
+ <span data-fs-delivery-option-accordion-info>
57
+ <strong>{address.city}</strong>
58
+ </span>
59
+ <span data-fs-delivery-option-accordion-info>{address.street}</span>
60
+ <span
61
+ data-fs-delivery-option-accordion-info
62
+ >{`${address.postalCode}${address.state ? `, ${address.state}` : ''}${address.country ? `, ${address.country}.` : ''}`}</span>
63
+ </InfoContainer>
64
+
65
+ {/* TODO: Validate this after we check the return from api */}
66
+ {isPickup && deliveryOption.deliveryWindow && (
67
+ <InfoContainer title="Store Hours">
68
+ <span data-fs-delivery-option-accordion-info>
69
+ From:{' '}
70
+ {new Date(
71
+ deliveryOption.deliveryWindow.startDateUtc
72
+ ).toLocaleString()}
73
+ </span>
74
+ <span data-fs-delivery-option-accordion-info>
75
+ To:{' '}
76
+ {new Date(
77
+ deliveryOption.deliveryWindow.endDateUtc
78
+ ).toLocaleString()}
79
+ </span>
80
+ </InfoContainer>
81
+ )}
82
+ </div>
83
+ )
84
+ }
85
+
86
+ export default MyAccountDeliveryOptionAccordionDeliveryInfo
@@ -0,0 +1,74 @@
1
+ import type { ReactNode } from 'react'
2
+ import { camelCaseToTitle } from 'src/utils/utilities'
3
+
4
+ interface MyAccountDeliveryOptionAccordionProductProps {
5
+ image: string
6
+ quantity: number
7
+ name: string
8
+ field?: {
9
+ name: string
10
+ value: string
11
+ refId?: string
12
+ }
13
+ price: string
14
+ tax: string
15
+ total: string
16
+ }
17
+
18
+ function MyAccountDeliveryOptionAccordionProduct({
19
+ image,
20
+ quantity,
21
+ name,
22
+ field,
23
+ price,
24
+ tax,
25
+ total,
26
+ }: MyAccountDeliveryOptionAccordionProductProps) {
27
+ return (
28
+ <div data-fs-delivery-option-accordion-product>
29
+ <div data-fs-delivery-option-accordion-product-top>
30
+ <div data-fs-delivery-option-accordion-product-image>
31
+ <img src={image} alt={name} />
32
+ <span data-fs-delivery-option-accordion-product-quantity>
33
+ {quantity}
34
+ </span>
35
+ </div>
36
+ <div data-fs-delivery-option-accordion-product-details>
37
+ <p>{name}</p>
38
+ {field && (
39
+ <span>{`${camelCaseToTitle(field.name)}: ${field.value ?? ''}`}</span>
40
+ )}
41
+ </div>
42
+ </div>
43
+ <div data-fs-delivery-option-accordion-product-bottom>
44
+ <div data-fs-delivery-option-accordion-product-price>
45
+ <p>{price}</p>
46
+ <span>Each</span>
47
+ </div>
48
+ <div data-fs-delivery-option-accordion-product-tax>
49
+ <p>{tax}</p>
50
+ <span>Taxes</span>
51
+ </div>
52
+ <div data-fs-delivery-option-accordion-product-total>
53
+ <p>{total}</p>
54
+ <span>Total</span>
55
+ </div>
56
+ </div>
57
+ </div>
58
+ )
59
+ }
60
+
61
+ interface MyAccountDeliveryOptionAccordionProductsProps {
62
+ children: ReactNode
63
+ }
64
+
65
+ function MyAccountDeliveryOptionAccordionProducts({
66
+ children,
67
+ }: MyAccountDeliveryOptionAccordionProductsProps) {
68
+ return <div data-fs-delivery-option-accordion-products>{children}</div>
69
+ }
70
+
71
+ export {
72
+ MyAccountDeliveryOptionAccordionProduct,
73
+ MyAccountDeliveryOptionAccordionProducts,
74
+ }
@@ -0,0 +1,6 @@
1
+ export { default as MyAccountDeliveryOptionAccordion } from './MyAccountDeliveryOptionAccordion'
2
+ export { default as MyAccountDeliveryOptionAccordionDeliveryInfo } from './MyAccountDeliveryOptionAccordionDeliveryInfo'
3
+ export {
4
+ MyAccountDeliveryOptionAccordionProduct,
5
+ MyAccountDeliveryOptionAccordionProducts,
6
+ } from './MyAccountDeliveryOptionAccordionProducts'
@@ -0,0 +1,193 @@
1
+ [data-fs-delivery-option-accordion] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens
4
+ // --------------------------------------------------------
5
+
6
+ // Product Image
7
+ --fs-order-product-image-size : 3.75rem;
8
+ --fs-order-product-image-radius : var(--fs-spacing-0);
9
+ --fs-order-product-image-background : var(--fs-color-main-0);
10
+
11
+ // Product
12
+ --fs-orders-total-items-height : 1.25rem;
13
+ --fs-orders-total-items-min-width : var(--fs-orders-total-items-height);
14
+ --fs-orders-total-items-padding : 0.125rem var(--fs-spacing-0);
15
+ --fs-orders-total-items-radius : var(--fs-border-radius-pill);
16
+ --fs-orders-total-items-bottom : var(--fs-spacing-0);
17
+ --fs-orders-total-items-right : var(--fs-orders-total-items-bottom);
18
+ --fs-orders-total-items-border : var(--fs-border-width) solid var(--fs-color-neutral-0);
19
+ --fs-orders-total-items-bkg-color : var(--fs-color-main-4);
20
+ --fs-orders-total-items-color : var(--fs-color-text-inverse);
21
+ --fs-orders-total-items-weight : var(--fs-text-weight-medium);
22
+
23
+ // --------------------------------------------------------
24
+ // Structural Styles
25
+ // --------------------------------------------------------
26
+
27
+ [data-fs-delivery-option-accordion-delivery-info] {
28
+ display: grid;
29
+ grid-template-columns: 1fr;
30
+ gap: var(--fs-spacing-3);
31
+ padding: var(--fs-spacing-4) var(--fs-spacing-4) var(--fs-spacing-5);
32
+ border-bottom: var(--fs-border-width) solid var(--fs-border-color-light);
33
+
34
+ @include media(">=tablet") {
35
+ grid-template-columns: repeat(2, 1fr);
36
+ }
37
+
38
+ [data-fs-delivery-option-accordion-info-container] {
39
+ display: flex;
40
+ flex-direction: column;
41
+
42
+ [data-fs-delivery-option-accordion-info-title] {
43
+ font-size: var(--fs-text-size-1);
44
+ line-height: 1.25;
45
+ color: var(--fs-color-text-light);
46
+ letter-spacing: 1%;
47
+ }
48
+
49
+ span:not([data-fs-delivery-option-accordion-info-title]) {
50
+ font-size: var(--fs-text-size-2);
51
+ line-height: 1.5;
52
+ color: var(--fs-color-text);
53
+ letter-spacing: -2%;
54
+
55
+ strong {
56
+ font-weight: var(--fs-text-weight-medium);
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ [data-fs-delivery-option-accordion-products] {
63
+ display: flex;
64
+ flex-direction: column;
65
+ padding: var(--fs-spacing-1) var(--fs-spacing-4);
66
+
67
+ [data-fs-delivery-option-accordion-product] {
68
+ display: flex;
69
+ flex-direction: column;
70
+ gap: var(--fs-spacing-3);
71
+ padding: var(--fs-spacing-3) 0;
72
+ border-bottom: var(--fs-border-width) solid var(--fs-border-color-light);
73
+
74
+ &:last-child {
75
+ border-bottom: none;
76
+ }
77
+
78
+ [data-fs-delivery-option-accordion-product-top] {
79
+ display: flex;
80
+ gap: var(--fs-spacing-3);
81
+ align-items: center;
82
+ width: 100%;
83
+ }
84
+
85
+ [data-fs-delivery-option-accordion-product-bottom] {
86
+ display: grid;
87
+ grid-template-columns: repeat(auto-fit, minmax(6.25rem, auto)); // min = 100px
88
+ gap: var(--fs-spacing-0);
89
+ }
90
+
91
+ @include media(">=notebook") {
92
+ display: grid;
93
+ grid-template-columns: auto 1fr repeat(3, minmax(6.25rem, auto)); // min = 100px
94
+ grid-auto-flow: column;
95
+ gap: var(--fs-spacing-2);
96
+
97
+ [data-fs-delivery-option-accordion-product-top] {
98
+ display: contents;
99
+ }
100
+
101
+ [data-fs-delivery-option-accordion-product-bottom] {
102
+ display: contents;
103
+ }
104
+ }
105
+
106
+ [data-fs-delivery-option-accordion-product-image] {
107
+ position: relative;
108
+ display: flex;
109
+ flex-shrink: 0;
110
+ align-items: flex-start;
111
+ justify-content: flex-start;
112
+ width: var(--fs-order-product-image-size);
113
+ height: var(--fs-order-product-image-size);
114
+ overflow: hidden;
115
+ background-color: var(--fs-order-product-image-background);
116
+ border-radius: var(--fs-order-product-image-radius);
117
+
118
+ img {
119
+ width: inherit;
120
+ height: inherit;
121
+ object-fit: contain;
122
+ }
123
+
124
+ [data-fs-delivery-option-accordion-product-quantity] {
125
+ position: absolute;
126
+ right: var(--fs-orders-total-items-right);
127
+ bottom: var(--fs-orders-total-items-bottom);
128
+ display: flex;
129
+ align-items: center;
130
+ justify-content: center;
131
+ min-width: var(--fs-orders-total-items-min-width);
132
+ height: var(--fs-orders-total-items-height);
133
+ padding: var(--fs-orders-total-items-padding);
134
+ font-size: var(--fs-text-size-0);
135
+ font-weight: var(--fs-orders-total-items-weight);
136
+ color: var(--fs-orders-total-items-color);
137
+ background-color: var(--fs-orders-total-items-bkg-color);
138
+ border: var(--fs-orders-total-items-border);
139
+ border-radius: var(--fs-orders-total-items-radius);
140
+ }
141
+ }
142
+
143
+ [data-fs-delivery-option-accordion-product-details] {
144
+ display: flex;
145
+ flex: 1;
146
+ flex-direction: column;
147
+ gap: var(--fs-spacing-1);
148
+
149
+ p {
150
+ margin: 0;
151
+ font-size: var(--fs-text-size-base);
152
+ font-weight: var(--fs-text-weight-medium);
153
+ line-height: 1.5;
154
+
155
+ @include truncate-title(1);
156
+ }
157
+
158
+ span {
159
+ font-size: var(--fs-text-size-1);
160
+ line-height: 1.5;
161
+ color: var(--fs-color-text-light);
162
+
163
+ @include truncate-title(1);
164
+ }
165
+ }
166
+
167
+ [data-fs-delivery-option-accordion-product-price],
168
+ [data-fs-delivery-option-accordion-product-tax],
169
+ [data-fs-delivery-option-accordion-product-total] {
170
+ display: flex;
171
+ flex-direction: column;
172
+ align-items: flex-start;
173
+
174
+ @include media(">=notebook") {
175
+ align-items: flex-end;
176
+ }
177
+
178
+ p {
179
+ margin: 0;
180
+ font-size: var(--fs-text-size-base);
181
+ font-weight: var(--fs-text-weight-medium);
182
+ line-height: 1.5;
183
+ }
184
+
185
+ span {
186
+ font-size: var(--fs-text-size-1);
187
+ line-height: 1.5;
188
+ color: var(--fs-color-text-light);
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,31 @@
1
+ import { camelCaseToTitle } from 'src/utils/utilities'
2
+ import MyAccountCard from '../../../components/MyAccountCard'
3
+
4
+ export interface MyAccountMoreInformationCardProps {
5
+ fields: Array<{
6
+ name: string
7
+ value: string
8
+ refId?: string
9
+ }>
10
+ }
11
+
12
+ function MyAccountMoreInformationCard({
13
+ fields,
14
+ }: MyAccountMoreInformationCardProps) {
15
+ return (
16
+ <MyAccountCard title="More information" data-fs-order-more-information-card>
17
+ <div data-fs-order-more-information-card-content>
18
+ {fields.map((item) => (
19
+ <div key={item.name} data-fs-order-more-information-card-item>
20
+ <p data-fs-order-more-information-card-title>
21
+ {camelCaseToTitle(item.name)}
22
+ </p>
23
+ <p data-fs-order-more-information-card-value>{item.value}</p>
24
+ </div>
25
+ ))}
26
+ </div>
27
+ </MyAccountCard>
28
+ )
29
+ }
30
+
31
+ export default MyAccountMoreInformationCard
@@ -0,0 +1 @@
1
+ export { default } from './MyAccountMoreInformationCard'