@faststore/core 3.44.2 → 3.45.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 (318) 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 +66 -74
  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/{1552.8751332da83cadc5.js → 1552.2705dd1ff3aee879.js} +1 -1
  95. package/.next/static/chunks/4349-e6912711a345e5b6.js +1 -0
  96. package/.next/static/chunks/4625-a77d5db94b3a2b8f.js +1 -0
  97. package/.next/static/chunks/4746.f94ab461c31311bb.js +1 -0
  98. package/.next/static/chunks/4774.0450cb0efbfe76f4.js +1 -0
  99. package/.next/static/chunks/5836.92639eae2107d7af.js +1 -0
  100. package/.next/static/chunks/630.a3bf6c7cd8c945e1.js +6 -0
  101. package/.next/static/chunks/6335-580edc7c2c0fb418.js +1 -0
  102. package/.next/static/chunks/{2004.a778e11dd3802b72.js → 6410.bd3fa399df59cc80.js} +1 -1
  103. package/.next/static/chunks/6536.be112cd4a3efe253.js +1 -0
  104. package/.next/static/chunks/6867.27c1cb57ed76dd02.js +1 -0
  105. package/.next/static/chunks/7498-9b4ed9d4a65914cc.js +1 -0
  106. package/.next/static/chunks/7959.df78bb2e81b8d29c.js +1 -0
  107. package/.next/static/chunks/{9.89f24163370f3a22.js → 9.1db9e34673fbd5c9.js} +1 -1
  108. package/.next/static/chunks/9540.19d844fec8517602.js +1 -0
  109. package/.next/static/chunks/{1418-e86227bcf9a5d486.js → 9770-6f30493e3f7ab51b.js} +3 -3
  110. package/.next/static/chunks/BannerNewsletter.3031c9944928c34a.js +1 -0
  111. package/.next/static/chunks/BannerText.ca4ae220fed6bdd6.js +1 -0
  112. package/.next/static/chunks/CartSidebar.3d23093834f2c79a.js +1 -0
  113. package/.next/static/chunks/{Dropdown.7fe839c5ffce4687.js → Dropdown.534482865327310f.js} +1 -1
  114. package/.next/static/chunks/{DropdownButton.3991a37657e1d194.js → DropdownButton.90e7cb14e5866e74.js} +1 -1
  115. package/.next/static/chunks/{DropdownItem.0b3c39f881ca0832.js → DropdownItem.e74df13f69f8c3aa.js} +1 -1
  116. package/.next/static/chunks/{DropdownMenu.943b2d11ffa50ff6.js → DropdownMenu.56cde48e9fbbefe5.js} +1 -1
  117. package/.next/static/chunks/{Footer.1f83637df0884013.js → Footer.4bb5645e731073e7.js} +1 -1
  118. package/.next/static/chunks/Newsletter.f87cd1eca34af5e1.js +1 -0
  119. package/.next/static/chunks/ProductShelf.9b64813b3d1f4c9a.js +1 -0
  120. package/.next/static/chunks/ProductTiles.ebf02b46a32f5a53.js +1 -0
  121. package/.next/static/chunks/RegionModal.cdf4facd086a88e0.js +1 -0
  122. package/.next/static/chunks/Toast.fbfeced8149ed940.js +1 -0
  123. package/.next/static/chunks/{UIBannerText.45cf608e46cde628.js → UIBannerText.ef0582cb5cb01720.js} +1 -1
  124. package/.next/static/chunks/UISKUMatrixSidebar.64a50464062c77e9.js +1 -0
  125. package/.next/static/chunks/UIToast.22fea5cca8ee2b21.js +1 -0
  126. package/.next/static/chunks/pages/{404-6300c433469b7262.js → 404-e89b928faf6b9125.js} +1 -1
  127. package/.next/static/chunks/pages/{500-2d1dd344c8a8827f.js → 500-604704ba70e1e80a.js} +1 -1
  128. package/.next/static/chunks/pages/[...slug]-f80d7d8c8c7948a4.js +1 -0
  129. package/.next/static/chunks/pages/[slug]/p-748d6a1dbe59a2c8.js +1 -0
  130. package/.next/static/chunks/pages/_app-1be58ebde3e0b964.js +1 -0
  131. package/.next/static/chunks/pages/account/403-e4e6145815eeef01.js +1 -0
  132. package/.next/static/chunks/pages/account/404-ecfebfad41d655e9.js +1 -0
  133. package/.next/static/chunks/pages/account/[...unknown]-b233f92b64bd80cb.js +1 -0
  134. package/.next/static/chunks/pages/account/orders/[id]-8ab11c6c528911e9.js +1 -0
  135. package/.next/static/chunks/pages/account/orders-41bc5ef76c592a64.js +1 -0
  136. package/.next/static/chunks/pages/account/profile-2f501aabce910508.js +1 -0
  137. package/.next/static/chunks/pages/account/security-10e9e41318110950.js +1 -0
  138. package/.next/static/chunks/pages/account/user-details-5a7f30c290c25ec9.js +1 -0
  139. package/.next/static/chunks/pages/{checkout-93b647fc45454d97.js → checkout-cf3d3c3669a5e50b.js} +1 -1
  140. package/.next/static/chunks/pages/{index-07bc320fc045538c.js → index-e79b4e1ce52a8ea0.js} +1 -1
  141. package/.next/static/chunks/pages/{login-2454f1cd309c27d2.js → login-013b1f7a2b4bb9e0.js} +1 -1
  142. package/.next/static/chunks/pages/s-deeb7a0bdb02aaa9.js +1 -0
  143. package/.next/static/chunks/webpack-72d55466bef693ae.js +1 -0
  144. package/.next/static/css/2557aa3eaecf6ef0.css +1 -0
  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/css/{b8945ac5f5327c34.css → ec42ef906960d09f.css} +1 -1
  150. package/.next/static/iXgIvAYuYuXvEl83Xy7jT/_buildManifest.js +1 -0
  151. package/.next/static/iXgIvAYuYuXvEl83Xy7jT/_ssgManifest.js +1 -0
  152. package/.next/trace +129 -112
  153. package/.turbo/turbo-build.log +40 -30
  154. package/.turbo/turbo-test.log +5 -5
  155. package/@generated/gql.ts +34 -2
  156. package/@generated/graphql.ts +1566 -2
  157. package/@generated/persisted-documents.json +4 -1
  158. package/@generated/schema.graphql +748 -0
  159. package/CHANGELOG.md +6 -0
  160. package/discovery.config.default.js +1 -1
  161. package/package.json +7 -8
  162. package/public/icons.svg +106 -0
  163. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawer.tsx +68 -0
  164. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerBody.tsx +21 -0
  165. package/src/components/account/MyAccountDrawer/OrganizationDrawer/OrganizationDrawerHeader.tsx +39 -0
  166. package/src/components/account/MyAccountDrawer/OrganizationDrawer/index.ts +3 -0
  167. package/src/components/account/MyAccountDrawer/OrganizationDrawer/section.module.scss +121 -0
  168. package/src/components/account/MyAccountDrawer/OrganizationSignInButton/OrganizationSignInButton.tsx +50 -0
  169. package/src/components/account/MyAccountDrawer/OrganizationSignInButton/index.ts +1 -0
  170. package/src/components/account/MyAccountDrawer/ProfileSummary/ProfileSummary.tsx +67 -0
  171. package/src/components/account/MyAccountDrawer/ProfileSummary/profile-summary.scss +91 -0
  172. package/src/components/account/MyAccountLayout/MyAccountLayout.tsx +2 -2
  173. package/src/components/account/MyAccountLayout/styles.scss +8 -4
  174. package/src/components/account/MyAccountMenu/styles.scss +3 -2
  175. package/src/components/account/components/BottomSheet/BottomSheet.tsx +58 -0
  176. package/src/components/account/components/BottomSheet/styles.scss +35 -0
  177. package/src/components/account/components/MyAccountAccordion/MyAccountAccordion.tsx +13 -0
  178. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionButton.tsx +35 -0
  179. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionItem.tsx +21 -0
  180. package/src/components/account/components/MyAccountAccordion/MyAccountAccordionPanel.tsx +16 -0
  181. package/src/components/account/components/MyAccountAccordion/index.ts +4 -0
  182. package/src/components/account/components/MyAccountAccordion/styles.scss +88 -0
  183. package/src/components/account/components/MyAccountCard/MyAccountCard.tsx +13 -0
  184. package/src/components/account/components/MyAccountCard/index.ts +1 -0
  185. package/src/components/account/components/MyAccountCard/styles.scss +23 -0
  186. package/src/components/account/components/MyAccountStatusBadge/MyAccountStatusBadge.tsx +28 -0
  187. package/src/components/account/components/MyAccountStatusBadge/index.ts +1 -0
  188. package/src/components/account/components/MyAccountStatusBadge/styles.scss +54 -0
  189. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/MyAccountFilterFacetDateRange.tsx +113 -0
  190. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/index.ts +2 -0
  191. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterFacetDateRange/styles.scss +43 -0
  192. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/MyAccountFilterSlider.tsx +209 -0
  193. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/index.ts +1 -0
  194. package/src/components/account/orders/MyAccountListOrders/MyAccountFilterSlider/section.module.scss +24 -0
  195. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrders.tsx +296 -0
  196. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/MyAccountListOrdersEmptyState.tsx +20 -0
  197. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/index.ts +1 -0
  198. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersEmptyState/styles.scss +43 -0
  199. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/MyAccountListOrdersTable.tsx +210 -0
  200. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/index.ts +1 -0
  201. package/src/components/account/orders/MyAccountListOrders/MyAccountListOrdersTable/styles.scss +153 -0
  202. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/MyAccountSelectedTags.tsx +119 -0
  203. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/index.ts +1 -0
  204. package/src/components/account/orders/MyAccountListOrders/MyAccountSelectedTags/styles.scss +69 -0
  205. package/src/components/account/orders/MyAccountListOrders/index.ts +1 -0
  206. package/src/components/account/orders/MyAccountListOrders/styles.module.scss +100 -0
  207. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/MyAccountDeliveryCard.tsx +47 -0
  208. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/index.ts +1 -0
  209. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryCard/styles.scss +44 -0
  210. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordion.tsx +93 -0
  211. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionDeliveryInfo.tsx +86 -0
  212. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/MyAccountDeliveryOptionAccordionProducts.tsx +74 -0
  213. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/index.ts +6 -0
  214. package/src/components/account/orders/MyAccountOrderDetails/MyAccountDeliveryOptionAccordion/styles.scss +193 -0
  215. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/MyAccountMoreInformationCard.tsx +31 -0
  216. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/index.ts +1 -0
  217. package/src/components/account/orders/MyAccountOrderDetails/MyAccountMoreInformationCard/styles.scss +22 -0
  218. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/MyAccountOrderActionModal.tsx +121 -0
  219. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/index.ts +2 -0
  220. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/styles.module.scss +40 -0
  221. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActionModal/useOrderActionModal.ts +38 -0
  222. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/MyAccountOrderActions.tsx +154 -0
  223. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/index.ts +1 -0
  224. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderActions/styles.scss +33 -0
  225. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderDetails.tsx +106 -0
  226. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/MyAccountOrderedByCard.tsx +54 -0
  227. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/index.ts +1 -0
  228. package/src/components/account/orders/MyAccountOrderDetails/MyAccountOrderedByCard/styles.scss +65 -0
  229. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentCard.tsx +157 -0
  230. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/MyAccountPaymentFlagsIcon.tsx +106 -0
  231. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/index.ts +1 -0
  232. package/src/components/account/orders/MyAccountOrderDetails/MyAccountPaymentCard/styles.scss +76 -0
  233. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/MyAccountStatusCard.tsx +276 -0
  234. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/index.ts +1 -0
  235. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/styles.scss +205 -0
  236. package/src/components/account/orders/MyAccountOrderDetails/MyAccountStatusCard/useConnectorPositioning.ts +74 -0
  237. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/MyAccountSummaryCard.tsx +92 -0
  238. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/index.ts +1 -0
  239. package/src/components/account/orders/MyAccountOrderDetails/MyAccountSummaryCard/styles.scss +45 -0
  240. package/src/components/account/orders/MyAccountOrderDetails/index.ts +1 -0
  241. package/src/components/account/orders/MyAccountOrderDetails/section.module.scss +114 -0
  242. package/src/components/account/utils/useFormatPrice.ts +18 -0
  243. package/src/components/cms/RenderSections.tsx +1 -1
  244. package/src/components/navigation/Navbar/Navbar.tsx +16 -1
  245. package/src/components/navigation/NavbarSlider/NavbarSlider.tsx +18 -3
  246. package/src/customizations/src/myAccount/extensions/orders/[id]/after.tsx +7 -0
  247. package/src/customizations/src/myAccount/extensions/orders/[id]/before.tsx +7 -0
  248. package/src/customizations/src/myAccount/extensions/orders/after.tsx +7 -0
  249. package/src/customizations/src/myAccount/extensions/orders/before.tsx +7 -0
  250. package/src/customizations/src/myAccount/extensions/profile/after.tsx +7 -0
  251. package/src/customizations/src/myAccount/extensions/profile/before.tsx +7 -0
  252. package/src/customizations/src/myAccount/extensions/security/after.tsx +7 -0
  253. package/src/customizations/src/myAccount/extensions/security/before.tsx +7 -0
  254. package/src/customizations/src/myAccount/extensions/user-details/after.tsx +7 -0
  255. package/src/customizations/src/myAccount/extensions/user-details/before.tsx +7 -0
  256. package/src/experimental/myAccountSeverSideProps.ts +12 -1
  257. package/src/pages/account/403.tsx +103 -0
  258. package/src/pages/account/404.tsx +95 -0
  259. package/src/pages/account/[...unknown].tsx +39 -0
  260. package/src/pages/account/index.tsx +8 -16
  261. package/src/pages/account/orders/[id].tsx +764 -0
  262. package/src/pages/account/orders/index.tsx +273 -0
  263. package/src/pages/account/orders/styles.module.scss +35 -0
  264. package/src/pages/account/profile.tsx +62 -17
  265. package/src/pages/account/security.tsx +94 -0
  266. package/src/pages/account/user-details.tsx +94 -0
  267. package/src/sdk/account/getMyAccountRoutes.ts +13 -12
  268. package/src/sdk/account/useApproveOrder.ts +53 -0
  269. package/src/sdk/account/useCancelOrder.ts +34 -0
  270. package/src/sdk/account/useDebounce.ts +23 -0
  271. package/src/sdk/account/useRejectOrder.ts +53 -0
  272. package/src/sdk/search/useMyAccountFilter.ts +157 -0
  273. package/src/sdk/session/index.ts +8 -0
  274. package/src/utils/myAccountRedirect.tsx +36 -0
  275. package/src/utils/userOrderStatus.ts +141 -0
  276. package/src/utils/utilities.ts +35 -3
  277. package/test/server/index.test.ts +9 -1
  278. package/.next/server/chunks/1246.js +0 -1
  279. package/.next/server/chunks/2443.js +0 -1
  280. package/.next/server/chunks/4725.js +0 -1
  281. package/.next/server/chunks/563.js +0 -1
  282. package/.next/server/chunks/6968.js +0 -10
  283. package/.next/server/chunks/7468.js +0 -1
  284. package/.next/server/chunks/8355.js +0 -1
  285. package/.next/static/chunks/1173.ca14a5bc4e1264f4.js +0 -1
  286. package/.next/static/chunks/2206.44239ce81a09bc17.js +0 -1
  287. package/.next/static/chunks/4349-87a956a73b97519c.js +0 -1
  288. package/.next/static/chunks/4625-553d20c86b0ca577.js +0 -1
  289. package/.next/static/chunks/4746.2e16ec0663a3873f.js +0 -1
  290. package/.next/static/chunks/4774.8e70c01dcd0ed4b3.js +0 -1
  291. package/.next/static/chunks/4865.4017be0f8e7c8cf0.js +0 -1
  292. package/.next/static/chunks/5259-90f7ef92cf24e49a.js +0 -1
  293. package/.next/static/chunks/5836.48126b7866819f9e.js +0 -1
  294. package/.next/static/chunks/630.13d3dd939b789798.js +0 -6
  295. package/.next/static/chunks/6335-6eb4ff84af184b88.js +0 -1
  296. package/.next/static/chunks/6536.d5260107222db13c.js +0 -1
  297. package/.next/static/chunks/7498-72289e704e7c7056.js +0 -1
  298. package/.next/static/chunks/7959.7c721505286572c0.js +0 -1
  299. package/.next/static/chunks/BannerNewsletter.8982f42e60ed8828.js +0 -1
  300. package/.next/static/chunks/BannerText.5b250db1cf67e44f.js +0 -1
  301. package/.next/static/chunks/CartSidebar.aa9e43be37034654.js +0 -1
  302. package/.next/static/chunks/Newsletter.9db4df2d4fb33227.js +0 -1
  303. package/.next/static/chunks/ProductShelf.9cea36116836c161.js +0 -1
  304. package/.next/static/chunks/ProductTiles.059a4a6360e1d4ea.js +0 -1
  305. package/.next/static/chunks/RegionModal.4594b707a1092551.js +0 -1
  306. package/.next/static/chunks/Toast.01d4ac8bf14c1be5.js +0 -1
  307. package/.next/static/chunks/UIButton.3186f933c0ecfb31.js +0 -1
  308. package/.next/static/chunks/UISKUMatrixSidebar.9ac3980a60cfc358.js +0 -1
  309. package/.next/static/chunks/UIToast.221eb10681d2f642.js +0 -1
  310. package/.next/static/chunks/pages/[...slug]-c1a62d58f5940747.js +0 -1
  311. package/.next/static/chunks/pages/[slug]/p-555dc09a5e78260e.js +0 -1
  312. package/.next/static/chunks/pages/_app-d5641120092ee13b.js +0 -1
  313. package/.next/static/chunks/pages/account/profile-23b2e9fbbd95a30b.js +0 -1
  314. package/.next/static/chunks/pages/s-9901e6857f517b8b.js +0 -1
  315. package/.next/static/chunks/webpack-f338de6955d58a39.js +0 -1
  316. package/.next/static/css/249b9deaabc0d32d.css +0 -1
  317. package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_buildManifest.js +0 -1
  318. package/.next/static/t5v5T1mAjzrYWEKaMk8mu/_ssgManifest.js +0 -1
