@ubnt/store.core 11.8.0-beta.2 → 11.8.0-beta.4

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 (132) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/assets/ai-360.jpg +0 -0
  3. package/lib/assets/ai-3602.jpg +0 -0
  4. package/lib/assets/ai-dome.jpg +0 -0
  5. package/lib/assets/ai-dome2.jpg +0 -0
  6. package/lib/assets/ai-dslr.jpg +0 -0
  7. package/lib/assets/ai-dslr2.jpg +0 -0
  8. package/lib/assets/bullet2.svg +2 -4
  9. package/lib/assets/bullet3.svg +4 -2
  10. package/lib/assets/cartOutline.svg +5 -0
  11. package/lib/assets/express.jpg +0 -0
  12. package/lib/assets/express2.jpg +0 -0
  13. package/lib/assets/g2-reader.jpg +0 -0
  14. package/lib/assets/g2-reader2.jpg +0 -0
  15. package/lib/assets/g3-reader-pro.jpg +0 -0
  16. package/lib/assets/g3-reader-pro2.jpg +0 -0
  17. package/lib/assets/g4-instant.jpg +0 -0
  18. package/lib/assets/g4-instant2.jpg +0 -0
  19. package/lib/assets/g5-bullet.jpg +0 -0
  20. package/lib/assets/g5-bullet2.jpg +0 -0
  21. package/lib/assets/icons/cart.svg.js +5 -5
  22. package/lib/assets/icons/{cart-secondary.svg.js → cartOutline.svg.js} +6 -6
  23. package/lib/assets/icons/cartOutline.svg.js.map +1 -0
  24. package/lib/assets/icons/cartOutline.svg.mjs +3 -0
  25. package/lib/assets/icons/cartOutline.svg.mjs.map +1 -0
  26. package/lib/assets/minus4.svg +8 -8
  27. package/lib/assets/minus5.svg +8 -8
  28. package/lib/assets/plus4.svg +9 -9
  29. package/lib/assets/plus5.svg +9 -9
  30. package/lib/assets/udr2.jpg +0 -0
  31. package/lib/assets/udr3.jpg +0 -0
  32. package/lib/components/Button/CartButton.js +12 -8
  33. package/lib/components/Button/CartButton.js.map +1 -1
  34. package/lib/components/Button/CartButton.mjs +12 -7
  35. package/lib/components/Button/CartButton.mjs.map +1 -1
  36. package/lib/components/Header/CartIcon/CartIcon.js +3 -3
  37. package/lib/components/Header/CartIcon/CartIcon.js.map +1 -1
  38. package/lib/components/Header/CartIcon/CartIcon.mjs +2 -2
  39. package/lib/components/Header/CartIcon/CartIcon.mjs.map +1 -1
  40. package/lib/components/Header/CartModalV2/CartModal.js +3 -3
  41. package/lib/components/Header/CartModalV2/CartModal.js.map +1 -1
  42. package/lib/components/Header/CartModalV2/CartModal.mjs +2 -2
  43. package/lib/components/Header/CartModalV2/CartModal.mjs.map +1 -1
  44. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js +1 -0
  45. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.js.map +1 -1
  46. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs +1 -0
  47. package/lib/components/Header/Navigation/ProMobileMenu/ProMobileMenu.styles.mjs.map +1 -1
  48. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
  49. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
  50. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
  51. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
  52. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
  53. package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
  54. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
  55. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
  56. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
  57. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
  58. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
  59. package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
  60. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
  61. package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
  62. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.js +1 -1
  63. package/lib/constants/modelCompareData/assets/Bullet/bullet.svg.mjs +2 -2
  64. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.js +1 -1
  65. package/lib/constants/modelCompareData/assets/Bullet/g5-bullet.jpg.mjs +2 -2
  66. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.js +1 -1
  67. package/lib/constants/modelCompareData/assets/Compact/g4-instant.jpg.mjs +2 -2
  68. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.js +5 -5
  69. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
  70. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.js +5 -5
  71. package/lib/constants/modelCompareData/assets/Consoles/bigCompare/udr.jpg.mjs +2 -2
  72. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.js +1 -1
  73. package/lib/constants/modelCompareData/assets/Consoles/express.jpg.mjs +2 -2
  74. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.js +1 -1
  75. package/lib/constants/modelCompareData/assets/Consoles/udr.jpg.mjs +2 -2
  76. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.js +1 -1
  77. package/lib/constants/modelCompareData/assets/DomeTurret/ai-360.jpg.mjs +2 -2
  78. package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
  79. package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
  80. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.js +1 -1
  81. package/lib/constants/modelCompareData/assets/DoorAccess/g2-reader.jpg.mjs +2 -2
  82. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.js +1 -1
  83. package/lib/constants/modelCompareData/assets/DoorAccess/g3-reader-pro.jpg.mjs +2 -2
  84. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.js +1 -1
  85. package/lib/constants/modelCompareData/assets/product-list-assets/bullet.svg.mjs +2 -2
  86. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
  87. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
  88. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.js +1 -1
  89. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/g5-bullet.jpg.mjs +2 -2
  90. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.js +1 -1
  91. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/compact/g4-instant.jpg.mjs +2 -2
  92. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.js +1 -1
  93. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-360.jpg.mjs +2 -2
  94. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
  95. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
  96. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.js +1 -1
  97. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g2-reader.jpg.mjs +2 -2
  98. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.js +1 -1
  99. package/lib/constants/modelCompareData/assets/product-list-assets/cameras/door-access/g3-reader-pro.jpg.mjs +2 -2
  100. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.js +6 -6
  101. package/lib/constants/modelCompareData/data/DreamMachineConsolev4.mjs +4 -4
  102. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.js +1 -1
  103. package/lib/constants/modelCompareData/data/product-groups/cameraSecurity/Bullet.mjs +1 -1
  104. package/lib/constants/modelCompareData/data/product-list-groups/bullet.js +1 -1
  105. package/lib/constants/modelCompareData/data/product-list-groups/bullet.mjs +1 -1
  106. package/lib/constants/modelCompareData/data/products/ai360.js +2 -2
  107. package/lib/constants/modelCompareData/data/products/ai360.mjs +2 -2
  108. package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
  109. package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
  110. package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
  111. package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
  112. package/lib/constants/modelCompareData/data/products/express.js +1 -1
  113. package/lib/constants/modelCompareData/data/products/express.mjs +1 -1
  114. package/lib/constants/modelCompareData/data/products/g2Reader.js +2 -2
  115. package/lib/constants/modelCompareData/data/products/g2Reader.mjs +2 -2
  116. package/lib/constants/modelCompareData/data/products/g3ReaderPro.js +2 -2
  117. package/lib/constants/modelCompareData/data/products/g3ReaderPro.mjs +2 -2
  118. package/lib/constants/modelCompareData/data/products/g4Instant.js +2 -2
  119. package/lib/constants/modelCompareData/data/products/g4Instant.mjs +2 -2
  120. package/lib/constants/modelCompareData/data/products/g5Bullet.js +2 -2
  121. package/lib/constants/modelCompareData/data/products/g5Bullet.mjs +2 -2
  122. package/lib/constants/modelCompareData/data/products/udr.js +1 -1
  123. package/lib/constants/modelCompareData/data/products/udr.mjs +1 -1
  124. package/lib/contexts/MenuContext/presets.js +5 -2
  125. package/lib/contexts/MenuContext/presets.js.map +1 -1
  126. package/lib/contexts/MenuContext/presets.mjs +5 -2
  127. package/lib/contexts/MenuContext/presets.mjs.map +1 -1
  128. package/package.json +1 -1
  129. package/lib/assets/cart-secondary.svg +0 -5
  130. package/lib/assets/icons/cart-secondary.svg.js.map +0 -1
  131. package/lib/assets/icons/cart-secondary.svg.mjs +0 -3
  132. package/lib/assets/icons/cart-secondary.svg.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@
