@anker-in/headless-ui 1.0.26-alpha.1762425661848 → 1.0.26-alpha.1762426225057
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/Graphic/index.js +1 -1
- package/dist/cjs/biz-components/Graphic/index.js.map +2 -2
- package/dist/cjs/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/cjs/biz-components/ShelfDisplay/index.js.map +2 -2
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js +2 -2
- package/dist/cjs/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
- package/dist/cjs/biz-components/Specs/dropdown.js +2 -2
- package/dist/cjs/biz-components/Specs/dropdown.js.map +3 -3
- package/dist/esm/biz-components/AccordionCards/index.d.ts +38 -0
- package/dist/esm/biz-components/AiuiProvider/index.d.ts +16 -0
- package/dist/esm/biz-components/AplusDesc/index.d.ts +23 -0
- package/dist/esm/biz-components/BrandEquity/BrandEquity.d.ts +7 -0
- package/dist/esm/biz-components/BrandEquity/index.d.ts +1 -0
- package/dist/esm/biz-components/BrandEquity/types.d.ts +18 -0
- package/dist/esm/biz-components/Category/SwiperCategory.d.ts +19 -0
- package/dist/esm/biz-components/Category/index.d.ts +35 -0
- package/dist/esm/biz-components/CreativeModule/index.d.ts +22 -0
- package/dist/esm/biz-components/DownLoad/index.d.ts +21 -0
- package/dist/esm/biz-components/Evaluate/index.d.ts +37 -0
- package/dist/esm/biz-components/Faq/Faq.d.ts +14 -0
- package/dist/esm/biz-components/Faq/index.d.ts +2 -0
- package/dist/esm/biz-components/Faq/types.d.ts +12 -0
- package/dist/esm/biz-components/FeatureCards/FeatureCards.d.ts +7 -0
- package/dist/esm/biz-components/FeatureCards/index.d.ts +2 -0
- package/dist/esm/biz-components/FeatureCards/types.d.ts +25 -0
- package/dist/esm/biz-components/FeatureShowcase/FeatureShowcase.d.ts +7 -0
- package/dist/esm/biz-components/FeatureShowcase/index.d.ts +2 -0
- package/dist/esm/biz-components/FeatureShowcase/types.d.ts +21 -0
- package/dist/esm/biz-components/Features/index.d.ts +27 -0
- package/dist/esm/biz-components/FootCharger/index.d.ts +13 -0
- package/dist/esm/biz-components/FooterNavigation/icons/Add.d.ts +3 -0
- package/dist/esm/biz-components/FooterNavigation/icons/ArrowRight.d.ts +3 -0
- package/dist/esm/biz-components/FooterNavigation/icons/Country.d.ts +3 -0
- package/dist/esm/biz-components/FooterNavigation/icons/Subtract.d.ts +3 -0
- package/dist/esm/biz-components/FooterNavigation/icons/index.d.ts +5 -0
- package/dist/esm/biz-components/FooterNavigation/index.d.ts +7 -0
- package/dist/esm/biz-components/FooterNavigation/types.d.ts +15 -0
- package/dist/esm/biz-components/GiftBox/index.d.ts +18 -0
- package/dist/esm/biz-components/Graphic/index.d.ts +38 -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/GraphicAttractionBlock/index.d.ts +25 -0
- package/dist/esm/biz-components/GraphicMore/index.d.ts +23 -0
- package/dist/esm/biz-components/GraphicOverlay/GraphicOverlay.d.ts +8 -0
- package/dist/esm/biz-components/GraphicOverlay/index.d.ts +2 -0
- package/dist/esm/biz-components/GraphicOverlay/types.d.ts +33 -0
- package/dist/esm/biz-components/HeaderNavigation/NavProvider.d.ts +36 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/AnkerLogo.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/Cart.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/Close.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/DownArrow.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/LeftArrow.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/LogoLine.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/Menu.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/Polygon.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/RightArrow.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/Search.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/User.d.ts +3 -0
- package/dist/esm/biz-components/HeaderNavigation/icons/index.d.ts +12 -0
- package/dist/esm/biz-components/HeaderNavigation/index.d.ts +7 -0
- package/dist/esm/biz-components/HeaderNavigation/types.d.ts +103 -0
- package/dist/esm/biz-components/HeaderNavigation/withCategory.d.ts +9 -0
- package/dist/esm/biz-components/HeroBanner/Countdown.d.ts +9 -0
- package/dist/esm/biz-components/HeroBanner/HeroBanner.d.ts +7 -0
- package/dist/esm/biz-components/HeroBanner/index.d.ts +1 -0
- package/dist/esm/biz-components/HeroBanner/types.d.ts +49 -0
- package/dist/esm/biz-components/ImageTextFeature/ImageTextFeature.d.ts +7 -0
- package/dist/esm/biz-components/ImageTextFeature/index.d.ts +2 -0
- package/dist/esm/biz-components/ImageTextFeature/types.d.ts +31 -0
- package/dist/esm/biz-components/ImageWithText/ImageWithText.d.ts +7 -0
- package/dist/esm/biz-components/ImageWithText/index.d.ts +2 -0
- package/dist/esm/biz-components/ImageWithText/types.d.ts +119 -0
- package/dist/esm/biz-components/InlineVideo/index.d.ts +16 -0
- package/dist/esm/biz-components/Ksp/index.d.ts +41 -0
- package/dist/esm/biz-components/Listing/BizProductProvider.d.ts +126 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/LearnMore.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingMethod.d.ts +10 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/ShippingPolicyModal.d.ts +25 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/index.d.ts +12 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/type.d.ts +30 -0
- package/dist/esm/biz-components/Listing/components/PaidShipping/utils.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/BenefitsTab.d.ts +38 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBenefitsTabs/index.d.ts +30 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductBundle/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductExchangePurchase/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductFreeGift/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductHighlight/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/ProductOptions/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductDetail/types.d.ts +43 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/CompareModal.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/Select.d.ts +21 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/ShopifyColorOption.d.ts +5 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/components/SpecsModal.d.ts +1 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGallery/types.d.ts +42 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductGridBox.d.ts +6 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/index.d.ts +3 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/ProductSummary/types.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/ProductCard/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ProductActions/index.d.ts +2 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/index.d.ts +4 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/ScrollSpyNav/types.d.ts +10 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/index.d.ts +3 -0
- package/dist/esm/biz-components/Listing/components/PurchaseBar/types.d.ts +12 -0
- package/dist/esm/biz-components/Listing/components/index.d.ts +3 -0
- package/dist/esm/biz-components/Listing/const.d.ts +29 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant-media.d.ts +14 -0
- package/dist/esm/biz-components/Listing/hooks/use-variant.d.ts +5 -0
- package/dist/esm/biz-components/Listing/hooks/useBenefits.d.ts +50 -0
- package/dist/esm/biz-components/Listing/hooks/useCopy.d.ts +5 -0
- package/dist/esm/biz-components/Listing/index.d.ts +4 -0
- package/dist/esm/biz-components/Listing/types/graphql.d.ts +7473 -0
- package/dist/esm/biz-components/Listing/types/product.d.ts +141 -0
- package/dist/esm/biz-components/Listing/types/type-helper.d.ts +5 -0
- package/dist/esm/biz-components/Listing/types.d.ts +28 -0
- package/dist/esm/biz-components/Listing/utils/helper.d.ts +36 -0
- package/dist/esm/biz-components/Listing/utils/index.d.ts +37 -0
- package/dist/esm/biz-components/Listing/utils/textFormat.d.ts +73 -0
- package/dist/esm/biz-components/Marquee/Marquee.d.ts +18 -0
- package/dist/esm/biz-components/Marquee/index.d.ts +2 -0
- package/dist/esm/biz-components/Marquee/type.d.ts +33 -0
- package/dist/esm/biz-components/MarqueeReview/index.d.ts +42 -0
- package/dist/esm/biz-components/MediaPlayerBase/index.d.ts +7 -0
- package/dist/esm/biz-components/MediaPlayerBase/right.d.ts +1 -0
- package/dist/esm/biz-components/MediaPlayerBase/types.d.ts +18 -0
- package/dist/esm/biz-components/MediaPlayerMulti/index.d.ts +7 -0
- package/dist/esm/biz-components/MediaPlayerMulti/types.d.ts +22 -0
- package/dist/esm/biz-components/MediaPlayerSticky/index.d.ts +9 -0
- package/dist/esm/biz-components/MediaPlayerSticky/types.d.ts +21 -0
- package/dist/esm/biz-components/MemberEquity/index.d.ts +7 -0
- package/dist/esm/biz-components/MemberEquity/types.d.ts +30 -0
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.d.ts +8 -0
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/index.d.ts +2 -0
- package/dist/esm/biz-components/MultiLayoutGraphicBlock/types.d.ts +38 -0
- package/dist/esm/biz-components/NavigationSearch/index.d.ts +5 -0
- package/dist/esm/biz-components/NavigationSearch/types.d.ts +18 -0
- package/dist/esm/biz-components/ProductCompare/index.d.ts +38 -0
- package/dist/esm/biz-components/ProductHero/ProductHero.d.ts +7 -0
- package/dist/esm/biz-components/ProductHero/index.d.ts +2 -0
- package/dist/esm/biz-components/ProductHero/types.d.ts +21 -0
- package/dist/esm/biz-components/SearchPage/index.d.ts +6 -0
- package/dist/esm/biz-components/SearchPage/types.d.ts +58 -0
- package/dist/esm/biz-components/SelectStore/index.d.ts +21 -0
- package/dist/esm/biz-components/ShelfDisplay/index.d.ts +7 -0
- package/dist/esm/biz-components/ShelfDisplay/index.js +1 -1
- package/dist/esm/biz-components/ShelfDisplay/index.js.map +2 -2
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplay.d.ts +106 -0
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.d.ts +8 -0
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js +4 -4
- package/dist/esm/biz-components/ShelfDisplay/shelfDisplayItem.js.map +2 -2
- package/dist/esm/biz-components/ShelfDisplay/tabSwitch.d.ts +9 -0
- package/dist/esm/biz-components/Slogan/index.d.ts +9 -0
- package/dist/esm/biz-components/Slogan/types.d.ts +31 -0
- package/dist/esm/biz-components/Spacer/index.d.ts +7 -0
- package/dist/esm/biz-components/Spacer/types.d.ts +10 -0
- package/dist/esm/biz-components/Specs/dropdown.d.ts +11 -0
- package/dist/esm/biz-components/Specs/dropdown.js +1 -1
- package/dist/esm/biz-components/Specs/dropdown.js.map +3 -3
- package/dist/esm/biz-components/Specs/index.d.ts +6 -0
- package/dist/esm/biz-components/SpecsComparison/SpecsComparison.d.ts +7 -0
- package/dist/esm/biz-components/SpecsComparison/index.d.ts +2 -0
- package/dist/esm/biz-components/SpecsComparison/types.d.ts +34 -0
- package/dist/esm/biz-components/Subscribe/index.d.ts +20 -0
- package/dist/esm/biz-components/SwiperBox/index.d.ts +4 -0
- package/dist/esm/biz-components/SwiperBox/types.d.ts +17 -0
- package/dist/esm/biz-components/TabWithImage/TabWithImage.d.ts +7 -0
- package/dist/esm/biz-components/TabWithImage/index.d.ts +2 -0
- package/dist/esm/biz-components/TabWithImage/types.d.ts +29 -0
- package/dist/esm/biz-components/Tabs/Tabs.d.ts +7 -0
- package/dist/esm/biz-components/Tabs/index.d.ts +1 -0
- package/dist/esm/biz-components/Tabs/types.d.ts +30 -0
- package/dist/esm/biz-components/TabsGroup/index.d.ts +7 -0
- package/dist/esm/biz-components/TabsGroup/types.d.ts +16 -0
- package/dist/esm/biz-components/TabsWithMedia/TabsWithMedia.d.ts +7 -0
- package/dist/esm/biz-components/TabsWithMedia/index.d.ts +2 -0
- package/dist/esm/biz-components/TabsWithMedia/types.d.ts +41 -0
- package/dist/esm/biz-components/TextModal/index.d.ts +14 -0
- package/dist/esm/biz-components/ThreeDCarousel/index.d.ts +15 -0
- package/dist/esm/biz-components/Title/index.d.ts +7 -0
- package/dist/esm/biz-components/Title/types.d.ts +33 -0
- package/dist/esm/biz-components/VideoFeature/VideoFeature.d.ts +7 -0
- package/dist/esm/biz-components/VideoFeature/index.d.ts +2 -0
- package/dist/esm/biz-components/VideoFeature/types.d.ts +19 -0
- package/dist/esm/biz-components/VideoModal/YouTubePlayer.d.ts +4 -0
- package/dist/esm/biz-components/VideoModal/index.d.ts +8 -0
- package/dist/esm/biz-components/WhyChoose/WhyChoose.d.ts +14 -0
- package/dist/esm/biz-components/WhyChoose/index.d.ts +2 -0
- package/dist/esm/biz-components/WhyChoose/types.d.ts +12 -0
- package/dist/esm/biz-components/index.d.ts +118 -0
- package/dist/esm/components/alert.d.ts +17 -0
- package/dist/esm/components/avatar.d.ts +26 -0
- package/dist/esm/components/badge.d.ts +9 -0
- package/dist/esm/components/board.d.ts +4 -0
- package/dist/esm/components/button.d.ts +41 -0
- package/dist/esm/components/card.d.ts +8 -0
- package/dist/esm/components/carousel.d.ts +28 -0
- package/dist/esm/components/checkbox.d.ts +12 -0
- package/dist/esm/components/color.d.ts +13 -0
- package/dist/esm/components/container.d.ts +24 -0
- package/dist/esm/components/dialog.d.ts +21 -0
- package/dist/esm/components/drawer.d.ts +13 -0
- package/dist/esm/components/drop-down.d.ts +27 -0
- package/dist/esm/components/gird.d.ts +17 -0
- package/dist/esm/components/heading.d.ts +17 -0
- package/dist/esm/components/index.d.ts +26 -0
- package/dist/esm/components/input-number.d.ts +78 -0
- package/dist/esm/components/input.d.ts +22 -0
- package/dist/esm/components/link.d.ts +45 -0
- package/dist/esm/components/loadingDots.d.ts +6 -0
- package/dist/esm/components/picture.d.ts +14 -0
- package/dist/esm/components/popover.d.ts +6 -0
- package/dist/esm/components/radio.d.ts +16 -0
- package/dist/esm/components/skeleton.d.ts +9 -0
- package/dist/esm/components/tabs.d.ts +11 -0
- package/dist/esm/components/text.d.ts +32 -0
- package/dist/esm/components/theme.d.ts +12 -0
- package/dist/esm/cpn-components/CpnBanner/index.d.ts +3 -0
- package/dist/esm/cpn-components/CpnBanner/types.d.ts +43 -0
- package/dist/esm/cpn-components/CpnCountDown/index.d.ts +3 -0
- package/dist/esm/cpn-components/CpnCountDown/types.d.ts +29 -0
- package/dist/esm/cpn-components/CpnNavigation/index.d.ts +3 -0
- package/dist/esm/cpn-components/CpnNavigation/types.d.ts +21 -0
- package/dist/esm/cpn-components/CpnProductCard/index.d.ts +3 -0
- package/dist/esm/cpn-components/CpnProductCard/types.d.ts +109 -0
- package/dist/esm/cpn-components/CpnTitle/index.d.ts +3 -0
- package/dist/esm/cpn-components/CpnTitle/types.d.ts +10 -0
- package/dist/esm/cpn-components/index.d.ts +5 -0
- package/dist/esm/helpers/ScrollLoadVideo.d.ts +15 -0
- package/dist/esm/helpers/component-props.d.ts +7 -0
- package/dist/esm/helpers/constants.d.ts +0 -0
- package/dist/esm/helpers/index.d.ts +2 -0
- package/dist/esm/helpers/utils.d.ts +6 -0
- package/dist/esm/hooks/useCountDown.d.ts +10 -0
- package/dist/esm/hooks/useExposure.d.ts +12 -0
- package/dist/esm/hooks/useIntersectionObserver.d.ts +17 -0
- package/dist/esm/hooks/useRollout.d.ts +14 -0
- package/dist/esm/icons/spinner.d.ts +5 -0
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/shared/Styles.d.ts +39 -0
- package/dist/esm/shared/getKeyPropsString.d.ts +4 -0
- package/dist/esm/shared/mimeType.d.ts +1 -0
- package/dist/esm/shared/simpleHash.d.ts +1 -0
- package/dist/esm/shared/throttle.d.ts +1 -0
- package/dist/esm/shared/track.d.ts +1 -0
- package/dist/esm/shared/trackUrlRef.d.ts +7 -0
- package/dist/esm/stories/HeroBanner.stories.d.ts +11 -0
- package/dist/esm/stories/InlineVideo.stories.d.ts +11 -0
- package/dist/esm/stories/MarqueeReview.stories.d.ts +43 -0
- package/dist/esm/stories/MemberEquity.stories.d.ts +9 -0
- package/dist/esm/stories/MultiLayoutGraphicBlock.stories.d.ts +9 -0
- package/dist/esm/stories/ThreeDCarousel.stories.d.ts +9 -0
- package/dist/esm/stories/accordionCards.stories.d.ts +7 -0
- package/dist/esm/stories/alert.stories.d.ts +5 -0
- package/dist/esm/stories/avatar.stories.d.ts +5 -0
- package/dist/esm/stories/badge.stories.d.ts +6 -0
- package/dist/esm/stories/bizTabs.stories.d.ts +7 -0
- package/dist/esm/stories/board.stories.d.ts +6 -0
- package/dist/esm/stories/brandEquity.stories.d.ts +6 -0
- package/dist/esm/stories/button.stories.d.ts +12 -0
- package/dist/esm/stories/card.stories.d.ts +7 -0
- package/dist/esm/stories/carousel.stories.d.ts +7 -0
- package/dist/esm/stories/category.stories.d.ts +7 -0
- package/dist/esm/stories/checkbox.stories.d.ts +16 -0
- package/dist/esm/stories/container.stories.d.ts +6 -0
- package/dist/esm/stories/cpnBanner.stories.d.ts +5 -0
- package/dist/esm/stories/cpnCountdown.stories.d.ts +5 -0
- package/dist/esm/stories/cpnNavigation.stories.d.ts +5 -0
- package/dist/esm/stories/cpnProductcard.stories.d.ts +5 -0
- package/dist/esm/stories/cpnTitle.stories.d.ts +5 -0
- package/dist/esm/stories/creativeModule.stories.d.ts +3 -0
- package/dist/esm/stories/dialog.stories.d.ts +6 -0
- package/dist/esm/stories/drawer.stories.d.ts +7 -0
- package/dist/esm/stories/drop-down.stories.d.ts +3 -0
- package/dist/esm/stories/evaluate.stories.d.ts +6 -0
- package/dist/esm/stories/faq.stories.d.ts +5 -0
- package/dist/esm/stories/featureCards.stories.d.ts +12 -0
- package/dist/esm/stories/featureShowcase.stories.d.ts +9 -0
- package/dist/esm/stories/graphic.stories.d.ts +6 -0
- package/dist/esm/stories/graphicAttractionBlock.stories.d.ts +6 -0
- package/dist/esm/stories/grid.stories.d.ts +6 -0
- package/dist/esm/stories/heading.stories.d.ts +7 -0
- package/dist/esm/stories/imageTextFeature.stories.d.ts +11 -0
- package/dist/esm/stories/imageWithText.stories.d.ts +24 -0
- package/dist/esm/stories/input-number.stories.d.ts +7 -0
- package/dist/esm/stories/input.stories.d.ts +7 -0
- package/dist/esm/stories/ksp.stories.d.ts +33 -0
- package/dist/esm/stories/link.stories.d.ts +7 -0
- package/dist/esm/stories/marquee.stories.d.ts +8 -0
- package/dist/esm/stories/mediaplayerBase.stories.d.ts +6 -0
- package/dist/esm/stories/mediaplayerMulti.stories.d.ts +6 -0
- package/dist/esm/stories/picture.stories.d.ts +10 -0
- package/dist/esm/stories/popover.stories.d.ts +3 -0
- package/dist/esm/stories/productCompare.stories.d.ts +13 -0
- package/dist/esm/stories/productHero.stories.d.ts +9 -0
- package/dist/esm/stories/radio.stories.d.ts +6 -0
- package/dist/esm/stories/shelfDisplay.stories.d.ts +6 -0
- package/dist/esm/stories/skeleton.stories.d.ts +7 -0
- package/dist/esm/stories/slogan.stories.d.ts +10 -0
- package/dist/esm/stories/specs.stories.d.ts +3 -0
- package/dist/esm/stories/specsComparison.stories.d.ts +8 -0
- package/dist/esm/stories/tabWithImage.stories.d.ts +8 -0
- package/dist/esm/stories/tabs.stories.d.ts +9 -0
- package/dist/esm/stories/tabsWithMedia.stories.d.ts +8 -0
- package/dist/esm/stories/text.stories.d.ts +8 -0
- package/dist/esm/stories/videoFeature.stories.d.ts +9 -0
- package/dist/esm/stories/whychoose.stories.d.ts +5 -0
- package/dist/esm/types/index.d.ts +0 -0
- package/dist/esm/types/props.d.ts +47 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Theme } from '../../types/props.js';
|
|
2
|
+
export interface Feature {
|
|
3
|
+
/**
|
|
4
|
+
* 特性标题
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export interface SloganProps {
|
|
9
|
+
data: {
|
|
10
|
+
/**
|
|
11
|
+
* 主标题
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* 特性分组大小 默认为3
|
|
16
|
+
*/
|
|
17
|
+
featureChunkSize?: number;
|
|
18
|
+
/**
|
|
19
|
+
* 特性列表
|
|
20
|
+
*/
|
|
21
|
+
features?: Feature[];
|
|
22
|
+
/**
|
|
23
|
+
* 主题
|
|
24
|
+
*/
|
|
25
|
+
theme?: Theme;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 自定义类名
|
|
29
|
+
*/
|
|
30
|
+
className?: string;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpacerProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SpacerProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type DropDownProps = {
|
|
2
|
+
index: number;
|
|
3
|
+
active: any;
|
|
4
|
+
list: any;
|
|
5
|
+
setActive: any;
|
|
6
|
+
setVisible: any;
|
|
7
|
+
visible: any;
|
|
8
|
+
filterActive: any;
|
|
9
|
+
};
|
|
10
|
+
declare const DropDown: ({ index, active, list, setActive, setVisible, visible, filterActive }: DropDownProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default DropDown;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as a}from"react/jsx-runtime";import{useEffect as b,useRef as h,useMemo as x}from"react";const m="openDropDown",v=({index:l,active:s,list:d,setActive:p,setVisible:c,visible:t,filterActive:r})=>{const u=h(null);b(()=>{const e=n=>{const o=n?.target?.getAttribute?.("class");!u?.current?.contains(n?.target)&&!o?.includes(m)&&c({...t,[l]:!1})};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[]);const f=x(()=>{const e=Object.keys(r||{});return d?.filter(n=>!e?.find(i=>r?.[i]?.handle===n?.handle))},[r,d]);return a("div",{ref:u,className:`absolute left-0 top-[104%] z-30 box-border max-h-[340px] w-full overflow-hidden rounded-lg bg-[#F5F5F7] ${t?.[l]?"block":"hidden"}`,children:a("div",{className:"m-0 box-border h-full flex-1 overflow-y-auto overflow-x-hidden p-0 [&:last-child]:border-r-0",children:f?.map((e,n)=>{const o=e?.sku||e?.variants?.[0]?.sku;return a("div",{onClick:()=>{p({...s,[n]:{sku:o,name:e?.name,handle:e?.handle}}),c({...t,[n]:!1})},title:e?.name,className:`openDropDown box-border cursor-pointer truncate px-6 py-4 text-base font-bold min-xl:text-lg min-xxl:text-lg [&:hover]:bg-[#EAEAEC]
|
|
2
2
|
${e?.handle===s?.handle?"bg-[#EAEAEC]":""}`,children:e?.name},n)})})})};var D=v;export{D as default};
|
|
3
3
|
//# sourceMappingURL=dropdown.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../src/biz-components/Specs/dropdown.tsx"],
|
|
4
|
-
"sourcesContent": ["import { useEffect, useRef, useMemo } from 'react'\n\nconst clickContent = 'openDropDown'\n\nexport type DropDownProps = {\n index: number\n active: any\n list: any\n setActive: any\n setVisible: any\n visible: any\n filterActive: any\n}\n\nconst DropDown = ({ index, active, list, setActive, setVisible, visible, filterActive }: DropDownProps) => {\n const dropDownRef = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n const handleClickOutside = (event: any) => {\n const isDel = event?.target?.getAttribute?.('class')\n const isContainer = !dropDownRef?.current?.contains(event?.target)\n if (isContainer && !isDel?.includes(clickContent)) {\n setVisible({ ...visible, [index]: false })\n }\n }\n document.addEventListener('click', handleClickOutside)\n return () => document.removeEventListener('click', handleClickOutside)\n }, [])\n\n const handleList = useMemo(() => {\n const activeIndex = Object.keys(filterActive || {})\n return list?.filter((item: { handle: any }) => {\n const currentIndex = activeIndex?.find((items: string) => filterActive?.[items]?.handle === item?.handle)\n return !currentIndex\n })\n }, [filterActive, list])\n\n return (\n <div\n ref={dropDownRef}\n className={`absolute left-0 top-[104%] z-30 box-border max-h-[340px] w-full overflow-hidden rounded-lg bg-[#F5F5F7] ${visible?.[index] ? 'block' : 'hidden'}`}\n >\n <div className={'m-0 box-border h-full flex-1 overflow-y-auto overflow-x-hidden p-0 [&:last-child]:border-r-0'}>\n {handleList?.map((item: any,
|
|
5
|
-
"mappings": "AA8CY,cAAAA,MAAA,oBA9CZ,OAAS,aAAAC,EAAW,UAAAC,EAAQ,WAAAC,MAAe,QAE3C,MAAMC,EAAe,eAYfC,EAAW,CAAC,CAAE,MAAAC,EAAO,OAAAC,EAAQ,KAAAC,EAAM,UAAAC,EAAW,WAAAC,EAAY,QAAAC,EAAS,aAAAC,CAAa,IAAqB,CACzG,MAAMC,EAAcX,EAAuB,IAAI,EAE/CD,EAAU,IAAM,CACd,MAAMa,EAAsBC,GAAe,CACzC,MAAMC,EAAQD,GAAO,QAAQ,eAAe,OAAO,EAC/B,CAACF,GAAa,SAAS,SAASE,GAAO,MAAM,GAC9C,CAACC,GAAO,SAASZ,CAAY,GAC9CM,EAAW,CAAE,GAAGC,EAAS,CAACL,CAAK,EAAG,EAAM,CAAC,CAE7C,EACA,gBAAS,iBAAiB,QAASQ,CAAkB,EAC9C,IAAM,SAAS,oBAAoB,QAASA,CAAkB,CACvE,EAAG,CAAC,CAAC,EAEL,MAAMG,EAAad,EAAQ,IAAM,CAC/B,MAAMe,EAAc,OAAO,KAAKN,GAAgB,CAAC,CAAC,EAClD,OAAOJ,GAAM,OAAQW,GAEZ,CADcD,GAAa,KAAME,GAAkBR,IAAeQ,CAAK,GAAG,SAAWD,GAAM,MAAM,CAEzG,CACH,EAAG,CAACP,EAAcJ,CAAI,CAAC,EAEvB,OACER,EAAC,OACC,IAAKa,EACL,UAAW,2GAA2GF,IAAUL,CAAK,EAAI,QAAU,QAAQ,GAE3J,SAAAN,EAAC,OAAI,UAAW,+FACb,SAAAiB,GAAY,IAAI,CAACE,
|
|
6
|
-
"names": ["jsx", "useEffect", "useRef", "useMemo", "clickContent", "DropDown", "index", "active", "list", "setActive", "setVisible", "visible", "filterActive", "dropDownRef", "handleClickOutside", "event", "isDel", "handleList", "activeIndex", "item", "items", "
|
|
4
|
+
"sourcesContent": ["import { useEffect, useRef, useMemo } from 'react'\n\nconst clickContent = 'openDropDown'\n\nexport type DropDownProps = {\n index: number\n active: any\n list: any\n setActive: any\n setVisible: any\n visible: any\n filterActive: any\n}\n\nconst DropDown = ({ index, active, list, setActive, setVisible, visible, filterActive }: DropDownProps) => {\n const dropDownRef = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n const handleClickOutside = (event: any) => {\n const isDel = event?.target?.getAttribute?.('class')\n const isContainer = !dropDownRef?.current?.contains(event?.target)\n if (isContainer && !isDel?.includes(clickContent)) {\n setVisible({ ...visible, [index]: false })\n }\n }\n document.addEventListener('click', handleClickOutside)\n return () => document.removeEventListener('click', handleClickOutside)\n }, [])\n\n const handleList = useMemo(() => {\n const activeIndex = Object.keys(filterActive || {})\n return list?.filter((item: { handle: any }) => {\n const currentIndex = activeIndex?.find((items: string) => filterActive?.[items]?.handle === item?.handle)\n return !currentIndex\n })\n }, [filterActive, list])\n\n return (\n <div\n ref={dropDownRef}\n className={`absolute left-0 top-[104%] z-30 box-border max-h-[340px] w-full overflow-hidden rounded-lg bg-[#F5F5F7] ${visible?.[index] ? 'block' : 'hidden'}`}\n >\n <div className={'m-0 box-border h-full flex-1 overflow-y-auto overflow-x-hidden p-0 [&:last-child]:border-r-0'}>\n {handleList?.map((item: any, index: number) => {\n const currentSku = item?.sku || item?.variants?.[0]?.sku\n return (\n <div\n key={index}\n onClick={() => {\n setActive({\n ...active,\n [index]: {\n sku: currentSku,\n name: item?.name,\n handle: item?.handle,\n },\n })\n setVisible({ ...visible, [index]: false })\n }}\n title={item?.name}\n className={`openDropDown box-border cursor-pointer truncate px-6 py-4 text-base font-bold min-xl:text-lg min-xxl:text-lg [&:hover]:bg-[#EAEAEC]\n ${item?.handle === active?.handle ? 'bg-[#EAEAEC]' : ''}`}\n >\n {item?.name}\n </div>\n )\n })}\n </div>\n </div>\n )\n}\n\nexport default DropDown\n"],
|
|
5
|
+
"mappings": "AA8CY,cAAAA,MAAA,oBA9CZ,OAAS,aAAAC,EAAW,UAAAC,EAAQ,WAAAC,MAAe,QAE3C,MAAMC,EAAe,eAYfC,EAAW,CAAC,CAAE,MAAAC,EAAO,OAAAC,EAAQ,KAAAC,EAAM,UAAAC,EAAW,WAAAC,EAAY,QAAAC,EAAS,aAAAC,CAAa,IAAqB,CACzG,MAAMC,EAAcX,EAAuB,IAAI,EAE/CD,EAAU,IAAM,CACd,MAAMa,EAAsBC,GAAe,CACzC,MAAMC,EAAQD,GAAO,QAAQ,eAAe,OAAO,EAC/B,CAACF,GAAa,SAAS,SAASE,GAAO,MAAM,GAC9C,CAACC,GAAO,SAASZ,CAAY,GAC9CM,EAAW,CAAE,GAAGC,EAAS,CAACL,CAAK,EAAG,EAAM,CAAC,CAE7C,EACA,gBAAS,iBAAiB,QAASQ,CAAkB,EAC9C,IAAM,SAAS,oBAAoB,QAASA,CAAkB,CACvE,EAAG,CAAC,CAAC,EAEL,MAAMG,EAAad,EAAQ,IAAM,CAC/B,MAAMe,EAAc,OAAO,KAAKN,GAAgB,CAAC,CAAC,EAClD,OAAOJ,GAAM,OAAQW,GAEZ,CADcD,GAAa,KAAME,GAAkBR,IAAeQ,CAAK,GAAG,SAAWD,GAAM,MAAM,CAEzG,CACH,EAAG,CAACP,EAAcJ,CAAI,CAAC,EAEvB,OACER,EAAC,OACC,IAAKa,EACL,UAAW,2GAA2GF,IAAUL,CAAK,EAAI,QAAU,QAAQ,GAE3J,SAAAN,EAAC,OAAI,UAAW,+FACb,SAAAiB,GAAY,IAAI,CAACE,EAAWb,IAAkB,CAC7C,MAAMe,EAAaF,GAAM,KAAOA,GAAM,WAAW,CAAC,GAAG,IACrD,OACEnB,EAAC,OAEC,QAAS,IAAM,CACbS,EAAU,CACR,GAAGF,EACH,CAACD,CAAK,EAAG,CACP,IAAKe,EACL,KAAMF,GAAM,KACZ,OAAQA,GAAM,MAChB,CACF,CAAC,EACDT,EAAW,CAAE,GAAGC,EAAS,CAACL,CAAK,EAAG,EAAM,CAAC,CAC3C,EACA,MAAOa,GAAM,KACb,UAAW;AAAA,kBACPA,GAAM,SAAWZ,GAAQ,OAAS,eAAiB,EAAE,GAExD,SAAAY,GAAM,MAhBFb,CAiBP,CAEJ,CAAC,EACH,EACF,CAEJ,EAEA,IAAOgB,EAAQjB",
|
|
6
|
+
"names": ["jsx", "useEffect", "useRef", "useMemo", "clickContent", "DropDown", "index", "active", "list", "setActive", "setVisible", "visible", "filterActive", "dropDownRef", "handleClickOutside", "event", "isDel", "handleList", "activeIndex", "item", "items", "currentSku", "dropdown_default"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<Omit<any, "ref"> & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
3
|
+
className?: string | undefined;
|
|
4
|
+
data?: Record<string, any> | undefined;
|
|
5
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SpecsComparisonProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<SpecsComparisonProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface SpecsComparisonMenuItem {
|
|
2
|
+
/** 产品 SKU */
|
|
3
|
+
sku: string;
|
|
4
|
+
/** 产品 handle */
|
|
5
|
+
handle: string;
|
|
6
|
+
/** 规格数据,key 为规格项名称,value 为规格值 */
|
|
7
|
+
subTitle: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
export interface SpecsComparisonLeftMenuItem {
|
|
10
|
+
/** 分类标题 */
|
|
11
|
+
title: string;
|
|
12
|
+
/** 规格项列表 */
|
|
13
|
+
subTitle: string[];
|
|
14
|
+
/** 是否为产品规格 */
|
|
15
|
+
isProduct?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface SpecsComparisonProps {
|
|
18
|
+
data: {
|
|
19
|
+
/** 左侧菜单配置 */
|
|
20
|
+
LeftMenu: {
|
|
21
|
+
data: SpecsComparisonLeftMenuItem[];
|
|
22
|
+
};
|
|
23
|
+
/** 右侧产品列表配置 */
|
|
24
|
+
RightMenu: {
|
|
25
|
+
menus: SpecsComparisonMenuItem[];
|
|
26
|
+
};
|
|
27
|
+
/** 默认选中菜单配置 */
|
|
28
|
+
DefaultSelectMenu: {
|
|
29
|
+
buttonText: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
/** 自定义类名 */
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscribe 订阅模块
|
|
3
|
+
* @param subscribeMetadata 订阅模块数据
|
|
4
|
+
* @param onSubmit 提交事件
|
|
5
|
+
* @param className 类名
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
declare const Subscribe: ({ subscribeMetadata, onSubmit, className, loading, }: {
|
|
9
|
+
subscribeMetadata: any;
|
|
10
|
+
onSubmit?: ({ email, terms, news, dealsType, onSuccess, }: {
|
|
11
|
+
email: string;
|
|
12
|
+
terms: string;
|
|
13
|
+
news: string;
|
|
14
|
+
dealsType?: string;
|
|
15
|
+
onSuccess?: () => void;
|
|
16
|
+
}) => void;
|
|
17
|
+
className?: string;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default Subscribe;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface SwiperBoxProps {
|
|
3
|
+
data: {
|
|
4
|
+
list: any[];
|
|
5
|
+
configuration?: any;
|
|
6
|
+
onVideoPlayBtnClick?: (jIndex: number) => void;
|
|
7
|
+
};
|
|
8
|
+
id: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
itemClassName?: string;
|
|
11
|
+
breakpoints?: Record<number, Object>;
|
|
12
|
+
Slide: React.ComponentType<{
|
|
13
|
+
data: any;
|
|
14
|
+
configuration?: any;
|
|
15
|
+
jIndex?: number;
|
|
16
|
+
}>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TabWithImageProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabWithImageProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Media } from '../../types/props';
|
|
2
|
+
export interface TabWithImageDataItem {
|
|
3
|
+
/** 桌面端图片 URL */
|
|
4
|
+
image: Media;
|
|
5
|
+
/** 平板端图片 URL */
|
|
6
|
+
imgPad?: Media;
|
|
7
|
+
/** 移动端图片 URL */
|
|
8
|
+
imageMob?: Media;
|
|
9
|
+
/** Tab 标题 */
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
export interface TabWithImageProps {
|
|
13
|
+
data: {
|
|
14
|
+
/** 主标题 */
|
|
15
|
+
title: string;
|
|
16
|
+
/** 副标题(可选) */
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
/** 描述文本 */
|
|
19
|
+
desc: string;
|
|
20
|
+
/** 默认图片 URL(可选) */
|
|
21
|
+
image?: Media;
|
|
22
|
+
/** 默认移动端图片 URL(可选) */
|
|
23
|
+
mobileImage?: Media;
|
|
24
|
+
/** 数据列表 */
|
|
25
|
+
datalist: TabWithImageDataItem[];
|
|
26
|
+
};
|
|
27
|
+
/** 自定义类名 */
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TabsProps } from './types.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Tabs.js';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { Align, Shape, Theme } from '../../types/props.js';
|
|
2
|
+
import type { MultiLayoutGraphicBlockProps } from '../MultiLayoutGraphicBlock/types.js';
|
|
3
|
+
import type { ShelfDisplayProps } from '../ShelfDisplay/shelfDisplay.js';
|
|
4
|
+
import type { AccordionCardsType } from '../AccordionCards/index.js';
|
|
5
|
+
import type { FaqProps } from '../Faq/types.js';
|
|
6
|
+
import type { GraphicProps } from '../Graphic/index.js';
|
|
7
|
+
export type TabContentItem = (ShelfDisplayProps['data'] & {
|
|
8
|
+
blockType: 'ipc-shelfdisplay';
|
|
9
|
+
}) | (MultiLayoutGraphicBlockProps['data'] & {
|
|
10
|
+
blockType: 'ipc-multiLayoutGraphicBlock';
|
|
11
|
+
}) | (AccordionCardsType['data'] & {
|
|
12
|
+
blockType: 'ipc-accordioncards';
|
|
13
|
+
}) | (FaqProps['data'] & {
|
|
14
|
+
blockType: 'ipc-faq';
|
|
15
|
+
}) | (GraphicProps['data'] & {
|
|
16
|
+
blockType: 'ipc-graphic';
|
|
17
|
+
});
|
|
18
|
+
export type TabsProps = {
|
|
19
|
+
data: {
|
|
20
|
+
sectionTitle?: string;
|
|
21
|
+
theme: Theme;
|
|
22
|
+
shape: Shape;
|
|
23
|
+
align: Align;
|
|
24
|
+
tabs: Array<{
|
|
25
|
+
tabName: string;
|
|
26
|
+
tabContent: TabContentItem[];
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
className?: string;
|
|
30
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TabsGroupProps } from './types.js';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsGroupProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { Align, Shape, Theme } from '../../types/props.js';
|
|
3
|
+
export type TabsGroupProps = {
|
|
4
|
+
data: {
|
|
5
|
+
sectionTitle?: string;
|
|
6
|
+
theme: Theme;
|
|
7
|
+
shape: Shape;
|
|
8
|
+
align: Align;
|
|
9
|
+
tabs: {
|
|
10
|
+
tabName: string;
|
|
11
|
+
tabContent: any[];
|
|
12
|
+
children: (data: any) => React.ReactNode;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TabsWithMediaProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TabsWithMediaProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { Media } from "../../types/props";
|
|
2
|
+
export interface TabItem {
|
|
3
|
+
/** Tab 标签文本 */
|
|
4
|
+
tab: string;
|
|
5
|
+
/** 描述文本 */
|
|
6
|
+
desc: string;
|
|
7
|
+
/** Tab 图标 URL */
|
|
8
|
+
icon: Media;
|
|
9
|
+
/** 视频封面图 */
|
|
10
|
+
poster?: Media;
|
|
11
|
+
/** Tab 图标(可选) */
|
|
12
|
+
tabIcon?: Media;
|
|
13
|
+
/** 视频 URL(可选) */
|
|
14
|
+
video?: Media;
|
|
15
|
+
}
|
|
16
|
+
export interface TimeIndex {
|
|
17
|
+
/** 片段时长 */
|
|
18
|
+
time: number;
|
|
19
|
+
/** 时间节点 */
|
|
20
|
+
point: number;
|
|
21
|
+
/** 高亮索引 */
|
|
22
|
+
highlightIdx: number;
|
|
23
|
+
}
|
|
24
|
+
export interface TabsWithMediaProps {
|
|
25
|
+
data: {
|
|
26
|
+
/** 主标题 */
|
|
27
|
+
title: string;
|
|
28
|
+
/** 默认视频封面图 */
|
|
29
|
+
poster?: Media;
|
|
30
|
+
/** 桌面端视频 URL */
|
|
31
|
+
video: Media;
|
|
32
|
+
/** 移动端视频 URL */
|
|
33
|
+
mobvideo?: Media;
|
|
34
|
+
/** Tab 项列表 */
|
|
35
|
+
items: TabItem[];
|
|
36
|
+
/** 时间点配置(可选,用于视频时间自动切换) */
|
|
37
|
+
timeIdx?: TimeIndex[];
|
|
38
|
+
};
|
|
39
|
+
/** 自定义类名 */
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Img } from '../../types/props.js';
|
|
2
|
+
export type TextModalType = {
|
|
3
|
+
textVisible: boolean;
|
|
4
|
+
extension?: {
|
|
5
|
+
textPcImg: Img;
|
|
6
|
+
textMobileImg: Img;
|
|
7
|
+
textTitle: string;
|
|
8
|
+
text: string;
|
|
9
|
+
textDesc: string;
|
|
10
|
+
};
|
|
11
|
+
onCloseModal: () => void;
|
|
12
|
+
};
|
|
13
|
+
declare const TextModal: (props: TextModalType) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export { TextModal };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface CarouselItem {
|
|
2
|
+
imageUrl: string;
|
|
3
|
+
mobImageUrl?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
}
|
|
7
|
+
interface ThreeDCarouselProps {
|
|
8
|
+
data: {
|
|
9
|
+
title?: string;
|
|
10
|
+
items: CarouselItem[];
|
|
11
|
+
};
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export default function ThreeDCarousel({ data, className }: ThreeDCarouselProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TitleProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<TitleProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { Theme } from '../../types/props.js';
|
|
2
|
+
export interface Feature {
|
|
3
|
+
/**
|
|
4
|
+
* 特性标题
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export interface TitleProps {
|
|
9
|
+
data: {
|
|
10
|
+
/**
|
|
11
|
+
* 主标题
|
|
12
|
+
*/
|
|
13
|
+
title?: string;
|
|
14
|
+
caption?: string;
|
|
15
|
+
/**
|
|
16
|
+
* 特性列表,最多支持3个
|
|
17
|
+
*/
|
|
18
|
+
features?: Feature[];
|
|
19
|
+
/**
|
|
20
|
+
* 主题色
|
|
21
|
+
*/
|
|
22
|
+
theme?: Theme;
|
|
23
|
+
/**
|
|
24
|
+
* 扩展数据
|
|
25
|
+
*/
|
|
26
|
+
extensions?: any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 自定义类名
|
|
30
|
+
*/
|
|
31
|
+
className?: string;
|
|
32
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
33
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { VideoFeatureProps } from './types.js';
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<VideoFeatureProps & React.RefAttributes<HTMLDivElement>, keyof import("../../shared/Styles.js").StylesProps> & Partial<import("../../shared/Styles.js").StylesProps & import("../../shared/Styles.js").ContainerProps> & {
|
|
4
|
+
className?: string | undefined;
|
|
5
|
+
data?: Record<string, any> | undefined;
|
|
6
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Media } from '../../types/props';
|
|
2
|
+
export interface VideoFeatureProps {
|
|
3
|
+
data: {
|
|
4
|
+
/** 主标题 */
|
|
5
|
+
title: string;
|
|
6
|
+
/** 副标题/描述 */
|
|
7
|
+
subtitle?: string;
|
|
8
|
+
/** 桌面端视频 URL */
|
|
9
|
+
video: Media;
|
|
10
|
+
/** 桌面端视频封面图 */
|
|
11
|
+
poster?: Media;
|
|
12
|
+
/** 移动端视频 URL */
|
|
13
|
+
mobvideo?: Media;
|
|
14
|
+
/** 移动端视频封面图 */
|
|
15
|
+
mobPoster?: Media;
|
|
16
|
+
};
|
|
17
|
+
/** 自定义类名 */
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { WhyChooseProps, WhyChooseItem as ItemType } from './types.js';
|
|
3
|
+
declare const WhyChooseItem: {
|
|
4
|
+
({ data }: {
|
|
5
|
+
data: ItemType;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: React.ForwardRefExoticComponent<Omit<Omit<WhyChooseProps & React.RefAttributes<HTMLDivElement>, 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
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
13
|
+
export default _default;
|
|
14
|
+
export { WhyChooseItem };
|