@@ -0,0 +1,67 @@
1
+ import { Button, Icon } from '@faststore/ui'
2
+ import Link from 'next/link'
3
+ import type { ReactNode } from 'react'
4
+ import { useSession } from 'src/sdk/session'
5
+
6
+ export type ProfileSummaryProps = {
7
+ onLogoutClick?: (storeConfig: unknown) => void
8
+ orgName: string
9
+ bordered?: boolean
10
+ showManageLink?: boolean
11
+ person: {
12
+ image?: ReactNode
13
+ name: string
14
+ role?: string
15
+ }
16
+ }
17
+
18
+ export const ProfileSummary = ({
19
+ onLogoutClick,
20
+ person: { image, name, role },
21
+ orgName,
22
+ bordered = false,
23
+ showManageLink = false,
24
+ ...otherProps
25
+ }: ProfileSummaryProps) => {
26
+ const { b2b } = useSession()
27
+ return (
28
+ <section
29
+ data-fs-profile-summary
30
+ data-fs-profile-summary-bordered={bordered}
31
+ {...otherProps}
32
+ >
33
+ <div data-fs-profile-summary-header>
34
+ <h2 data-fs-profile-summary-org-name>{orgName}</h2>
35
+ {showManageLink && (
36
+ <Link
37
+ data-fs-profile-summary-org-link
38
+ href={
39
+ b2b?.unitId
40
+ ? `/buyer-portal/org-unit/${b2b?.unitId}`
41
+ : '/buyer-portal'
42
+ }
43
+ >
44
+ Manage <Icon name="OpenInNew" width={23} height={23} />
45
+ </Link>
46
+ )}
47
+ </div>
48
+ <div data-fs-profile-summary-person-actions>
49
+ <div data-fs-profile-summary-person-image>
50
+ {image ?? <Icon name="Profile" width={14} height={14} />}
51
+ </div>
52
+ <div data-fs-profile-summary-person-data>
53
+ <p data-fs-profile-summary-person-name>{name}</p>
54
+ {role && <p data-fs-profile-summary-person-role>{role}</p>}
55
+ </div>
56
+ <Button
57
+ data-fs-profile-summary-logout-button
58
+ onClick={onLogoutClick}
59
+ variant="tertiary"
60
+ size="small"
61
+ >
62
+ Logout
63
+ </Button>
64
+ </div>
65
+ </section>
66
+ )
67
+ }
@@ -0,0 +1,91 @@
1
+ [data-fs-profile-summary] {
2
+ display: flex;
3
+ flex-direction: column;
4
+ width: 100%;
5
+ background-color: white;
6
+
7
+ &[data-fs-profile-summary-bordered="true"] {
8
+ border: var(--fs-border-width) solid #e0e0e0;
9
+ border-radius: var(--fs-border-radius);
10
+ }
11
+ }
12
+
13
+ [data-fs-profile-summary-header] {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ padding: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
18
+ font-size: var(--fs-text-size-legend);
19
+ font-weight: var(--fs-text-weight-semibold);
20
+ border-bottom: var(--fs-border-width) solid #e0e0e0;
21
+
22
+ [data-fs-profile-summary-org-name] {
23
+ font-size: var(--fs-text-size-1);
24
+ font-weight: var(--fs-text-weight-medium);
25
+ color: black;
26
+ }
27
+
28
+ [data-fs-profile-summary-org-link] {
29
+ display: flex;
30
+ gap: var(--fs-spacing-1);
31
+ align-items: center;
32
+ font-size: var(--fs-text-size-1);
33
+ font-weight: var(--fs-text-weight-semibold);
34
+ color: var(--fs-color-link);
35
+ text-decoration: none;
36
+ transition: text-decoration 0.5s ease;
37
+
38
+ &:hover {
39
+ text-decoration: underline;
40
+ }
41
+ }
42
+ }
43
+
44
+ [data-fs-profile-summary-person-actions] {
45
+ display: flex;
46
+ justify-content: space-between;
47
+ padding: calc(var(--fs-spacing-3) + var(--fs-spacing-0));
48
+
49
+ [data-fs-profile-summary-person-image] {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ width: var(--fs-spacing-6);
54
+ height: var(--fs-spacing-6);
55
+ margin-right: var(--fs-spacing-3);
56
+ overflow: hidden;
57
+ color: var(--fs-border-color-active);
58
+ background-color: #cbe9ff;
59
+ border-radius: var(--fs-border-radius-pill);
60
+ }
61
+
62
+ [data-fs-profile-summary-person-data] {
63
+ display: flex;
64
+ flex: 1;
65
+ flex-direction: column;
66
+ gap: var(--fs-spacing-0);
67
+ font-size: var(--fs-text-size-legend);
68
+
69
+ [data-fs-profile-summary-person-name] {
70
+ font-weight: var(--fs-text-weight-medium);
71
+ color: var(--fs-color-text);
72
+ }
73
+
74
+ [data-fs-profile-summary-person-role] {
75
+ font-weight: var(--fs-text-weight-semibold);
76
+ color: var(--fs-color-text-light);
77
+ }
78
+ }
79
+
80
+ [data-fs-profile-summary-logout-button] {
81
+ --fs-button-tertiary-text-color-hover: var(--fs-color-danger-text);
82
+ --fs-button-tertiary-text-color-active: var(--fs-color-danger-text);
83
+
84
+ [data-fs-button-wrapper] {
85
+ padding: calc(var(--fs-spacing-2) - var(--fs-spacing-0)) 1.375rem;
86
+ color: var(--fs-color-danger-text);
87
+ border: var(--fs-border-width) solid var(--fs-border-color-light);
88
+ border-radius: var(--fs-border-radius-pill);
89
+ }
90
+ }
91
+ }
@@ -1,6 +1,6 @@
1
1
  import type { PropsWithChildren } from 'react'