6
6
 
7
7
  ## Releases
8
8
 
9
+ ### 11.8.0-beta.4
10
+
11
+ - [Fix] [NEP-4499](https://ubiquiti.atlassian.net/browse/NEP-4499) Fix mobile menu
12
+
13
+ ### 11.8.0-beta.3
14
+
15
+ - [Fix] [NEP-4675](https://ubiquiti.atlassian.net/browse/NEP-4675) Another attempt to fix repo usage issue
16
+
9
17
  ### 11.8.0-beta.2
10
18
 
11
19
  - [Fix] [NEP-4675](https://ubiquiti.atlassian.net/browse/NEP-4675) Try to fix repo usage issue
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,3 @@
1
- <svg width="52" height="39" viewBox="0 0 52 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#1D1D1F"/>
3
- <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#4D4D4D"/>
4
- <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#8E8E8E"/>
1
+ <svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.1824 4.95706C11.0449 4.81023 8.67463 4.55078 7.18772 4.55078C5.73446 4.55078 3.98051 4.79209 3.14038 4.93649C3.11336 6.14563 3.06761 8.63467 3.06761 10.463C3.06761 12.2947 3.15958 14.9023 3.21354 16.1721C4.13197 16.3122 6.03143 16.5508 7.42101 16.5508C8.82854 16.5508 11.1165 16.2788 12.2241 16.1241C12.3013 15.0579 12.4299 12.763 12.4299 10.6035C12.4299 8.43951 12.2749 6.06427 12.1824 4.95706ZM2.87416 16.0987C2.81972 14.7972 2.73165 12.2606 2.73165 10.463C2.73165 8.66862 2.77559 6.24156 2.80281 5.00509C2.27163 5.12202 1.35916 5.32817 1.1222 5.40233C1.08887 5.46582 1.02222 5.74966 1.02222 6.37711C1.02222 7.00456 1.00741 7.87104 1 8.22585C1.02962 8.39765 1.21996 8.74125 1.74431 8.74125C2.39974 8.74125 2.42196 8.95414 2.44418 9.26787C2.45405 9.40732 2.4771 10.678 2.50258 12.0832L2.50258 12.0832L2.50258 12.0833L2.50258 12.0833L2.50259 12.0834L2.50259 12.0834C2.53443 13.8393 2.57008 15.8051 2.58859 16.0354L2.87416 16.0987ZM12.5716 15.9747C12.6498 14.84 12.7658 12.6618 12.7658 10.6035C12.7658 8.5526 12.6277 6.3166 12.5338 5.13248C12.9975 5.43284 13.7467 6.02988 14.0602 6.69564L14.0993 6.77868C14.5332 7.70303 15.0387 8.77992 16.5491 8.75904C16.8521 8.02261 17.5719 7.50468 18.4117 7.50468H19.6576C19.947 6.73949 20.6814 6.19593 21.5417 6.19593H22.6075C23.1641 6.19593 23.6154 6.65104 23.6154 7.21245V13.8648C23.6154 14.4262 23.1641 14.8813 22.6075 14.8813H21.5417C20.6755 14.8813 19.9368 14.3302 19.6517 13.5567H18.4117C17.5629 13.5567 16.8366 13.0275 16.5395 12.2785C16.0543 12.3452 15.0119 12.7778 14.2647 14.0722C13.6268 15.1774 12.963 15.7463 12.5716 15.9747Z" fill="#808893"/>
5
3
  </svg>
@@ -1,3 +1,5 @@
1
- <svg width="24" height="21" viewBox="0 0 24 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <path fill-rule="evenodd" clip-rule="evenodd" d="M12.1824 4.95706C11.0449 4.81023 8.67463 4.55078 7.18772 4.55078C5.73446 4.55078 3.98051 4.79209 3.14038 4.93649C3.11336 6.14563 3.06761 8.63467 3.06761 10.463C3.06761 12.2947 3.15958 14.9023 3.21354 16.1721C4.13197 16.3122 6.03143 16.5508 7.42101 16.5508C8.82854 16.5508 11.1165 16.2788 12.2241 16.1241C12.3013 15.0579 12.4299 12.763 12.4299 10.6035C12.4299 8.43951 12.2749 6.06427 12.1824 4.95706ZM2.87416 16.0987C2.81972 14.7972 2.73165 12.2606 2.73165 10.463C2.73165 8.66862 2.77559 6.24156 2.80281 5.00509C2.27163 5.12202 1.35916 5.32817 1.1222 5.40233C1.08887 5.46582 1.02222 5.74966 1.02222 6.37711C1.02222 7.00456 1.00741 7.87104 1 8.22585C1.02962 8.39765 1.21996 8.74125 1.74431 8.74125C2.39974 8.74125 2.42196 8.95414 2.44418 9.26787C2.45405 9.40732 2.4771 10.678 2.50258 12.0832L2.50258 12.0832L2.50258 12.0833L2.50258 12.0833L2.50259 12.0834L2.50259 12.0834C2.53443 13.8393 2.57008 15.8051 2.58859 16.0354L2.87416 16.0987ZM12.5716 15.9747C12.6498 14.84 12.7658 12.6618 12.7658 10.6035C12.7658 8.5526 12.6277 6.3166 12.5338 5.13248C12.9975 5.43284 13.7467 6.02988 14.0602 6.69564L14.0993 6.77868C14.5332 7.70303 15.0387 8.77992 16.5491 8.75904C16.8521 8.02261 17.5719 7.50468 18.4117 7.50468H19.6576C19.947 6.73949 20.6814 6.19593 21.5417 6.19593H22.6075C23.1641 6.19593 23.6154 6.65104 23.6154 7.21245V13.8648C23.6154 14.4262 23.1641 14.8813 22.6075 14.8813H21.5417C20.6755 14.8813 19.9368 14.3302 19.6517 13.5567H18.4117C17.5629 13.5567 16.8366 13.0275 16.5395 12.2785C16.0543 12.3452 15.0119 12.7778 14.2647 14.0722C13.6268 15.1774 12.963 15.7463 12.5716 15.9747Z" fill="#808893"/>
1
+ <svg width="52" height="39" viewBox="0 0 52 39" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#1D1D1F"/>
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#4D4D4D"/>
4
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M25.8808 6.95448C23.4164 6.63635 18.2807 6.07422 15.0591 6.07422C11.9103 6.07422 8.11012 6.59706 6.28983 6.90992C6.23129 9.52973 6.13216 14.9226 6.13216 18.884C6.13216 22.8527 6.33144 28.5025 6.44835 31.2538C8.43828 31.5573 12.5538 32.0742 15.5645 32.0742C18.6142 32.0742 23.5714 31.4849 25.9713 31.1497C26.1386 28.8397 26.417 23.8674 26.417 19.1883C26.417 14.4998 26.0813 9.35345 25.8808 6.95448ZM5.71302 31.0948C5.59507 28.2748 5.40426 22.7787 5.40426 18.884C5.40426 14.9962 5.49946 9.73757 5.55843 7.05856C4.40755 7.3119 2.43053 7.75855 1.91711 7.91924C1.8449 8.0568 1.70048 8.67179 1.70048 10.0313C1.70048 11.3907 1.66839 13.2681 1.65234 14.0369C1.71653 14.4091 2.12892 15.1536 3.26501 15.1536C4.68511 15.1536 4.73325 15.6148 4.78139 16.2946C4.80279 16.5967 4.85272 19.35 4.90794 22.3944L4.90794 22.3945L4.90794 22.3946L4.90794 22.3947L4.90795 22.3948L4.90795 22.3949C4.97694 26.1994 5.05419 30.4585 5.0943 30.9575L5.71302 31.0948ZM26.7241 30.8261C26.8936 28.3675 27.1449 23.6481 27.1449 19.1883C27.1449 14.7448 26.8457 9.90015 26.6423 7.33456C27.6469 7.98534 29.2702 9.27893 29.9495 10.7214L30.0341 10.9013C30.9743 12.9041 32.0696 15.2373 35.3421 15.1921C35.9986 13.5965 37.5582 12.4743 39.3777 12.4743H42.0772C42.7041 10.8164 44.2954 9.63871 46.1593 9.63871H48.4686C49.6747 9.63871 50.6523 10.6248 50.6523 11.8412V26.2545C50.6523 27.4709 49.6747 28.457 48.4686 28.457H46.1593C44.2825 28.457 42.6822 27.263 42.0644 25.587H39.3777C37.5387 25.587 35.9651 24.4405 35.3212 22.8175C34.27 22.9622 32.0114 23.8994 30.3926 26.7041C29.0104 29.0986 27.5721 30.3311 26.7241 30.8261Z" fill="#8E8E8E"/>
3
5
  </svg>
@@ -0,0 +1,5 @@
1
+ <svg width="20" height="21" viewBox="0 0 20 21" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M1.56921 2.99512C1.56921 2.71897 1.79307 2.49512 2.06921 2.49512H3.82906C4.05965 2.49512 4.26033 2.65281 4.31487 2.87686L4.76611 4.73062H15.4608C16.2464 4.73062 16.7424 5.0526 17.091 5.46232C17.5407 5.99071 17.5398 6.56586 17.433 7.06797C17.4315 7.07498 17.4299 7.08195 17.4281 7.08889L16.3391 11.3072C16.2733 11.5516 16.1872 11.7871 16.0288 12.0099C15.8701 12.2328 15.6622 12.4108 15.3984 12.5802C14.8712 12.919 14.234 12.9291 13.6655 12.9291H6.73492C6.56832 12.9291 6.42583 12.9836 6.32901 13.0752C6.23929 13.16 6.14443 13.3184 6.14443 13.6195C6.14443 13.8338 6.23055 13.9914 6.34326 14.0998C6.46911 14.2209 6.59981 14.2555 6.64404 14.2555H14.9748L14.9751 15.2555H6.64404C6.29449 15.2555 5.92538 15.0855 5.64988 14.8204C5.36123 14.5426 5.14443 14.1322 5.14443 13.6195C5.14443 13.0877 5.32245 12.6508 5.64179 12.3487C5.8193 12.1808 6.02606 12.0682 6.24093 12.0023C6.16488 11.9334 6.09286 11.8647 6.02391 11.7981C5.46235 11.2552 5.17811 10.4379 4.99748 9.74268L4.99663 9.73941L3.88739 5.34888L3.43617 3.49512H2.06921C1.79307 3.49512 1.56921 3.27126 1.56921 2.99512ZM8.63611 11.9291H13.6655C14.2768 11.9291 14.6144 11.8954 14.8579 11.7389C15.0553 11.612 15.153 11.5158 15.2139 11.4302C15.2747 11.3447 15.322 11.2377 15.3728 11.0496L16.457 6.8498C16.5272 6.51292 16.4969 6.30718 16.3294 6.11039C16.1446 5.89316 15.9151 5.73062 15.4608 5.73062H5.01526L5.96576 9.49282C6.14141 10.1683 6.37203 10.7437 6.71893 11.0791C6.97949 11.3309 7.20934 11.5346 7.49423 11.6825C7.7708 11.826 8.12428 11.9291 8.63611 11.9291ZM14.9751 15.2555C15.2513 15.2555 15.4752 15.0316 15.4752 14.7555C15.4752 14.4793 15.251 14.2555 14.9748 14.2555L14.9751 15.2555Z" fill="white"/>
3
+ <path d="M14.1831 16.7898C14.1831 17.1764 13.8697 17.4898 13.4831 17.4898C13.0965 17.4898 12.7831 17.1764 12.7831 16.7898C12.7831 16.4032 13.0965 16.0898 13.4831 16.0898C13.8697 16.0898 14.1831 16.4032 14.1831 16.7898Z" fill="white"/>
4
+ <path d="M8.30631 16.7898C8.30631 17.1764 7.99291 17.4898 7.60631 17.4898C7.21971 17.4898 6.90631 17.1764 6.90631 16.7898C6.90631 16.4032 7.21971 16.0898 7.60631 16.0898C7.99291 16.0898 8.30631 16.4032 8.30631 16.7898Z" fill="white"/>
5
+ </svg>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CartIcon = require("../cart.svg");
6
+ var CartFullIcon = require("../cart.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
12
+ var CartFullIcon__default = /*#__PURE__*/_interopDefault(CartFullIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return CartIcon__default["default"];
16
+ return CartFullIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(CartIcon).forEach(function (k) {
19
+ Object.keys(CartFullIcon).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return CartIcon[k];
23
+ return CartFullIcon[k];
24
24
  }
25
25
  });
26
26
  });
@@ -3,25 +3,25 @@
3
3
  Object.defineProperty(exports, '__esModule', {
4
4
  value: true
5
5
  });
6
- var CartIconSecondary = require("../cart-secondary.svg");
6
+ var CartIcon = require("../cartOutline.svg");
7
7
  function _interopDefault(e) {
8
8
  return e && e.__esModule ? e : {
9
9
  default: e
10
10
  };
11
11
  }
12
- var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
12
+ var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
13
13
  Object.defineProperty(exports, "default", {
14
14
  enumerable: true,
15
15
  get: function () {
16
- return CartIconSecondary__default["default"];
16
+ return CartIcon__default["default"];
17
17
  }
18
18
  });
19
- Object.keys(CartIconSecondary).forEach(function (k) {
19
+ Object.keys(CartIcon).forEach(function (k) {
20
20
  if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
21
21
  enumerable: true,
22
22
  get: function () {
23
- return CartIconSecondary[k];
23
+ return CartIcon[k];
24
24
  }
25
25
  });
26
26
  });
27
- //# sourceMappingURL=cart-secondary.svg.js.map
27
+ //# sourceMappingURL=cartOutline.svg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartOutline.svg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,3 @@
1
+ export * from "../cartOutline.svg";
2
+ export { default } from "../cartOutline.svg";
3
+ //# sourceMappingURL=cartOutline.svg.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cartOutline.svg.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,15 +1,15 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15898)">
4
- <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
1
+ <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
+ <g clip-path="url(#clip0_658_406)">
4
+ <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_426_15898)">
8
- <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
7
+ <g mask="url(#mask0_658_406)">
8
+ <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_426_15898">
12
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
11
+ <clipPath id="clip0_658_406">
12
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,15 +1,15 @@
1
- <svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
3
- <g clip-path="url(#clip0_658_406)">
4
- <path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15898)">
4
+ <path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
5
5
  </g>
