@anker-in/headless-ui 1.0.26-alpha.1762331489014 → 1.0.26-alpha.1762411688784

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 (390) hide show
  1. package/dist/cjs/biz-components/AiuiProvider/index.js +1 -1
  2. package/dist/cjs/biz-components/AiuiProvider/index.js.map +2 -2
  3. package/dist/cjs/biz-components/AplusDesc/index.js +2 -0
  4. package/dist/cjs/biz-components/AplusDesc/index.js.map +7 -0
  5. package/dist/cjs/biz-components/DownLoad/index.js +2 -0
  6. package/dist/cjs/biz-components/DownLoad/index.js.map +7 -0
  7. package/dist/cjs/biz-components/Faq/Faq.js +1 -1
  8. package/dist/cjs/biz-components/Faq/Faq.js.map +2 -2
  9. package/dist/cjs/biz-components/Features/index.js +2 -0
  10. package/dist/cjs/biz-components/Features/index.js.map +7 -0
  11. package/dist/cjs/biz-components/FootCharger/index.js +2 -0
  12. package/dist/cjs/biz-components/FootCharger/index.js.map +7 -0
  13. package/dist/cjs/biz-components/GiftBox/index.js +2 -0
  14. package/dist/cjs/biz-components/GiftBox/index.js.map +7 -0
  15. package/dist/cjs/biz-components/Graphic/index.js +1 -1
  16. package/dist/cjs/biz-components/Graphic/index.js.map +2 -2
  17. package/dist/cjs/biz-components/GraphicMore/index.js +2 -0
  18. package/dist/cjs/biz-components/GraphicMore/index.js.map +7 -0
  19. package/dist/cjs/biz-components/HeroBanner/Countdown.js +2 -0
  20. package/dist/cjs/biz-components/HeroBanner/Countdown.js.map +7 -0
  21. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
  22. package/dist/cjs/biz-components/HeroBanner/HeroBanner.js.map +3 -3
  23. package/dist/cjs/biz-components/HeroBanner/types.js.map +1 -1
  24. package/dist/cjs/biz-components/Listing/BizProductProvider.js +2 -0
  25. package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +7 -0
  26. package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
  27. package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
  28. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
  29. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
  30. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
  31. package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
  32. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js +2 -0
  33. package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
  34. package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js +2 -0
  35. package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
  36. package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js +2 -0
  37. package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
  38. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
  39. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
  40. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
  41. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
  42. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
  43. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
  44. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
  45. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
  46. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
  47. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
  48. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
  49. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
  50. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
  51. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
  52. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
  53. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
  54. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
  55. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
  56. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
  57. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
  58. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
  59. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
  60. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
  61. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
  62. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
  63. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
  64. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
  65. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
  66. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
  67. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
  68. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
  69. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
  70. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
  71. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
  72. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js +2 -0
  73. package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
  74. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +2 -0
  75. package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +7 -0
  76. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
  77. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
  78. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
  79. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
  80. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +2 -0
  81. package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
  82. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js +2 -0
  83. package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
  84. package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js +2 -0
  85. package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
  86. package/dist/cjs/biz-components/Listing/components/index.js +2 -0
  87. package/dist/cjs/biz-components/Listing/components/index.js.map +7 -0
  88. package/dist/cjs/biz-components/Listing/const.js +2 -0
  89. package/dist/cjs/biz-components/Listing/const.js.map +7 -0
  90. package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js +2 -0
  91. package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
  92. package/dist/cjs/biz-components/Listing/hooks/use-variant.js +2 -0
  93. package/dist/cjs/biz-components/Listing/hooks/use-variant.js.map +7 -0
  94. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +2 -0
  95. package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +7 -0
  96. package/dist/cjs/biz-components/Listing/hooks/useCopy.js +2 -0
  97. package/dist/cjs/biz-components/Listing/hooks/useCopy.js.map +7 -0
  98. package/dist/cjs/biz-components/Listing/index.js +2 -0
  99. package/dist/cjs/biz-components/Listing/index.js.map +7 -0
  100. package/dist/cjs/biz-components/Listing/types/graphql.js +2 -0
  101. package/dist/cjs/biz-components/Listing/types/graphql.js.map +7 -0
  102. package/dist/cjs/biz-components/Listing/types/product.js +2 -0
  103. package/dist/cjs/biz-components/Listing/types/product.js.map +7 -0
  104. package/dist/cjs/biz-components/Listing/types/productMetafields.d.js +2 -0
  105. package/dist/cjs/biz-components/Listing/types/productMetafields.d.js.map +7 -0
  106. package/dist/cjs/biz-components/Listing/types/type-helper.js +2 -0
  107. package/dist/cjs/biz-components/Listing/types/type-helper.js.map +7 -0
  108. package/dist/cjs/biz-components/Listing/types.js +2 -0
  109. package/dist/cjs/biz-components/Listing/types.js.map +7 -0
  110. package/dist/cjs/biz-components/Listing/utils/helper.js +2 -0
  111. package/dist/cjs/biz-components/Listing/utils/helper.js.map +7 -0
  112. package/dist/cjs/biz-components/Listing/utils/index.js +2 -0
  113. package/dist/cjs/biz-components/Listing/utils/index.js.map +7 -0
  114. package/dist/cjs/biz-components/Listing/utils/textFormat.js +2 -0
  115. package/dist/cjs/biz-components/Listing/utils/textFormat.js.map +7 -0
  116. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  117. package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
  118. package/dist/cjs/biz-components/SelectStore/index.js +2 -0
  119. package/dist/cjs/biz-components/SelectStore/index.js.map +7 -0
  120. package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
  121. package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
  122. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  123. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  124. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
  125. package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  126. package/dist/cjs/biz-components/index.js +1 -1
  127. package/dist/cjs/biz-components/index.js.map +3 -3
  128. package/dist/cjs/components/checkbox.js +1 -1
  129. package/dist/cjs/components/checkbox.js.map +3 -3
  130. package/dist/cjs/helpers/ScrollLoadVideo.js +1 -1
  131. package/dist/cjs/helpers/ScrollLoadVideo.js.map +3 -3
  132. package/dist/cjs/hooks/useRollout.js +2 -0
  133. package/dist/cjs/hooks/useRollout.js.map +7 -0
  134. package/dist/cjs/src/biz-components/AiuiProvider/index.d.ts +4 -0
  135. package/dist/cjs/src/biz-components/AplusDesc/index.d.ts +23 -0
  136. package/dist/cjs/src/biz-components/DownLoad/index.d.ts +21 -0
  137. package/dist/cjs/src/biz-components/Features/index.d.ts +27 -0
  138. package/dist/cjs/src/biz-components/FootCharger/index.d.ts +13 -0
  139. package/dist/cjs/src/biz-components/GiftBox/index.d.ts +18 -0
  140. package/dist/cjs/src/biz-components/GraphicMore/index.d.ts +23 -0
  141. package/dist/cjs/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
  142. package/dist/cjs/src/biz-components/HeroBanner/types.d.ts +6 -0
  143. package/dist/cjs/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
  144. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
  145. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
  146. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
  147. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
  148. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
  149. package/dist/cjs/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
  150. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
  151. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
  152. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
  153. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
  154. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
  155. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
  156. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
  157. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
  158. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
  159. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
  160. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
  161. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
  162. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
  163. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
  164. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
  165. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
  166. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
  167. package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
  168. package/dist/cjs/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
  169. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
  170. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
  171. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
  172. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
  173. package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
  174. package/dist/cjs/src/biz-components/Listing/components/index.d.ts +3 -0
  175. package/dist/cjs/src/biz-components/Listing/const.d.ts +29 -0
  176. package/dist/cjs/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
  177. package/dist/cjs/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
  178. package/dist/cjs/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
  179. package/dist/cjs/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
  180. package/dist/cjs/src/biz-components/Listing/index.d.ts +4 -0
  181. package/dist/cjs/src/biz-components/Listing/types/graphql.d.ts +7473 -0
  182. package/dist/cjs/src/biz-components/Listing/types/product.d.ts +141 -0
  183. package/dist/cjs/src/biz-components/Listing/types/type-helper.d.ts +5 -0
  184. package/dist/cjs/src/biz-components/Listing/types.d.ts +28 -0
  185. package/dist/cjs/src/biz-components/Listing/utils/helper.d.ts +36 -0
  186. package/dist/cjs/src/biz-components/Listing/utils/index.d.ts +37 -0
  187. package/dist/cjs/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
  188. package/dist/cjs/src/biz-components/SelectStore/index.d.ts +21 -0
  189. package/dist/cjs/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
  190. package/dist/cjs/src/biz-components/index.d.ts +24 -0
  191. package/dist/cjs/src/components/checkbox.d.ts +1 -0
  192. package/dist/cjs/src/hooks/useRollout.d.ts +14 -0
  193. package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
  194. package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
  195. package/dist/esm/biz-components/AplusDesc/index.js +2 -0
  196. package/dist/esm/biz-components/AplusDesc/index.js.map +7 -0
  197. package/dist/esm/biz-components/DownLoad/index.js +2 -0
  198. package/dist/esm/biz-components/DownLoad/index.js.map +7 -0
  199. package/dist/esm/biz-components/Faq/Faq.js +1 -1
  200. package/dist/esm/biz-components/Faq/Faq.js.map +3 -3
  201. package/dist/esm/biz-components/Features/index.js +2 -0
  202. package/dist/esm/biz-components/Features/index.js.map +7 -0
  203. package/dist/esm/biz-components/FootCharger/index.js +2 -0
  204. package/dist/esm/biz-components/FootCharger/index.js.map +7 -0
  205. package/dist/esm/biz-components/GiftBox/index.js +2 -0
  206. package/dist/esm/biz-components/GiftBox/index.js.map +7 -0
  207. package/dist/esm/biz-components/Graphic/index.js +1 -1
  208. package/dist/esm/biz-components/Graphic/index.js.map +2 -2
  209. package/dist/esm/biz-components/GraphicMore/index.js +2 -0
  210. package/dist/esm/biz-components/GraphicMore/index.js.map +7 -0
  211. package/dist/esm/biz-components/HeroBanner/Countdown.js +2 -0
  212. package/dist/esm/biz-components/HeroBanner/Countdown.js.map +7 -0
  213. package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
  214. package/dist/esm/biz-components/HeroBanner/HeroBanner.js.map +3 -3
  215. package/dist/esm/biz-components/Listing/BizProductProvider.js +2 -0
  216. package/dist/esm/biz-components/Listing/BizProductProvider.js.map +7 -0
  217. package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
  218. package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
  219. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
  220. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
  221. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
  222. package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
  223. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js +2 -0
  224. package/dist/esm/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
  225. package/dist/esm/biz-components/Listing/components/PaidShipping/type.js +2 -0
  226. package/dist/esm/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
  227. package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js +2 -0
  228. package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
  229. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
  230. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
  231. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
  232. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
  233. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
  234. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
  235. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
  236. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
  237. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
  238. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
  239. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
  240. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
  241. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
  242. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
  243. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
  244. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
  245. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
  246. package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
  247. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
  248. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
  249. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
  250. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
  251. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
  252. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
  253. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
  254. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
  255. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
  256. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
  257. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
  258. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
  259. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
  260. package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
  261. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
  262. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
  263. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js +1 -0
  264. package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
  265. package/dist/esm/biz-components/Listing/components/ProductCard/index.js +2 -0
  266. package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +7 -0
  267. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
  268. package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
  269. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
  270. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
  271. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +1 -0
  272. package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
  273. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js +2 -0
  274. package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
  275. package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js +1 -0
  276. package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
  277. package/dist/esm/biz-components/Listing/components/index.js +2 -0
  278. package/dist/esm/biz-components/Listing/components/index.js.map +7 -0
  279. package/dist/esm/biz-components/Listing/const.js +2 -0
  280. package/dist/esm/biz-components/Listing/const.js.map +7 -0
  281. package/dist/esm/biz-components/Listing/hooks/use-variant-media.js +2 -0
  282. package/dist/esm/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
  283. package/dist/esm/biz-components/Listing/hooks/use-variant.js +2 -0
  284. package/dist/esm/biz-components/Listing/hooks/use-variant.js.map +7 -0
  285. package/dist/esm/biz-components/Listing/hooks/useBenefits.js +2 -0
  286. package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +7 -0
  287. package/dist/esm/biz-components/Listing/hooks/useCopy.js +2 -0
  288. package/dist/esm/biz-components/Listing/hooks/useCopy.js.map +7 -0
  289. package/dist/esm/biz-components/Listing/index.js +2 -0
  290. package/dist/esm/biz-components/Listing/index.js.map +7 -0
  291. package/dist/esm/biz-components/Listing/types/graphql.js +2 -0
  292. package/dist/esm/biz-components/Listing/types/graphql.js.map +7 -0
  293. package/dist/esm/biz-components/Listing/types/product.js +2 -0
  294. package/dist/esm/biz-components/Listing/types/product.js.map +7 -0
  295. package/dist/esm/biz-components/Listing/types/productMetafields.d.js +2 -0
  296. package/dist/esm/biz-components/Listing/types/productMetafields.d.js.map +7 -0
  297. package/dist/esm/biz-components/Listing/types/type-helper.js +1 -0
  298. package/dist/esm/biz-components/Listing/types/type-helper.js.map +7 -0
  299. package/dist/esm/biz-components/Listing/types.js +1 -0
  300. package/dist/esm/biz-components/Listing/types.js.map +7 -0
  301. package/dist/esm/biz-components/Listing/utils/helper.js +2 -0
  302. package/dist/esm/biz-components/Listing/utils/helper.js.map +7 -0
  303. package/dist/esm/biz-components/Listing/utils/index.js +2 -0
  304. package/dist/esm/biz-components/Listing/utils/index.js.map +7 -0
  305. package/dist/esm/biz-components/Listing/utils/textFormat.js +2 -0
  306. package/dist/esm/biz-components/Listing/utils/textFormat.js.map +7 -0
  307. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
  308. package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
  309. package/dist/esm/biz-components/SelectStore/index.js +2 -0
  310. package/dist/esm/biz-components/SelectStore/index.js.map +7 -0
  311. package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
  312. package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
  313. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
  314. package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
  315. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +9 -9
  316. package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
  317. package/dist/esm/biz-components/index.js +1 -1
  318. package/dist/esm/biz-components/index.js.map +2 -2
  319. package/dist/esm/components/checkbox.js +1 -1
  320. package/dist/esm/components/checkbox.js.map +3 -3
  321. package/dist/esm/helpers/ScrollLoadVideo.js +1 -1
  322. package/dist/esm/helpers/ScrollLoadVideo.js.map +3 -3
  323. package/dist/esm/hooks/useRollout.js +2 -0
  324. package/dist/esm/hooks/useRollout.js.map +7 -0
  325. package/dist/esm/src/biz-components/AiuiProvider/index.d.ts +4 -0
  326. package/dist/esm/src/biz-components/AplusDesc/index.d.ts +23 -0
  327. package/dist/esm/src/biz-components/DownLoad/index.d.ts +21 -0
  328. package/dist/esm/src/biz-components/Features/index.d.ts +27 -0
  329. package/dist/esm/src/biz-components/FootCharger/index.d.ts +13 -0
  330. package/dist/esm/src/biz-components/GiftBox/index.d.ts +18 -0
  331. package/dist/esm/src/biz-components/GraphicMore/index.d.ts +23 -0
  332. package/dist/esm/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
  333. package/dist/esm/src/biz-components/HeroBanner/types.d.ts +6 -0
  334. package/dist/esm/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
  335. package/dist/esm/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
  336. package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
  337. package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
  338. package/dist/esm/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
  339. package/dist/esm/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
  340. package/dist/esm/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
  341. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
  342. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
  343. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
  344. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
  345. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
  346. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
  347. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
  348. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
  349. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
  350. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
  351. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
  352. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
  353. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
  354. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
  355. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
  356. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
  357. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
  358. package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
  359. package/dist/esm/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
  360. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
  361. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
  362. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
  363. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
  364. package/dist/esm/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
  365. package/dist/esm/src/biz-components/Listing/components/index.d.ts +3 -0
  366. package/dist/esm/src/biz-components/Listing/const.d.ts +29 -0
  367. package/dist/esm/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
  368. package/dist/esm/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
  369. package/dist/esm/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
  370. package/dist/esm/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
  371. package/dist/esm/src/biz-components/Listing/index.d.ts +4 -0
  372. package/dist/esm/src/biz-components/Listing/types/graphql.d.ts +7473 -0
  373. package/dist/esm/src/biz-components/Listing/types/product.d.ts +141 -0
  374. package/dist/esm/src/biz-components/Listing/types/type-helper.d.ts +5 -0
  375. package/dist/esm/src/biz-components/Listing/types.d.ts +28 -0
  376. package/dist/esm/src/biz-components/Listing/utils/helper.d.ts +36 -0
  377. package/dist/esm/src/biz-components/Listing/utils/index.d.ts +37 -0
  378. package/dist/esm/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
  379. package/dist/esm/src/biz-components/SelectStore/index.d.ts +21 -0
  380. package/dist/esm/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
  381. package/dist/esm/src/biz-components/index.d.ts +24 -0
  382. package/dist/esm/src/components/checkbox.d.ts +1 -0
  383. package/dist/esm/src/hooks/useRollout.d.ts +14 -0
  384. package/dist/tokens/anker.css +1 -0
  385. package/dist/tokens/base.css +1 -1
  386. package/dist/tokens/eufy.css +1 -0
  387. package/dist/tokens/eufyMake.css +1 -0
  388. package/dist/tokens/solix.css +1 -0
  389. package/dist/tokens/soundcore.css +1 -0
  390. package/package.json +3 -1
