@anker-in/headless-ui 1.0.26-alpha.1762331489014 → 1.0.26-alpha.1762396031065
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.
- package/dist/cjs/biz-components/AiuiProvider/index.js +1 -1
- package/dist/cjs/biz-components/AiuiProvider/index.js.map +2 -2
- package/dist/cjs/biz-components/AplusDesc/index.js +2 -0
- package/dist/cjs/biz-components/AplusDesc/index.js.map +7 -0
- package/dist/cjs/biz-components/DownLoad/index.js +2 -0
- package/dist/cjs/biz-components/DownLoad/index.js.map +7 -0
- package/dist/cjs/biz-components/Faq/Faq.js +1 -1
- package/dist/cjs/biz-components/Faq/Faq.js.map +2 -2
- package/dist/cjs/biz-components/Features/index.js +2 -0
- package/dist/cjs/biz-components/Features/index.js.map +7 -0
- package/dist/cjs/biz-components/FootCharger/index.js +2 -0
- package/dist/cjs/biz-components/FootCharger/index.js.map +7 -0
- package/dist/cjs/biz-components/GiftBox/index.js +2 -0
- package/dist/cjs/biz-components/GiftBox/index.js.map +7 -0
- package/dist/cjs/biz-components/Graphic/index.js +1 -1
- package/dist/cjs/biz-components/Graphic/index.js.map +2 -2
- package/dist/cjs/biz-components/GraphicMore/index.js +2 -0
- package/dist/cjs/biz-components/GraphicMore/index.js.map +7 -0
- package/dist/cjs/biz-components/HeroBanner/Countdown.js +2 -0
- package/dist/cjs/biz-components/HeroBanner/Countdown.js.map +7 -0
- package/dist/cjs/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/cjs/biz-components/HeroBanner/HeroBanner.js.map +3 -3
- package/dist/cjs/biz-components/HeroBanner/types.js.map +1 -1
- package/dist/cjs/biz-components/Listing/BizProductProvider.js +2 -0
- package/dist/cjs/biz-components/Listing/BizProductProvider.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/ProductCard/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js +2 -0
- package/dist/cjs/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/components/index.js +2 -0
- package/dist/cjs/biz-components/Listing/components/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/const.js +2 -0
- package/dist/cjs/biz-components/Listing/const.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/use-variant.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/useBenefits.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/useBenefits.js.map +7 -0
- package/dist/cjs/biz-components/Listing/hooks/useCopy.js +2 -0
- package/dist/cjs/biz-components/Listing/hooks/useCopy.js.map +7 -0
- package/dist/cjs/biz-components/Listing/index.js +2 -0
- package/dist/cjs/biz-components/Listing/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/graphql.js +2 -0
- package/dist/cjs/biz-components/Listing/types/graphql.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/product.js +2 -0
- package/dist/cjs/biz-components/Listing/types/product.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/productMetafields.d.js +2 -0
- package/dist/cjs/biz-components/Listing/types/productMetafields.d.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types/type-helper.js +2 -0
- package/dist/cjs/biz-components/Listing/types/type-helper.js.map +7 -0
- package/dist/cjs/biz-components/Listing/types.js +2 -0
- package/dist/cjs/biz-components/Listing/types.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/helper.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/helper.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/index.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/index.js.map +7 -0
- package/dist/cjs/biz-components/Listing/utils/textFormat.js +2 -0
- package/dist/cjs/biz-components/Listing/utils/textFormat.js.map +7 -0
- package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/cjs/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
- package/dist/cjs/biz-components/SelectStore/index.js +2 -0
- package/dist/cjs/biz-components/SelectStore/index.js.map +7 -0
- package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/index.js.map +3 -3
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
- package/dist/cjs/biz-components/index.js +1 -1
- package/dist/cjs/biz-components/index.js.map +3 -3
- package/dist/cjs/components/checkbox.js +1 -1
- package/dist/cjs/components/checkbox.js.map +3 -3
- package/dist/cjs/helpers/ScrollLoadVideo.js +1 -1
- package/dist/cjs/helpers/ScrollLoadVideo.js.map +3 -3
- package/dist/cjs/hooks/useRollout.js +2 -0
- package/dist/cjs/hooks/useRollout.js.map +7 -0
- package/dist/cjs/src/biz-components/AiuiProvider/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/AplusDesc/index.d.ts +23 -0
- package/dist/cjs/src/biz-components/DownLoad/index.d.ts +21 -0
- package/dist/cjs/src/biz-components/Features/index.d.ts +27 -0
- package/dist/cjs/src/biz-components/FootCharger/index.d.ts +13 -0
- package/dist/cjs/src/biz-components/GiftBox/index.d.ts +18 -0
- package/dist/cjs/src/biz-components/GraphicMore/index.d.ts +23 -0
- package/dist/cjs/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
- package/dist/cjs/src/biz-components/HeroBanner/types.d.ts +6 -0
- package/dist/cjs/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
- package/dist/cjs/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
- package/dist/cjs/src/biz-components/Listing/components/index.d.ts +3 -0
- package/dist/cjs/src/biz-components/Listing/const.d.ts +29 -0
- package/dist/cjs/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
- package/dist/cjs/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
- package/dist/cjs/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/index.d.ts +4 -0
- package/dist/cjs/src/biz-components/Listing/types/graphql.d.ts +7473 -0
- package/dist/cjs/src/biz-components/Listing/types/product.d.ts +141 -0
- package/dist/cjs/src/biz-components/Listing/types/type-helper.d.ts +5 -0
- package/dist/cjs/src/biz-components/Listing/types.d.ts +28 -0
- package/dist/cjs/src/biz-components/Listing/utils/helper.d.ts +36 -0
- package/dist/cjs/src/biz-components/Listing/utils/index.d.ts +37 -0
- package/dist/cjs/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
- package/dist/cjs/src/biz-components/SelectStore/index.d.ts +21 -0
- package/dist/cjs/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
- package/dist/cjs/src/biz-components/index.d.ts +24 -0
- package/dist/cjs/src/components/checkbox.d.ts +1 -0
- package/dist/cjs/src/hooks/useRollout.d.ts +14 -0
- package/dist/esm/biz-components/AiuiProvider/index.js +1 -1
- package/dist/esm/biz-components/AiuiProvider/index.js.map +2 -2
- package/dist/esm/biz-components/AplusDesc/index.js +2 -0
- package/dist/esm/biz-components/AplusDesc/index.js.map +7 -0
- package/dist/esm/biz-components/DownLoad/index.js +2 -0
- package/dist/esm/biz-components/DownLoad/index.js.map +7 -0
- package/dist/esm/biz-components/Faq/Faq.js +1 -1
- package/dist/esm/biz-components/Faq/Faq.js.map +3 -3
- package/dist/esm/biz-components/Features/index.js +2 -0
- package/dist/esm/biz-components/Features/index.js.map +7 -0
- package/dist/esm/biz-components/FootCharger/index.js +2 -0
- package/dist/esm/biz-components/FootCharger/index.js.map +7 -0
- package/dist/esm/biz-components/GiftBox/index.js +2 -0
- package/dist/esm/biz-components/GiftBox/index.js.map +7 -0
- package/dist/esm/biz-components/Graphic/index.js +1 -1
- package/dist/esm/biz-components/Graphic/index.js.map +2 -2
- package/dist/esm/biz-components/GraphicMore/index.js +2 -0
- package/dist/esm/biz-components/GraphicMore/index.js.map +7 -0
- package/dist/esm/biz-components/HeroBanner/Countdown.js +2 -0
- package/dist/esm/biz-components/HeroBanner/Countdown.js.map +7 -0
- package/dist/esm/biz-components/HeroBanner/HeroBanner.js +1 -1
- package/dist/esm/biz-components/HeroBanner/HeroBanner.js.map +3 -3
- package/dist/esm/biz-components/Listing/BizProductProvider.js +2 -0
- package/dist/esm/biz-components/Listing/BizProductProvider.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/type.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/type.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/utils.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js +40 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js +1 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/components/index.js +2 -0
- package/dist/esm/biz-components/Listing/components/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/const.js +2 -0
- package/dist/esm/biz-components/Listing/const.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant-media.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant-media.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/useBenefits.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/useBenefits.js.map +7 -0
- package/dist/esm/biz-components/Listing/hooks/useCopy.js +2 -0
- package/dist/esm/biz-components/Listing/hooks/useCopy.js.map +7 -0
- package/dist/esm/biz-components/Listing/index.js +2 -0
- package/dist/esm/biz-components/Listing/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/graphql.js +2 -0
- package/dist/esm/biz-components/Listing/types/graphql.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/product.js +2 -0
- package/dist/esm/biz-components/Listing/types/product.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/productMetafields.d.js +2 -0
- package/dist/esm/biz-components/Listing/types/productMetafields.d.js.map +7 -0
- package/dist/esm/biz-components/Listing/types/type-helper.js +1 -0
- package/dist/esm/biz-components/Listing/types/type-helper.js.map +7 -0
- package/dist/esm/biz-components/Listing/types.js +1 -0
- package/dist/esm/biz-components/Listing/types.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/helper.js +2 -0
- package/dist/esm/biz-components/Listing/utils/helper.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/index.js +2 -0
- package/dist/esm/biz-components/Listing/utils/index.js.map +7 -0
- package/dist/esm/biz-components/Listing/utils/textFormat.js +2 -0
- package/dist/esm/biz-components/Listing/utils/textFormat.js.map +7 -0
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js +1 -1
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js.map +2 -2
- package/dist/esm/biz-components/SelectStore/index.js +2 -0
- package/dist/esm/biz-components/SelectStore/index.js.map +7 -0
- package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/index.js.map +3 -3
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.js.map +3 -3
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +9 -9
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +3 -3
- package/dist/esm/biz-components/index.js +1 -1
- package/dist/esm/biz-components/index.js.map +2 -2
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/checkbox.js.map +3 -3
- package/dist/esm/helpers/ScrollLoadVideo.js +1 -1
- package/dist/esm/helpers/ScrollLoadVideo.js.map +3 -3
- package/dist/esm/hooks/useRollout.js +2 -0
- package/dist/esm/hooks/useRollout.js.map +7 -0
- package/dist/esm/src/biz-components/AiuiProvider/index.d.ts +4 -0
- package/dist/esm/src/biz-components/AplusDesc/index.d.ts +23 -0
- package/dist/esm/src/biz-components/DownLoad/index.d.ts +21 -0
- package/dist/esm/src/biz-components/Features/index.d.ts +27 -0
- package/dist/esm/src/biz-components/FootCharger/index.d.ts +13 -0
- package/dist/esm/src/biz-components/GiftBox/index.d.ts +18 -0
- package/dist/esm/src/biz-components/GraphicMore/index.d.ts +23 -0
- package/dist/esm/src/biz-components/HeroBanner/Countdown.d.ts +9 -0
- package/dist/esm/src/biz-components/HeroBanner/types.d.ts +6 -0
- package/dist/esm/src/biz-components/Listing/BizProductProvider.d.ts +126 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
- package/dist/esm/src/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
- package/dist/esm/src/biz-components/Listing/components/index.d.ts +3 -0
- package/dist/esm/src/biz-components/Listing/const.d.ts +29 -0
- package/dist/esm/src/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
- package/dist/esm/src/biz-components/Listing/hooks/use-variant.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
- package/dist/esm/src/biz-components/Listing/hooks/useCopy.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/index.d.ts +4 -0
- package/dist/esm/src/biz-components/Listing/types/graphql.d.ts +7473 -0
- package/dist/esm/src/biz-components/Listing/types/product.d.ts +141 -0
- package/dist/esm/src/biz-components/Listing/types/type-helper.d.ts +5 -0
- package/dist/esm/src/biz-components/Listing/types.d.ts +28 -0
- package/dist/esm/src/biz-components/Listing/utils/helper.d.ts +36 -0
- package/dist/esm/src/biz-components/Listing/utils/index.d.ts +37 -0
- package/dist/esm/src/biz-components/Listing/utils/textFormat.d.ts +73 -0
- package/dist/esm/src/biz-components/SelectStore/index.d.ts +21 -0
- package/dist/esm/src/biz-components/ShelfDisplay/shelfDisplay.d.ts +11 -2
- package/dist/esm/src/biz-components/index.d.ts +24 -0
- package/dist/esm/src/components/checkbox.d.ts +1 -0
- package/dist/esm/src/hooks/useRollout.d.ts +14 -0
- package/dist/tokens/anker.css +1 -0
- package/dist/tokens/base.css +1 -1
- package/dist/tokens/eufy.css +1 -0
- package/dist/tokens/eufyMake.css +1 -0
- package/dist/tokens/solix.css +1 -0
- package/dist/tokens/soundcore.css +1 -0
- package/package.json +3 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Img } from '../../types/props.js';
|
|
3
|
+
export type DownLoadDataType = {
|
|
4
|
+
title: string;
|
|
5
|
+
text: string;
|
|
6
|
+
time: string;
|
|
7
|
+
link: string;
|
|
8
|
+
line: Img;
|
|
9
|
+
icon: Img;
|
|
10
|
+
};
|
|
11
|
+
type DownLoadType = {
|
|
12
|
+
data: {
|
|
13
|
+
list: DownLoadDataType[];
|
|
14
|
+
};
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<DownLoadType, 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;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Img } from '../../types/props.js';
|
|
3
|
+
export type FeaturesDataType = {
|
|
4
|
+
img: Img;
|
|
5
|
+
mobileImg: Img;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
numberOne: string;
|
|
9
|
+
textOne: string;
|
|
10
|
+
numberTwo: string;
|
|
11
|
+
textTwo: string;
|
|
12
|
+
icon: Img;
|
|
13
|
+
};
|
|
14
|
+
type FeaturesType = {
|
|
15
|
+
data: {
|
|
16
|
+
title: string;
|
|
17
|
+
img: Img;
|
|
18
|
+
mobileImg: Img;
|
|
19
|
+
list: FeaturesDataType[];
|
|
20
|
+
};
|
|
21
|
+
className?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<FeaturesType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
24
|
+
className?: string | undefined;
|
|
25
|
+
data?: Record<string, any> | undefined;
|
|
26
|
+
} & import("react").RefAttributes<any>>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type FootChargerType = {
|
|
3
|
+
data: {
|
|
4
|
+
title: string;
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<FootChargerType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
10
|
+
className?: string | undefined;
|
|
11
|
+
data?: Record<string, any> | undefined;
|
|
12
|
+
} & import("react").RefAttributes<any>>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Img } from '../../types/props.js';
|
|
3
|
+
export type GiftBoxDataType = {
|
|
4
|
+
img: Img;
|
|
5
|
+
mobileImg: Img;
|
|
6
|
+
title: string;
|
|
7
|
+
};
|
|
8
|
+
type GiftBoxType = {
|
|
9
|
+
data: {
|
|
10
|
+
list: GiftBoxDataType[];
|
|
11
|
+
};
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<GiftBoxType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
data?: Record<string, any> | undefined;
|
|
17
|
+
} & import("react").RefAttributes<any>>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { Img } from '../../types/props.js';
|
|
3
|
+
export type GraphicMoreDataType = {
|
|
4
|
+
img: Img;
|
|
5
|
+
mobileImg: Img;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
theme: 'light' | 'dark';
|
|
9
|
+
fullWidth: 'true' | 'false';
|
|
10
|
+
span: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
11
|
+
};
|
|
12
|
+
type GraphicMoreType = {
|
|
13
|
+
data: {
|
|
14
|
+
shape?: 'rounded' | 'square';
|
|
15
|
+
productsTab: GraphicMoreDataType[];
|
|
16
|
+
};
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<GraphicMoreType, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
20
|
+
className?: string | undefined;
|
|
21
|
+
data?: Record<string, any> | undefined;
|
|
22
|
+
} & import("react").RefAttributes<any>>;
|
|
23
|
+
export default _default;
|
|
@@ -6,6 +6,12 @@ export interface HeroBannerProps {
|
|
|
6
6
|
title: string;
|
|
7
7
|
/** 副标题/描述文本 */
|
|
8
8
|
subtitle: string;
|
|
9
|
+
/** 结束时间(ISO 字符串) */
|
|
10
|
+
endDate?: string;
|
|
11
|
+
/** 结束时间时区(如: America/Los_Angeles) */
|
|
12
|
+
endDate_tz?: string;
|
|
13
|
+
/** 图标列表 */
|
|
14
|
+
iconArray?: Array<any>;
|
|
9
15
|
pcImage: Media;
|
|
10
16
|
padImage?: Media;
|
|
11
17
|
mobileImage: Media;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import React, { type Dispatch, type SetStateAction, type PropsWithChildren } from 'react';
|
|
2
|
+
import type { Product, ProductPrice, ProductVariant, VariantCoupon, Options, FreeGift, BundleListItem, Bundle } from './types/product';
|
|
3
|
+
import type { CompareData, DiscountData } from './types.js';
|
|
4
|
+
type Country = {
|
|
5
|
+
id?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
code?: string;
|
|
8
|
+
};
|
|
9
|
+
export type UserProfile = {
|
|
10
|
+
user_id: string;
|
|
11
|
+
email: string;
|
|
12
|
+
nick_name?: string;
|
|
13
|
+
full_name?: string;
|
|
14
|
+
first_name?: string;
|
|
15
|
+
last_name?: string;
|
|
16
|
+
dob?: string;
|
|
17
|
+
gender?: string;
|
|
18
|
+
phone_number?: string;
|
|
19
|
+
phone_account?: string;
|
|
20
|
+
country?: Country;
|
|
21
|
+
is_subscribe?: boolean;
|
|
22
|
+
avatar?: string;
|
|
23
|
+
can_change_password?: boolean;
|
|
24
|
+
invitation_code?: string;
|
|
25
|
+
phone_carrier?: string;
|
|
26
|
+
dob_programmed?: boolean;
|
|
27
|
+
activated?: boolean;
|
|
28
|
+
registed_at?: number;
|
|
29
|
+
activated_at?: number;
|
|
30
|
+
token?: string;
|
|
31
|
+
};
|
|
32
|
+
export type SavingDetail = {
|
|
33
|
+
coupon: number;
|
|
34
|
+
bundle: number;
|
|
35
|
+
member: number;
|
|
36
|
+
freeGift: number;
|
|
37
|
+
compare: number;
|
|
38
|
+
exchangePurchase: number;
|
|
39
|
+
};
|
|
40
|
+
type variantWithFinalPrice = ProductVariant & {
|
|
41
|
+
finalPrice?: ProductPrice;
|
|
42
|
+
};
|
|
43
|
+
export type FunctionMemberPriceResult = {
|
|
44
|
+
hasMemberPrice: boolean;
|
|
45
|
+
originalPrice: number;
|
|
46
|
+
withCouponMemberTotalSave: number;
|
|
47
|
+
withoutCouponMaxMemberTotalSave?: number;
|
|
48
|
+
labels: {
|
|
49
|
+
key: string;
|
|
50
|
+
value: string;
|
|
51
|
+
desc: string;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export type ModalData = {
|
|
55
|
+
needClickAway?: boolean;
|
|
56
|
+
className?: string;
|
|
57
|
+
title?: string;
|
|
58
|
+
content?: string;
|
|
59
|
+
domContent?: React.ReactNode;
|
|
60
|
+
};
|
|
61
|
+
export type JoinedRecommendBuyProducts = {
|
|
62
|
+
bundle?: {
|
|
63
|
+
value?: BundleListItem;
|
|
64
|
+
canOperate?: boolean;
|
|
65
|
+
};
|
|
66
|
+
gift?: {
|
|
67
|
+
value?: ProductVariant;
|
|
68
|
+
canOperate?: boolean;
|
|
69
|
+
};
|
|
70
|
+
exchange?: {
|
|
71
|
+
value?: ProductVariant;
|
|
72
|
+
canOperate?: boolean;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
export interface ProductContextType {
|
|
76
|
+
isLogin?: boolean;
|
|
77
|
+
isMobile?: boolean;
|
|
78
|
+
isDesktop?: boolean;
|
|
79
|
+
product: Product;
|
|
80
|
+
profile?: UserProfile;
|
|
81
|
+
variant: ProductVariant;
|
|
82
|
+
selectedVariants: Array<variantWithFinalPrice>;
|
|
83
|
+
renderRating?: React.ReactNode;
|
|
84
|
+
coupon?: VariantCoupon;
|
|
85
|
+
savingDetail: SavingDetail;
|
|
86
|
+
setSavingDetail: Dispatch<SetStateAction<SavingDetail>>;
|
|
87
|
+
finalPrice: number;
|
|
88
|
+
comparePrice: number;
|
|
89
|
+
totalSavings: number;
|
|
90
|
+
selectedOptions: Options;
|
|
91
|
+
setSelectedOptions: Dispatch<SetStateAction<Options>>;
|
|
92
|
+
freeGift?: FreeGift;
|
|
93
|
+
checkedGift?: ProductVariant;
|
|
94
|
+
setCheckedGift?: Dispatch<SetStateAction<ProductVariant | undefined>>;
|
|
95
|
+
exchangePurchase?: FreeGift;
|
|
96
|
+
checkedExchangePurchase?: ProductVariant;
|
|
97
|
+
setCheckedExchangePurchase?: Dispatch<SetStateAction<ProductVariant | undefined>>;
|
|
98
|
+
checkedBundle?: BundleListItem;
|
|
99
|
+
setCheckedBundle: Dispatch<SetStateAction<BundleListItem | undefined>>;
|
|
100
|
+
joinedRecommendBuyProducts: JoinedRecommendBuyProducts;
|
|
101
|
+
setJoinedRecommendBuyProducts?: Dispatch<SetStateAction<JoinedRecommendBuyProducts>>;
|
|
102
|
+
checkedCareBundle?: ProductVariant;
|
|
103
|
+
setCheckedCareBundle?: Dispatch<SetStateAction<ProductVariant | undefined>>;
|
|
104
|
+
bundle?: Bundle;
|
|
105
|
+
compareData?: CompareData['data'];
|
|
106
|
+
onAddToCart?: () => void;
|
|
107
|
+
onBuyNow?: () => void;
|
|
108
|
+
creditsRedemptionAmount?: number;
|
|
109
|
+
memberFunctionResult?: FunctionMemberPriceResult;
|
|
110
|
+
openModal: ({ title, content, domContent }: ModalData) => void;
|
|
111
|
+
openSignInPopup?: () => void;
|
|
112
|
+
openAuthCodePopup?: () => void;
|
|
113
|
+
openSignUpPopup?: () => void;
|
|
114
|
+
renderAffirm?: React.ReactNode;
|
|
115
|
+
renderKlarna?: React.ReactNode;
|
|
116
|
+
renderPaypal?: React.ReactNode;
|
|
117
|
+
onUseCouponChange?: (couponSaving: number) => void;
|
|
118
|
+
onUseMemberDiscountChange?: (memberSaving: number) => void;
|
|
119
|
+
discount?: DiscountData;
|
|
120
|
+
buyNowLoading?: boolean;
|
|
121
|
+
addToCartLoading?: boolean;
|
|
122
|
+
}
|
|
123
|
+
export declare const BizProductContext: React.Context<ProductContextType>;
|
|
124
|
+
export declare const useBizProductContext: () => ProductContextType;
|
|
125
|
+
declare const ProductProvider: ({ product, isLogin, profile, isMobile, isDesktop, children, renderRating, freeGift, exchangePurchase, bundle, checkedBundle, checkedGift, setCheckedBundle, setCheckedGift, checkedExchangePurchase, setCheckedExchangePurchase, variant, selectedOptions, setSelectedOptions, compareData, coupon, finalPrice, comparePrice, totalSavings, savingDetail, setSavingDetail, selectedVariants, onAddToCart, onBuyNow, creditsRedemptionAmount, memberFunctionResult, openModal, openSignInPopup, openAuthCodePopup, openSignUpPopup, renderAffirm, renderKlarna, renderPaypal, onUseCouponChange, onUseMemberDiscountChange, discount, buyNowLoading, addToCartLoading, }: PropsWithChildren<Omit<ProductContextType, 'joinedRecommendBuyProducts' | 'setJoinedRecommendBuyProducts'>>) => import("react/jsx-runtime").JSX.Element;
|
|
126
|
+
export default ProductProvider;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const ShippingMethod: ({ item, index, active, toggleShipping, currencyCode, metafields, className, }: {
|
|
2
|
+
item: any;
|
|
3
|
+
index: number;
|
|
4
|
+
active: boolean;
|
|
5
|
+
toggleShipping: (item: any, index: number) => void;
|
|
6
|
+
currencyCode: string;
|
|
7
|
+
metafields: any;
|
|
8
|
+
className?: string;
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ShippingMethod;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
interface Terms {
|
|
2
|
+
text: string;
|
|
3
|
+
url: string;
|
|
4
|
+
}
|
|
5
|
+
interface List {
|
|
6
|
+
title: string;
|
|
7
|
+
list: string[];
|
|
8
|
+
}
|
|
9
|
+
interface ShippingService {
|
|
10
|
+
title: string;
|
|
11
|
+
list: List[];
|
|
12
|
+
}
|
|
13
|
+
interface Data {
|
|
14
|
+
title: string;
|
|
15
|
+
shippingCoupon: List;
|
|
16
|
+
shippingService: ShippingService;
|
|
17
|
+
terms: Terms;
|
|
18
|
+
}
|
|
19
|
+
interface Props {
|
|
20
|
+
data: Data;
|
|
21
|
+
onClose: () => void;
|
|
22
|
+
open: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const ShippingPolicyModal: ({ data, onClose, open }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Product, ProductVariant } from '../../types/product';
|
|
2
|
+
import type { DeliveryCustom } from './type';
|
|
3
|
+
declare const PaidShipping: ({ metafields, productList, onShippingInfoChange, variant, className, }: {
|
|
4
|
+
metafields: any;
|
|
5
|
+
productList: Array<Product & {
|
|
6
|
+
variant: ProductVariant;
|
|
7
|
+
}>;
|
|
8
|
+
variant: ProductVariant;
|
|
9
|
+
onShippingInfoChange: (deliveryCustom: DeliveryCustom) => void;
|
|
10
|
+
className?: string;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default PaidShipping;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum ShippingMethodMode {
|
|
2
|
+
FREE = "free",
|
|
3
|
+
TDD = "tdd",
|
|
4
|
+
NDD = "ndd"
|
|
5
|
+
}
|
|
6
|
+
export type shippingMetafields = {
|
|
7
|
+
__mode: ShippingMethodMode;
|
|
8
|
+
__code: string;
|
|
9
|
+
title: string;
|
|
10
|
+
subtitle: string;
|
|
11
|
+
price: number;
|
|
12
|
+
weight_low?: number | null;
|
|
13
|
+
weight_high?: number | null;
|
|
14
|
+
__plus?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export type ShippingMethodType = {
|
|
17
|
+
error: unknown;
|
|
18
|
+
code: string;
|
|
19
|
+
mode: ShippingMethodMode;
|
|
20
|
+
title: string;
|
|
21
|
+
disabled: boolean;
|
|
22
|
+
tag: string;
|
|
23
|
+
price: number;
|
|
24
|
+
subtitle: string;
|
|
25
|
+
id: string;
|
|
26
|
+
};
|
|
27
|
+
export type DeliveryCustom = {
|
|
28
|
+
selected_delivery_code?: string;
|
|
29
|
+
selected_delivery_mode?: ShippingMethodMode;
|
|
30
|
+
};
|
package/dist/cjs/src/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface BenefitsTabTextConfig {
|
|
3
|
+
couponCode?: string;
|
|
4
|
+
copyCode?: string;
|
|
5
|
+
copied?: string;
|
|
6
|
+
expired?: string;
|
|
7
|
+
offCoupon?: string;
|
|
8
|
+
offMemberOnly?: string;
|
|
9
|
+
loginNow?: string;
|
|
10
|
+
selectFreeGift?: string;
|
|
11
|
+
bundleSaveUpTo?: string;
|
|
12
|
+
bundleOffer?: string;
|
|
13
|
+
creditsTitle?: string;
|
|
14
|
+
creditsDesc?: string;
|
|
15
|
+
yourBenefits?: string;
|
|
16
|
+
off?: string;
|
|
17
|
+
memberBenefits?: string;
|
|
18
|
+
memberBenefitsNotLogin?: string;
|
|
19
|
+
memberBenefitsNotLoginText?: string;
|
|
20
|
+
installment?: string;
|
|
21
|
+
forNewMember?: string;
|
|
22
|
+
expressShipping?: string;
|
|
23
|
+
creditsAfterActivation?: string;
|
|
24
|
+
active?: string;
|
|
25
|
+
flexibleInstallment?: string;
|
|
26
|
+
}
|
|
27
|
+
export type ModalData = {
|
|
28
|
+
needClickAway?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
content?: string;
|
|
32
|
+
domContent?: React.ReactNode;
|
|
33
|
+
};
|
|
34
|
+
interface BenefitsTabProps {
|
|
35
|
+
textConfig?: BenefitsTabTextConfig;
|
|
36
|
+
}
|
|
37
|
+
declare const BenefitsTab: ({ textConfig }: BenefitsTabProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
38
|
+
export default BenefitsTab;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode, type HTMLAttributes } from 'react';
|
|
2
|
+
interface BenefitsTabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
defaultValue?: string;
|
|
4
|
+
value?: string;
|
|
5
|
+
onValueChange?: (value: string) => void;
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ProductBenefitsTabs: {
|
|
9
|
+
({ defaultValue, value, onValueChange, children, className, ...props }: BenefitsTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
List: import("react").ForwardRefExoticComponent<BenefitsTabsListProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
Trigger: ({ value, children, className, ...props }: BenefitsTabsTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
Badge: ({ children, className, ...props }: BenefitsTabsBadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
Content: ({ value, children, className, ...props }: BenefitsTabsContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
interface BenefitsTabsListProps extends HTMLAttributes<HTMLDivElement> {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
interface BenefitsTabsTriggerProps extends HTMLAttributes<HTMLButtonElement> {
|
|
20
|
+
value: string;
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
23
|
+
interface BenefitsTabsBadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
24
|
+
children: ReactNode;
|
|
25
|
+
}
|
|
26
|
+
interface BenefitsTabsContentProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
value: string;
|
|
28
|
+
children: ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export default ProductBenefitsTabs;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ProductOption } from '../../../../../cpn-components/CpnProductCard/types.js';
|
|
2
|
+
import type { Img } from '../../../../../types/props.js';
|
|
3
|
+
export interface ProductDetailProps {
|
|
4
|
+
}
|
|
5
|
+
export declare enum BenefitsTabsType {
|
|
6
|
+
ALL_BENEFITS = "allBenefits",
|
|
7
|
+
COUPON = "coupon",
|
|
8
|
+
INSTALLMENT = "installment",
|
|
9
|
+
MEMBERSHIP = "membership"
|
|
10
|
+
}
|
|
11
|
+
export interface ProductBenefitsTabsProps {
|
|
12
|
+
data: {
|
|
13
|
+
allBenefits: {
|
|
14
|
+
benefits: {
|
|
15
|
+
type?: BenefitsTabsType;
|
|
16
|
+
tabName: string;
|
|
17
|
+
tabValue: string;
|
|
18
|
+
collectBgImage?: Img;
|
|
19
|
+
coupons?: BenefitsTabCouponProps[];
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export interface BenefitsTabCouponProps {
|
|
25
|
+
code: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
discount: number;
|
|
29
|
+
bgImage: Img;
|
|
30
|
+
}
|
|
31
|
+
export interface ProductBenefitsTabCouponProps {
|
|
32
|
+
coupons?: BenefitsTabCouponProps[];
|
|
33
|
+
}
|
|
34
|
+
export interface HighlightProps {
|
|
35
|
+
data: any;
|
|
36
|
+
}
|
|
37
|
+
export interface ProductOptionsProps {
|
|
38
|
+
option: ProductOption;
|
|
39
|
+
onOptionChange: (arg0: {
|
|
40
|
+
id: string;
|
|
41
|
+
value: string;
|
|
42
|
+
}) => void;
|
|
43
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
interface SelectProps {
|
|
2
|
+
label?: string;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
list?: {
|
|
5
|
+
value: string;
|
|
6
|
+
text: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
value?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
error?: string;
|
|
12
|
+
errorClassName?: string;
|
|
13
|
+
onChange?: (value: string) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
containerClassName?: string;
|
|
17
|
+
selectListClassName?: string;
|
|
18
|
+
truncate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
declare const Select: ({ label, required, list, value, disabled, error, errorClassName, onChange, placeholder, className, containerClassName, selectListClassName, truncate, ...props }: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Select;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const SpecsModal: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { Img } from '../../../../../types/props.js';
|
|
2
|
+
import type { ImageMedia, VideoMedia } from '../../../hooks/use-variant-media.js';
|
|
3
|
+
export interface ProductGalleryProps {
|
|
4
|
+
data: {
|
|
5
|
+
gallerySections: {
|
|
6
|
+
title: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface ProductGalleryTabItemProps {
|
|
11
|
+
index?: number;
|
|
12
|
+
realIndex?: number;
|
|
13
|
+
galleryTabType: GalleryTabType;
|
|
14
|
+
galleries: ImageMedia[] | VideoMedia[];
|
|
15
|
+
onCurrentTabLoopStart?: (index: number) => void;
|
|
16
|
+
onCurrentTabLoopEnd?: (index: number) => void;
|
|
17
|
+
onNextTab?: () => void;
|
|
18
|
+
onPrevTab?: () => void;
|
|
19
|
+
targetSlideIndex?: number | null;
|
|
20
|
+
onSlideChange?: () => void;
|
|
21
|
+
id: string;
|
|
22
|
+
comment?: {
|
|
23
|
+
content: string;
|
|
24
|
+
avatar: Img;
|
|
25
|
+
};
|
|
26
|
+
tabLabel: string;
|
|
27
|
+
tabValue: string;
|
|
28
|
+
}
|
|
29
|
+
export interface GalleryTabItemProps {
|
|
30
|
+
tabLabel: string;
|
|
31
|
+
tabValue: string;
|
|
32
|
+
id: string;
|
|
33
|
+
galleryTabType: GalleryTabType;
|
|
34
|
+
galleries: ImageMedia[] | VideoMedia[];
|
|
35
|
+
}
|
|
36
|
+
export declare enum GalleryTabType {
|
|
37
|
+
GALLERY_IMAGE_MAIN = "ipc-gallery-tab-image-main",
|
|
38
|
+
GALLERY_IMAGE_FEATURES = "ipc-gallery-tab-image-features",
|
|
39
|
+
GALLERY_IMAGE_SCENE = "ipc-gallery-tab-image-scene",
|
|
40
|
+
GALLERY_VIDEO = "ipc-gallery-tab-video",
|
|
41
|
+
GALLERY_3D_VIEW = "ipc-gallery-tab-3d-view"
|
|
42
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const ProductGridBox: ({ BoxLeftGallery, BoxRightDetail, BoxBottomSummary, }: {
|
|
2
|
+
BoxLeftGallery: React.ReactNode;
|
|
3
|
+
BoxRightDetail: React.ReactNode;
|
|
4
|
+
BoxBottomSummary: React.ReactNode;
|
|
5
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default ProductGridBox;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ScrollSpyNavProps } from './types.js';
|
|
2
|
+
declare const MobileScrollSpyNav: ({ tabs, purchaseBarHeight, onSpyNavItemClick }: ScrollSpyNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const DesktopScrollSpyNav: ({ tabs, onSpyNavItemClick }: ScrollSpyNavProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export { MobileScrollSpyNav, DesktopScrollSpyNav };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface PurchaseBarProps {
|
|
2
|
+
onSpyNavItemClick?: (tab: ScrollSpyNavItem) => void;
|
|
3
|
+
}
|
|
4
|
+
export interface ScrollSpyNavItem {
|
|
5
|
+
label: string;
|
|
6
|
+
href: string;
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface ScrollSpyNavProps extends Pick<PurchaseBarProps, 'onSpyNavItemClick'> {
|
|
10
|
+
tabs: ScrollSpyNavItem[];
|
|
11
|
+
purchaseBarHeight: number;
|
|
12
|
+
}
|