6
6
  </mask>
7
- <g mask="url(#mask0_658_406)">
8
- <rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
7
+ <g mask="url(#mask0_426_15898)">
8
+ <rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
9
9
  </g>
10
10
  <defs>
11
- <clipPath id="clip0_658_406">
12
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
11
+ <clipPath id="clip0_426_15898">
12
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
13
13
  </clipPath>
14
14
  </defs>
15
15
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
- <g clip-path="url(#clip0_426_15903)">
4
- <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
- <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
1
+ <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
+ <g clip-path="url(#clip0_658_411)">
4
+ <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
+ <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_426_15903)">
9
- <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
8
+ <g mask="url(#mask0_658_411)">
9
+ <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_426_15903">
13
- <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
12
+ <clipPath id="clip0_658_411">
13
+ <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
@@ -1,16 +1,16 @@
1
- <svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
2
- <mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
3
- <g clip-path="url(#clip0_658_411)">
4
- <path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
5
- <path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
1
+ <svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
3
+ <g clip-path="url(#clip0_426_15903)">
4
+ <path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
5
+ <path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
6
6
  </g>
7
7
  </mask>
8
- <g mask="url(#mask0_658_411)">
9
- <rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
8
+ <g mask="url(#mask0_426_15903)">
9
+ <rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
10
10
  </g>