@@ -0,0 +1,141 @@
1
+ import type { CurrencyCode, Image, Media, Product as ShopifyProduct, ProductVariant as ShopifyProductVariant } from './graphql';
2
+ import { DiscountType } from '../const';
3
+ export type ProductPrice = {
4
+ amount: number;
5
+ currencyCode: CurrencyCode;
6
+ };
7
+ export type ProductOption = {
8
+ __typename?: 'MultipleChoiceOption';
9
+ id: string;
10
+ name: string;
11
+ values: ProductOptionValues[];
12
+ };
13
+ export type ProductOptionValues = {
14
+ label: string;
15
+ hexColors?: string[];
16
+ };
17
+ export type ProductVariant = {
18
+ id: string | number;
19
+ options: ProductOption[];
20
+ sku: string;
21
+ metafields?: Record<string, any>;
22
+ price: ProductPrice;
23
+ product: Product;
24
+ coupons: VariantCoupon[];
25
+ weight?: number;
26
+ payload?: any;
27
+ } & Omit<ShopifyProductVariant, 'options' | 'metafields' | 'price'>;
28
+ export type Product = {
29
+ path?: string;
30
+ images: Image[];
31
+ media: ProductMedia[];
32
+ variants: ProductVariant[];
33
+ price: ProductPrice;
34
+ options: ProductOption[];
35
+ metafields?: {
36
+ [key: string]: any;
37
+ };
38
+ slug: string;
39
+ payload?: any;
40
+ } & Omit<ShopifyProduct, 'metafields' | 'images' | 'variants' | 'price' | 'options' | 'media'>;
41
+ export type GetProductBody = {
42
+ handles: string;
43
+ locale?: string;
44
+ };
45
+ export type ProductTypes = {
46
+ product: Product;
47
+ getBody: GetProductBody;
48
+ };
49
+ export type GetAllProductPathsOperation<T extends ProductTypes = ProductTypes> = {
50
+ data: {
51
+ products: Pick<T['product'], 'path'>[];
52
+ };
53
+ variables: {
54
+ first?: number;
55
+ };
56
+ };
57
+ export type GetAllProductsOperation<T extends ProductTypes = ProductTypes> = {
58
+ data: {
59
+ products: T['product'][];
60
+ };
61
+ variables: {
62
+ relevance?: 'featured' | 'best_selling' | 'newest';
63
+ ids?: string[];
64
+ first?: number;
65
+ };
66
+ };
67
+ export type GetProductOperation<T extends ProductTypes = ProductTypes> = {
68
+ data: {
69
+ product?: T['product'];
70
+ };
71
+ variables: {
72
+ path: string;
73
+ slug?: never;
74
+ } | {
75
+ path?: never;
76
+ slug: string;
77
+ };
78
+ };
79
+ export type Options = Record<string, string>;
80
+ export type ProductMedia = Media & {
81
+ sources?: {
82
+ url: string;
83
+ altText: string;
84
+ }[];
85
+ image?: {
86
+ url: string;
87
+ altText: string;
88
+ };
89
+ };
90
+ export type VariantCoupon = {
91
+ title: string;
92
+ starts_at: string;
93
+ ends_at: string | null;
94
+ variant_shopify_id: number;
95
+ value_type: DiscountType;
96
+ value: string;
97
+ currency: string;
98
+ fixed_value: string;
99
+ value_style: string;
100
+ variant_price4wscode: number;
101
+ discount_type: string;
102
+ amazon_deal: boolean;
103
+ cdi_id: number;
104
+ cdi_updated_at: string;
105
+ };
106
+ export type ScriptDiscount = {
107
+ type: DiscountType;
108
+ excludeSkus: string[];
109
+ discount: number;
110
+ };
111
+ export type FreeGift = {
112
+ title: string;
113
+ note: string;
114
+ soldOutLabel: string;
115
+ freeLabel: string;
116
+ giftList: ProductVariant[];
117
+ count: number;
118
+ showCoupon: boolean;
119
+ [key: string]: any;
120
+ };
121
+ export type BundleListItem = {
122
+ id: string;
123
+ price: number;
124
+ comparePrice: number;
125
+ savings: number;
126
+ variants: {
127
+ price: number;
128
+ quantity: number;
129
+ label: string;
130
+ variant: ProductVariant;
131
+ }[];
132
+ };
133
+ export type Bundle = {
134
+ title: string;
135
+ soldOutLabel: string;
136
+ youSaveText: string;
137
+ showCoupon: boolean;
138
+ bundleList: BundleListItem[];
139
+ showAtListing: boolean;
140
+ [key: string]: any;
141
+ };
@@ -0,0 +1,5 @@
1
+ export type PartialRecord<K extends string | number | symbol, T> = Partial<Record<K, T>>;
2
+ export type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
3
+ export type Replace<T, K extends keyof T, V> = Omit<T, K> & {
4
+ [P in K]: V;
5
+ };
@@ -0,0 +1,28 @@
1
+ import type { Product } from './types/product';
2
+ export type CompareProductItem = {
3
+ handle: string;
4
+ shortName: string;
5
+ compareProductCollection?: string;
6
+ };
7
+ export type CompareItem = {
8
+ product: Product;
9
+ } & CompareProductItem;
10
+ export type CompareData = {
11
+ data: {
12
+ availableCompareList: Array<CompareItem>;
13
+ currentProductCompareData?: CompareItem;
14
+ options: {
15
+ value: string;
16
+ text: string;
17
+ }[];
18
+ specificationKeys?: string[];
19
+ };
20
+ show: boolean;
21
+ };
22
+ export type DiscountData = {
23
+ codeSavings: number;
24
+ scriptSavings: number;
25
+ totalSavings: number;
26
+ comparePrice: number;
27
+ finalPrice: number;
28
+ };
@@ -0,0 +1,36 @@
1
+ import type { Product, ProductMedia, ProductVariant } from '../types/product';
2
+ export type SchemaVariant = {
3
+ variant: {
4
+ handle: string;
5
+ sku: string;
6
+ };
7
+ };
8
+ export declare function isObjEmpty(obj?: Record<string, any>): boolean;
9
+ export declare function atobID(id: string): string | undefined;
10
+ export declare function btoaID(id: string, type?: 'ProductVariant' | 'Product'): string;
11
+ export declare const getThemeLocale: (locale: string) => string;
12
+ /**
13
+ * 生成 metafieldIdentifiers 查询参数
14
+ */
15
+ export declare const getNormalCoupon: ({ variant }: {
16
+ variant?: ProductVariant;
17
+ }) => import("../types/product").VariantCoupon | undefined;
18
+ export declare function replaceUmlaut(str: string): string;
19
+ export declare function handle(str: string): string;
20
+ export declare function getVariantImageIndex({ mediaList, variant, }: {
21
+ variant: ProductVariant;
22
+ mediaList: ProductMedia[];
23
+ }): null | number;
24
+ export declare function getVariantMediaList({ product, variant }: {
25
+ variant: ProductVariant;
26
+ product: Product;
27
+ }): ProductMedia[];
28
+ export declare const checkItemAvailableForProduct: ({ product, item, variant, }: {
29
+ product: Product;
30
+ variant: ProductVariant;
31
+ item?: {
32
+ includeTags?: string[];
33
+ includeProducts?: SchemaVariant[];
34
+ excludeProducts?: SchemaVariant[];
35
+ };
36
+ }) => string | boolean | SchemaVariant | undefined;
@@ -0,0 +1,37 @@
1
+ import type { Options, Product, ProductOption, ProductVariant } from '../types/product';
2
+ export declare function optionsConstructor(options: ProductOption[]): Options;
3
+ /**
4
+ * Returns the first available variant of a product.
5
+ * If no variant is available, it returns the first variant in the list.
6
+ *
7
+ * @param product - The product object.
8
+ * @returns The first available variant of the product.
9
+ */
10
+ export declare const getFirstAvailableVariant: (product: Product) => ProductVariant;
11
+ export declare const getVariantBySku: (product: Product, sku: string) => ProductVariant | undefined;
12
+ export declare const languageTerritory: (locale: string) => string;
13
+ export declare function formatPrice({ amount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
14
+ amount: number;
15
+ currencyCode: string;
16
+ locale: string;
17
+ maximumFractionDigits?: number;
18
+ minimumFractionDigits?: number;
19
+ removeTrailingZeros?: boolean;
20
+ }): string;
21
+ export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
22
+ baseAmount: number;
23
+ amount: number;
24
+ currencyCode: string;
25
+ locale: string;
26
+ maximumFractionDigits?: number;
27
+ minimumFractionDigits?: number;
28
+ removeTrailingZeros?: boolean;
29
+ }): {
30
+ price: string;
31
+ basePrice: string | undefined;
32
+ discount: string | null;
33
+ };
34
+ export declare function getVariantFromSelectedOptions({ product, selectedOptions, }: {
35
+ product: Product;
36
+ selectedOptions: Record<string, string>;
37
+ }): ProductVariant | undefined;
@@ -0,0 +1,73 @@
1
+ /**
2
+ * 字符串模板替换工具函数
3
+ * 使用单次遍历和正则表达式缓存来提高性能
4
+ */
5
+ type ReplacementMap = Record<string, string>;
6
+ /**
7
+ * 字符串模板替换函数
8
+ * @param template 模板字符串,如 "Hello {name}, you have {count} messages"
9
+ * @param replacements 替换对象,如 { name: "John", count: "5" }
10
+ * @param beginSeg 占位符开始符号,默认为 "{"
11
+ * @param endSeg 占位符结束符号,默认为 "}"
12
+ * @returns 替换后的字符串
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * replaceTemplate("Hello {name}!", { name: "World" })
17
+ * // => "Hello World!"
18
+ *
19
+ * replaceTemplate("Price: {{amount}}", { amount: "$100" }, "{{", "}}")
20
+ * // => "Price: $100"
21
+ *
22
+ * replaceTemplate("You have {count} items", { count: "5", unused: "test" })
23
+ * // => "You have 5 items" (unused 键会被忽略)
24
+ *
25
+ * replaceTemplate("Hello ${name}!", { name: "World" }, "${", "}")
26
+ * // => "Hello World!"
27
+ * ```
28
+ */
29
+ export declare function replaceTemplate(template: string, replacements: ReplacementMap, beginSeg?: string, endSeg?: string): string;
30
+ /**
31
+ * 批量字符串模板替换函数(用于一次性替换多个模板)
32
+ * @param templates 模板字符串数组
33
+ * @param replacements 替换对象
34
+ * @param beginSeg 占位符开始符号,默认为 "{"
35
+ * @param endSeg 占位符结束符号,默认为 "}"
36
+ * @returns 替换后的字符串数组
37
+ *
38
+ * @example
39
+ * ```ts
40
+ * replaceTemplates(
41
+ * ["Hello {name}!", "You have {count} items"],
42
+ * { name: "John", count: "5" }
43
+ * )
44
+ * // => ["Hello John!", "You have 5 items"]
45
+ *
46
+ * replaceTemplates(
47
+ * ["Hello {{name}}!", "Price: {{amount}}"],
48
+ * { name: "John", amount: "$100" },
49
+ * "{{",
50
+ * "}}"
51
+ * )
52
+ * // => ["Hello John!", "Price: $100"]
53
+ * ```
54
+ */
55
+ export declare function replaceTemplates(templates: string[], replacements: ReplacementMap, beginSeg?: string, endSeg?: string): string[];
56
+ /**
57
+ * 从模板字符串中提取所有占位符键名
58
+ * @param template 模板字符串
59
+ * @param beginSeg 占位符开始符号,默认为 "{"
60
+ * @param endSeg 占位符结束符号,默认为 "}"
61
+ * @returns 占位符键名数组(去重)
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * extractPlaceholders("Hello {name}, you have {count} new {count} messages")
66
+ * // => ["name", "count"]
67
+ *
68
+ * extractPlaceholders("Hello {{name}}, price is {{amount}}", "{{", "}}")
69
+ * // => ["name", "amount"]
70
+ * ```
71
+ */
72
+ export declare function extractPlaceholders(template: string, beginSeg?: string, endSeg?: string): string[];
73
+ export {};
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import type { Img } from '../../types/props.js';
3
+ export type SelectStoreDataType = {
4
+ title: string;
5
+ desc: string;
6
+ img: Img;
7
+ mobileImg: Img;
8
+ padImg: Img;
9
+ miniImg: Img;
10
+ };
11
+ type SelectStoreType = {
12
+ data: {
13
+ list: SelectStoreDataType[];
14
+ };
15
+ className?: string;
16
+ };
17
+ declare const _default: import("react").ForwardRefExoticComponent<Omit<SelectStoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
18
+ className?: string | undefined;
19
+ data?: Record<string, any> | undefined;
20
+ } & import("react").RefAttributes<any>>;
21
+ export default _default;
@@ -8,7 +8,7 @@ export declare function formatPrice({ amount, currencyCode, locale, maximumFract
8
8
  maximumFractionDigits?: number;
9
9
  minimumFractionDigits?: number;
10
10
  removeTrailingZeros?: boolean;
11
- }): string;
11
+ }): string | null;
12
12
  export declare function formatVariantPrice({ amount, baseAmount, currencyCode, locale, maximumFractionDigits, minimumFractionDigits, removeTrailingZeros, }: {
13
13
  baseAmount: number;
14
14
  amount: number;
@@ -19,8 +19,14 @@ export declare function formatVariantPrice({ amount, baseAmount, currencyCode, l
19
19
  removeTrailingZeros?: boolean;
20
20
  }): {
21
21
  price: string;
22
- basePrice: string | undefined;
22
+ basePrice: string;
23
+ discount: string;
24
+ discountAmount?: undefined;
25
+ } | {
26
+ price: string | null;
27
+ basePrice: string | null | undefined;
23
28
  discount: string | null;
29
+ discountAmount: string | null | undefined;
24
30
  };
25
31
  type EventType = {
26
32
  primaryButton?: (v: any, index: number, data: ShelfDisplayType) => void;
@@ -46,6 +52,8 @@ export interface ShelfDisplayItem {
46
52
  data?: ShelfDisplayItem[];
47
53
  custom_name?: string;
48
54
  custom_description?: string;
55
+ custom_image?: string;
56
+ custom_theme?: string;
49
57
  }
50
58
  export type ShelfDisplayType = {
51
59
  title?: string;
@@ -91,6 +99,7 @@ export interface ShelfDisplayProps {
91
99
  slidesPerView: number;
92
100
  };
93
101
  };
102
+ metafields?: any;
94
103
  isDisplayGudgments?: boolean;
95
104
  isDisplayBackImage?: boolean;
96
105
  }
@@ -34,6 +34,30 @@ export { default as CreativeModule } from './CreativeModule/index.js';
34
34
  export { default as GraphicOverlay } from './GraphicOverlay/index.js';
35
35
  export { default as Specs } from './Specs/index.js';
36
36
  export { default as TabGroup } from './TabsGroup/index.js';
37
+ export { default as Listing } from './Listing/index.js';
38
+ export { default as BizProductProvider } from './Listing/BizProductProvider.js';
39
+ export { default as PurchaseBar } from './Listing/components/PurchaseBar/index.js';
40
+ export { default as ProductActions } from './Listing/components/PurchaseBar/ProductActions/index.js';
41
+ export { default as ProductCard } from './Listing/components/ProductCard/index.js';
42
+ export { default as ProductBenefitsTabs } from './Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js';
43
+ export { default as ProductHighlight } from './Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js';
44
+ export { default as ProductFreeGift } from './Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js';
45
+ export { default as ProductExchangePurchase } from './Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js';
46
+ export { default as ProductOptions } from './Listing/components/ProductCard/ProductDetail/ProductOptions/index.js';
47
+ export { default as ProductBundle } from './Listing/components/ProductCard/ProductDetail/ProductBundle/index.js';
48
+ export { default as ProductGridBox } from './Listing/components/ProductCard/ProductGridBox.js';
49
+ export { default as ProductGallery } from './Listing/components/ProductCard/ProductGallery/index.js';
50
+ export { default as ProductDetail } from './Listing/components/ProductCard/ProductDetail/index.js';
51
+ export { default as ProductSummary } from './Listing/components/ProductCard/ProductSummary/index.js';
52
+ export { default as BenefitsTab } from './Listing/components/ProductCard/ProductDetail/BenefitsTab';
53
+ export { default as PaidShipping } from './Listing/components/PaidShipping/index.js';
54
+ export { default as GraphicMore } from './GraphicMore/index.js';
55
+ export { default as Features } from './Features/index.js';
56
+ export { default as AplusDesc } from './AplusDesc/index.js';
57
+ export { default as GiftBox } from './GiftBox/index.js';
58
+ export { default as SelectStore } from './SelectStore/index.js';
59
+ export { default as DownLoad } from './DownLoad/index.js';
60
+ export { default as FootCharger } from './FootCharger/index.js';
37
61
  export { default as ProductCompare } from './ProductCompare/index.js';
38
62
  export type { ProductCompareProps, ProductItemData } from './ProductCompare/index.js';
39
63
  export { default as Ksp } from './Ksp/index.js';
@@ -5,6 +5,7 @@ declare const checkboxVariants: (props?: ({
5
5
  size?: "base" | "lg" | "sm" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  interface CheckboxProps extends React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>, VariantProps<typeof checkboxVariants> {
8
+ iconClassName?: string;
8
9
  }
9
10
  declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
10
11
  export default Checkbox;
@@ -0,0 +1,14 @@
1
+ import { type MutableRefObject } from 'react';
2
+ type UseRolloutOptions = IntersectionObserverInit & {
3
+ /**
4
+ * When true, once the target enters the viewport the first time,
5
+ * the observer disconnects and `inView` stays true.
6
+ */
7
+ once?: boolean;
8
+ };
9
+ /**
10
+ * Observe when an element enters the viewport.
11
+ * Returns a ref to attach to the element and a boolean indicating visibility.
12
+ */
13
+ export declare function useRollout<T extends HTMLElement = HTMLElement>(options?: UseRolloutOptions): [MutableRefObject<T | null>, boolean];
14
+ export {};
@@ -2,6 +2,7 @@
2
2
  --btn-bg-active-color: var(--brand-color-0);
3
3
 
4
4
  --btn-radius: 0;
5
+ --box-radius: 0;
5
6
  --radius: 0em;
6
7
 
7
8
  --brand-gradient-color-0: linear-gradient(90deg, var(--btn-bg-active-color) 0%, var(--btn-bg-active-color) 100%);
@@ -152,7 +152,7 @@
152
152
 
153
153
  .swiper-horizontal>.swiper-pagination-bullets,
154
154
  .swiper-pagination-bullets.swiper-pagination-horizontal {
155
- bottom: -24px!important;
155
+ /* bottom: -24px!important; */
156
156
  }
157
157
 
158
158
  .swiper-pagination-bullets-dynamic .swiper-pagination-bullet-active-next,
@@ -6,6 +6,7 @@
6
6
 
7
7
 
8
8
  --btn-radius: 24px;
9
+ --box-radius: 16px;
9
10
 
10
11
  --radius: 40px;
11
12
  --brand-color-0: #005d8e;
@@ -4,6 +4,7 @@
4
4
 
5
5
  --brand-gradient-color-0: linear-gradient(90deg, var(--btn-bg-active-color) 0%, var(--btn-bg-active-color) 100%);
6
6
  --btn-radius: 24px;
7
+ --box-radius: 16px;
7
8
  --radius: 0em;
8
9
 
9
10
  --brand-color-0: #3adb67;
@@ -3,6 +3,7 @@
3
3
  --brand-gradient-color-0: linear-gradient(90deg, #2C7ED0 0%, #00A9E1 43%, #00DB84 100%);
4
4
 
5
5
  --btn-radius: -0px;
6
+ --box-radius: 0;
6
7
  --radius: 0em;
7
8
 
8
9
  --brand-color-0: #00BEFA;
@@ -4,6 +4,7 @@
4
4
  --brand-gradient-color-0: linear-gradient(90deg, var(--btn-bg-active-color) 0%, var(--btn-bg-active-color) 100%);
5
5
 
6
6
  --btn-radius: 24px;
7
+ --box-radius: 16px;
7
8
 
8
9
  --radius: 0em;
9
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anker-in/headless-ui",
3
- "version": "1.0.26-alpha.1762331489014",
3
+ "version": "1.0.26-alpha.1762411688784",
4
4
  "type": "commonjs",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "types": "./dist/cjs/index.d.ts",
@@ -111,6 +111,8 @@
111
111
  "autoprefixer": "^10.4.19",
112
112
  "class-variance-authority": "^0.7.0",
113
113
  "clsx": "^2.1.1",
114
+ "copy-to-clipboard": "^3.3.3",
115
+ "decimal.js": "^10.6.0",
114
116
  "embla-carousel": "^8.6.0",
115
117
  "embla-carousel-autoplay": "^8.5.2",
116
118
  "embla-carousel-class-names": "^8.5.2",