2
- import MyAccountMenu from '../MyAccountMenu'
3
2
  import menuRoutes from 'src/customizations/src/myAccount/navigation'
3
+ import MyAccountMenu from '../MyAccountMenu'
4
4
  import styles from '../section.module.scss'
5
5
 
6
6
  export type MyAccountLayoutProps = {}
@@ -17,7 +17,7 @@ const MyAccountLayout = ({
17
17
  return (
18
18
  <div className={styles.layout}>
19
19
  <MyAccountMenu accountName={mockedUserName} items={menuRoutes} />
20
- {children}
20
+ <section>{children}</section>
21
21
  </div>
22
22
  )
23
23
  }
@@ -1,5 +1,10 @@
1
1
  .layout {
2
+ @import "@faststore/ui/src/components/atoms/Badge/styles.scss";
2
3
  @import "@faststore/ui/src/components/atoms/Button/styles.scss";
4
+ @import "@faststore/ui/src/components/atoms/Icon/styles.scss";
5
+ @import "@faststore/ui/src/components/atoms/Input/styles.scss";
6
+ @import "@faststore/ui/src/components/molecules/LinkButton/styles.scss";
7
+ @import "@faststore/ui/src/components/molecules/SearchInputField/styles.scss";
3
8
  @import "../MyAccountMenu/styles.scss";
4
9
 
5
10
  display: grid;
@@ -8,10 +13,9 @@
8
13
 
9
14
  @include media(">=notebook") {
10
15
  grid-template-rows: none;
11
- grid-template-columns: max(300px) auto;
12
- gap: var(--fs-spacing-8);
13
- max-width: var(--fs-grid-max-width);
14
- padding: 0;
16
+ grid-template-columns: max(300px) 1fr;
17
+ gap: var(--fs-spacing-3);
18
+ max-width: var(--fs-grid-breakpoint-desktop);
15
19
  margin: 0 auto;
16
20
  }
17
21
  }
@@ -52,6 +52,7 @@
52
52
  &:hover,
53
53
  &[data-is-selected="true"] {
54
54
  background-color: var(--fs-color-tertiary-bkg-hover);
55
+ transition: background-color 0.5s ease;
55
56
  }
56
57
 
57
58
  &:active {
@@ -89,8 +90,8 @@
89
90
  @include media(">=notebook") {
90
91
  grid-template-rows: none;
91
92
  grid-template-columns: max(300px) 80%;
92
- gap: var(--fs-spacing-8);
93
- padding: 0 var(--fs-spacing-8);
93
+ gap: var(--fs-spacing-3);
94
+ padding: 0 var(--fs-spacing-3) 0 var(--fs-spacing-6);
94
95
 
95
96
  .menu {
96
97
  padding: 0;
@@ -0,0 +1,58 @@
1
+ import type { ReactNode } from 'react'
2
+ import {
3
+ Modal as UIModal,
4
+ type ModalProps,
5
+ type OverlayProps,
6
+ } from '@faststore/ui'
7
+
8
+ export interface BottomSheetProps extends Omit<ModalProps, 'title'> {
9
+ /**
10
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
11
+ */
12
+ testId?: string
13
+ /**
14
+ * A boolean value that represents the state of the BottomSheet
15
+ */
16
+ isOpen?: boolean
17
+ /**
18
+ * Represents the fade effect of the BottomSheet.
19
+ */
20
+ fade?: 'in' | 'out'
21
+ /**
22
+ * Props forwarded to the `Overlay` component.
23
+ */
24
+ overlayProps?: OverlayProps
25
+ /**
26
+ * This function is called whenever the user clicks outside
27
+ * the modal content
28
+ */
29
+ onDismiss?: () => void
30
+ children: ReactNode
31
+ }
32
+
33
+ function BottomSheet({
34
+ testId = 'fs-bottom-sheet',
35
+ isOpen,
36
+ fade = 'out',
37
+ children,
38
+ overlayProps,
39
+ onDismiss,
40
+ ...otherProps
41
+ }: BottomSheetProps) {
42
+ return (
43
+ <UIModal
44
+ data-fs-modal={null}
45
+ data-fs-bottom-sheet
46
+ data-fs-bottom-sheet-state={fade}
47
+ isOpen={isOpen}
48
+ onDismiss={onDismiss}
49
+ testId={testId}
50
+ overlayProps={overlayProps}
51
+ {...otherProps}
52
+ >
53
+ {children}
54
+ </UIModal>
55
+ )
56
+ }
57
+
58
+ export default BottomSheet
@@ -0,0 +1,35 @@
1
+ [data-fs-bottom-sheet] {
2
+ position: fixed;
3
+ right: 0;
4
+ bottom: 0;
5
+ left: 0;
6
+ z-index: var(--fs-z-index-high);
7
+ width: 100%;
8
+ padding: var(--fs-spacing-3);
9
+ margin: 0;
10
+ background-color: var(--fs-color-body-bkg);
11
+ transition: transform var(--fs-transition-timing) ease-in;
12
+ transform: translateY(100%);
13
+
14
+ &[data-fs-bottom-sheet-state="in"] {
15
+ transform: translateY(0);
16
+ }
17
+
18
+ &[data-fs-bottom-sheet-state="out"] {
19
+ transform: translateY(100%);
20
+ }
21
+
22
+ [data-fs-modal-header] {
23
+ display: flex;
24
+ flex-direction: row-reverse;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ padding: var(--fs-spacing-1) 0 var(--fs-spacing-3);
28
+
29
+ [data-fs-modal-header-title] {
30
+ font-size: var(--fs-text-size-lead);
31
+ font-weight: var(--fs-text-weight-bold);
32
+ line-height: 1.2;
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,13 @@
1
+ import { Accordion as UIAccordion, type AccordionProps } from '@faststore/ui'
2
+
3
+ interface MyAccountAccordionProps extends AccordionProps {}
4
+
5
+ function MyAccountAccordion({ children, ...props }: MyAccountAccordionProps) {
6
+ return (
7
+ <UIAccordion {...props} data-fs-my-account-accordion>
8
+ {children}
9
+ </UIAccordion>
10
+ )
11
+ }
12
+
13
+ export default MyAccountAccordion
@@ -0,0 +1,35 @@
1
+ import {
2
+ AccordionButton as UIAccordionButton,
3
+ Icon as UIIcon,
4
+ } from '@faststore/ui'
5
+ import type { ReactNode } from 'react'
6
+
7
+ interface MyAccountAccordionButtonProps {
8
+ title: string
9
+ summary: string
10
+ children?: ReactNode
11
+ }
12
+
13
+ function MyAccountAccordionButton({
14
+ title,
15
+ summary,
16
+ children,
17
+ }: MyAccountAccordionButtonProps) {
18
+ return (
19
+ <UIAccordionButton
20
+ collapsedIcon={<UIIcon name="CaretDown" />}
21
+ expandedIcon={<UIIcon name="CaretUp" />}
22
+ data-fs-my-account-accordion-button
23
+ type="button"
24
+ >
25
+ <div data-fs-my-account-accordion-header>
26
+ <UIIcon name="Package" />
27
+ <span data-fs-my-account-accordion-header-title>{title}</span>
28
+ </div>
29
+ <p data-fs-my-account-accordion-summary>{summary}</p>
30
+ {children}
31
+ </UIAccordionButton>
32
+ )
33
+ }
34
+
35
+ export default MyAccountAccordionButton
@@ -0,0 +1,21 @@
1
+ import { AccordionItem as UIAccordionItem } from '@faststore/ui'
2
+ import type { ReactNode } from 'react'
3
+
4
+ interface MyAccountAccordionItemProps {
5
+ index: number
6
+ children: ReactNode
7
+ }
8
+
9
+ function MyAccountAccordionItem({
10
+ children,
11
+ index,
12
+ ...props
13
+ }: MyAccountAccordionItemProps) {
14
+ return (
15
+ <UIAccordionItem index={index} {...props} data-fs-my-account-accordion-item>
16
+ {children}
17
+ </UIAccordionItem>
18
+ )
19
+ }
20
+
21
+ export default MyAccountAccordionItem
@@ -0,0 +1,16 @@
1
+ import { AccordionPanel as UIAccordionPanel } from '@faststore/ui'
2
+ import type { ReactNode } from 'react'
3
+
4
+ interface MyAccountAccordionPanelProps {
5
+ children: ReactNode
6
+ }
7
+
8
+ function MyAccountAccordionPanel({ children }: MyAccountAccordionPanelProps) {
9
+ return (
10
+ <UIAccordionPanel>
11
+ <div data-fs-my-account-accordion-content>{children}</div>
12
+ </UIAccordionPanel>
13
+ )
14
+ }
15
+
16
+ export default MyAccountAccordionPanel
@@ -0,0 +1,4 @@
1
+ export { default as MyAccountAccordion } from './MyAccountAccordion'
2
+ export { default as MyAccountAccordionButton } from './MyAccountAccordionButton'
3
+ export { default as MyAccountAccordionItem } from './MyAccountAccordionItem'
4
+ export { default as MyAccountAccordionPanel } from './MyAccountAccordionPanel'
@@ -0,0 +1,88 @@
1
+ [data-fs-my-account-accordion] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens
4
+ // --------------------------------------------------------
5
+
6
+ // Accordion
7
+ --fs-accordion-item-border-bottom-width : 0;
8
+ --fs-accordion-button-padding : var(--fs-spacing-4);
9
+ --fs-accordion-button-font-size : var(--fs-text-size-base);
10
+ --fs-accordion-button-font-weight : var(--fs-text-weight-regular);
11
+ --fs-accordion-panel-padding-bottom : var(--fs-spacing-4);
12
+
13
+ background-color: var(--fs-color-neutral-0);
14
+
15
+ // --------------------------------------------------------
16
+ // Structural Styles
17
+ // --------------------------------------------------------
18
+
19
+ border: var(--fs-border-width) solid var(--fs-border-color-light);
20
+ border-radius: var(--fs-border-radius);
21
+
22
+ [data-fs-my-account-accordion-button] {
23
+ width: 100%;
24
+
25
+ &[data-fs-accordion-button="expanded"], &:hover {
26
+ background: var(--fs-color-secondary-bkg-light-active);
27
+ border-radius: var(--fs-border-radius);
28
+ }
29
+
30
+ &[data-fs-accordion-button="expanded"] {
31
+ border-bottom: var(--fs-border-width) solid var(--fs-border-color-light);
32
+ }
33
+
34
+ [data-fs-button-wrapper] {
35
+ padding: var(--fs-spacing-4);
36
+
37
+ span:first-child {
38
+ width: 100%;
39
+ padding: 0;
40
+
41
+ @include media(">=notebook") {
42
+ display: flex;
43
+ flex: 1;
44
+ align-items: center;
45
+ justify-content: space-between;
46
+ }
47
+ }
48
+ }
49
+
50
+ [data-fs-my-account-accordion-header] {
51
+ display: flex;
52
+ gap: var(--fs-spacing-2);
53
+ align-items: center;
54
+
55
+ [data-fs-icon] {
56
+ flex-shrink: 0;
57
+ color: var(--fs-color-neutral-4);
58
+ }
59
+
60
+ [data-fs-my-account-accordion-header-title] {
61
+ font-size: var(--fs-text-size-3);
62
+ font-weight: var(--fs-text-weight-semibold);
63
+ line-height: 1.5;
64
+ color: var(--fs-color-text);
65
+ text-align: start;
66
+
67
+ @include truncate-title(1);
68
+ }
69
+ }
70
+
71
+ [data-fs-my-account-accordion-summary] {
72
+ flex-shrink: 0;
73
+ padding-left: calc(var(--fs-spacing-4) + var(--fs-spacing-2)); // icon + padding
74
+ font-size: var(--fs-text-size-1);
75
+ font-weight: var(--fs-text-weight-medium);
76
+ line-height: 1.5;
77
+ color: var(--fs-color-text-light);
78
+ text-align: start;
79
+ }
80
+ }
81
+
82
+ [data-fs-accordion-panel] {
83
+ [data-fs-my-account-accordion-content] {
84
+ display: flex;
85
+ flex-direction: column;
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,13 @@
1
+ import { type CardProps, Card as UICard } from '@faststore/ui'
2
+
3
+ interface MyAccountCardProps extends CardProps {}
4
+
5
+ function MyAccountCard({ children, ...props }: MyAccountCardProps) {
6
+ return (
7
+ <UICard {...props} data-fs-my-account-card>
8
+ {children}
9
+ </UICard>
10
+ )
11
+ }
12
+
13
+ export default MyAccountCard
@@ -0,0 +1 @@
1
+ export { default } from './MyAccountCard'
@@ -0,0 +1,23 @@
1
+ [data-fs-card][data-fs-my-account-card] {
2
+ --fs-card-border-radius : var(--fs-spacing-0);
3
+
4
+ [data-fs-card-header] {
5
+ --fs-card-header-padding : 20px var(--fs-spacing-4);
6
+ --fs-card-header-bkg-color : var(--fs-color-body-bkg);
7
+ --fs-card-header-font-weight : var(--fs-text-weight-semibold);
8
+
9
+ font-size: var(--fs-text-size-3);
10
+
11
+ [data-fs-card-title] {
12
+ display: flex;
13
+ gap: var(--fs-spacing-3);
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ width: 100%;
17
+ }
18
+ }
19
+
20
+ [data-fs-card-body] {
21
+ --fs-card-body-padding : var(--fs-spacing-1) var(--fs-spacing-4) var(--fs-spacing-4);
22
+ }
23
+ }
@@ -0,0 +1,28 @@
1
+ import {
2
+ orderStatusMap,
3
+ type OrderStatusKey,
4
+ type OrderStatusMapValue,
5
+ } from 'src/utils/userOrderStatus'
6
+
7
+ function getStatusVariant({ status }: { status: string }) {
8
+ return (
9
+ (orderStatusMap[status as OrderStatusKey] as OrderStatusMapValue)
10
+ ?.variant || 'neutral'
11
+ )
12
+ }
13
+
14
+ function MyAccountStatusBadge({
15
+ status,
16
+ statusFallback,
17
+ }: { status: string; statusFallback?: string }) {
18
+ return (
19
+ <span
20
+ data-fs-my-account-badge
21
+ data-fs-my-account-badge-variant={getStatusVariant({ status })}
22
+ >
23
+ {orderStatusMap[status as OrderStatusKey]?.label || statusFallback || '-'}
24
+ </span>
25
+ )
26
+ }
27
+
28
+ export default MyAccountStatusBadge
@@ -0,0 +1 @@
1
+ export { default } from './MyAccountStatusBadge'
@@ -0,0 +1,54 @@
1
+ [data-fs-my-account-badge] {
2
+ // --------------------------------------------------------
3
+ // Design Tokens
4
+ // --------------------------------------------------------
5
+
6
+ // SITUATIONS
7
+ --fs-color-success-bkg: #e9fce3;
8
+ --fs-color-warning-bkg: #ffedcd;
9
+ --fs-color-neutral-bkg: #f5f5f5;
10
+
11
+ --fs-my-account-badge-padding : var(--fs-spacing-0) var(--fs-spacing-2);
12
+ --fs-my-account-badge-line-height : 1;
13
+ --fs-my-account-badge-color : var(--fs-color-text);
14
+ --fs-my-account-badge-border : 1px none transparent;
15
+ --fs-my-account-badge-border-radius : var(--fs-border-radius-pill);
16
+ --fs-my-account-badge-success-bkg : var(--fs-color-success-bkg);
17
+ --fs-my-account-badge-success-border : var(--fs-color-success-bkg);
18
+ --fs-my-account-badge-warning-bkg : var(--fs-color-warning-bkg);
19
+ --fs-my-account-badge-warning-border : var(--fs-color-warning-bkg);
20
+ --fs-my-account-badge-neutral-bkg : var(--fs-color-neutral-bkg);
21
+ --fs-my-account-badge-neutral-border : var(--fs-color-neutral-bkg);
22
+
23
+ // --------------------------------------------------------
24
+ // Structural Styles
25
+ // --------------------------------------------------------
26
+
27
+ display: inline-block;
28
+ width: fit-content;
29
+ min-width: -webkit-fill-available;
30
+ min-width: fit-content;
31
+ height: fit-content;
32
+ padding: var(--fs-my-account-badge-padding);
33
+ overflow: hidden;
34
+ line-height: var(--fs-my-account-badge-line-height);
35
+ color: var(--fs-my-account-badge-color);
36
+ white-space: nowrap;
37
+ border: var(--fs-my-account-badge-border);
38
+ border-radius: var(--fs-my-account-badge-border-radius);
39
+ }
40
+
41
+ [data-fs-my-account-badge][data-fs-my-account-badge-variant="success"] {
42
+ background-color: var(--fs-my-account-badge-success-bkg);
43
+ border-color: var(--fs-my-account-badge-success-border);
44
+ }
45
+
46
+ [data-fs-my-account-badge][data-fs-my-account-badge-variant="warning"] {
47
+ background-color: var(--fs-my-account-badge-warning-bkg);
48
+ border-color: var(--fs-my-account-badge-warning-border);
49
+ }
50
+
51
+ [data-fs-my-account-badge][data-fs-my-account-badge-variant="neutral"] {
52
+ background-color: var(--fs-my-account-badge-neutral-bkg);
53
+ border-color: var(--fs-my-account-badge-neutral-border);
54
+ }