11
11
  <defs>
12
- <clipPath id="clip0_658_411">
13
- <rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
12
+ <clipPath id="clip0_426_15903">
13
+ <rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
14
14
  </clipPath>
15
15
  </defs>
16
16
  </svg>
Binary file
Binary file
@@ -3,14 +3,12 @@
3
3
  var jsxRuntime = require('react/jsx-runtime');
4
4
  var React = require('react');
5
5
  var styled = require('styled-components');
6
- require('../../assets/icons/cart-secondary.svg.js');
7
- require('../../assets/icons/cart.svg.js');
6
+ require('../../assets/icons/cartOutline.svg.js');
8
7
  require('../../assets/icons/cartPlus.svg.js');
9
8
  require('../StyleableSvgImage/index.js');
10
9
  var Button = require('./Button.js');
11
10
  var CartPlusIcon = require("../../assets/cartPlus.svg");
12
- var CartIconSecondary = require("../../assets/cart-secondary.svg");
13
- var CartIcon = require("../../assets/cart.svg");
11
+ var CartIcon = require("../../assets/cartOutline.svg");
14
12
  var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
15
13
  function _interopDefault(e) {
16
14
  return e && e.__esModule ? e : {
@@ -19,7 +17,6 @@ function _interopDefault(e) {
19
17
  }
20
18
  var styled__default = /*#__PURE__*/_interopDefault(styled);
21
19
  var CartPlusIcon__default = /*#__PURE__*/_interopDefault(CartPlusIcon);
22
- var CartIconSecondary__default = /*#__PURE__*/_interopDefault(CartIconSecondary);
23
20
  var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon);
24
21
  "use strict";
25
22
  const ButtonStyled = styled__default["default"](Button.Button)`
@@ -48,6 +45,13 @@ const ButtonStyled = styled__default["default"](Button.Button)`
48
45
  }) => !!label && styled.css`
49
46
  width: auto;
50
47
  `}
48
+
49
+ ${({
50
+ variant,
51
+ loading
52
+ }) => variant === "secondary" && !loading && styled.css`
53
+ color: #006fff;
54
+ `}
51
55
  `;
52
56
  const ButtonInnerWrap = styled__default["default"].div`
53
57
  display: flex;
