@anker-in/headless-ui 1.3.38 → 1.3.39-alpha.1784616869310

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 (395) hide show
  1. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.d.ts +11 -0
  2. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js +2 -0
  3. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js.map +7 -0
  4. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.d.ts +23 -0
  5. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js +2 -0
  6. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js.map +7 -0
  7. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.d.ts +40 -0
  8. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js +2 -0
  9. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js.map +7 -0
  10. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.d.ts +107 -0
  11. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js +2 -0
  12. package/dist/cjs/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js.map +7 -0
  13. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.d.ts +22 -0
  14. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.js +2 -0
  15. package/dist/cjs/biz-components/AccessoriesShelf/components/MainProductArea/index.js.map +7 -0
  16. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.d.ts +10 -0
  17. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.js +2 -0
  18. package/dist/cjs/biz-components/AccessoriesShelf/components/PromoBanner/index.js.map +7 -0
  19. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.d.ts +9 -0
  20. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.js +2 -0
  21. package/dist/cjs/biz-components/AccessoriesShelf/components/SectionHeader/index.js.map +7 -0
  22. package/dist/cjs/biz-components/AccessoriesShelf/index.d.ts +7 -0
  23. package/dist/cjs/biz-components/AccessoriesShelf/index.js +2 -0
  24. package/dist/cjs/biz-components/AccessoriesShelf/index.js.map +7 -0
  25. package/dist/cjs/biz-components/AccessoriesShelf/types.d.ts +16 -0
  26. package/dist/cjs/biz-components/AccessoriesShelf/types.js +2 -0
  27. package/dist/cjs/biz-components/AccessoriesShelf/types.js.map +7 -0
  28. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.d.ts +14 -0
  29. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.js +2 -0
  30. package/dist/cjs/biz-components/CartDetail/CartGiftSection/CartGiftSection.js.map +7 -0
  31. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.d.ts +11 -0
  32. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js +2 -0
  33. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js.map +7 -0
  34. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.d.ts +2 -0
  35. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js +2 -0
  36. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js.map +7 -0
  37. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.d.ts +13 -0
  38. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js +2 -0
  39. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js.map +7 -0
  40. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.d.ts +2 -0
  41. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js +2 -0
  42. package/dist/cjs/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js.map +7 -0
  43. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.d.ts +2 -0
  44. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.js +2 -0
  45. package/dist/cjs/biz-components/CartDetail/CartGiftSection/index.js.map +7 -0
  46. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.d.ts +54 -0
  47. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.js +2 -0
  48. package/dist/cjs/biz-components/CartDetail/CartItemRow/CartItemRow.js.map +7 -0
  49. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.d.ts +4 -0
  50. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js +2 -0
  51. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js.map +7 -0
  52. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.d.ts +2 -0
  53. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js +2 -0
  54. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js.map +7 -0
  55. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.d.ts +9 -0
  56. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js +2 -0
  57. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js.map +7 -0
  58. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.d.ts +11 -0
  59. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js +2 -0
  60. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js.map +7 -0
  61. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.d.ts +2 -0
  62. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js +2 -0
  63. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js.map +7 -0
  64. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.d.ts +12 -0
  65. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js +2 -0
  66. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js.map +7 -0
  67. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.d.ts +2 -0
  68. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js +2 -0
  69. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js.map +7 -0
  70. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.d.ts +4 -0
  71. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js +2 -0
  72. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js.map +7 -0
  73. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.d.ts +2 -0
  74. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js +2 -0
  75. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js.map +7 -0
  76. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.d.ts +11 -0
  77. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js +2 -0
  78. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js.map +7 -0
  79. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.d.ts +8 -0
  80. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js +2 -0
  81. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js.map +7 -0
  82. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.d.ts +2 -0
  83. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js +2 -0
  84. package/dist/cjs/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js.map +7 -0
  85. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.d.ts +2 -0
  86. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.js +2 -0
  87. package/dist/cjs/biz-components/CartDetail/CartItemRow/index.js.map +7 -0
  88. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.d.ts +36 -0
  89. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.js +2 -0
  90. package/dist/cjs/biz-components/CartDetail/CartPerksSection/CartPerksSection.js.map +7 -0
  91. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.d.ts +2 -0
  92. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.js +2 -0
  93. package/dist/cjs/biz-components/CartDetail/CartPerksSection/index.js.map +7 -0
  94. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.d.ts +47 -0
  95. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js +2 -0
  96. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js.map +7 -0
  97. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.d.ts +2 -0
  98. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.js +2 -0
  99. package/dist/cjs/biz-components/CartDetail/CartPriceSummary/index.js.map +7 -0
  100. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.d.ts +26 -0
  101. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js +2 -0
  102. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js.map +7 -0
  103. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.d.ts +2 -0
  104. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.js +2 -0
  105. package/dist/cjs/biz-components/CartDetail/CartSummaryHeader/index.js.map +7 -0
  106. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.d.ts +10 -0
  107. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.js +2 -0
  108. package/dist/cjs/biz-components/CartDetail/CartThirdParty/CartThirdParty.js.map +7 -0
  109. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.d.ts +2 -0
  110. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.js +2 -0
  111. package/dist/cjs/biz-components/CartDetail/CartThirdParty/index.js.map +7 -0
  112. package/dist/cjs/biz-components/CartDetail/index.d.ts +16 -0
  113. package/dist/cjs/biz-components/CartDetail/index.js +2 -0
  114. package/dist/cjs/biz-components/CartDetail/index.js.map +7 -0
  115. package/dist/cjs/biz-components/CartDetail/types.d.ts +132 -0
  116. package/dist/cjs/biz-components/CartDetail/types.js +2 -0
  117. package/dist/cjs/biz-components/CartDetail/types.js.map +7 -0
  118. package/dist/cjs/biz-components/Listing/BizProductProvider.d.ts +13 -9
  119. package/dist/cjs/biz-components/Listing/BizProductProvider.js +1 -1
  120. package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +3 -3
  121. package/dist/cjs/biz-components/Listing/components/CartActionButtons/index.d.ts +9 -1
  122. package/dist/cjs/biz-components/Listing/components/CartActionButtons/index.js +1 -1
  123. package/dist/cjs/biz-components/Listing/components/CartActionButtons/index.js.map +3 -3
  124. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +4 -4
  125. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +3 -3
  126. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefits/index.js +1 -1
  127. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefits/index.js.map +3 -3
  128. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +1 -0
  129. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +1 -1
  130. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +3 -3
  131. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.d.ts +48 -0
  132. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.js +2 -0
  133. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.js.map +7 -0
  134. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.d.ts +1 -1
  135. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.js +1 -1
  136. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.js.map +3 -3
  137. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +0 -2
  138. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +1 -1
  139. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +4 -4
  140. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.d.ts +3 -0
  141. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.js +2 -0
  142. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.js.map +7 -0
  143. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.d.ts +115 -0
  144. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.js +2 -0
  145. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.js.map +7 -0
  146. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +1 -1
  147. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +3 -3
  148. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  149. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +3 -3
  150. package/dist/cjs/biz-components/Listing/components/index.d.ts +0 -1
  151. package/dist/cjs/biz-components/Listing/components/index.js +1 -1
  152. package/dist/cjs/biz-components/Listing/components/index.js.map +3 -3
  153. package/dist/cjs/biz-components/Listing/hooks/useBenefits.d.ts +8 -2
  154. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +1 -1
  155. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +3 -3
  156. package/dist/cjs/biz-components/Listing/types/product.d.ts +0 -21
  157. package/dist/cjs/biz-components/Listing/types/product.js +1 -1
  158. package/dist/cjs/biz-components/Listing/types/product.js.map +1 -1
  159. package/dist/cjs/biz-components/NotifyMeDialog/NotifyMeDialog.d.ts +7 -0
  160. package/dist/cjs/biz-components/NotifyMeDialog/NotifyMeDialog.js +2 -0
  161. package/dist/cjs/biz-components/NotifyMeDialog/NotifyMeDialog.js.map +7 -0
  162. package/dist/cjs/biz-components/NotifyMeDialog/index.d.ts +2 -0
  163. package/dist/cjs/biz-components/NotifyMeDialog/index.js +2 -0
  164. package/dist/cjs/biz-components/NotifyMeDialog/index.js.map +7 -0
  165. package/dist/cjs/biz-components/NotifyMeDialog/types.d.ts +111 -0
  166. package/dist/cjs/biz-components/NotifyMeDialog/types.js +2 -0
  167. package/dist/cjs/biz-components/NotifyMeDialog/types.js.map +7 -0
  168. package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
  169. package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
  170. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
  171. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
  172. package/dist/cjs/biz-components/index.d.ts +11 -3
  173. package/dist/cjs/biz-components/index.js +1 -1
  174. package/dist/cjs/biz-components/index.js.map +3 -3
  175. package/dist/cjs/components/breadcrumb.d.ts +12 -0
  176. package/dist/cjs/components/breadcrumb.js +2 -0
  177. package/dist/cjs/components/breadcrumb.js.map +7 -0
  178. package/dist/cjs/components/index.d.ts +2 -0
  179. package/dist/cjs/components/index.js +1 -1
  180. package/dist/cjs/components/index.js.map +3 -3
  181. package/dist/cjs/components/input-number.d.ts +22 -0
  182. package/dist/cjs/components/input-number.js +1 -1
  183. package/dist/cjs/components/input-number.js.map +3 -3
  184. package/dist/cjs/components/input.d.ts +5 -0
  185. package/dist/cjs/components/input.js +1 -1
  186. package/dist/cjs/components/input.js.map +3 -3
  187. package/dist/cjs/components/tabs.js +1 -1
  188. package/dist/cjs/components/tabs.js.map +3 -3
  189. package/dist/cjs/components/toast.d.ts +25 -0
  190. package/dist/cjs/components/toast.js +2 -0
  191. package/dist/cjs/components/toast.js.map +7 -0
  192. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.d.ts +11 -0
  193. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js +2 -0
  194. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoriesProductGrid/index.js.map +7 -0
  195. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.d.ts +23 -0
  196. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js +2 -0
  197. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/ProductCard.js.map +7 -0
  198. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.d.ts +40 -0
  199. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js +2 -0
  200. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/index.js.map +7 -0
  201. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.d.ts +107 -0
  202. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js +1 -0
  203. package/dist/esm/biz-components/AccessoriesShelf/components/AccessoryShelf/types.js.map +7 -0
  204. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.d.ts +22 -0
  205. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.js +2 -0
  206. package/dist/esm/biz-components/AccessoriesShelf/components/MainProductArea/index.js.map +7 -0
  207. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.d.ts +10 -0
  208. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.js +2 -0
  209. package/dist/esm/biz-components/AccessoriesShelf/components/PromoBanner/index.js.map +7 -0
  210. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.d.ts +9 -0
  211. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.js +2 -0
  212. package/dist/esm/biz-components/AccessoriesShelf/components/SectionHeader/index.js.map +7 -0
  213. package/dist/esm/biz-components/AccessoriesShelf/index.d.ts +7 -0
  214. package/dist/esm/biz-components/AccessoriesShelf/index.js +2 -0
  215. package/dist/esm/biz-components/AccessoriesShelf/index.js.map +7 -0
  216. package/dist/esm/biz-components/AccessoriesShelf/types.d.ts +16 -0
  217. package/dist/esm/biz-components/AccessoriesShelf/types.js +1 -0
  218. package/dist/esm/biz-components/AccessoriesShelf/types.js.map +7 -0
  219. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.d.ts +14 -0
  220. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.js +2 -0
  221. package/dist/esm/biz-components/CartDetail/CartGiftSection/CartGiftSection.js.map +7 -0
  222. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.d.ts +11 -0
  223. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js +2 -0
  224. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/GiftConfirmDialog.js.map +7 -0
  225. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.d.ts +2 -0
  226. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js +2 -0
  227. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftConfirmDialog/index.js.map +7 -0
  228. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.d.ts +13 -0
  229. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js +2 -0
  230. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/GiftOptionRow.js.map +7 -0
  231. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.d.ts +2 -0
  232. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js +2 -0
  233. package/dist/esm/biz-components/CartDetail/CartGiftSection/components/GiftOptionRow/index.js.map +7 -0
  234. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.d.ts +2 -0
  235. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.js +2 -0
  236. package/dist/esm/biz-components/CartDetail/CartGiftSection/index.js.map +7 -0
  237. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.d.ts +54 -0
  238. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.js +2 -0
  239. package/dist/esm/biz-components/CartDetail/CartItemRow/CartItemRow.js.map +7 -0
  240. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.d.ts +4 -0
  241. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js +2 -0
  242. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/CartItemGiftShipping.js.map +7 -0
  243. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.d.ts +2 -0
  244. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js +2 -0
  245. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/index.js.map +7 -0
  246. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.d.ts +9 -0
  247. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js +1 -0
  248. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemGiftShipping/types.js.map +7 -0
  249. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.d.ts +11 -0
  250. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js +2 -0
  251. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/CartItemInfo.js.map +7 -0
  252. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.d.ts +2 -0
  253. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js +2 -0
  254. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemInfo/index.js.map +7 -0
  255. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.d.ts +12 -0
  256. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js +2 -0
  257. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.js.map +7 -0
  258. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.d.ts +2 -0
  259. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js +2 -0
  260. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.js.map +7 -0
  261. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.d.ts +4 -0
  262. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js +2 -0
  263. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.js.map +7 -0
  264. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.d.ts +2 -0
  265. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js +2 -0
  266. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.js.map +7 -0
  267. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.d.ts +11 -0
  268. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js +1 -0
  269. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/types.js.map +7 -0
  270. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.d.ts +8 -0
  271. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js +2 -0
  272. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.js.map +7 -0
  273. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.d.ts +2 -0
  274. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js +2 -0
  275. package/dist/esm/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.js.map +7 -0
  276. package/dist/esm/biz-components/CartDetail/CartItemRow/index.d.ts +2 -0
  277. package/dist/esm/biz-components/CartDetail/CartItemRow/index.js +2 -0
  278. package/dist/esm/biz-components/CartDetail/CartItemRow/index.js.map +7 -0
  279. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.d.ts +36 -0
  280. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.js +2 -0
  281. package/dist/esm/biz-components/CartDetail/CartPerksSection/CartPerksSection.js.map +7 -0
  282. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.d.ts +2 -0
  283. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.js +2 -0
  284. package/dist/esm/biz-components/CartDetail/CartPerksSection/index.js.map +7 -0
  285. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.d.ts +47 -0
  286. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js +2 -0
  287. package/dist/esm/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.js.map +7 -0
  288. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.d.ts +2 -0
  289. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.js +2 -0
  290. package/dist/esm/biz-components/CartDetail/CartPriceSummary/index.js.map +7 -0
  291. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.d.ts +26 -0
  292. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js +2 -0
  293. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.js.map +7 -0
  294. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.d.ts +2 -0
  295. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.js +2 -0
  296. package/dist/esm/biz-components/CartDetail/CartSummaryHeader/index.js.map +7 -0
  297. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.d.ts +10 -0
  298. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.js +2 -0
  299. package/dist/esm/biz-components/CartDetail/CartThirdParty/CartThirdParty.js.map +7 -0
  300. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.d.ts +2 -0
  301. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.js +2 -0
  302. package/dist/esm/biz-components/CartDetail/CartThirdParty/index.js.map +7 -0
  303. package/dist/esm/biz-components/CartDetail/index.d.ts +16 -0
  304. package/dist/esm/biz-components/CartDetail/index.js +2 -0
  305. package/dist/esm/biz-components/CartDetail/index.js.map +7 -0
  306. package/dist/esm/biz-components/CartDetail/types.d.ts +132 -0
  307. package/dist/esm/biz-components/CartDetail/types.js +1 -0
  308. package/dist/esm/biz-components/CartDetail/types.js.map +7 -0
  309. package/dist/esm/biz-components/Listing/BizProductProvider.d.ts +13 -9
  310. package/dist/esm/biz-components/Listing/BizProductProvider.js +1 -1
  311. package/dist/esm/biz-components/Listing/BizProductProvider.js.map +3 -3
  312. package/dist/esm/biz-components/Listing/components/CartActionButtons/index.d.ts +9 -1
  313. package/dist/esm/biz-components/Listing/components/CartActionButtons/index.js +1 -1
  314. package/dist/esm/biz-components/Listing/components/CartActionButtons/index.js.map +3 -3
  315. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +4 -4
  316. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +3 -3
  317. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefits/index.js +1 -1
  318. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefits/index.js.map +3 -3
  319. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +1 -0
  320. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +1 -1
  321. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +3 -3
  322. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.d.ts +48 -0
  323. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.js +1 -0
  324. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/types.js.map +7 -0
  325. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.d.ts +1 -1
  326. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.js +1 -1
  327. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductCoupon/index.js.map +3 -3
  328. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +0 -2
  329. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +1 -1
  330. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +3 -3
  331. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.d.ts +3 -0
  332. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.js +2 -0
  333. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/index.js.map +7 -0
  334. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.d.ts +115 -0
  335. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.js +1 -0
  336. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFunctionFreeGift/types.js.map +7 -0
  337. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +1 -1
  338. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +3 -3
  339. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +1 -1
  340. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +3 -3
  341. package/dist/esm/biz-components/Listing/components/index.d.ts +0 -1
  342. package/dist/esm/biz-components/Listing/components/index.js +1 -1
  343. package/dist/esm/biz-components/Listing/components/index.js.map +2 -2
  344. package/dist/esm/biz-components/Listing/hooks/useBenefits.d.ts +8 -2
  345. package/dist/esm/biz-components/Listing/hooks/useBenefits.js +1 -1
  346. package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +3 -3
  347. package/dist/esm/biz-components/Listing/types/product.d.ts +0 -21
  348. package/dist/esm/biz-components/Listing/types/product.js.map +1 -1
  349. package/dist/esm/biz-components/NotifyMeDialog/NotifyMeDialog.d.ts +7 -0
  350. package/dist/esm/biz-components/NotifyMeDialog/NotifyMeDialog.js +2 -0
  351. package/dist/esm/biz-components/NotifyMeDialog/NotifyMeDialog.js.map +7 -0
  352. package/dist/esm/biz-components/NotifyMeDialog/index.d.ts +2 -0
  353. package/dist/esm/biz-components/NotifyMeDialog/index.js +2 -0
  354. package/dist/esm/biz-components/NotifyMeDialog/index.js.map +7 -0
  355. package/dist/esm/biz-components/NotifyMeDialog/types.d.ts +111 -0
  356. package/dist/esm/biz-components/NotifyMeDialog/types.js +1 -0
  357. package/dist/esm/biz-components/NotifyMeDialog/types.js.map +7 -0
  358. package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
  359. package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
  360. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +1 -1
  361. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
  362. package/dist/esm/biz-components/index.d.ts +11 -3
  363. package/dist/esm/biz-components/index.js +1 -1
  364. package/dist/esm/biz-components/index.js.map +3 -3
  365. package/dist/esm/components/breadcrumb.d.ts +12 -0
  366. package/dist/esm/components/breadcrumb.js +2 -0
  367. package/dist/esm/components/breadcrumb.js.map +7 -0
  368. package/dist/esm/components/index.d.ts +2 -0
  369. package/dist/esm/components/index.js +1 -1
  370. package/dist/esm/components/index.js.map +3 -3
  371. package/dist/esm/components/input-number.d.ts +22 -0
  372. package/dist/esm/components/input-number.js +1 -1
  373. package/dist/esm/components/input-number.js.map +3 -3
  374. package/dist/esm/components/input.d.ts +5 -0
  375. package/dist/esm/components/input.js +1 -1
  376. package/dist/esm/components/input.js.map +3 -3
  377. package/dist/esm/components/tabs.js +1 -1
  378. package/dist/esm/components/tabs.js.map +3 -3
  379. package/dist/esm/components/toast.d.ts +25 -0
  380. package/dist/esm/components/toast.js +2 -0
  381. package/dist/esm/components/toast.js.map +7 -0
  382. package/package.json +1 -1
  383. package/style.css +275 -0
  384. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  385. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +0 -2
  386. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +0 -7
  387. package/dist/cjs/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  388. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +0 -2
  389. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +0 -7
  390. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +0 -2
  391. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +0 -2
  392. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +0 -7
  393. package/dist/esm/biz-components/Listing/components/ProductCard/index.d.ts +0 -2
  394. package/dist/esm/biz-components/Listing/components/ProductCard/index.js +0 -2
  395. package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +0 -7
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemKsp/CartItemKsp.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport type { CartKspCopy } from '../../../types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\n\nexport interface CartItemKspProps {\n items: string[]\n variant?: 'default' | 'inline-link' | 'verified'\n defaultVisible?: number\n copy?: CartKspCopy\n className?: string\n classNames?: Partial<Record<'root' | 'item' | 'toggle', string>>\n}\n\nconst VerifiedIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"19\" height=\"19\" viewBox=\"0 0 19 19\" fill=\"none\">\n <path\n d=\"M12.0985 7.09229C12.4256 6.76873 12.9532 6.77172 13.2769 7.0988C13.6003 7.42596 13.5974 7.95357 13.2704 8.27718L9.05976 12.4438C8.73512 12.7649 8.21254 12.7648 7.88788 12.4438L5.43183 10.013C5.10471 9.68931 5.10164 9.16178 5.42532 8.83464C5.74894 8.5076 6.27654 8.5047 6.6037 8.82813L8.47382 10.6787L12.0985 7.09229Z\"\n fill=\"#4A4C56\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M8.47952 0.323895C8.97834 -0.107965 9.72385 -0.107965 10.2227 0.323895L10.3252 0.423179L12.2116 2.44222L14.9753 2.34945L15.1185 2.35189C15.8233 2.40286 16.3775 3.00416 16.353 3.72722L16.2595 6.49007L18.2793 8.37728C18.843 8.90431 18.8431 9.79857 18.2793 10.3255L16.2595 12.2119L16.353 14.9756C16.379 15.7468 15.7465 16.3793 14.9753 16.3534L12.2116 16.2598L10.3252 18.2796C9.79826 18.8434 8.90399 18.8433 8.37698 18.2796L6.48977 16.2598L3.72691 16.3534C2.9556 16.3794 2.32318 15.7469 2.34914 14.9756L2.44192 12.2119L0.422874 10.3255C-0.140963 9.79852 -0.140953 8.90429 0.422874 8.37728L2.44192 6.49007L2.34914 3.72722C2.32307 2.95584 2.95554 2.32338 3.72691 2.34945L6.48977 2.44222L8.37698 0.423179L8.47952 0.323895ZM7.60386 3.69141C7.34105 3.97259 6.96883 4.12673 6.58417 4.11377L4.02639 4.02669L4.11347 6.58447C4.12641 6.96914 3.97229 7.34136 3.6911 7.60417L1.82099 9.3514L3.6911 11.0986C3.97223 11.3615 4.12647 11.7337 4.11347 12.1183L4.02639 14.6753L6.58417 14.589C6.92088 14.5777 7.24804 14.6943 7.50051 14.9121L7.60386 15.0114L9.3511 16.8807L11.0983 15.0114L11.2017 14.9121C11.4542 14.6943 11.7813 14.5777 12.118 14.589L14.675 14.6753L14.5887 12.1183C14.5757 11.7336 14.7299 11.3615 15.0111 11.0986L16.8804 9.3514L15.0111 7.60417C14.7299 7.34136 14.5758 6.96914 14.5887 6.58447L14.675 4.02669L12.118 4.11377C11.7334 4.12677 11.3612 3.97254 11.0983 3.69141L9.3511 1.82129L7.60386 3.69141Z\"\n fill=\"#4A4C56\"\n />\n </svg>\n)\n\nconst ChevronIcon = ({ expanded, className }: { expanded: boolean; className?: string }) => (\n <svg\n className={cn('shrink-0 transition-transform', expanded && '-rotate-180', className)}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n >\n <path\n d=\"M14.4106 6.91058C14.736 6.58514 15.2635 6.58514 15.589 6.91058C15.9144 7.23602 15.9144 7.76353 15.589 8.08897L10.589 13.089C10.2635 13.4144 9.73602 13.4144 9.41058 13.089L4.41058 8.08897C4.08514 7.76353 4.08514 7.23602 4.41058 6.91058C4.73602 6.58514 5.26353 6.58514 5.58897 6.91058L9.99977 11.3214L14.4106 6.91058Z\"\n fill=\"currentColor\"\n />\n </svg>\n)\n\nconst CartItemKsp = React.forwardRef<HTMLUListElement, CartItemKspProps>(\n ({ items, variant = 'default', defaultVisible = 3, copy, className, classNames = {}, ...props }, ref) => {\n const resolvedShowMore = copy?.showMore ?? DEFAULT_CART_COPY.showMore\n const resolvedShowLess = copy?.showLess ?? DEFAULT_CART_COPY.showLess\n\n const [expanded, setExpanded] = React.useState(false)\n const visibleCount = expanded ? items.length : Math.min(defaultVisible, items.length)\n const visibleItems = items.slice(0, visibleCount)\n\n if (variant === 'verified') {\n return (\n <div className={className}>\n <button\n type=\"button\"\n onClick={() => setExpanded(prev => !prev)}\n className={cn('flex w-full items-center gap-1', classNames.toggle)}\n >\n <VerifiedIcon />\n <span className=\"text-info-tertiary flex-1 text-left text-sm font-bold leading-[1.4]\">\n {expanded ? resolvedShowLess : resolvedShowMore}\n </span>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </button>\n {expanded && (\n <ul ref={ref} className={cn('mt-2 flex flex-col gap-1', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary text-sm font-bold leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n }\n\n if (variant === 'inline-link') {\n return (\n <div className={className}>\n {expanded && (\n <ul ref={ref} className={cn('flex flex-col gap-1', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary text-sm leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n <button\n type=\"button\"\n onClick={() => setExpanded(prev => !prev)}\n className={cn('flex items-center gap-1 font-bold text-[var(--brand-2,#005d8e)]', classNames.toggle)}\n >\n <span className=\"leading-[1.2]\">{expanded ? resolvedShowLess : resolvedShowMore}</span>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </button>\n </div>\n )\n }\n\n return (\n <div className={cn('py-3', className, classNames.root)}>\n <div className=\"flex justify-between gap-4\">\n <div className=\"flex items-center gap-1\">\n <VerifiedIcon />\n <button\n type=\"button\"\n onClick={() => setExpanded(prev => !prev)}\n className={cn(\n 'flex w-full items-center gap-1 text-sm',\n 'text-info-tertiary font-bold',\n classNames.toggle\n )}\n >\n {expanded ? resolvedShowLess : resolvedShowMore}\n </button>\n </div>\n <ChevronIcon className=\"laptop:size-5 size-4\" expanded={expanded} />\n </div>\n {expanded && (\n <ul ref={ref} className={cn('flex flex-col py-2', classNames.item)} {...props}>\n {visibleItems.map((item, index) => (\n <li\n key={index}\n className={cn(\n 'text-info-tertiary tablet:text-text-2 py-1 leading-normal',\n 'relative flex list-none items-center',\n 'before:bg-info-tertiary before:mx-2 before:inline-block before:size-1 before:shrink-0 before:rounded-full',\n classNames.item\n )}\n >\n {item}\n </li>\n ))}\n </ul>\n )}\n </div>\n )\n }\n)\n\nCartItemKsp.displayName = 'CartItemKsp'\n\nexport default CartItemKsp\n"],
5
+ "mappings": "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",
6
+ "names": ["jsx", "jsxs", "React", "cn", "DEFAULT_CART_COPY", "VerifiedIcon", "ChevronIcon", "expanded", "className", "CartItemKsp", "items", "variant", "defaultVisible", "copy", "classNames", "props", "ref", "resolvedShowMore", "resolvedShowLess", "setExpanded", "visibleCount", "visibleItems", "prev", "item", "index", "CartItemKsp_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemKsp.js';
2
+ export type { CartItemKspProps } from './CartItemKsp.js';
@@ -0,0 +1,2 @@
1
+ import{default as e}from"./CartItemKsp.js";export{e as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemKsp/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemKsp.js'\nexport type { CartItemKspProps } from './CartItemKsp.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import type { CartItemRemoveConfirmProps } from './types.js';
3
+ declare const CartItemRemoveConfirm: React.ForwardRefExoticComponent<CartItemRemoveConfirmProps & React.RefAttributes<HTMLDivElement>>;
4
+ export default CartItemRemoveConfirm;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as a}from"react/jsx-runtime";import*as n from"react";import*as m from"@radix-ui/react-dialog";import{cn as o}from"../../../../../helpers/index.js";import{Dialog as h,DialogPortal as w,DialogOverlay as u,Button as l}from"../../../../../components/index.js";import{DEFAULT_CART_COPY as D}from"../../../index.js";const L=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:e("path",{d:"M4.69617 4.69624C5.02156 4.37076 5.54924 4.37081 5.87468 4.69624L9.99947 8.82103L14.1243 4.69624C14.4497 4.37081 14.9774 4.37076 15.3028 4.69624C15.6281 5.0217 15.6281 5.54931 15.3028 5.87476L11.178 9.99954L15.3028 14.1243C15.6281 14.4498 15.6281 14.9774 15.3028 15.3028C14.9774 15.6283 14.4497 15.6283 14.1243 15.3028L9.99947 11.1781L5.87468 15.3028C5.54924 15.6283 5.02156 15.6283 4.69617 15.3028C4.3708 14.9774 4.37081 14.4498 4.69617 14.1243L8.82096 9.99954L4.69617 5.87476C4.37081 5.54931 4.3708 5.0217 4.69617 4.69624Z",fill:"#080A0F"})}),c=n.forwardRef(({open:f,confirmText:v,copy:p,onConfirm:C,onCancel:s,onClose:r,classNames:t={}},x)=>{const i={...D,...p},d=n.useCallback(y=>{y||r?.()},[r]),g=()=>{s?.(),r?.()},b=()=>{C?.(),r?.()};return e(h,{open:f,onOpenChange:d,children:a(w,{children:[e(u,{className:o("cart-item-remove-confirm-overlay bg-black/60",t.overlay)}),a(m.Content,{ref:x,className:o("cart-item-remove-confirm-root","tablet:max-w-[420px] rounded-box fixed left-1/2 top-1/2 z-[1001] flex w-full max-w-[83.6%] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden bg-white",t.root),children:[e(m.Close,{className:o("cart-item-remove-confirm-close-btn tablet:h-12 text-info-tertiary relative h-[44px]",t.closeBtn),children:e("div",{className:"absolute right-4 top-4",children:e(L,{})})}),e("div",{className:o("cart-item-remove-confirm-body tablet:px-6 tablet:py-8 p-4",t.body),children:e("p",{className:o("cart-item-remove-confirm-text text-info-primary tablet:text-2xl text-center text-xl font-bold leading-[1.2]",t.confirmText),children:v??i.removeConfirmText})}),e("div",{className:o("cart-item-remove-confirm-footer tablet:gap-4 tablet:px-8 tablet:py-6 flex flex-col gap-2 px-4 pb-6 pt-4",t.footer),children:a("div",{className:"flex items-center justify-center gap-3",children:[e(l,{variant:"secondary",size:"lg",className:o("cart-item-remove-confirm-cancel-btn",t.cancelBtn),onClick:g,children:i.removeConfirmCancel??"Cancel"}),e(l,{variant:"primary",size:"lg",className:o("cart-item-remove-confirm-confirm-btn",t.confirmBtn),onClick:b,children:i.removeConfirmConfirm??"Confirm"})]})})]})]})})});c.displayName="CartItemRemoveConfirm";var I=c;export{I as default};
2
+ //# sourceMappingURL=CartItemRemoveConfirm.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/CartItemRemoveConfirm.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport * as DialogPrimitive from '@radix-ui/react-dialog'\nimport { cn } from '../../../../../helpers/index.js'\nimport { Dialog, DialogPortal, DialogOverlay, Button } from '../../../../../components/index.js'\nimport type { CartItemRemoveConfirmProps } from './types.js'\nimport { DEFAULT_CART_COPY } from '../../../index.js'\n\nconst CloseIcon = () => (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <path\n d=\"M4.69617 4.69624C5.02156 4.37076 5.54924 4.37081 5.87468 4.69624L9.99947 8.82103L14.1243 4.69624C14.4497 4.37081 14.9774 4.37076 15.3028 4.69624C15.6281 5.0217 15.6281 5.54931 15.3028 5.87476L11.178 9.99954L15.3028 14.1243C15.6281 14.4498 15.6281 14.9774 15.3028 15.3028C14.9774 15.6283 14.4497 15.6283 14.1243 15.3028L9.99947 11.1781L5.87468 15.3028C5.54924 15.6283 5.02156 15.6283 4.69617 15.3028C4.3708 14.9774 4.37081 14.4498 4.69617 14.1243L8.82096 9.99954L4.69617 5.87476C4.37081 5.54931 4.3708 5.0217 4.69617 4.69624Z\"\n fill=\"#080A0F\"\n />\n </svg>\n)\n\nconst CartItemRemoveConfirm = React.forwardRef<HTMLDivElement, CartItemRemoveConfirmProps>(\n ({ open, confirmText, copy, onConfirm, onCancel, onClose, classNames = {} }, ref) => {\n const c = { ...DEFAULT_CART_COPY, ...copy }\n\n const handleOpenChange = React.useCallback(\n (isOpen: boolean) => {\n if (!isOpen) {\n onClose?.()\n }\n },\n [onClose]\n )\n\n const handleCancel = () => {\n onCancel?.()\n onClose?.()\n }\n\n const handleConfirm = () => {\n onConfirm?.()\n onClose?.()\n }\n\n return (\n <Dialog open={open} onOpenChange={handleOpenChange}>\n <DialogPortal>\n <DialogOverlay className={cn('cart-item-remove-confirm-overlay bg-black/60', classNames.overlay)} />\n <DialogPrimitive.Content\n ref={ref}\n className={cn(\n 'cart-item-remove-confirm-root',\n 'tablet:max-w-[420px] rounded-box fixed left-1/2 top-1/2 z-[1001] flex w-full max-w-[83.6%] -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden bg-white',\n classNames.root\n )}\n >\n <DialogPrimitive.Close\n className={cn(\n 'cart-item-remove-confirm-close-btn tablet:h-12 text-info-tertiary relative h-[44px]',\n classNames.closeBtn\n )}\n >\n <div className=\"absolute right-4 top-4\">\n <CloseIcon />\n </div>\n </DialogPrimitive.Close>\n <div className={cn('cart-item-remove-confirm-body tablet:px-6 tablet:py-8 p-4', classNames.body)}>\n <p\n className={cn(\n 'cart-item-remove-confirm-text text-info-primary tablet:text-2xl text-center text-xl font-bold leading-[1.2]',\n classNames.confirmText\n )}\n >\n {confirmText ?? c.removeConfirmText}\n </p>\n </div>\n\n <div\n className={cn(\n 'cart-item-remove-confirm-footer tablet:gap-4 tablet:px-8 tablet:py-6 flex flex-col gap-2 px-4 pb-6 pt-4',\n classNames.footer\n )}\n >\n <div className=\"flex items-center justify-center gap-3\">\n <Button\n variant=\"secondary\"\n size=\"lg\"\n className={cn('cart-item-remove-confirm-cancel-btn', classNames.cancelBtn)}\n onClick={handleCancel}\n >\n {c.removeConfirmCancel ?? 'Cancel'}\n </Button>\n <Button\n variant=\"primary\"\n size=\"lg\"\n className={cn('cart-item-remove-confirm-confirm-btn', classNames.confirmBtn)}\n onClick={handleConfirm}\n >\n {c.removeConfirmConfirm ?? 'Confirm'}\n </Button>\n </div>\n </div>\n </DialogPrimitive.Content>\n </DialogPortal>\n </Dialog>\n )\n }\n)\n\nCartItemRemoveConfirm.displayName = 'CartItemRemoveConfirm'\n\nexport default CartItemRemoveConfirm\n"],
5
+ "mappings": "aAWI,cAAAA,EAqEU,QAAAC,MArEV,oBATJ,UAAYC,MAAW,QACvB,UAAYC,MAAqB,yBACjC,OAAS,MAAAC,MAAU,kCACnB,OAAS,UAAAC,EAAQ,gBAAAC,EAAc,iBAAAC,EAAe,UAAAC,MAAc,qCAE5D,OAAS,qBAAAC,MAAyB,oBAElC,MAAMC,EAAY,IAChBV,EAAC,OAAI,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OACtF,SAAAA,EAAC,QACC,EAAE,+gBACF,KAAK,UACP,EACF,EAGIW,EAAwBT,EAAM,WAClC,CAAC,CAAE,KAAAU,EAAM,YAAAC,EAAa,KAAAC,EAAM,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,WAAAC,EAAa,CAAC,CAAE,EAAGC,IAAQ,CACnF,MAAMC,EAAI,CAAE,GAAGX,EAAmB,GAAGK,CAAK,EAEpCO,EAAmBnB,EAAM,YAC5BoB,GAAoB,CACdA,GACHL,IAAU,CAEd,EACA,CAACA,CAAO,CACV,EAEMM,EAAe,IAAM,CACzBP,IAAW,EACXC,IAAU,CACZ,EAEMO,EAAgB,IAAM,CAC1BT,IAAY,EACZE,IAAU,CACZ,EAEA,OACEjB,EAACK,EAAA,CAAO,KAAMO,EAAM,aAAcS,EAChC,SAAApB,EAACK,EAAA,CACC,UAAAN,EAACO,EAAA,CAAc,UAAWH,EAAG,+CAAgDc,EAAW,OAAO,EAAG,EAClGjB,EAACE,EAAgB,QAAhB,CACC,IAAKgB,EACL,UAAWf,EACT,gCACA,iKACAc,EAAW,IACb,EAEA,UAAAlB,EAACG,EAAgB,MAAhB,CACC,UAAWC,EACT,sFACAc,EAAW,QACb,EAEA,SAAAlB,EAAC,OAAI,UAAU,yBACb,SAAAA,EAACU,EAAA,EAAU,EACb,EACF,EACAV,EAAC,OAAI,UAAWI,EAAG,4DAA6Dc,EAAW,IAAI,EAC7F,SAAAlB,EAAC,KACC,UAAWI,EACT,8GACAc,EAAW,WACb,EAEC,SAAAL,GAAeO,EAAE,kBACpB,EACF,EAEApB,EAAC,OACC,UAAWI,EACT,0GACAc,EAAW,MACb,EAEA,SAAAjB,EAAC,OAAI,UAAU,yCACb,UAAAD,EAACQ,EAAA,CACC,QAAQ,YACR,KAAK,KACL,UAAWJ,EAAG,sCAAuCc,EAAW,SAAS,EACzE,QAASK,EAER,SAAAH,EAAE,qBAAuB,SAC5B,EACApB,EAACQ,EAAA,CACC,QAAQ,UACR,KAAK,KACL,UAAWJ,EAAG,uCAAwCc,EAAW,UAAU,EAC3E,QAASM,EAER,SAAAJ,EAAE,sBAAwB,UAC7B,GACF,EACF,GACF,GACF,EACF,CAEJ,CACF,EAEAT,EAAsB,YAAc,wBAEpC,IAAOc,EAAQd",
6
+ "names": ["jsx", "jsxs", "React", "DialogPrimitive", "cn", "Dialog", "DialogPortal", "DialogOverlay", "Button", "DEFAULT_CART_COPY", "CloseIcon", "CartItemRemoveConfirm", "open", "confirmText", "copy", "onConfirm", "onCancel", "onClose", "classNames", "ref", "c", "handleOpenChange", "isOpen", "handleCancel", "handleConfirm", "CartItemRemoveConfirm_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemRemoveConfirm.js';
2
+ export type { CartItemRemoveConfirmProps, CartItemRemoveConfirmSemanticName } from './types.js';
@@ -0,0 +1,2 @@
1
+ import{default as t}from"./CartItemRemoveConfirm.js";export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemRemoveConfirm/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemRemoveConfirm.js'\nexport type { CartItemRemoveConfirmProps, CartItemRemoveConfirmSemanticName } from './types.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,11 @@
1
+ import type { CartItemRemoveConfirmCopy } from '../../../types.js';
2
+ export type CartItemRemoveConfirmSemanticName = 'root' | 'overlay' | 'closeBtn' | 'body' | 'confirmText' | 'footer' | 'cancelBtn' | 'confirmBtn';
3
+ export interface CartItemRemoveConfirmProps {
4
+ open: boolean;
5
+ confirmText?: string;
6
+ copy?: CartItemRemoveConfirmCopy;
7
+ onConfirm?: () => void;
8
+ onCancel?: () => void;
9
+ onClose?: () => void;
10
+ classNames?: Partial<Record<CartItemRemoveConfirmSemanticName, string>>;
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,8 @@
1
+ import * as React from 'react';
2
+ export interface CartItemShippingProps {
3
+ text: string;
4
+ className?: string;
5
+ classNames?: Partial<Record<'root' | 'icon' | 'text', string>>;
6
+ }
7
+ declare const CartItemShipping: React.ForwardRefExoticComponent<CartItemShippingProps & React.RefAttributes<HTMLDivElement>>;
8
+ export default CartItemShipping;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as t,jsxs as e}from"react/jsx-runtime";import*as a from"react";import{cn as l}from"../../../../../helpers/index.js";import{Text as p}from"../../../../../components/index.js";const d=()=>e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.4999 2.5C17.9602 2.5 18.3333 2.8731 18.3333 3.33333C18.3333 3.79357 17.9602 4.16667 17.4999 4.16667H8.33325V13.3333H17.4999C17.9602 13.3333 18.3333 13.7064 18.3333 14.1667C18.3333 14.6269 17.9602 15 17.4999 15H16.6633C16.6633 16.3799 15.5455 17.5 14.165 17.5C12.7844 17.5 11.6666 16.3799 11.6666 15H8.33325C8.33325 16.3807 7.21395 17.5 5.83325 17.5C4.45256 17.5 3.33325 16.3807 3.33325 15H1.66659C1.20635 15 0.833252 14.6269 0.833252 14.1667V8.89486C0.833252 8.68081 0.915907 8.47446 1.06356 8.3195L3.98022 5.25879L4.04126 5.2002C4.19152 5.07155 4.3836 5 4.58325 5H6.66658V4.16667C6.66658 3.2462 7.41276 2.5 8.33325 2.5H17.4999ZM5.00399 15.0854C5.04677 15.5055 5.40187 15.8333 5.83325 15.8333C6.26463 15.8333 6.61974 15.5055 6.66252 15.0854L6.66658 15H4.99992L5.00399 15.0854ZM13.3373 15.0854C13.38 15.5062 13.7351 15.8333 14.165 15.8333C14.5948 15.8333 14.9499 15.5062 14.9926 15.0854L14.9967 15H13.3333L13.3373 15.0854ZM2.49992 9.22689V13.3333H6.66658V6.66667H4.9397L2.49992 9.22689Z",fill:"#4A4C56"}),t("path",{d:"M19.1666 9.20003C19.6084 9.20003 19.9666 9.55817 19.9666 10C19.9666 10.4418 19.6084 10.8 19.1666 10.8H14.1666C13.7248 10.8 13.3666 10.4418 13.3666 10C13.3666 9.55817 13.7248 9.20003 14.1666 9.20003H19.1666Z",fill:"#4A4C56"}),t("path",{d:"M17.4999 5.8667C17.9417 5.8667 18.2999 6.22484 18.2999 6.66667C18.2999 7.10849 17.9417 7.46663 17.4999 7.46663H14.1666C13.7248 7.46663 13.3666 7.10849 13.3666 6.66667C13.3666 6.22484 13.7248 5.8667 14.1666 5.8667H17.4999Z",fill:"#4A4C56"})]}),m=({className:C})=>e("svg",{className:C,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:[t("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0C8.9328 2.14978e-08 10.6838 0.784114 11.9499 2.05013C13.2159 3.31616 14 5.0672 14 7C14 8.9328 13.2159 10.6838 11.9499 11.9499C10.6838 13.2159 8.9328 14 7 14C5.0672 14 3.31616 13.2159 2.05013 11.9499C0.784114 10.6838 2.14975e-08 8.9328 0 7C0 5.0672 0.784117 3.31616 2.05013 2.05013C3.31616 0.784117 5.0672 0 7 0ZM7 1.33333C5.43503 1.33333 4.01905 1.96664 2.99284 2.99284C1.96664 4.01905 1.33333 5.43503 1.33333 7C1.33333 8.56498 1.96664 9.98096 2.99284 11.0072C4.01905 12.0334 5.43503 12.6667 7 12.6667C8.56497 12.6667 9.98096 12.0334 11.0072 11.0072C12.0334 9.98096 12.6667 8.56497 12.6667 7C12.6667 5.43503 12.0334 4.01905 11.0072 2.99284C9.98096 1.96664 8.56498 1.33333 7 1.33333Z",fill:"#767880"}),t("path",{d:"M7 9.29556C7.46024 9.29556 7.83333 9.66866 7.83333 10.1289V10.1634C7.83333 10.6236 7.46024 10.9967 7 10.9967C6.53976 10.9967 6.16667 10.6236 6.16667 10.1634V10.1289C6.16667 9.66866 6.53976 9.29556 7 9.29556Z",fill:"#767880"}),t("path",{d:"M6.99935 2.99999C7.45958 2.99963 7.83297 3.37244 7.83333 3.83267L7.83594 7.33007C7.8363 7.79031 7.46349 8.16369 7.00326 8.16405C6.5431 8.16433 6.16964 7.79155 6.16927 7.33137L6.16667 3.83398C6.16631 3.37374 6.53911 3.00036 6.99935 2.99999Z",fill:"#767880"})]}),o=a.forwardRef(({text:C,className:n,classNames:i={},...s},r)=>e("div",{ref:r,className:l("flex items-center justify-between",n,i.root),...s,children:[e("div",{className:"flex items-center gap-1",children:[t(d,{}),t(p,{className:l("text-info-tertiary text-sm font-bold",i.text),html:C})]}),t(m,{className:"tablet:hidden"})]}));o.displayName="CartItemShipping";var h=o;export{h as default};
2
+ //# sourceMappingURL=CartItemShipping.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemShipping/CartItemShipping.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../../../helpers/index.js'\nimport { Text } from '../../../../../components/index.js'\n\nexport interface CartItemShippingProps {\n text: string\n className?: string\n classNames?: Partial<Record<'root' | 'icon' | 'text', string>>\n}\n\nconst ShoppingIcon = () => {\n return (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M17.4999 2.5C17.9602 2.5 18.3333 2.8731 18.3333 3.33333C18.3333 3.79357 17.9602 4.16667 17.4999 4.16667H8.33325V13.3333H17.4999C17.9602 13.3333 18.3333 13.7064 18.3333 14.1667C18.3333 14.6269 17.9602 15 17.4999 15H16.6633C16.6633 16.3799 15.5455 17.5 14.165 17.5C12.7844 17.5 11.6666 16.3799 11.6666 15H8.33325C8.33325 16.3807 7.21395 17.5 5.83325 17.5C4.45256 17.5 3.33325 16.3807 3.33325 15H1.66659C1.20635 15 0.833252 14.6269 0.833252 14.1667V8.89486C0.833252 8.68081 0.915907 8.47446 1.06356 8.3195L3.98022 5.25879L4.04126 5.2002C4.19152 5.07155 4.3836 5 4.58325 5H6.66658V4.16667C6.66658 3.2462 7.41276 2.5 8.33325 2.5H17.4999ZM5.00399 15.0854C5.04677 15.5055 5.40187 15.8333 5.83325 15.8333C6.26463 15.8333 6.61974 15.5055 6.66252 15.0854L6.66658 15H4.99992L5.00399 15.0854ZM13.3373 15.0854C13.38 15.5062 13.7351 15.8333 14.165 15.8333C14.5948 15.8333 14.9499 15.5062 14.9926 15.0854L14.9967 15H13.3333L13.3373 15.0854ZM2.49992 9.22689V13.3333H6.66658V6.66667H4.9397L2.49992 9.22689Z\"\n fill=\"#4A4C56\"\n />\n <path\n d=\"M19.1666 9.20003C19.6084 9.20003 19.9666 9.55817 19.9666 10C19.9666 10.4418 19.6084 10.8 19.1666 10.8H14.1666C13.7248 10.8 13.3666 10.4418 13.3666 10C13.3666 9.55817 13.7248 9.20003 14.1666 9.20003H19.1666Z\"\n fill=\"#4A4C56\"\n />\n <path\n d=\"M17.4999 5.8667C17.9417 5.8667 18.2999 6.22484 18.2999 6.66667C18.2999 7.10849 17.9417 7.46663 17.4999 7.46663H14.1666C13.7248 7.46663 13.3666 7.10849 13.3666 6.66667C13.3666 6.22484 13.7248 5.8667 14.1666 5.8667H17.4999Z\"\n fill=\"#4A4C56\"\n />\n </svg>\n )\n}\n\nconst TooltipIcon = ({ className }: { className?: string }) => {\n return (\n <svg\n className={className}\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 14 14\"\n fill=\"none\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7 0C8.9328 2.14978e-08 10.6838 0.784114 11.9499 2.05013C13.2159 3.31616 14 5.0672 14 7C14 8.9328 13.2159 10.6838 11.9499 11.9499C10.6838 13.2159 8.9328 14 7 14C5.0672 14 3.31616 13.2159 2.05013 11.9499C0.784114 10.6838 2.14975e-08 8.9328 0 7C0 5.0672 0.784117 3.31616 2.05013 2.05013C3.31616 0.784117 5.0672 0 7 0ZM7 1.33333C5.43503 1.33333 4.01905 1.96664 2.99284 2.99284C1.96664 4.01905 1.33333 5.43503 1.33333 7C1.33333 8.56498 1.96664 9.98096 2.99284 11.0072C4.01905 12.0334 5.43503 12.6667 7 12.6667C8.56497 12.6667 9.98096 12.0334 11.0072 11.0072C12.0334 9.98096 12.6667 8.56497 12.6667 7C12.6667 5.43503 12.0334 4.01905 11.0072 2.99284C9.98096 1.96664 8.56498 1.33333 7 1.33333Z\"\n fill=\"#767880\"\n />\n <path\n d=\"M7 9.29556C7.46024 9.29556 7.83333 9.66866 7.83333 10.1289V10.1634C7.83333 10.6236 7.46024 10.9967 7 10.9967C6.53976 10.9967 6.16667 10.6236 6.16667 10.1634V10.1289C6.16667 9.66866 6.53976 9.29556 7 9.29556Z\"\n fill=\"#767880\"\n />\n <path\n d=\"M6.99935 2.99999C7.45958 2.99963 7.83297 3.37244 7.83333 3.83267L7.83594 7.33007C7.8363 7.79031 7.46349 8.16369 7.00326 8.16405C6.5431 8.16433 6.16964 7.79155 6.16927 7.33137L6.16667 3.83398C6.16631 3.37374 6.53911 3.00036 6.99935 2.99999Z\"\n fill=\"#767880\"\n />\n </svg>\n )\n}\n\nconst CartItemShipping = React.forwardRef<HTMLDivElement, CartItemShippingProps>(\n ({ text, className, classNames = {}, ...props }, ref) => {\n return (\n <div ref={ref} className={cn('flex items-center justify-between', className, classNames.root)} {...props}>\n <div className=\"flex items-center gap-1\">\n <ShoppingIcon />\n <Text className={cn('text-info-tertiary text-sm font-bold', classNames.text)} html={text} />\n </div>\n <TooltipIcon className=\"tablet:hidden\" />\n </div>\n )\n }\n)\n\nCartItemShipping.displayName = 'CartItemShipping'\n\nexport default CartItemShipping\n"],
5
+ "mappings": "aAcI,OACE,OAAAA,EADF,QAAAC,MAAA,oBAZJ,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,kCACnB,OAAS,QAAAC,MAAY,qCAQrB,MAAMC,EAAe,IAEjBJ,EAAC,OAAI,MAAM,6BAA6B,MAAM,KAAK,OAAO,KAAK,QAAQ,YAAY,KAAK,OACtF,UAAAD,EAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,g+BACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,iNACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,gOACF,KAAK,UACP,GACF,EAIEM,EAAc,CAAC,CAAE,UAAAC,CAAU,IAE7BN,EAAC,OACC,UAAWM,EACX,MAAM,6BACN,MAAM,KACN,OAAO,KACP,QAAQ,YACR,KAAK,OAEL,UAAAP,EAAC,QACC,SAAS,UACT,SAAS,UACT,EAAE,irBACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,kNACF,KAAK,UACP,EACAA,EAAC,QACC,EAAE,kPACF,KAAK,UACP,GACF,EAIEQ,EAAmBN,EAAM,WAC7B,CAAC,CAAE,KAAAO,EAAM,UAAAF,EAAW,WAAAG,EAAa,CAAC,EAAG,GAAGC,CAAM,EAAGC,IAE7CX,EAAC,OAAI,IAAKW,EAAK,UAAWT,EAAG,oCAAqCI,EAAWG,EAAW,IAAI,EAAI,GAAGC,EACjG,UAAAV,EAAC,OAAI,UAAU,0BACb,UAAAD,EAACK,EAAA,EAAa,EACdL,EAACI,EAAA,CAAK,UAAWD,EAAG,uCAAwCO,EAAW,IAAI,EAAG,KAAMD,EAAM,GAC5F,EACAT,EAACM,EAAA,CAAY,UAAU,gBAAgB,GACzC,CAGN,EAEAE,EAAiB,YAAc,mBAE/B,IAAOK,EAAQL",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Text", "ShoppingIcon", "TooltipIcon", "className", "CartItemShipping", "text", "classNames", "props", "ref", "CartItemShipping_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemShipping.js';
2
+ export type { CartItemShippingProps } from './CartItemShipping.js';
@@ -0,0 +1,2 @@
1
+ import{default as r}from"./CartItemShipping.js";export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../../../src/biz-components/CartDetail/CartItemRow/components/CartItemShipping/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemShipping.js'\nexport type { CartItemShippingProps } from './CartItemShipping.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartItemRow.js';
2
+ export type { CartItemRowProps } from './CartItemRow.js';
@@ -0,0 +1,2 @@
1
+ import{default as r}from"./CartItemRow.js";export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartItemRow/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartItemRow.js'\nexport type { CartItemRowProps } from './CartItemRow.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,36 @@
1
+ import * as React from 'react';
2
+ import type { CartPerksSectionCopy } from '../types.js';
3
+ export interface CartPerk {
4
+ /** 商品唯一标识(SKU) */
5
+ sku: string;
6
+ /** 商品图片 */
7
+ image: {
8
+ src: string;
9
+ alt?: string;
10
+ };
11
+ /** 商品标题 */
12
+ title: string;
13
+ /** 商品描述 */
14
+ description: string;
15
+ /** 当前价格 */
16
+ price: string;
17
+ /** 原价(展示删除线) */
18
+ originalPrice?: string;
19
+ /** 数量文案 */
20
+ quantity?: string;
21
+ /** 了解更多按钮文案 */
22
+ learnMoreText?: string;
23
+ /** 了解更多按钮链接 */
24
+ learnMoreLink?: string;
25
+ /** 加入购物车回调 */
26
+ onAdd?: () => void;
27
+ }
28
+ export interface CartPerksSectionProps {
29
+ title?: string;
30
+ perks: CartPerk[];
31
+ copy?: CartPerksSectionCopy;
32
+ className?: string;
33
+ classNames?: Partial<Record<'root' | 'title' | 'item' | 'image' | 'content' | 'info' | 'name' | 'description' | 'priceWrap' | 'priceRow' | 'price' | 'originalPrice' | 'quantity' | 'action' | 'learnMore', string>>;
34
+ }
35
+ declare const CartPerksSection: React.ForwardRefExoticComponent<CartPerksSectionProps & React.RefAttributes<HTMLDivElement>>;
36
+ export default CartPerksSection;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as e,jsxs as r}from"react/jsx-runtime";import*as v from"react";import{cn as a}from"../../../helpers/index.js";import{Button as y,Heading as c,Picture as C,Text as n}from"../../../components/index.js";import{DEFAULT_CART_COPY as d}from"../index.js";import{LocalizedLink as x}from"../../../shared/LocalizedLink.js";const h=({className:o})=>r("svg",{xmlns:"http://www.w3.org/2000/svg",className:o,width:"17",height:"15",viewBox:"0 0 17 15",fill:"none",children:[e("path",{d:"M12.0945 0C12.6087 0 13.09 0.26113 13.3797 0.698242L16.3963 5.25195C16.8137 5.88217 16.7407 6.72832 16.2225 7.27344L9.91291 13.9062C9.05444 14.8082 7.64375 14.809 6.784 13.9082L0.445134 7.26758C-0.0683205 6.72952 -0.146289 5.89553 0.256657 5.26562L3.16388 0.719727C3.4516 0.270119 3.94061 0 4.46369 0H12.0945ZM12.5037 5.31738C12.2188 5.0332 11.7569 5.03363 11.4725 5.31836L8.34748 8.44727L5.21174 5.31738C4.92672 5.03315 4.46491 5.03346 4.18049 5.31836C3.89625 5.60337 3.89754 6.06518 4.18244 6.34961L7.80842 9.96973C8.10764 10.2681 8.59181 10.2677 8.89045 9.96875L12.5047 6.34863C12.7889 6.06369 12.7884 5.60183 12.5037 5.31738Z",fill:"url(#paint0_linear_6135_9275)"}),e("defs",{children:r("linearGradient",{id:"paint0_linear_6135_9275",x1:"-1.69612e-07",y1:"-5.81363e-06",x2:"12.6513",y2:"8.69315",gradientUnits:"userSpaceOnUse",children:[e("stop",{stopColor:"#F1EADB"}),e("stop",{offset:"1",stopColor:"#D9A66A"})]})})]}),p=v.forwardRef(({title:o,perks:f,copy:l,className:m,classNames:i={},...g},b)=>{const u=l?.addButton??d.addButton,s=l?.learnMoreButton??d.learnMoreButton;return r("div",{ref:b,className:a("flex flex-col gap-4",m,i.root),...g,children:[o&&e(c,{size:2,className:a("text-info-primary font-bold",i.title),children:o}),f.map(t=>r("div",{className:a("cart-perks-section-item bg-container-secondary rounded-box tablet:p-8 flex flex-col gap-2 p-2",i.item),children:[r("div",{className:"tablet:p-0 tablet:items-center tablet:gap-4 flex w-full gap-2 p-2",children:[e("div",{className:a("cart-perks-section-image shrink-0",i.image),children:e(C,{source:t.image.src,alt:t.image.alt??"",className:"h-15 tablet:w-[232px] tablet:h-[176px] w-20 ",imgClassName:"object-contain"})}),r("div",{className:a("cart-perks-section-content tablet:flex-row flex flex-1 flex-col gap-4",i.content),children:[r("div",{className:a("cart-perks-section-info tablet:flex-[2] tablet:gap-2 flex flex-1 flex-col justify-start",i.info),children:[e(c,{size:2,className:a("cart-perks-section-name text-info-primary font-bold",i.name),html:t.title}),e(n,{className:a("cart-perks-section-description tablet:text-base text-info-tertiary text-sm leading-normal",i.description),html:t.description}),t?.learnMoreLink&&e(x,{href:t.learnMoreLink,children:e("div",{className:a("tablet:flex tablet:w-max text-brand-0 tablet:justify-start tablet:text-base hidden p-0 text-sm font-bold",i.learnMore),children:t.learnMoreText??s})})]}),t.quantity&&r(n,{className:a("cart-perks-section-quantity tablet:block tablet:text-base text-info-primary hidden text-sm font-bold",i.quantity),children:["X",t.quantity]}),r("div",{className:a("cart-perks-section-price-wrap tablet:flex-1 tablet:items-end flex flex-col items-start gap-2",i.priceWrap),children:[r("div",{className:a("cart-perks-section-price-row tablet:w-auto flex w-full items-center justify-between",i.priceRow),children:[r("div",{className:"flex items-center gap-1",children:[e(n,{className:a("cart-perks-section-price text-info-primary tablet:text-2xl text-xl font-bold",i.price),html:t.price}),t.originalPrice&&e(n,{className:a("cart-perks-section-original-price tablet:text-2xl text-info-tertiary text-xl font-bold line-through",i.originalPrice),html:t.originalPrice})]}),t.quantity&&r(n,{className:a("cart-perks-section-quantity tablet:hidden tablet:text-base text-info-primary text-sm font-bold",i.quantity),children:["X",t.quantity]})]}),t.onAdd&&e(y,{variant:"link",type:"button",onClick:t.onAdd,className:a("cart-perks-section-action tablet:text-base text-brand-0 p-0",i.action),children:u})]})]})]}),t.learnMoreLink&&r(x,{href:t.learnMoreLink,className:a("rounded-box-small tablet:hidden tablet:text-base flex items-center bg-white px-4 py-3 text-sm font-bold",i.learnMore),children:[r("div",{className:"flex flex-1 items-center gap-1",children:[e(h,{className:"size-5"}),e(n,{className:"cart-perks-section-learn-more text-info-tertiary",children:t.learnMoreText??s})]}),e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:e("path",{d:"M5.52864 3.52827C5.78899 3.26792 6.211 3.26792 6.47134 3.52827L10.4713 7.52827C10.7317 7.78862 10.7317 8.21063 10.4713 8.47098L6.47134 12.471C6.211 12.7313 5.78899 12.7313 5.52864 12.471C5.26829 12.2106 5.26829 11.7886 5.52864 11.5283L9.05728 7.99962L5.52864 4.47098C5.26829 4.21063 5.26829 3.78862 5.52864 3.52827Z",fill:"#4A4C56"})})]})]},t.sku))]})});p.displayName="CartPerksSection";var P=p;export{P as default};
2
+ //# sourceMappingURL=CartPerksSection.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartPerksSection/CartPerksSection.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../helpers/index.js'\nimport { Button, Heading, Picture, Text } from '../../../components/index.js'\nimport type { CartPerksSectionCopy } from '../types.js'\nimport { DEFAULT_CART_COPY } from '../index.js'\nimport { LocalizedLink } from '../../../shared/LocalizedLink.js'\n\nconst LearnMoreIcon = ({ className }: { className?: string }) => {\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n className={className}\n width=\"17\"\n height=\"15\"\n viewBox=\"0 0 17 15\"\n fill=\"none\"\n >\n <path\n d=\"M12.0945 0C12.6087 0 13.09 0.26113 13.3797 0.698242L16.3963 5.25195C16.8137 5.88217 16.7407 6.72832 16.2225 7.27344L9.91291 13.9062C9.05444 14.8082 7.64375 14.809 6.784 13.9082L0.445134 7.26758C-0.0683205 6.72952 -0.146289 5.89553 0.256657 5.26562L3.16388 0.719727C3.4516 0.270119 3.94061 0 4.46369 0H12.0945ZM12.5037 5.31738C12.2188 5.0332 11.7569 5.03363 11.4725 5.31836L8.34748 8.44727L5.21174 5.31738C4.92672 5.03315 4.46491 5.03346 4.18049 5.31836C3.89625 5.60337 3.89754 6.06518 4.18244 6.34961L7.80842 9.96973C8.10764 10.2681 8.59181 10.2677 8.89045 9.96875L12.5047 6.34863C12.7889 6.06369 12.7884 5.60183 12.5037 5.31738Z\"\n fill=\"url(#paint0_linear_6135_9275)\"\n />\n <defs>\n <linearGradient\n id=\"paint0_linear_6135_9275\"\n x1=\"-1.69612e-07\"\n y1=\"-5.81363e-06\"\n x2=\"12.6513\"\n y2=\"8.69315\"\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#F1EADB\" />\n <stop offset=\"1\" stopColor=\"#D9A66A\" />\n </linearGradient>\n </defs>\n </svg>\n )\n}\n\nexport interface CartPerk {\n /** \u5546\u54C1\u552F\u4E00\u6807\u8BC6\uFF08SKU\uFF09 */\n sku: string\n /** \u5546\u54C1\u56FE\u7247 */\n image: { src: string; alt?: string }\n /** \u5546\u54C1\u6807\u9898 */\n title: string\n /** \u5546\u54C1\u63CF\u8FF0 */\n description: string\n /** \u5F53\u524D\u4EF7\u683C */\n price: string\n /** \u539F\u4EF7\uFF08\u5C55\u793A\u5220\u9664\u7EBF\uFF09 */\n originalPrice?: string\n /** \u6570\u91CF\u6587\u6848 */\n quantity?: string\n /** \u4E86\u89E3\u66F4\u591A\u6309\u94AE\u6587\u6848 */\n learnMoreText?: string\n /** \u4E86\u89E3\u66F4\u591A\u6309\u94AE\u94FE\u63A5 */\n learnMoreLink?: string\n /** \u52A0\u5165\u8D2D\u7269\u8F66\u56DE\u8C03 */\n onAdd?: () => void\n // /** \u4E86\u89E3\u66F4\u591A\u56DE\u8C03 */\n // onLearnMore?: () => void\n}\n\nexport interface CartPerksSectionProps {\n title?: string\n perks: CartPerk[]\n copy?: CartPerksSectionCopy\n className?: string\n classNames?: Partial<\n Record<\n | 'root'\n | 'title'\n | 'item'\n | 'image'\n | 'content'\n | 'info'\n | 'name'\n | 'description'\n | 'priceWrap'\n | 'priceRow'\n | 'price'\n | 'originalPrice'\n | 'quantity'\n | 'action'\n | 'learnMore',\n string\n >\n >\n}\n\nconst CartPerksSection = React.forwardRef<HTMLDivElement, CartPerksSectionProps>(\n ({ title, perks, copy, className, classNames = {}, ...props }, ref) => {\n const addText = copy?.addButton ?? DEFAULT_CART_COPY.addButton\n const learnMoreText = copy?.learnMoreButton ?? DEFAULT_CART_COPY.learnMoreButton\n return (\n <div ref={ref} className={cn('flex flex-col gap-4', className, classNames.root)} {...props}>\n {title && (\n <Heading size={2} className={cn('text-info-primary font-bold', classNames.title)}>\n {title}\n </Heading>\n )}\n {perks.map(perk => (\n <div\n key={perk.sku}\n className={cn(\n 'cart-perks-section-item bg-container-secondary rounded-box tablet:p-8 flex flex-col gap-2 p-2',\n classNames.item\n )}\n >\n <div className=\"tablet:p-0 tablet:items-center tablet:gap-4 flex w-full gap-2 p-2\">\n {/* \u589E\u503C\u670D\u52A1\u4E3B\u56FE */}\n <div className={cn('cart-perks-section-image shrink-0', classNames.image)}>\n <Picture\n source={perk.image.src}\n alt={perk.image.alt ?? ''}\n className=\"h-15 tablet:w-[232px] tablet:h-[176px] w-20 \"\n imgClassName=\"object-contain\"\n />\n </div>\n {/* \u589E\u503C\u670D\u52A1\u5185\u5BB9 */}\n <div\n className={cn(\n 'cart-perks-section-content tablet:flex-row flex flex-1 flex-col gap-4',\n classNames.content\n )}\n >\n {/* \u589E\u503C\u670D\u52A1\u6807\u9898\u53CA\u63CF\u8FF0 */}\n <div\n className={cn(\n 'cart-perks-section-info tablet:flex-[2] tablet:gap-2 flex flex-1 flex-col justify-start',\n classNames.info\n )}\n >\n <Heading\n size={2}\n className={cn('cart-perks-section-name text-info-primary font-bold', classNames.name)}\n html={perk.title}\n />\n <Text\n className={cn(\n 'cart-perks-section-description tablet:text-base text-info-tertiary text-sm leading-normal',\n classNames.description\n )}\n html={perk.description}\n />\n {perk?.learnMoreLink && (\n <LocalizedLink href={perk.learnMoreLink}>\n <div\n className={cn(\n 'tablet:flex tablet:w-max text-brand-0 tablet:justify-start tablet:text-base hidden p-0 text-sm font-bold',\n classNames.learnMore\n )}\n >\n {perk.learnMoreText ?? learnMoreText}\n </div>\n </LocalizedLink>\n )}\n </div>\n {perk.quantity && (\n <Text\n className={cn(\n 'cart-perks-section-quantity tablet:block tablet:text-base text-info-primary hidden text-sm font-bold',\n classNames.quantity\n )}\n >\n X{perk.quantity}\n </Text>\n )}\n <div\n className={cn(\n 'cart-perks-section-price-wrap tablet:flex-1 tablet:items-end flex flex-col items-start gap-2',\n classNames.priceWrap\n )}\n >\n {/* \u589E\u503C\u670D\u52A1\u4EF7\u683C */}\n <div\n className={cn(\n 'cart-perks-section-price-row tablet:w-auto flex w-full items-center justify-between',\n classNames.priceRow\n )}\n >\n <div className=\"flex items-center gap-1\">\n <Text\n className={cn(\n 'cart-perks-section-price text-info-primary tablet:text-2xl text-xl font-bold',\n classNames.price\n )}\n html={perk.price}\n />\n {perk.originalPrice && (\n <Text\n className={cn(\n 'cart-perks-section-original-price tablet:text-2xl text-info-tertiary text-xl font-bold line-through',\n classNames.originalPrice\n )}\n html={perk.originalPrice}\n />\n )}\n </div>\n {perk.quantity && (\n <Text\n className={cn(\n 'cart-perks-section-quantity tablet:hidden tablet:text-base text-info-primary text-sm font-bold',\n classNames.quantity\n )}\n >\n X{perk.quantity}\n </Text>\n )}\n </div>\n {/* \u589E\u503C\u670D\u52A1\u6309\u94AE */}\n {perk.onAdd && (\n <Button\n variant=\"link\"\n type=\"button\"\n onClick={perk.onAdd}\n className={cn('cart-perks-section-action tablet:text-base text-brand-0 p-0', classNames.action)}\n >\n {addText}\n </Button>\n )}\n </div>\n </div>\n </div>\n\n {perk.learnMoreLink && (\n <LocalizedLink\n href={perk.learnMoreLink}\n className={cn(\n 'rounded-box-small tablet:hidden tablet:text-base flex items-center bg-white px-4 py-3 text-sm font-bold',\n classNames.learnMore\n )}\n >\n <div className=\"flex flex-1 items-center gap-1\">\n <LearnMoreIcon className=\"size-5\" />\n <Text className=\"cart-perks-section-learn-more text-info-tertiary\">\n {perk.learnMoreText ?? learnMoreText}\n </Text>\n </div>\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\">\n <path\n d=\"M5.52864 3.52827C5.78899 3.26792 6.211 3.26792 6.47134 3.52827L10.4713 7.52827C10.7317 7.78862 10.7317 8.21063 10.4713 8.47098L6.47134 12.471C6.211 12.7313 5.78899 12.7313 5.52864 12.471C5.26829 12.2106 5.26829 11.7886 5.52864 11.5283L9.05728 7.99962L5.52864 4.47098C5.26829 4.21063 5.26829 3.78862 5.52864 3.52827Z\"\n fill=\"#4A4C56\"\n />\n </svg>\n </LocalizedLink>\n )}\n </div>\n ))}\n </div>\n )\n }\n)\n\nCartPerksSection.displayName = 'CartPerksSection'\n\nexport default CartPerksSection\n"],
5
+ "mappings": "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",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Button", "Heading", "Picture", "Text", "DEFAULT_CART_COPY", "LocalizedLink", "LearnMoreIcon", "className", "CartPerksSection", "title", "perks", "copy", "classNames", "props", "ref", "addText", "learnMoreText", "perk", "CartPerksSection_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartPerksSection.js';
2
+ export type { CartPerksSectionProps, CartPerk } from './CartPerksSection.js';
@@ -0,0 +1,2 @@
1
+ import{default as t}from"./CartPerksSection.js";export{t as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartPerksSection/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartPerksSection.js'\nexport type { CartPerksSectionProps, CartPerk } from './CartPerksSection.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,47 @@
1
+ import * as React from 'react';
2
+ import type { CartPriceSummaryCopy } from '../types.js';
3
+ export interface CartPriceSummaryProps {
4
+ /** 折扣码输入框的值 */
5
+ couponInputValue?: string;
6
+ /** 折扣码输入变化回调 */
7
+ onCouponInputChange?: (value: string) => void;
8
+ /** 点击应用折扣码回调,参数为输入框中的折扣码 */
9
+ onCouponApply?: (code: string) => void;
10
+ /** 已应用的折扣码列表 */
11
+ appliedCoupons?: string[];
12
+ /** 移除折扣码回调,参数为折扣码 */
13
+ onCouponRemove?: (code: string) => void;
14
+ /** 小计金额(格式化字符串,含货币符号) */
15
+ subtotal?: string;
16
+ /** 运费文案 */
17
+ shipping?: string;
18
+ /** 税费文案 */
19
+ taxes?: string;
20
+ /** 产品折扣金额(格式化字符串,含货币符号和负号) */
21
+ productDiscount?: string;
22
+ /** 订单折扣金额(格式化字符串,含货币符号和负号) */
23
+ orderDiscount?: string;
24
+ /** 折扣总计(格式化字符串,含货币符号和负号) */
25
+ discountTotal?: string;
26
+ /** 最终总价(格式化字符串,含货币符号) */
27
+ total?: string;
28
+ /** 结账按钮点击回调 */
29
+ onCheckout?: () => void;
30
+ /** 是否显示现金减免提示 */
31
+ showCashReduction?: boolean;
32
+ /** 是否显示分期付款信息 */
33
+ showInstallment?: boolean;
34
+ /** 分期付款支付方式图标列表 */
35
+ installmentIcons?: {
36
+ src: string;
37
+ alt?: string;
38
+ }[];
39
+ /** 文案覆盖,用于国际化 */
40
+ copy?: CartPriceSummaryCopy;
41
+ /** 根容器 className */
42
+ className?: string;
43
+ /** 语义化类名覆盖 */
44
+ classNames?: Partial<Record<'root' | 'couponToggle' | 'couponLink' | 'couponInput' | 'couponTags' | 'couponTag' | 'couponTagText' | 'couponTagRemove' | 'priceRow' | 'priceRowLabel' | 'priceRowValue' | 'discountBox' | 'discountRow' | 'discountRowValue' | 'discountTotalRow' | 'discountTotalValue' | 'divider' | 'totalRow' | 'totalValue' | 'checkoutButton' | 'cashReduction' | 'installment', string>>;
45
+ }
46
+ declare const CartPriceSummary: React.ForwardRefExoticComponent<CartPriceSummaryProps & React.RefAttributes<HTMLDivElement>>;
47
+ export default CartPriceSummary;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as t,jsxs as n}from"react/jsx-runtime";import*as R from"react";import{cn as a}from"../../../helpers/index.js";import{Button as I,Input as q,InputSlot as M}from"../../../components/index.js";import{DEFAULT_CART_COPY as A}from"../index.js";const D=({className:o})=>t("svg",{xmlns:"http://www.w3.org/2000/svg",className:a("shrink-0",o),width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:t("path",{fill:"currentColor",d:"M11.5286 5.52827C11.789 5.26792 12.211 5.26792 12.4713 5.52827C12.7317 5.78862 12.7317 6.21063 12.4713 6.47098L8.47134 10.471C8.211 10.7313 7.78899 10.7313 7.52864 10.471L3.52864 6.47098C3.26829 6.21063 3.26829 5.78862 3.52864 5.52827C3.78899 5.26792 4.211 5.26792 4.47134 5.52827L7.99999 9.05692L11.5286 5.52827Z"})}),E=({className:o})=>n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a("shrink-0",o),children:[t("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t("path",{d:"M7 7L13 13M13 7L7 13",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),m=({className:o})=>n("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:a("shrink-0",o),children:[t("circle",{cx:"10",cy:"10",r:"7.5",stroke:"currentColor",strokeWidth:"1.5"}),t("path",{d:"M10 9V14M10 6V6.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),C=R.forwardRef(({couponInputValue:o,onCouponInputChange:x,onCouponApply:b,appliedCoupons:s,onCouponRemove:N,subtotal:f,shipping:g,taxes:w,productDiscount:p,orderDiscount:u,discountTotal:l,total:c,onCheckout:y,showCashReduction:v,showInstallment:h,installmentIcons:d,copy:T,className:L,classNames:e={},...z},V)=>{const i={...A,...T},j=x!==void 0||b!==void 0||s&&s.length>0,[k,P]=R.useState(!1),S=p!==void 0||u!==void 0;return t("div",{ref:V,className:a("cart-price-summary-root","tablet:static rounded-t-box fixed inset-x-0 bottom-0 z-50 bg-white ","",L,e.root),...z,children:n("div",{className:"tablet:w-[74.8%] tablet:ml-auto tablet:gap-4 tablet:items-end flex flex-col gap-2 p-4",children:[j&&n("button",{type:"button",className:a("cart-price-summary-coupon-toggle","group flex w-full cursor-pointer items-center justify-between",e.couponToggle),onClick:()=>P(r=>!r),children:[t("span",{className:"text-info-tertiary tablet:text-base text-sm font-bold leading-[1.4] tracking-[-0.02em]",children:i.couponTitle||"Have a discount code?"}),n("span",{className:a("cart-price-summary-coupon-link","text-brand-primary text-brand-0 tablet:text-base flex items-center gap-1 text-sm font-bold leading-[1.2] tracking-[-0.04em]",e.couponLink),children:[i.couponLink||"Apply/Check",t(D,{className:a("text-brand-primary tablet:size-5 size-4 transition-transform duration-200",k&&"rotate-180")})]})]}),k&&n("div",{className:"flex flex-col items-end gap-2",children:[t(q,{size:"lg",type:"text",value:o,onChange:r=>x?.(r.target.value),placeholder:i.couponPlaceholder||"Enter Code",className:a("cart-price-summary-coupon-input","border-lines-primary tablet:h-[54px] h-[44px] w-full bg-transparent",e.couponInput),inputClassName:"text-sm tablet:text-base font-bold w-[315px]",children:t(M,{children:t("div",{className:"border-lines-primary flex items-center border-l pl-2 pr-4",children:t("button",{type:"button",className:"text-info-primary tablet:text-base cursor-pointer text-sm font-bold leading-[1.4] tracking-[-0.02em] underline",onClick:()=>b?.(o||""),children:i.couponApply||"Apply"})})})}),s&&s.length>0&&t("div",{className:a("cart-price-summary-coupon-tags","tablet:gap-2 flex flex-wrap gap-1",e.couponTags),children:s.map(r=>n("span",{className:a("cart-price-summary-coupon-tag","bg-container-secondary rounded-box-small flex items-center gap-1 py-1 pl-2 pr-1",e.couponTag),children:[t("span",{className:a("cart-price-summary-coupon-tag-text","text-info-tertiary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.couponTagText),children:r}),t("button",{type:"button",className:a("cart-price-summary-coupon-tag-remove","text-info-tertiary hover:text-info-primary flex size-5 cursor-pointer items-center justify-center",e.couponTagRemove),onClick:()=>N?.(r),children:t(E,{})})]},r))})]}),f!==void 0&&n("div",{className:a("cart-price-summary-price-row","text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.priceRow),children:[t("span",{className:e.priceRowLabel,children:i.subtotalLabel||"Subtotal:"}),t("span",{className:e.priceRowValue,children:f})]}),g!==void 0&&n("div",{className:a("cart-price-summary-price-row","text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.priceRow),children:[t("span",{className:e.priceRowLabel,children:i.shippingLabel||"Shipping:"}),t("span",{className:e.priceRowValue,children:g})]}),w!==void 0&&n("div",{className:a("cart-price-summary-price-row","text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.priceRow),children:[t("span",{className:e.priceRowLabel,children:i.taxesLabel||"Taxes:"}),t("span",{className:e.priceRowValue,children:w})]}),S&&n("div",{className:a("cart-price-summary-discount-box","bg-container-secondary rounded-box-small tablet:p-4 flex w-full flex-col gap-2 p-2",e.discountBox),children:[p!==void 0&&n("div",{className:a("cart-price-summary-discount-row","text-info-tertiary tablet:text-base flex w-full items-start justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.discountRow),children:[t("span",{className:e.priceRowLabel,children:i.productDiscountsLabel||"Product discounts:"}),t("span",{className:a("text-marketing-1",e.discountRowValue),children:p})]}),u!==void 0&&n("div",{className:a("cart-price-summary-discount-row","text-info-tertiary tablet:text-base flex w-full items-start justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",e.discountRow),children:[t("span",{className:e.priceRowLabel,children:i.orderDiscountLabel||"Order discount:"}),t("span",{className:a("text-marketing-1",e.discountRowValue),children:u})]})]}),(l!==void 0||c!==void 0)&&n("div",{className:"flex w-full flex-col gap-4",children:[l!==void 0&&n("div",{className:a("cart-price-summary-discount-total-row","flex w-full items-center justify-between whitespace-nowrap",e.discountTotalRow),children:[t("span",{className:"text-info-tertiary tablet:text-base text-sm font-bold leading-[1.4] tracking-[-0.02em]",children:i.discountTotalLabel||"Discount total:"}),t("span",{className:a("cart-price-summary-discount-total-value","text-marketing-1 tablet:text-base text-right text-sm font-bold leading-[1.2] tracking-[-0.04em]",e.discountTotalValue),children:l})]}),l!==void 0&&c!==void 0&&t("div",{className:a("cart-price-summary-divider","border-lines-primary w-full border-t",e.divider)}),c!==void 0&&n("div",{className:a("cart-price-summary-total-row","flex w-full items-center justify-between whitespace-nowrap",e.totalRow),children:[t("span",{className:"text-info-primary tablet:text-2xl text-xl font-bold leading-[1.2] tracking-[-0.04em]",children:i.totalLabel||"Total:"}),t("span",{className:a("cart-price-summary-total-value","text-info-primary tablet:text-2xl text-right text-xl font-bold leading-[1.2] tracking-[-0.04em]",e.totalValue),children:c})]})]}),v&&i.cashReductionText&&n("div",{className:a("cart-price-summary-cash-reduction-mobile","tablet:hidden flex items-start gap-1",e.cashReduction),children:[t("span",{className:"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",children:i.cashReductionText}),t(m,{className:"text-info-quaternary tablet:size-5 size-4"})]}),n("div",{className:a("tablet:flex-col tablet:gap-2 tablet:items-end flex items-center justify-between gap-4",!h&&"justify-end"),children:[y&&t(I,{variant:"primary",size:"lg",className:a("cart-price-summary-checkout-button tablet:-order-1 order-2",e.checkoutButton),onClick:y,children:i.checkOut||"Check Out"}),v&&i.cashReductionText&&n("div",{className:a("cart-price-summary-cash-reduction","tablet:flex hidden items-start gap-1",e.cashReduction),children:[t("span",{className:"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",children:i.cashReductionText}),t(m,{className:"text-info-quaternary tablet:size-5 size-4"})]}),h&&i.installmentText&&n("div",{className:a("cart-price-summary-installment","tablet:flex-row order-1 flex flex-col items-start gap-0.5",e.installment),children:[d&&d.length>0&&t("span",{className:"flex shrink-0 items-center",children:d.map((r,B)=>t("img",{src:r.src,alt:r.alt||"",className:"tablet:size-5 -mr-1 size-4 object-cover"},B))}),n("div",{className:"flex gap-1",children:[t("span",{className:"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]",children:i.installmentText}),t(m,{className:"text-info-quaternary tablet:size-5 size-4"})]})]})]})]})})});C.displayName="CartPriceSummary";var _=C;export{_ as default};
2
+ //# sourceMappingURL=CartPriceSummary.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartPriceSummary/CartPriceSummary.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../helpers/index.js'\nimport { Button, Input, InputSlot } from '../../../components/index.js'\nimport { DEFAULT_CART_COPY } from '../index.js'\nimport type { CartPriceSummaryCopy } from '../types.js'\n\n// \u2500\u2500 Icon: Chevron right \u2500\u2500\nconst DownIcon = ({ className }: { className?: string }) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n className={cn('shrink-0', className)}\n width=\"16\"\n height=\"16\"\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n >\n <path\n fill=\"currentColor\"\n d=\"M11.5286 5.52827C11.789 5.26792 12.211 5.26792 12.4713 5.52827C12.7317 5.78862 12.7317 6.21063 12.4713 6.47098L8.47134 10.471C8.211 10.7313 7.78899 10.7313 7.52864 10.471L3.52864 6.47098C3.26829 6.21063 3.26829 5.78862 3.52864 5.52827C3.78899 5.26792 4.211 5.26792 4.47134 5.52827L7.99999 9.05692L11.5286 5.52827Z\"\n />\n </svg>\n)\n\n// \u2500\u2500 Icon: Close (used in coupon tag remove button) \u2500\u2500\nconst CloseIcon = ({ className }: { className?: string }) => (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={cn('shrink-0', className)}\n >\n <circle cx=\"10\" cy=\"10\" r=\"7.5\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n <path d=\"M7 7L13 13M13 7L7 13\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n </svg>\n)\n\n// \u2500\u2500 Icon: Info \u2500\u2500\nconst InfoIcon = ({ className }: { className?: string }) => (\n <svg\n width=\"20\"\n height=\"20\"\n viewBox=\"0 0 20 20\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n className={cn('shrink-0', className)}\n >\n <circle cx=\"10\" cy=\"10\" r=\"7.5\" stroke=\"currentColor\" strokeWidth=\"1.5\" />\n <path d=\"M10 9V14M10 6V6.5\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" />\n </svg>\n)\n\nexport interface CartPriceSummaryProps {\n /** \u6298\u6263\u7801\u8F93\u5165\u6846\u7684\u503C */\n couponInputValue?: string\n /** \u6298\u6263\u7801\u8F93\u5165\u53D8\u5316\u56DE\u8C03 */\n onCouponInputChange?: (value: string) => void\n /** \u70B9\u51FB\u5E94\u7528\u6298\u6263\u7801\u56DE\u8C03\uFF0C\u53C2\u6570\u4E3A\u8F93\u5165\u6846\u4E2D\u7684\u6298\u6263\u7801 */\n onCouponApply?: (code: string) => void\n /** \u5DF2\u5E94\u7528\u7684\u6298\u6263\u7801\u5217\u8868 */\n appliedCoupons?: string[]\n /** \u79FB\u9664\u6298\u6263\u7801\u56DE\u8C03\uFF0C\u53C2\u6570\u4E3A\u6298\u6263\u7801 */\n onCouponRemove?: (code: string) => void\n\n /** \u5C0F\u8BA1\u91D1\u989D\uFF08\u683C\u5F0F\u5316\u5B57\u7B26\u4E32\uFF0C\u542B\u8D27\u5E01\u7B26\u53F7\uFF09 */\n subtotal?: string\n /** \u8FD0\u8D39\u6587\u6848 */\n shipping?: string\n /** \u7A0E\u8D39\u6587\u6848 */\n taxes?: string\n\n /** \u4EA7\u54C1\u6298\u6263\u91D1\u989D\uFF08\u683C\u5F0F\u5316\u5B57\u7B26\u4E32\uFF0C\u542B\u8D27\u5E01\u7B26\u53F7\u548C\u8D1F\u53F7\uFF09 */\n productDiscount?: string\n /** \u8BA2\u5355\u6298\u6263\u91D1\u989D\uFF08\u683C\u5F0F\u5316\u5B57\u7B26\u4E32\uFF0C\u542B\u8D27\u5E01\u7B26\u53F7\u548C\u8D1F\u53F7\uFF09 */\n orderDiscount?: string\n\n /** \u6298\u6263\u603B\u8BA1\uFF08\u683C\u5F0F\u5316\u5B57\u7B26\u4E32\uFF0C\u542B\u8D27\u5E01\u7B26\u53F7\u548C\u8D1F\u53F7\uFF09 */\n discountTotal?: string\n /** \u6700\u7EC8\u603B\u4EF7\uFF08\u683C\u5F0F\u5316\u5B57\u7B26\u4E32\uFF0C\u542B\u8D27\u5E01\u7B26\u53F7\uFF09 */\n total?: string\n\n /** \u7ED3\u8D26\u6309\u94AE\u70B9\u51FB\u56DE\u8C03 */\n onCheckout?: () => void\n\n /** \u662F\u5426\u663E\u793A\u73B0\u91D1\u51CF\u514D\u63D0\u793A */\n showCashReduction?: boolean\n /** \u662F\u5426\u663E\u793A\u5206\u671F\u4ED8\u6B3E\u4FE1\u606F */\n showInstallment?: boolean\n /** \u5206\u671F\u4ED8\u6B3E\u652F\u4ED8\u65B9\u5F0F\u56FE\u6807\u5217\u8868 */\n installmentIcons?: { src: string; alt?: string }[]\n\n /** \u6587\u6848\u8986\u76D6\uFF0C\u7528\u4E8E\u56FD\u9645\u5316 */\n copy?: CartPriceSummaryCopy\n /** \u6839\u5BB9\u5668 className */\n className?: string\n /** \u8BED\u4E49\u5316\u7C7B\u540D\u8986\u76D6 */\n classNames?: Partial<\n Record<\n | 'root'\n | 'couponToggle'\n | 'couponLink'\n | 'couponInput'\n | 'couponTags'\n | 'couponTag'\n | 'couponTagText'\n | 'couponTagRemove'\n | 'priceRow'\n | 'priceRowLabel'\n | 'priceRowValue'\n | 'discountBox'\n | 'discountRow'\n | 'discountRowValue'\n | 'discountTotalRow'\n | 'discountTotalValue'\n | 'divider'\n | 'totalRow'\n | 'totalValue'\n | 'checkoutButton'\n | 'cashReduction'\n | 'installment',\n string\n >\n >\n}\n\nconst CartPriceSummary = React.forwardRef<HTMLDivElement, CartPriceSummaryProps>(\n (\n {\n couponInputValue,\n onCouponInputChange,\n onCouponApply,\n appliedCoupons,\n onCouponRemove,\n\n subtotal,\n shipping,\n taxes,\n\n productDiscount,\n orderDiscount,\n\n discountTotal,\n total,\n\n onCheckout,\n\n showCashReduction,\n showInstallment,\n installmentIcons,\n\n copy,\n className,\n classNames = {},\n ...props\n },\n ref\n ) => {\n const c = { ...DEFAULT_CART_COPY, ...copy }\n\n const hasCouponSection =\n onCouponInputChange !== undefined || onCouponApply !== undefined || (appliedCoupons && appliedCoupons.length > 0)\n\n const [couponExpanded, setCouponExpanded] = React.useState(false)\n\n const hasDiscounts = productDiscount !== undefined || orderDiscount !== undefined\n\n return (\n <div\n ref={ref}\n className={cn(\n 'cart-price-summary-root',\n 'tablet:static rounded-t-box fixed inset-x-0 bottom-0 z-50 bg-white ',\n '',\n className,\n classNames.root\n )}\n {...props}\n >\n <div className=\"tablet:w-[74.8%] tablet:ml-auto tablet:gap-4 tablet:items-end flex flex-col gap-2 p-4\">\n {/* \u6298\u6263\u7801\u5165\u53E3 */}\n {hasCouponSection && (\n <button\n type=\"button\"\n className={cn(\n 'cart-price-summary-coupon-toggle',\n 'group flex w-full cursor-pointer items-center justify-between',\n classNames.couponToggle\n )}\n onClick={() => setCouponExpanded(prev => !prev)}\n >\n <span className=\"text-info-tertiary tablet:text-base text-sm font-bold leading-[1.4] tracking-[-0.02em]\">\n {c.couponTitle || 'Have a discount code?'}\n </span>\n <span\n className={cn(\n 'cart-price-summary-coupon-link',\n 'text-brand-primary text-brand-0 tablet:text-base flex items-center gap-1 text-sm font-bold leading-[1.2] tracking-[-0.04em]',\n classNames.couponLink\n )}\n >\n {c.couponLink || 'Apply/Check'}\n <DownIcon\n className={cn(\n 'text-brand-primary tablet:size-5 size-4 transition-transform duration-200',\n couponExpanded && 'rotate-180'\n )}\n />\n </span>\n </button>\n )}\n\n {/* \u6298\u6263\u7801\u8F93\u5165\u4E0E\u6807\u7B7E */}\n {couponExpanded && (\n <div className=\"flex flex-col items-end gap-2\">\n {/* \u8F93\u5165\u6846 + \u5E94\u7528\u6309\u94AE */}\n <Input\n size=\"lg\"\n type=\"text\"\n value={couponInputValue}\n onChange={e => onCouponInputChange?.(e.target.value)}\n placeholder={c.couponPlaceholder || 'Enter Code'}\n className={cn(\n 'cart-price-summary-coupon-input',\n 'border-lines-primary tablet:h-[54px] h-[44px] w-full bg-transparent',\n classNames.couponInput\n )}\n inputClassName=\"text-sm tablet:text-base font-bold w-[315px]\"\n >\n <InputSlot>\n <div className=\"border-lines-primary flex items-center border-l pl-2 pr-4\">\n <button\n type=\"button\"\n className=\"text-info-primary tablet:text-base cursor-pointer text-sm font-bold leading-[1.4] tracking-[-0.02em] underline\"\n onClick={() => onCouponApply?.(couponInputValue || '')}\n >\n {c.couponApply || 'Apply'}\n </button>\n </div>\n </InputSlot>\n </Input>\n\n {/* \u5DF2\u5E94\u7528\u6298\u6263\u7801\u6807\u7B7E */}\n {appliedCoupons && appliedCoupons.length > 0 && (\n <div\n className={cn(\n 'cart-price-summary-coupon-tags',\n 'tablet:gap-2 flex flex-wrap gap-1',\n classNames.couponTags\n )}\n >\n {appliedCoupons.map(code => (\n <span\n key={code}\n className={cn(\n 'cart-price-summary-coupon-tag',\n 'bg-container-secondary rounded-box-small flex items-center gap-1 py-1 pl-2 pr-1',\n classNames.couponTag\n )}\n >\n <span\n className={cn(\n 'cart-price-summary-coupon-tag-text',\n 'text-info-tertiary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.couponTagText\n )}\n >\n {code}\n </span>\n <button\n type=\"button\"\n className={cn(\n 'cart-price-summary-coupon-tag-remove',\n 'text-info-tertiary hover:text-info-primary flex size-5 cursor-pointer items-center justify-center',\n classNames.couponTagRemove\n )}\n onClick={() => onCouponRemove?.(code)}\n >\n <CloseIcon />\n </button>\n </span>\n ))}\n </div>\n )}\n </div>\n )}\n\n {/* \u5C0F\u8BA1 */}\n {subtotal !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-price-row',\n 'text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.priceRow\n )}\n >\n <span className={classNames.priceRowLabel}>{c.subtotalLabel || 'Subtotal:'}</span>\n <span className={classNames.priceRowValue}>{subtotal}</span>\n </div>\n )}\n\n {/* \u8FD0\u8D39 */}\n {shipping !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-price-row',\n 'text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.priceRow\n )}\n >\n <span className={classNames.priceRowLabel}>{c.shippingLabel || 'Shipping:'}</span>\n <span className={classNames.priceRowValue}>{shipping}</span>\n </div>\n )}\n\n {/* \u7A0E\u8D39 */}\n {taxes !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-price-row',\n 'text-info-tertiary tablet:text-base flex w-full items-center justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.priceRow\n )}\n >\n <span className={classNames.priceRowLabel}>{c.taxesLabel || 'Taxes:'}</span>\n <span className={classNames.priceRowValue}>{taxes}</span>\n </div>\n )}\n\n {/* \u6298\u6263\u6C47\u603B */}\n {hasDiscounts && (\n <div\n className={cn(\n 'cart-price-summary-discount-box',\n 'bg-container-secondary rounded-box-small tablet:p-4 flex w-full flex-col gap-2 p-2',\n classNames.discountBox\n )}\n >\n {productDiscount !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-discount-row',\n 'text-info-tertiary tablet:text-base flex w-full items-start justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.discountRow\n )}\n >\n <span className={classNames.priceRowLabel}>{c.productDiscountsLabel || 'Product discounts:'}</span>\n <span className={cn('text-marketing-1', classNames.discountRowValue)}>{productDiscount}</span>\n </div>\n )}\n {orderDiscount !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-discount-row',\n 'text-info-tertiary tablet:text-base flex w-full items-start justify-between whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]',\n classNames.discountRow\n )}\n >\n <span className={classNames.priceRowLabel}>{c.orderDiscountLabel || 'Order discount:'}</span>\n <span className={cn('text-marketing-1', classNames.discountRowValue)}>{orderDiscount}</span>\n </div>\n )}\n </div>\n )}\n\n {/* \u6298\u6263\u603B\u8BA1\u4E0E\u6700\u7EC8\u603B\u4EF7 */}\n {(discountTotal !== undefined || total !== undefined) && (\n <div className=\"flex w-full flex-col gap-4\">\n {discountTotal !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-discount-total-row',\n 'flex w-full items-center justify-between whitespace-nowrap',\n classNames.discountTotalRow\n )}\n >\n <span className=\"text-info-tertiary tablet:text-base text-sm font-bold leading-[1.4] tracking-[-0.02em]\">\n {c.discountTotalLabel || 'Discount total:'}\n </span>\n <span\n className={cn(\n 'cart-price-summary-discount-total-value',\n 'text-marketing-1 tablet:text-base text-right text-sm font-bold leading-[1.2] tracking-[-0.04em]',\n classNames.discountTotalValue\n )}\n >\n {discountTotal}\n </span>\n </div>\n )}\n\n {discountTotal !== undefined && total !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-divider',\n 'border-lines-primary w-full border-t',\n classNames.divider\n )}\n />\n )}\n\n {total !== undefined && (\n <div\n className={cn(\n 'cart-price-summary-total-row',\n 'flex w-full items-center justify-between whitespace-nowrap',\n classNames.totalRow\n )}\n >\n <span className=\"text-info-primary tablet:text-2xl text-xl font-bold leading-[1.2] tracking-[-0.04em]\">\n {c.totalLabel || 'Total:'}\n </span>\n <span\n className={cn(\n 'cart-price-summary-total-value',\n 'text-info-primary tablet:text-2xl text-right text-xl font-bold leading-[1.2] tracking-[-0.04em]',\n classNames.totalValue\n )}\n >\n {total}\n </span>\n </div>\n )}\n </div>\n )}\n {/* \u79FB\u52A8\u7AEF\u73B0\u91D1\u51CF\u514D\u63D0\u793A */}\n {showCashReduction && c.cashReductionText && (\n <div\n className={cn(\n 'cart-price-summary-cash-reduction-mobile',\n 'tablet:hidden flex items-start gap-1',\n classNames.cashReduction\n )}\n >\n <span className=\"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]\">\n {c.cashReductionText}\n </span>\n <InfoIcon className=\"text-info-quaternary tablet:size-5 size-4\" />\n </div>\n )}\n <div\n className={cn(\n 'tablet:flex-col tablet:gap-2 tablet:items-end flex items-center justify-between gap-4',\n !showInstallment && 'justify-end'\n )}\n >\n {/* \u7ED3\u8D26\u6309\u94AE */}\n {onCheckout && (\n <Button\n variant=\"primary\"\n size=\"lg\"\n className={cn('cart-price-summary-checkout-button tablet:-order-1 order-2', classNames.checkoutButton)}\n onClick={onCheckout}\n >\n {c.checkOut || 'Check Out'}\n </Button>\n )}\n\n {/* \u73B0\u91D1\u51CF\u514D\u63D0\u793A */}\n {showCashReduction && c.cashReductionText && (\n <div\n className={cn(\n 'cart-price-summary-cash-reduction',\n 'tablet:flex hidden items-start gap-1',\n classNames.cashReduction\n )}\n >\n <span className=\"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]\">\n {c.cashReductionText}\n </span>\n <InfoIcon className=\"text-info-quaternary tablet:size-5 size-4\" />\n </div>\n )}\n\n {/* \u5206\u671F\u4ED8\u6B3E\u4FE1\u606F */}\n {showInstallment && c.installmentText && (\n <div\n className={cn(\n 'cart-price-summary-installment',\n 'tablet:flex-row order-1 flex flex-col items-start gap-0.5',\n classNames.installment\n )}\n >\n {installmentIcons && installmentIcons.length > 0 && (\n <span className=\"flex shrink-0 items-center\">\n {installmentIcons.map((icon, index) => (\n <img\n key={index}\n src={icon.src}\n alt={icon.alt || ''}\n className=\"tablet:size-5 -mr-1 size-4 object-cover\"\n />\n ))}\n </span>\n )}\n <div className=\"flex gap-1\">\n <span className=\"text-info-quaternary tablet:text-base whitespace-nowrap text-sm font-bold leading-[1.4] tracking-[-0.02em]\">\n {c.installmentText}\n </span>\n <InfoIcon className=\"text-info-quaternary tablet:size-5 size-4\" />\n </div>\n </div>\n )}\n </div>\n </div>\n </div>\n )\n }\n)\n\nCartPriceSummary.displayName = 'CartPriceSummary'\n\nexport default CartPriceSummary\n"],
5
+ "mappings": "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",
6
+ "names": ["jsx", "jsxs", "React", "cn", "Button", "Input", "InputSlot", "DEFAULT_CART_COPY", "DownIcon", "className", "CloseIcon", "InfoIcon", "CartPriceSummary", "couponInputValue", "onCouponInputChange", "onCouponApply", "appliedCoupons", "onCouponRemove", "subtotal", "shipping", "taxes", "productDiscount", "orderDiscount", "discountTotal", "total", "onCheckout", "showCashReduction", "showInstallment", "installmentIcons", "copy", "classNames", "props", "ref", "c", "hasCouponSection", "couponExpanded", "setCouponExpanded", "hasDiscounts", "prev", "e", "code", "icon", "index", "CartPriceSummary_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartPriceSummary.js';
2
+ export type { CartPriceSummaryProps } from './CartPriceSummary.js';
@@ -0,0 +1,2 @@
1
+ import{default as m}from"./CartPriceSummary.js";export{m as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartPriceSummary/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartPriceSummary.js'\nexport type { CartPriceSummaryProps } from './CartPriceSummary.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ import type { CartSummaryHeaderCopy } from '../types.js';
3
+ export interface CartSummaryHeaderProps {
4
+ /** 标题文案,支持 {var} 模板变量 */
5
+ title: string;
6
+ /** 描述文案,支持 {var} 模板变量 */
7
+ description?: string;
8
+ /** 模板变量替换映射 */
9
+ vars?: Record<string, string>;
10
+ /** 操作按钮点击回调 */
11
+ onActionClick?: () => void;
12
+ /** 是否为空购物车状态 */
13
+ isEmpty?: boolean;
14
+ /** 空购物车标题文案,支持 {var} 模板变量 */
15
+ emptyTitle?: string;
16
+ /** 空购物车描述文案,支持 {var} 模板变量 */
17
+ emptyDescription?: string;
18
+ /** 文案集中管理,包含 actionText */
19
+ copy?: CartSummaryHeaderCopy;
20
+ /** 根容器 className */
21
+ className?: string;
22
+ /** 语义化样式覆盖 */
23
+ classNames?: Partial<Record<'root' | 'title' | 'description' | 'action', string>>;
24
+ }
25
+ declare const CartSummaryHeader: React.ForwardRefExoticComponent<CartSummaryHeaderProps & React.RefAttributes<HTMLDivElement>>;
26
+ export default CartSummaryHeader;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as o,jsxs as N}from"react/jsx-runtime";import*as T from"react";import{cn as e}from"../../../helpers/index.js";import{replaceTemplate as s}from"../../Listing/utils/textFormat.js";import{Heading as S,Text as v,Button as R}from"../../../components/index.js";import{DEFAULT_CART_COPY as A}from"../index.js";const c=T.forwardRef(({title:l,description:i,vars:a,onActionClick:d,isEmpty:r,emptyTitle:f,emptyDescription:n,copy:y,className:g,classNames:t={},...x},C)=>{const u={...A,...y},H=s(r?f??"":l,a??{}),m=(r?n:i)?s(r?n??"":i??"",a??{}):void 0,p=u.actionText;return N("div",{ref:C,className:e("laptop:gap-4 flex flex-col items-center gap-2 text-center",g,t.root),...x,children:[o(S,{size:4,className:e("text-info-primary font-bold",t.title),children:H}),m&&o(v,{html:m,className:e("laptop:text-[18px] text-info-primary text-base",t.description)}),p&&o(R,{size:"lg",className:e(t.action),onClick:d,children:p})]})});c.displayName="CartSummaryHeader";var z=c;export{z as default};
2
+ //# sourceMappingURL=CartSummaryHeader.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartSummaryHeader/CartSummaryHeader.tsx"],
4
+ "sourcesContent": ["'use client'\n\nimport * as React from 'react'\nimport { cn } from '../../../helpers/index.js'\nimport { replaceTemplate } from '../../Listing/utils/textFormat.js'\nimport { Heading, Text, Button } from '../../../components/index.js'\nimport { DEFAULT_CART_COPY } from '../index.js'\nimport type { CartSummaryHeaderCopy } from '../types.js'\n\nexport interface CartSummaryHeaderProps {\n /** \u6807\u9898\u6587\u6848\uFF0C\u652F\u6301 {var} \u6A21\u677F\u53D8\u91CF */\n title: string\n /** \u63CF\u8FF0\u6587\u6848\uFF0C\u652F\u6301 {var} \u6A21\u677F\u53D8\u91CF */\n description?: string\n /** \u6A21\u677F\u53D8\u91CF\u66FF\u6362\u6620\u5C04 */\n vars?: Record<string, string>\n /** \u64CD\u4F5C\u6309\u94AE\u70B9\u51FB\u56DE\u8C03 */\n onActionClick?: () => void\n\n /** \u662F\u5426\u4E3A\u7A7A\u8D2D\u7269\u8F66\u72B6\u6001 */\n isEmpty?: boolean\n /** \u7A7A\u8D2D\u7269\u8F66\u6807\u9898\u6587\u6848\uFF0C\u652F\u6301 {var} \u6A21\u677F\u53D8\u91CF */\n emptyTitle?: string\n /** \u7A7A\u8D2D\u7269\u8F66\u63CF\u8FF0\u6587\u6848\uFF0C\u652F\u6301 {var} \u6A21\u677F\u53D8\u91CF */\n emptyDescription?: string\n\n /** \u6587\u6848\u96C6\u4E2D\u7BA1\u7406\uFF0C\u5305\u542B actionText */\n copy?: CartSummaryHeaderCopy\n /** \u6839\u5BB9\u5668 className */\n className?: string\n /** \u8BED\u4E49\u5316\u6837\u5F0F\u8986\u76D6 */\n classNames?: Partial<Record<'root' | 'title' | 'description' | 'action', string>>\n}\n\nconst CartSummaryHeader = React.forwardRef<HTMLDivElement, CartSummaryHeaderProps>(\n (\n {\n title,\n description,\n vars,\n onActionClick,\n isEmpty,\n emptyTitle,\n emptyDescription,\n copy,\n className,\n classNames = {},\n ...props\n },\n ref\n ) => {\n const c = { ...DEFAULT_CART_COPY, ...copy }\n const renderedTitle = replaceTemplate(isEmpty ? (emptyTitle ?? '') : title, vars ?? {})\n const renderedDescription = (isEmpty ? emptyDescription : description)\n ? replaceTemplate(isEmpty ? (emptyDescription ?? '') : (description ?? ''), vars ?? {})\n : undefined\n const resolvedActionText = c.actionText\n\n return (\n <div\n ref={ref}\n className={cn('laptop:gap-4 flex flex-col items-center gap-2 text-center', className, classNames.root)}\n {...props}\n >\n <Heading size={4} className={cn('text-info-primary font-bold', classNames.title)}>\n {renderedTitle}\n </Heading>\n {renderedDescription && (\n <Text\n html={renderedDescription}\n className={cn('laptop:text-[18px] text-info-primary text-base', classNames.description)}\n />\n )}\n {resolvedActionText && (\n <Button size=\"lg\" className={cn(classNames.action)} onClick={onActionClick}>\n {resolvedActionText}\n </Button>\n )}\n </div>\n )\n }\n)\n\nCartSummaryHeader.displayName = 'CartSummaryHeader'\n\nexport default CartSummaryHeader\n"],
5
+ "mappings": "aA2DM,OAKE,OAAAA,EALF,QAAAC,MAAA,oBAzDN,UAAYC,MAAW,QACvB,OAAS,MAAAC,MAAU,4BACnB,OAAS,mBAAAC,MAAuB,oCAChC,OAAS,WAAAC,EAAS,QAAAC,EAAM,UAAAC,MAAc,+BACtC,OAAS,qBAAAC,MAAyB,cA4BlC,MAAMC,EAAoBP,EAAM,WAC9B,CACE,CACE,MAAAQ,EACA,YAAAC,EACA,KAAAC,EACA,cAAAC,EACA,QAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,KAAAC,EACA,UAAAC,EACA,WAAAC,EAAa,CAAC,EACd,GAAGC,CACL,EACAC,IACG,CACH,MAAMC,EAAI,CAAE,GAAGd,EAAmB,GAAGS,CAAK,EACpCM,EAAgBnB,EAAgBU,EAAWC,GAAc,GAAML,EAAOE,GAAQ,CAAC,CAAC,EAChFY,GAAuBV,EAAUE,EAAmBL,GACtDP,EAAgBU,EAAWE,GAAoB,GAAOL,GAAe,GAAKC,GAAQ,CAAC,CAAC,EACpF,OACEa,EAAqBH,EAAE,WAE7B,OACErB,EAAC,OACC,IAAKoB,EACL,UAAWlB,EAAG,4DAA6De,EAAWC,EAAW,IAAI,EACpG,GAAGC,EAEJ,UAAApB,EAACK,EAAA,CAAQ,KAAM,EAAG,UAAWF,EAAG,8BAA+BgB,EAAW,KAAK,EAC5E,SAAAI,EACH,EACCC,GACCxB,EAACM,EAAA,CACC,KAAMkB,EACN,UAAWrB,EAAG,iDAAkDgB,EAAW,WAAW,EACxF,EAEDM,GACCzB,EAACO,EAAA,CAAO,KAAK,KAAK,UAAWJ,EAAGgB,EAAW,MAAM,EAAG,QAASN,EAC1D,SAAAY,EACH,GAEJ,CAEJ,CACF,EAEAhB,EAAkB,YAAc,oBAEhC,IAAOiB,EAAQjB",
6
+ "names": ["jsx", "jsxs", "React", "cn", "replaceTemplate", "Heading", "Text", "Button", "DEFAULT_CART_COPY", "CartSummaryHeader", "title", "description", "vars", "onActionClick", "isEmpty", "emptyTitle", "emptyDescription", "copy", "className", "classNames", "props", "ref", "c", "renderedTitle", "renderedDescription", "resolvedActionText", "CartSummaryHeader_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ export { default } from './CartSummaryHeader.js';
2
+ export type { CartSummaryHeaderProps } from './CartSummaryHeader.js';
@@ -0,0 +1,2 @@
1
+ import{default as a}from"./CartSummaryHeader.js";export{a as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../src/biz-components/CartDetail/CartSummaryHeader/index.ts"],
4
+ "sourcesContent": ["export { default } from './CartSummaryHeader.js'\nexport type { CartSummaryHeaderProps } from './CartSummaryHeader.js'\n"],
5
+ "mappings": "AAAA,OAAS,WAAAA,MAAe",
6
+ "names": ["default"]
7
+ }
@@ -0,0 +1,10 @@
1
+ import * as React from 'react';
2
+ export interface CartThirdPartyProps {
3
+ title?: string;
4
+ /** 自定义内容区,业务侧自行渲染(如分期方式、支付方式等) */
5
+ children?: React.ReactNode;
6
+ className?: string;
7
+ classNames?: Partial<Record<'root' | 'title', string>>;
8
+ }
9
+ declare const CartThirdParty: React.ForwardRefExoticComponent<CartThirdPartyProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartThirdParty;
@@ -0,0 +1,2 @@
1
+ "use client";import{jsx as n,jsxs as f}from"react/jsx-runtime";import*as s from"react";import{cn as a}from"../../../helpers/index.js";import{Heading as c}from"../../../components/index.js";const e=s.forwardRef(({title:r,children:i,className:o,classNames:t={},...d},l)=>f("div",{ref:l,className:a("cart-third-party-root flex flex-col gap-2",o,t.root),...d,children:[r&&n(c,{size:2,className:a("cart-third-party-title text-info-primary font-bold",t.title),children:r}),i]}));e.displayName="CartThirdParty";var y=e;export{y as default};
2
+ //# sourceMappingURL=CartThirdParty.js.map