@@ -76,18 +80,18 @@ const CartButton = function CartButton2({
76
80
  hideIcon,
77
81
  preLabel,
78
82
  label,
79
- iconHeight = 16,
83
+ iconHeight = icon === "plus" ? 16 : 20,
80
84
  iconWidth = 20,
81
85
  ...props
82
86
  }) {
83
87
  const Icon = React.useMemo(() => {
84
88
  switch (icon) {
85
89
  case "cart":
86
- return props.variant === "secondary" ? CartIconSecondary__default["default"] : CartIcon__default["default"];
90
+ return CartIcon__default["default"];
87
91
  case "plus":
88
92
  return CartPlusIcon__default["default"];
89
93
  }
90
- }, [icon, props.variant]);
94
+ }, [icon]);
91
95
  return /* @__PURE__ */jsxRuntime.jsx(ButtonStyled, {
92
96
  ...props,
93
97
  label,
@@ -1 +1 @@
1
- {"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIconSecondary from \"../../assets/icons/cart-secondary.svg\";\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n\n iconWidth?: number;\n iconHeight?: number;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n iconHeight = 16,\n iconWidth = 20,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return props.variant === \"secondary\" ? CartIconSecondary : CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon, props.variant]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && (\n <StyleableSvgImage src={Icon} width={iconWidth} height={iconHeight} />\n )}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","iconHeight","iconWidth","props","Icon","useMemo","variant","CartIconSecondary","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AA6BA,MAAMA,YAAA,GAAeC,2BAAOC,aAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EAAA;EAQF,IAAID,KAAO,EAAA;IACF,OAAAE,MAAA,CAAAA,GAAA;AAAA;AAAA;AAAA,OAAA;EAAA;EAOF,OAAAA,MAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,eAAO,CAAA,SAAA,CAAA,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWR,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQV,eAAO,CAAA,SAAA,CAAA,CAAAS,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAP,MAAA,CAAAA,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAQ,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACAc,UAAa,GAAA,EAAA;EACbC,SAAY,GAAA,EAAA;EACZ,GAAGC;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,KAAAA,CAAAA,QAAQ,MAAM;IACzB,QAAQN,IAAM;MACZ,KAAK,MAAA;QACI,OAAAI,KAAA,CAAMG,OAAY,KAAA,WAAA,GAAcC,0BAAoB,CAAA,SAAA,CAAA,GAAAC,iBAAA,CAAA,SAAA,CAAA;MAE7D,KAAK,MAAA;QACI,OAAAC,qBAAA,CAAA,SAAA,CAAA;IAAA;EAEV,CAAA,EAAA,CAACV,IAAM,EAAAI,KAAA,CAAMG,OAAO,CAAC,CAAA;EAKxB,OAAA,8BACGtB,YAAc,EAAA;IAAA,GAAGmB;IAAOhB,KAAc;IAAAC,QAAA;IACrCsB,yCAACpB,eACE,EAAA;MAAAoB,QAAA,EAAA,CAAC,CAAAV,QAAA,kCACCW,iBAAkB,CAAAA,iBAAA,EAAA;QAAAC,GAAA,EAAKR;QAAMS,KAAO,EAAAX,SAAA;QAAWY,QAAQb;OAAY,CAAA,EAAA,CAEpE,CAAC,CAACb,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,+BACfK,MACE,EAAA;QAAAkB,QAAA,EAAA,CAAA,CAAC,CAACtB,QAAA,IAAA,eAAa2B,UAAA,CAAAA,GAAA,CAAAtB,QAAA,EAAA;UAAUiB,QAAS,EAAAtB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAA4B,UAAA,CAAAA,GAAA,CAACpB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACR,QAAA;UAEbsB,QAAA,EAAAvB;QAAA,CAAA,CAAA;MAGP,CAAA,CAAA;IAAA,CAEJ;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"CartButton.js","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cartOutline.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n\n iconWidth?: number;\n iconHeight?: number;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n\n ${({ variant, loading }) =>\n variant === \"secondary\" &&\n !loading &&\n css`\n color: #006fff;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n iconHeight = icon === \"plus\" ? 16 : 20,\n iconWidth = 20,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && (\n <StyleableSvgImage src={Icon} width={iconWidth} height={iconHeight} />\n )}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","variant","loading","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","iconHeight","iconWidth","props","Icon","useMemo","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA4BA,MAAMA,YAAA,GAAeC,2BAAOC,aAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EAAA;EAQF,IAAID,KAAO,EAAA;IACF,OAAAE,MAAA,CAAAA,GAAA;AAAA;AAAA;AAAA,OAAA;EAAA;EAOF,OAAAA,MAAA,CAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;;AAAA,IAED,CAAC;EAAEC,OAAS;EAAAC;AAAA,MACZD,OAAY,KAAA,WAAA,IACZ,CAACC,OACD,IAAAF,MAAA,CAAAA,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMG,kBAAkBP,eAAO,CAAA,SAAA,CAAA,CAAAQ,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAAST,eAAO,CAAA,SAAA,CAAA,CAAAQ,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWV,eAAO,CAAA,SAAA,CAAA,CAAAW,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQZ,eAAO,CAAA,SAAA,CAAA,CAAAW,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAT,MAAA,CAAAA,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAU,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAd,QAAA;EACAD,KAAA;EACAgB,UAAA,GAAaF,IAAS,KAAA,MAAA,GAAS,EAAK,GAAA,EAAA;EACpCG,SAAY,GAAA,EAAA;EACZ,GAAGC;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,KAAAA,CAAAA,QAAQ,MAAM;IACzB,QAAQN,IAAM;MACZ,KAAK,MAAA;QACI,OAAAO,iBAAA,CAAA,SAAA,CAAA;MAET,KAAK,MAAA;QACI,OAAAC,qBAAA,CAAA,SAAA,CAAA;IAAA;EACX,CACF,EAAG,CAACR,IAAI,CAAC,CAAA;EAKT,OAAA,8BACGjB,YAAc,EAAA;IAAA,GAAGqB;IAAOlB,KAAc;IAAAC,QAAA;IACrCsB,yCAAClB,eACE,EAAA;MAAAkB,QAAA,EAAA,CAAC,CAAAR,QAAA,kCACCS,iBAAkB,CAAAA,iBAAA,EAAA;QAAAC,GAAA,EAAKN;QAAMO,KAAO,EAAAT,SAAA;QAAWU,QAAQX;OAAY,CAAA,EAAA,CAEpE,CAAC,CAACf,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,+BACfO,MACE,EAAA;QAAAgB,QAAA,EAAA,CAAA,CAAC,CAACtB,QAAA,IAAA,eAAa2B,UAAA,CAAAA,GAAA,CAAApB,QAAA,EAAA;UAAUe,QAAS,EAAAtB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAA4B,UAAA,CAAAA,GAAA,CAAClB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACV,QAAA;UAEbsB,QAAA,EAAAvB;QAAA,CAAA,CAAA;MAGP,CAAA,CAAA;IAAA,CAEJ;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -1,14 +1,12 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { useMemo } from 'react';
3
3
  import styled, { css } from 'styled-components';
4
- import '../../assets/icons/cart-secondary.svg.mjs';
5
- import '../../assets/icons/cart.svg.mjs';
4
+ import '../../assets/icons/cartOutline.svg.mjs';
6
5
  import '../../assets/icons/cartPlus.svg.mjs';
7
6
  import '../StyleableSvgImage/index.mjs';
8
7
  import { Button } from './Button.mjs';
9
8
  import CartPlusIcon__default from "../../assets/cartPlus.svg";
10
- import CartIconSecondary__default from "../../assets/cart-secondary.svg";
11
- import CartIcon__default from "../../assets/cart.svg";
9
+ import CartIcon__default from "../../assets/cartOutline.svg";
12
10
  import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
13
11
  "use strict";
14
12
  const ButtonStyled = styled(Button)`
@@ -37,6 +35,13 @@ const ButtonStyled = styled(Button)`
37
35
  }) => !!label && css`
38
36
  width: auto;
39
37
  `}
38
+
39
+ ${({
40
+ variant,
41
+ loading
42
+ }) => variant === "secondary" && !loading && css`
43
+ color: #006fff;
44
+ `}
40
45
  `;
41
46
  const ButtonInnerWrap = styled.div`
42
47
  display: flex;
@@ -65,18 +70,18 @@ const CartButton = function CartButton2({
65
70
  hideIcon,
66
71
  preLabel,
67
72
  label,
68
- iconHeight = 16,
73
+ iconHeight = icon === "plus" ? 16 : 20,
69
74
  iconWidth = 20,
70
75
  ...props
71
76
  }) {
72
77
  const Icon = useMemo(() => {
73
78
  switch (icon) {
74
79
  case "cart":
75
- return props.variant === "secondary" ? CartIconSecondary__default : CartIcon__default;
80
+ return CartIcon__default;
76
81
  case "plus":
77
82
  return CartPlusIcon__default;
78
83
  }
79
- }, [icon, props.variant]);
84
+ }, [icon]);
80
85
  return /* @__PURE__ */jsx(ButtonStyled, {
81
86
  ...props,
82
87
  label,
@@ -1 +1 @@
1
- {"version":3,"file":"CartButton.mjs","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIconSecondary from \"../../assets/icons/cart-secondary.svg\";\nimport CartIcon from \"../../assets/icons/cart.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n\n iconWidth?: number;\n iconHeight?: number;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n iconHeight = 16,\n iconWidth = 20,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return props.variant === \"secondary\" ? CartIconSecondary : CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon, props.variant]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && (\n <StyleableSvgImage src={Icon} width={iconWidth} height={iconHeight} />\n )}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","iconHeight","iconWidth","props","Icon","useMemo","variant","CartIconSecondary","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;;;AA6BA,MAAMA,YAAA,GAAeC,OAAOC,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EAAA;EAQF,IAAID,KAAO,EAAA;IACF,OAAAE,GAAA;AAAA;AAAA;AAAA,OAAA;EAAA;EAOF,OAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMC,kBAAkBL,MAAO,CAAAM,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAASP,MAAO,CAAAM,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWR,MAAO,CAAAS,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQV,MAAO,CAAAS,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAP,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAQ,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAZ,QAAA;EACAD,KAAA;EACAc,UAAa,GAAA,EAAA;EACbC,SAAY,GAAA,EAAA;EACZ,GAAGC;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,QAAQ,MAAM;IACzB,QAAQN,IAAM;MACZ,KAAK,MAAA;QACI,OAAAI,KAAA,CAAMG,OAAY,KAAA,WAAA,GAAcC,0BAAoB,GAAAC,iBAAA;MAE7D,KAAK,MAAA;QACI,OAAAC,qBAAA;IAAA;EAEV,CAAA,EAAA,CAACV,IAAM,EAAAI,KAAA,CAAMG,OAAO,CAAC,CAAA;EAKxB,OAAA,mBACGtB,YAAc,EAAA;IAAA,GAAGmB;IAAOhB,KAAc;IAAAC,QAAA;IACrCsB,8BAACpB,eACE,EAAA;MAAAoB,QAAA,EAAA,CAAC,CAAAV,QAAA,uBACCW,iBAAkB,EAAA;QAAAC,GAAA,EAAKR;QAAMS,KAAO,EAAAX,SAAA;QAAWY,QAAQb;OAAY,CAAA,EAAA,CAEpE,CAAC,CAACb,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,oBACfK,MACE,EAAA;QAAAkB,QAAA,EAAA,CAAA,CAAC,CAACtB,QAAA,IAAA,eAAa2B,GAAA,CAAAtB,QAAA,EAAA;UAAUiB,QAAS,EAAAtB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAA4B,GAAA,CAACpB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACR,QAAA;UAEbsB,QAAA,EAAAvB;QAAA,CAAA,CAAA;MAGP,CAAA,CAAA;IAAA,CAEJ;EACF,CAAA,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"CartButton.mjs","sources":["../../../src/components/Button/CartButton.tsx"],"sourcesContent":["import { useMemo } from \"react\";\nimport styled, { css } from \"styled-components\";\n\nimport CartIcon from \"../../assets/icons/cartOutline.svg\";\nimport CartPlusIcon from \"../../assets/icons/cartPlus.svg\";\nimport { StyleableSvgImage } from \"../StyleableSvgImage\";\nimport { Button } from \"./Button\";\nimport type { ButtonProps } from \"./Button.types\";\n\nexport interface CartButtonProps extends ButtonProps {\n icon?: \"cart\" | \"plus\";\n hideIcon?: boolean;\n /**\n * (optional) Mini-Text to display before the label, used for additional context. See example for more details\n * @example\n * preLabel=\"Available again week of\"\n * label=\"Oct. 10\"\n */\n preLabel?: string;\n /**\n * (optional) Label to display on the button. If not provided, only the icon will be displayed\n */\n label?: string;\n\n iconWidth?: number;\n iconHeight?: number;\n}\n\nconst ButtonStyled = styled(Button)<CartButtonProps>`\n ${({ label, preLabel }) => {\n // If both label and preLabel don't force any sizing;\n if (!!label && !!preLabel) {\n return;\n }\n\n /**\n * For historical reasons, we have to set a fixed height and padding for button. I get the height to match the\n * design but the padding is way bigger than it can be, would make sense to just vertically align content.\n * FIXME: investigate if we can remove padding and just vertically align content\n */\n if (label) {\n return css`\n padding: 10px 15px;\n height: 40px;\n `;\n }\n\n // And otherwise rendering just icon force both width and height to be 40px\n return css`\n padding: 10px 15px;\n width: 40px;\n height: 40px;\n `;\n }}\n\n ${({ label }) =>\n !!label &&\n css`\n width: auto;\n `}\n\n ${({ variant, loading }) =>\n variant === \"secondary\" &&\n !loading &&\n css`\n color: #006fff;\n `}\n`;\n\nconst ButtonInnerWrap = styled.div`\n display: flex;\n align-items: center;\n gap: 8px;\n`;\n\nconst Labels = styled.div`\n display: inline-flex;\n flex-direction: column;\n`;\n\nconst PreLabel = styled.span`\n /* Size relative to regular label size, e.g if 14px label than 10px preLabel */\n font-size: 0.714em;\n line-height: 1.2;\n font-weight: 400;\n`;\n\nconst Label = styled.span<{ $forceBold?: boolean }>`\n ${({ $forceBold }) =>\n $forceBold\n ? css`\n font-weight: bold;\n `\n : undefined};\n`;\n\nexport const CartButton = function CartButton({\n icon = \"cart\",\n hideIcon,\n preLabel,\n label,\n iconHeight = icon === \"plus\" ? 16 : 20,\n iconWidth = 20,\n ...props\n}: CartButtonProps) {\n const Icon = useMemo(() => {\n switch (icon) {\n case \"cart\":\n return CartIcon;\n\n case \"plus\":\n return CartPlusIcon;\n }\n }, [icon]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <ButtonStyled {...props} label={label} preLabel={preLabel}>\n <ButtonInnerWrap>\n {!hideIcon && (\n <StyleableSvgImage src={Icon} width={iconWidth} height={iconHeight} />\n )}\n {(!!preLabel || !!label) && (\n <Labels>\n {!!preLabel && <PreLabel>{preLabel}</PreLabel>}\n {!!label && (\n <Label\n // Enforce bold label if preLabel is present as per design, preLabel is always regular weight\n $forceBold={!!preLabel}\n >\n {label}\n </Label>\n )}\n </Labels>\n )}\n </ButtonInnerWrap>\n </ButtonStyled>\n );\n};\n"],"names":["ButtonStyled","styled","Button","label","preLabel","css","variant","loading","ButtonInnerWrap","div","Labels","PreLabel","span","Label","$forceBold","CartButton","CartButton2","icon","hideIcon","iconHeight","iconWidth","props","Icon","useMemo","CartIcon","CartPlusIcon","children","StyleableSvgImage","src","width","height","jsx"],"mappings":";;;;;;;;;;;AA4BA,MAAMA,YAAA,GAAeC,OAAOC,MAAM,CAAA;AAAA,IAC9B,CAAC;EAAEC,KAAO;EAAAC;CAAe,KAAA;EAEzB,IAAI,CAAC,CAACD,KAAS,IAAA,CAAC,CAACC,QAAU,EAAA;IACzB;EAAA;EAQF,IAAID,KAAO,EAAA;IACF,OAAAE,GAAA;AAAA;AAAA;AAAA,OAAA;EAAA;EAOF,OAAAA,GAAA;AAAA;AAAA;AAAA;AAAA,KAAA;AAKT,CAAC;;AAAA,IAEC,CAAC;EAAEF;AAAA,CACH,KAAA,CAAC,CAACA,KACF,IAAAE,GAAA;AAAA;AAAA,KAEC;;AAAA,IAED,CAAC;EAAEC,OAAS;EAAAC;AAAA,MACZD,OAAY,KAAA,WAAA,IACZ,CAACC,OACD,IAAAF,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGL,MAAMG,kBAAkBP,MAAO,CAAAQ,GAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAM/B,MAAMC,SAAST,MAAO,CAAAQ,GAAA;AAAA;AAAA;AAAA,CAAA;AAKtB,MAAME,WAAWV,MAAO,CAAAW,IAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAOxB,MAAMC,QAAQZ,MAAO,CAAAW,IAAA;AAAA,IACjB,CAAC;EAAEE;CAAW,KACdA,UACI,GAAAT,GAAA;AAAA;AAAA,SAAA,GAGA,KAAS,CAAA;AAAA,CAAA;AAGJ,MAAAU,UAAA,GAAa,SAASA,WAAWC,CAAA;EAC5CC,IAAO,GAAA,MAAA;EACPC,QAAA;EACAd,QAAA;EACAD,KAAA;EACAgB,UAAA,GAAaF,IAAS,KAAA,MAAA,GAAS,EAAK,GAAA,EAAA;EACpCG,SAAY,GAAA,EAAA;EACZ,GAAGC;AACL,CAAoB,EAAA;EACZ,MAAAC,IAAA,GAAOC,QAAQ,MAAM;IACzB,QAAQN,IAAM;MACZ,KAAK,MAAA;QACI,OAAAO,iBAAA;MAET,KAAK,MAAA;QACI,OAAAC,qBAAA;IAAA;EACX,CACF,EAAG,CAACR,IAAI,CAAC,CAAA;EAKT,OAAA,mBACGjB,YAAc,EAAA;IAAA,GAAGqB;IAAOlB,KAAc;IAAAC,QAAA;IACrCsB,8BAAClB,eACE,EAAA;MAAAkB,QAAA,EAAA,CAAC,CAAAR,QAAA,uBACCS,iBAAkB,EAAA;QAAAC,GAAA,EAAKN;QAAMO,KAAO,EAAAT,SAAA;QAAWU,QAAQX;OAAY,CAAA,EAAA,CAEpE,CAAC,CAACf,QAAA,IAAY,CAAC,CAACD,KAAA,KAAA,oBACfO,MACE,EAAA;QAAAgB,QAAA,EAAA,CAAA,CAAC,CAACtB,QAAA,IAAA,eAAa2B,GAAA,CAAApB,QAAA,EAAA;UAAUe,QAAS,EAAAtB;SAAA,CAAA,EAClC,CAAC,CAACD,KACD,IAAA,eAAA4B,GAAA,CAAClB,KAAA,EAAA;UAECC,UAAA,EAAY,CAAC,CAACV,QAAA;UAEbsB,QAAA,EAAAvB;QAAA,CAAA,CAAA;MAGP,CAAA,CAAA;IAAA,CAEJ;EACF,CAAA,CAAA;AAEJ,CAAA;"}
@@ -7,14 +7,14 @@ require('../../../assets/icons/cartEmpty.svg.js');
7
7
  require('../../StyleableSvgImage/index.js');
8
8
  var CartIcon_styles = require('./CartIcon.styles.js');
9
9
  var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
10
- var CartIcon$1 = require("../../../assets/cart.svg");
10
+ var CartFullIcon = require("../../../assets/cart.svg");
11
11
  var CartEmptyIcon = require("../../../assets/cartEmpty.svg");
12
12
  function _interopDefault(e) {
13
13
  return e && e.__esModule ? e : {
14
14
  default: e
15
15
  };
16
16
  }
17
- var CartIcon__default = /*#__PURE__*/_interopDefault(CartIcon$1);
17
+ var CartFullIcon__default = /*#__PURE__*/_interopDefault(CartFullIcon);
18
18
  var CartEmptyIcon__default = /*#__PURE__*/_interopDefault(CartEmptyIcon);
19
19
  "use strict";
20
20
  const CartIcon = ({
@@ -37,7 +37,7 @@ const CartIcon = ({
37
37
  onMouseEnter,
38
38
  onMouseLeave,
39
39
  children: [/* @__PURE__ */jsxRuntime.jsx(StyleableSvgImage.StyleableSvgImage, {
40
- src: itemCount > 0 ? CartIcon__default["default"] : CartEmptyIcon__default["default"],
40
+ src: itemCount > 0 ? CartFullIcon__default["default"] : CartEmptyIcon__default["default"],
41
41
  width,
42
42
  height
43
43
  }), /* @__PURE__ */jsxRuntime.jsx(CartIcon_styles.CartQuantityEllipse, {
@@ -1 +1 @@
1
- {"version":3,"file":"CartIcon.js","sources":["../../../../src/components/Header/CartIcon/CartIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport CartFullIcon from \"../../../assets/icons/cart.svg\";\nimport CartEmptyIcon from \"../../../assets/icons/cartEmpty.svg\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./CartIcon.styles\";\nimport type { CartIconProps } from \"./CartIcon.types\";\n\nexport const CartIcon = ({\n className,\n itemCount,\n width = 20,\n height = 20,\n motif = \"light\",\n onMouseEnter,\n onMouseLeave,\n}: CartIconProps) => {\n // Display 99+ when cart quantity greater than 99\n const cartQuantityText = useMemo(() => {\n if (itemCount && itemCount > 0) {\n return itemCount > 99 ? \"99+\" : itemCount.toString();\n }\n\n return null;\n }, [itemCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <StyleableSvgImage\n src={itemCount > 0 ? CartFullIcon : CartEmptyIcon}\n width={width}\n height={height}\n />\n <S.CartQuantityEllipse\n $motif={motif}\n $show={!!cartQuantityText}\n data-test-id=\"cart-quantity\"\n >\n {cartQuantityText}\n </S.CartQuantityEllipse>\n </S.Wrap>\n );\n};\n"],"names":["CartIcon","className","itemCount","width","height","motif","onMouseEnter","onMouseLeave","cartQuantityText","useMemo","toString","jsxs","S.Wrap","Wrap","children","jsx","StyleableSvgImage","src","CartFullIcon","CartEmptyIcon","S.CartQuantityEllipse","CartQuantityEllipse","$motif","$show"],"mappings":";;;;;;;;;;;;;;;;;;;AAQO,MAAMA,WAAWA,CAAC;EACvBC,SAAA;EACAC,SAAA;EACAC,KAAQ,GAAA,EAAA;EACRC,MAAS,GAAA,EAAA;EACTC,KAAQ,GAAA,OAAA;EACRC,YAAA;EACAC;AACF,CAAqB,KAAA;EAEb,MAAAC,gBAAA,GAAmBC,KAAAA,CAAAA,QAAQ,MAAM;IACjC,IAAAP,SAAA,IAAaA,YAAY,CAAG,EAAA;MAC9B,OAAOA,SAAY,GAAA,EAAA,GAAK,KAAQ,GAAAA,SAAA,CAAUQ,QAAS,CAAA,CAAA;IAAA;IAG9C,OAAA,IAAA;EAAA,CACT,EAAG,CAACR,SAAS,CAAC,CAAA;EAMZ,sBAAAS,UAAA,CAAAA,IAAA,CAACC,eAAE,CAAAC,IAAA,EAAF;IACCZ,SAAA;IACAK,YAAA;IACAC,YAAA;IAEAO,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;MACCC,GAAA,EAAKf,SAAY,GAAA,CAAA,GAAIgB,iBAAAA,CAAAA,SAAAA,CAAe,GAAAC,sBAAA,CAAA,SAAA,CAAA;MACpChB,KAAA;MACAC;IAAA,CACF,CAAA,EAAA,eACAW,UAAA,CAAAA,GAAA,CAACK,eAAE,CAAAC,mBAAA,EAAF;MACCC,MAAQ,EAAAjB,KAAA;MACRkB,KAAA,EAAO,CAAC,CAACf,gBAAA;MACT,cAAa,EAAA,eAAA;MAEZM,QAAA,EAAAN;IAAA,CAAA,CAAA;EACH,CACF,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"CartIcon.js","sources":["../../../../src/components/Header/CartIcon/CartIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport CartFullIcon from \"../../../assets/icons/cart.svg\";\nimport CartEmptyIcon from \"../../../assets/icons/cartEmpty.svg\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./CartIcon.styles\";\nimport type { CartIconProps } from \"./CartIcon.types\";\n\nexport const CartIcon = ({\n className,\n itemCount,\n width = 20,\n height = 20,\n motif = \"light\",\n onMouseEnter,\n onMouseLeave,\n}: CartIconProps) => {\n // Display 99+ when cart quantity greater than 99\n const cartQuantityText = useMemo(() => {\n if (itemCount && itemCount > 0) {\n return itemCount > 99 ? \"99+\" : itemCount.toString();\n }\n\n return null;\n }, [itemCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <StyleableSvgImage\n src={itemCount > 0 ? CartFullIcon : CartEmptyIcon}\n width={width}\n height={height}\n />\n <S.CartQuantityEllipse\n $motif={motif}\n $show={!!cartQuantityText}\n data-test-id=\"cart-quantity\"\n >\n {cartQuantityText}\n </S.CartQuantityEllipse>\n </S.Wrap>\n );\n};\n"],"names":["CartIcon","className","itemCount","width","height","motif","onMouseEnter","onMouseLeave","cartQuantityText","useMemo","toString","jsxs","S.Wrap","Wrap","children","jsx","StyleableSvgImage","src","CartFullIcon","CartEmptyIcon","S.CartQuantityEllipse","CartQuantityEllipse","$motif","$show"],"mappings":";;;;;;;;;;;;;;;;;;;AAQO,MAAMA,WAAWA,CAAC;EACvBC,SAAA;EACAC,SAAA;EACAC,KAAQ,GAAA,EAAA;EACRC,MAAS,GAAA,EAAA;EACTC,KAAQ,GAAA,OAAA;EACRC,YAAA;EACAC;AACF,CAAqB,KAAA;EAEb,MAAAC,gBAAA,GAAmBC,KAAAA,CAAAA,QAAQ,MAAM;IACjC,IAAAP,SAAA,IAAaA,YAAY,CAAG,EAAA;MAC9B,OAAOA,SAAY,GAAA,EAAA,GAAK,KAAQ,GAAAA,SAAA,CAAUQ,QAAS,CAAA,CAAA;IAAA;IAG9C,OAAA,IAAA;EAAA,CACT,EAAG,CAACR,SAAS,CAAC,CAAA;EAMZ,sBAAAS,UAAA,CAAAA,IAAA,CAACC,eAAE,CAAAC,IAAA,EAAF;IACCZ,SAAA;IACAK,YAAA;IACAC,YAAA;IAEAO,QAAA,EAAA,CAAA,eAAAC,UAAA,CAAAA,GAAA,CAACC,iBAAA,CAAAA,iBAAA,EAAA;MACCC,GAAA,EAAKf,SAAY,GAAA,CAAA,GAAIgB,qBAAAA,CAAAA,SAAAA,CAAe,GAAAC,sBAAA,CAAA,SAAA,CAAA;MACpChB,KAAA;MACAC;IAAA,CACF,CAAA,EAAA,eACAW,UAAA,CAAAA,GAAA,CAACK,eAAE,CAAAC,mBAAA,EAAF;MACCC,MAAQ,EAAAjB,KAAA;MACRkB,KAAA,EAAO,CAAC,CAACf,gBAAA;MACT,cAAa,EAAA,eAAA;MAEZM,QAAA,EAAAN;IAAA,CAAA,CAAA;EACH,CACF,CAAA;AAEJ,CAAA;"}
@@ -5,7 +5,7 @@ import '../../../assets/icons/cartEmpty.svg.mjs';
5
5
  import '../../StyleableSvgImage/index.mjs';
6
6
  import { Wrap, CartQuantityEllipse } from './CartIcon.styles.mjs';
7
7
  import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
8
- import CartIcon__default from "../../../assets/cart.svg";
8
+ import CartFullIcon__default from "../../../assets/cart.svg";
9
9
  import CartEmptyIcon__default from "../../../assets/cartEmpty.svg";
10
10
  "use strict";
11
11
  const CartIcon = ({
@@ -28,7 +28,7 @@ const CartIcon = ({
28
28
  onMouseEnter,
29
29
  onMouseLeave,
30
30
  children: [/* @__PURE__ */jsx(StyleableSvgImage, {
31
- src: itemCount > 0 ? CartIcon__default : CartEmptyIcon__default,
31
+ src: itemCount > 0 ? CartFullIcon__default : CartEmptyIcon__default,
32
32
  width,
33
33
  height
34
34
  }), /* @__PURE__ */jsx(CartQuantityEllipse, {
@@ -1 +1 @@
1
- {"version":3,"file":"CartIcon.mjs","sources":["../../../../src/components/Header/CartIcon/CartIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport CartFullIcon from \"../../../assets/icons/cart.svg\";\nimport CartEmptyIcon from \"../../../assets/icons/cartEmpty.svg\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./CartIcon.styles\";\nimport type { CartIconProps } from \"./CartIcon.types\";\n\nexport const CartIcon = ({\n className,\n itemCount,\n width = 20,\n height = 20,\n motif = \"light\",\n onMouseEnter,\n onMouseLeave,\n}: CartIconProps) => {\n // Display 99+ when cart quantity greater than 99\n const cartQuantityText = useMemo(() => {\n if (itemCount && itemCount > 0) {\n return itemCount > 99 ? \"99+\" : itemCount.toString();\n }\n\n return null;\n }, [itemCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <StyleableSvgImage\n src={itemCount > 0 ? CartFullIcon : CartEmptyIcon}\n width={width}\n height={height}\n />\n <S.CartQuantityEllipse\n $motif={motif}\n $show={!!cartQuantityText}\n data-test-id=\"cart-quantity\"\n >\n {cartQuantityText}\n </S.CartQuantityEllipse>\n </S.Wrap>\n );\n};\n"],"names":["CartIcon","className","itemCount","width","height","motif","onMouseEnter","onMouseLeave","cartQuantityText","useMemo","toString","jsxs","S.Wrap","children","jsx","StyleableSvgImage","src","CartFullIcon","CartEmptyIcon","S.CartQuantityEllipse","$motif","$show"],"mappings":";;;;;;;;;;AAQO,MAAMA,WAAWA,CAAC;EACvBC,SAAA;EACAC,SAAA;EACAC,KAAQ,GAAA,EAAA;EACRC,MAAS,GAAA,EAAA;EACTC,KAAQ,GAAA,OAAA;EACRC,YAAA;EACAC;AACF,CAAqB,KAAA;EAEb,MAAAC,gBAAA,GAAmBC,QAAQ,MAAM;IACjC,IAAAP,SAAA,IAAaA,YAAY,CAAG,EAAA;MAC9B,OAAOA,SAAY,GAAA,EAAA,GAAK,KAAQ,GAAAA,SAAA,CAAUQ,QAAS,CAAA,CAAA;IAAA;IAG9C,OAAA,IAAA;EAAA,CACT,EAAG,CAACR,SAAS,CAAC,CAAA;EAMZ,sBAAAS,IAAA,CAACC,IAAE,EAAF;IACCX,SAAA;IACAK,YAAA;IACAC,YAAA;IAEAM,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACC,iBAAA,EAAA;MACCC,GAAA,EAAKd,SAAY,GAAA,CAAA,GAAIe,iBAAe,GAAAC,sBAAA;MACpCf,KAAA;MACAC;IAAA,CACF,CAAA,EAAA,eACAU,GAAA,CAACK,mBAAE,EAAF;MACCC,MAAQ,EAAAf,KAAA;MACRgB,KAAA,EAAO,CAAC,CAACb,gBAAA;MACT,cAAa,EAAA,eAAA;MAEZK,QAAA,EAAAL;IAAA,CAAA,CAAA;EACH,CACF,CAAA;AAEJ,CAAA;"}
1
+ {"version":3,"file":"CartIcon.mjs","sources":["../../../../src/components/Header/CartIcon/CartIcon.tsx"],"sourcesContent":["import { useMemo } from \"react\";\n\nimport CartFullIcon from \"../../../assets/icons/cart.svg\";\nimport CartEmptyIcon from \"../../../assets/icons/cartEmpty.svg\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\nimport * as S from \"./CartIcon.styles\";\nimport type { CartIconProps } from \"./CartIcon.types\";\n\nexport const CartIcon = ({\n className,\n itemCount,\n width = 20,\n height = 20,\n motif = \"light\",\n onMouseEnter,\n onMouseLeave,\n}: CartIconProps) => {\n // Display 99+ when cart quantity greater than 99\n const cartQuantityText = useMemo(() => {\n if (itemCount && itemCount > 0) {\n return itemCount > 99 ? \"99+\" : itemCount.toString();\n }\n\n return null;\n }, [itemCount]);\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <S.Wrap\n className={className}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n >\n <StyleableSvgImage\n src={itemCount > 0 ? CartFullIcon : CartEmptyIcon}\n width={width}\n height={height}\n />\n <S.CartQuantityEllipse\n $motif={motif}\n $show={!!cartQuantityText}\n data-test-id=\"cart-quantity\"\n >\n {cartQuantityText}\n </S.CartQuantityEllipse>\n </S.Wrap>\n );\n};\n"],"names":["CartIcon","className","itemCount","width","height","motif","onMouseEnter","onMouseLeave","cartQuantityText","useMemo","toString","jsxs","S.Wrap","children","jsx","StyleableSvgImage","src","CartFullIcon","CartEmptyIcon","S.CartQuantityEllipse","$motif","$show"],"mappings":";;;;;;;;;;AAQO,MAAMA,WAAWA,CAAC;EACvBC,SAAA;EACAC,SAAA;EACAC,KAAQ,GAAA,EAAA;EACRC,MAAS,GAAA,EAAA;EACTC,KAAQ,GAAA,OAAA;EACRC,YAAA;EACAC;AACF,CAAqB,KAAA;EAEb,MAAAC,gBAAA,GAAmBC,QAAQ,MAAM;IACjC,IAAAP,SAAA,IAAaA,YAAY,CAAG,EAAA;MAC9B,OAAOA,SAAY,GAAA,EAAA,GAAK,KAAQ,GAAAA,SAAA,CAAUQ,QAAS,CAAA,CAAA;IAAA;IAG9C,OAAA,IAAA;EAAA,CACT,EAAG,CAACR,SAAS,CAAC,CAAA;EAMZ,sBAAAS,IAAA,CAACC,IAAE,EAAF;IACCX,SAAA;IACAK,YAAA;IACAC,YAAA;IAEAM,QAAA,EAAA,CAAA,eAAAC,GAAA,CAACC,iBAAA,EAAA;MACCC,GAAA,EAAKd,SAAY,GAAA,CAAA,GAAIe,qBAAe,GAAAC,sBAAA;MACpCf,KAAA;MACAC;IAAA,CACF,CAAA,EAAA,eACAU,GAAA,CAACK,mBAAE,EAAF;MACCC,MAAQ,EAAAf,KAAA;MACRgB,KAAA,EAAO,CAAC,CAACb,gBAAA;MACT,cAAa,EAAA,eAAA;MAEZK,QAAA,EAAAL;IAAA,CAAA,CAAA;EACH,CACF,CAAA;AAEJ,CAAA;"}