@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,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
4
|
+
declare const radioGroupVariants: (props?: ({
|
|
5
|
+
size?: "base" | "lg" | "sm" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
+
interface RadioGroupProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root> {
|
|
8
|
+
/** 尺寸 */
|
|
9
|
+
size?: 'sm' | 'base' | 'lg';
|
|
10
|
+
}
|
|
11
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
interface RadioGroupItemProps extends React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>, VariantProps<typeof radioGroupVariants> {
|
|
13
|
+
}
|
|
14
|
+
declare const RadioGroupItem: React.ForwardRefExoticComponent<RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
export { RadioGroup, RadioGroupItem };
|
|
16
|
+
export type { RadioGroupProps, RadioGroupItemProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
3
|
+
interface SkeletonProps extends ComponentPropsWithout<'span', RemovedProps> {
|
|
4
|
+
/** 是否正在加载 , 默认是true*/
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLSpanElement>>;
|
|
8
|
+
export default Skeleton;
|
|
9
|
+
export type { SkeletonProps };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
3
|
+
import type { Align, Shape } from '../types/props.js';
|
|
4
|
+
declare const Tabs: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
5
|
+
align?: Align | undefined;
|
|
6
|
+
shape?: Shape | undefined;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
import type { SerializedEditorState, SerializedLexicalNode } from 'lexical';
|
|
4
|
+
import type { ComponentPropsWithout, RemovedProps } from '../helpers/component-props.js';
|
|
5
|
+
declare const textVariants: (props?: ({
|
|
6
|
+
size?: 1 | "none" | 2 | 3 | 4 | null | undefined;
|
|
7
|
+
weight?: "bold" | "medium" | "semibold" | "extraBold" | "black" | null | undefined;
|
|
8
|
+
align?: "left" | "right" | "center" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
+
type TextSpanProps = {
|
|
11
|
+
as?: 'span';
|
|
12
|
+
} & ComponentPropsWithout<'span', RemovedProps>;
|
|
13
|
+
type TextDivProps = {
|
|
14
|
+
as: 'div';
|
|
15
|
+
} & ComponentPropsWithout<'div', RemovedProps>;
|
|
16
|
+
type TextLabelProps = {
|
|
17
|
+
as: 'label';
|
|
18
|
+
} & ComponentPropsWithout<'label', RemovedProps>;
|
|
19
|
+
type TextPProps = {
|
|
20
|
+
as: 'p';
|
|
21
|
+
} & ComponentPropsWithout<'p', RemovedProps>;
|
|
22
|
+
interface CommonTextProps extends VariantProps<typeof textVariants> {
|
|
23
|
+
as?: 'div' | 'label' | 'p' | 'span';
|
|
24
|
+
asChild?: boolean;
|
|
25
|
+
color?: string;
|
|
26
|
+
/** 相当于 dangerouslySetInnerHTML */
|
|
27
|
+
html?: string | SerializedEditorState<SerializedLexicalNode>;
|
|
28
|
+
}
|
|
29
|
+
type TextProps = CommonTextProps & (TextSpanProps | TextDivProps | TextLabelProps | TextPProps);
|
|
30
|
+
declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
31
|
+
export { Text };
|
|
32
|
+
export type { TextProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
interface ThemeProps {
|
|
3
|
+
brand: string;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated
|
|
8
|
+
* @param param
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
declare const Theme: ({ brand, children }: ThemeProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default Theme;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { CountDownProps } from '../CpnCountDown/types';
|
|
2
|
+
type TextType = 'title' | 'subtitle' | 'subheading';
|
|
3
|
+
type TextContent = {
|
|
4
|
+
type: TextType;
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
type ButtonContent = {
|
|
8
|
+
type: 'button';
|
|
9
|
+
text: string;
|
|
10
|
+
target?: string;
|
|
11
|
+
cns?: string;
|
|
12
|
+
onClick?: () => void;
|
|
13
|
+
};
|
|
14
|
+
type ButtonsContent = {
|
|
15
|
+
type: 'buttons';
|
|
16
|
+
buttons: Omit<ButtonContent, 'type'>[];
|
|
17
|
+
};
|
|
18
|
+
type CountDownContent = {
|
|
19
|
+
type: 'countdown';
|
|
20
|
+
} & CountDownProps;
|
|
21
|
+
type BannerContent = TextContent | ButtonContent | ButtonsContent | CountDownContent;
|
|
22
|
+
export type BannerProps = {
|
|
23
|
+
id?: string;
|
|
24
|
+
image: string;
|
|
25
|
+
imageMob?: string;
|
|
26
|
+
imageLink?: string;
|
|
27
|
+
content?: BannerContent[];
|
|
28
|
+
cns?: {
|
|
29
|
+
container?: string;
|
|
30
|
+
picture?: string;
|
|
31
|
+
image?: string;
|
|
32
|
+
box?: string;
|
|
33
|
+
contentBox?: string;
|
|
34
|
+
content?: string;
|
|
35
|
+
subheading?: string;
|
|
36
|
+
title?: string;
|
|
37
|
+
subtitle?: string;
|
|
38
|
+
buttonBox?: string;
|
|
39
|
+
button?: string;
|
|
40
|
+
countdown?: CountDownProps['cns'];
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type Cns = {
|
|
2
|
+
container?: string;
|
|
3
|
+
item?: string;
|
|
4
|
+
picture?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
time?: string;
|
|
7
|
+
copy?: string;
|
|
8
|
+
colonBox?: string;
|
|
9
|
+
colon?: string;
|
|
10
|
+
};
|
|
11
|
+
type Copy = {
|
|
12
|
+
days?: string;
|
|
13
|
+
hours?: string;
|
|
14
|
+
minutes?: string;
|
|
15
|
+
seconds?: string;
|
|
16
|
+
};
|
|
17
|
+
export type CountDownProps = {
|
|
18
|
+
endTime?: string;
|
|
19
|
+
copy?: Copy;
|
|
20
|
+
cns?: Cns;
|
|
21
|
+
expiredHidden?: boolean;
|
|
22
|
+
};
|
|
23
|
+
export type ItemProps = {
|
|
24
|
+
time?: string;
|
|
25
|
+
copy?: string;
|
|
26
|
+
image?: string;
|
|
27
|
+
cns?: Cns;
|
|
28
|
+
};
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Cns = {
|
|
3
|
+
container?: string;
|
|
4
|
+
box?: string;
|
|
5
|
+
item?: string;
|
|
6
|
+
activeItem?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface Nav {
|
|
9
|
+
label: string;
|
|
10
|
+
anchor: string;
|
|
11
|
+
}
|
|
12
|
+
export type NavigationProps = {
|
|
13
|
+
lists: Nav[];
|
|
14
|
+
styles?: {
|
|
15
|
+
[key: string]: string;
|
|
16
|
+
};
|
|
17
|
+
cns?: Cns;
|
|
18
|
+
offset?: number;
|
|
19
|
+
clickHandler?: (nav: Nav, index: number, e: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export type ProductImage = {
|
|
2
|
+
url: string;
|
|
3
|
+
altText?: string;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
};
|
|
7
|
+
export type ProductPrice = {
|
|
8
|
+
value: number;
|
|
9
|
+
currencyCode?: 'USD' | 'EUR' | 'ARS' | string;
|
|
10
|
+
retailPrice?: number;
|
|
11
|
+
salePrice?: number;
|
|
12
|
+
listPrice?: number;
|
|
13
|
+
extendedSalePrice?: number;
|
|
14
|
+
extendedListPrice?: number;
|
|
15
|
+
};
|
|
16
|
+
export type ProductOption = {
|
|
17
|
+
__typename?: 'MultipleChoiceOption';
|
|
18
|
+
id: string;
|
|
19
|
+
displayName: string;
|
|
20
|
+
name?: string;
|
|
21
|
+
values: ProductOptionValues[];
|
|
22
|
+
};
|
|
23
|
+
export type ProductOptionValues = {
|
|
24
|
+
label: string;
|
|
25
|
+
hexColors?: string[];
|
|
26
|
+
};
|
|
27
|
+
export type SellingPlans = {
|
|
28
|
+
id: string;
|
|
29
|
+
name: string;
|
|
30
|
+
options: {
|
|
31
|
+
name: string;
|
|
32
|
+
value: string;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
export type SellingPlanGroups = {
|
|
36
|
+
name: string;
|
|
37
|
+
sellingPlans: SellingPlans[];
|
|
38
|
+
};
|
|
39
|
+
export type SellingPlanAllocations = {
|
|
40
|
+
priceAdjustments: [];
|
|
41
|
+
sellingPlan: SellingPlans;
|
|
42
|
+
}[];
|
|
43
|
+
export type ProductVariant = {
|
|
44
|
+
barcode?: string;
|
|
45
|
+
id: string | number;
|
|
46
|
+
options: ProductOption[];
|
|
47
|
+
availableForSale?: boolean;
|
|
48
|
+
quantityAvailable: number;
|
|
49
|
+
metafields?: Record<string, any>;
|
|
50
|
+
sellingPlanAllocations?: SellingPlanAllocations;
|
|
51
|
+
price: number;
|
|
52
|
+
weight?: number;
|
|
53
|
+
name?: string;
|
|
54
|
+
image?: ProductImage;
|
|
55
|
+
requiresShipping?: boolean;
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
58
|
+
export type Product = {
|
|
59
|
+
availableForSale?: boolean;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
description: string;
|
|
63
|
+
descriptionHtml?: string;
|
|
64
|
+
productType?: string;
|
|
65
|
+
onlineStoreUrl?: string | null;
|
|
66
|
+
publishedAt?: string;
|
|
67
|
+
title?: string;
|
|
68
|
+
slug?: string;
|
|
69
|
+
handle?: string;
|
|
70
|
+
path?: string;
|
|
71
|
+
images: ProductImage[];
|
|
72
|
+
variants: ProductVariant[];
|
|
73
|
+
price: ProductPrice;
|
|
74
|
+
listPrice?: number;
|
|
75
|
+
options: ProductOption[];
|
|
76
|
+
seo?: any;
|
|
77
|
+
tags?: string[];
|
|
78
|
+
metafields?: {
|
|
79
|
+
[key: string]: any;
|
|
80
|
+
};
|
|
81
|
+
vendor: string;
|
|
82
|
+
totalInventory: number;
|
|
83
|
+
requiresSellingPlan: boolean;
|
|
84
|
+
sellingPlanGroups: SellingPlanGroups[];
|
|
85
|
+
};
|
|
86
|
+
type Cns = {
|
|
87
|
+
container?: string;
|
|
88
|
+
box?: string;
|
|
89
|
+
item?: string;
|
|
90
|
+
activeItem?: string;
|
|
91
|
+
};
|
|
92
|
+
type ContentType = 'tag' | 'image' | 'title' | 'subtitle' | 'price' | 'buttons' | 'code';
|
|
93
|
+
interface Content {
|
|
94
|
+
type: ContentType;
|
|
95
|
+
text?: string;
|
|
96
|
+
image?: string;
|
|
97
|
+
imageMob?: string;
|
|
98
|
+
url?: string;
|
|
99
|
+
buttons?: {
|
|
100
|
+
text: string;
|
|
101
|
+
variant?: "primary" | "secondary";
|
|
102
|
+
onClick?: () => void;
|
|
103
|
+
}[];
|
|
104
|
+
}
|
|
105
|
+
export type ProductCardProps = {
|
|
106
|
+
content?: Content[];
|
|
107
|
+
cns?: Cns;
|
|
108
|
+
};
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as CpnBanner } from './CpnBanner/index.js';
|
|
2
|
+
export { default as CpnCountDown } from './CpnCountDown/index.js';
|
|
3
|
+
export { default as CpnNavigation } from './CpnNavigation/index.js';
|
|
4
|
+
export { default as CpnProductCard } from './CpnProductCard/index.js';
|
|
5
|
+
export { default as CpnTitle } from './CpnTitle/index.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const ScrollLoadVideo: ({ src, poster, alt, className, videoWrapperClassName, videoClassName, autoplay, muted, loop, controls, playsInline, videoRef, ...attr }: {
|
|
2
|
+
src: string;
|
|
3
|
+
poster?: string;
|
|
4
|
+
alt?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
videoWrapperClassName?: string;
|
|
7
|
+
videoClassName?: string;
|
|
8
|
+
autoplay?: boolean;
|
|
9
|
+
muted?: boolean;
|
|
10
|
+
loop?: boolean;
|
|
11
|
+
controls?: boolean;
|
|
12
|
+
playsInline?: boolean;
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default ScrollLoadVideo;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type ComponentPropsAs<C extends React.ElementType<any>, T extends React.ComponentPropsWithoutRef<C>['as']> = Omit<Extract<React.ComponentPropsWithoutRef<C>, {
|
|
3
|
+
as: T;
|
|
4
|
+
}>, 'as' | 'asChild'>;
|
|
5
|
+
type ComponentPropsWithout<T extends React.ElementType, O extends Omit<string, keyof React.ComponentPropsWithoutRef<T>> | keyof React.ComponentPropsWithoutRef<T>> = Omit<React.ComponentPropsWithoutRef<T>, O & string>;
|
|
6
|
+
type RemovedProps = 'asChild' | 'defaultChecked' | 'defaultValue' | 'color';
|
|
7
|
+
export type { ComponentPropsAs, ComponentPropsWithout, RemovedProps };
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClassValue } from 'clsx';
|
|
2
|
+
export declare function cn(...inputs: ClassValue[]): string;
|
|
3
|
+
export declare function noop(): any;
|
|
4
|
+
export declare function atobID(id: string): string | undefined;
|
|
5
|
+
export declare const spaceToHyphen: (str: string) => string;
|
|
6
|
+
export declare const highlightSearchWord: (text: string, searchText: string) => string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
interface ExposureOptions {
|
|
3
|
+
componentType: string;
|
|
4
|
+
componentName: string;
|
|
5
|
+
componentTitle?: string;
|
|
6
|
+
componentDescription?: string;
|
|
7
|
+
navigation?: string;
|
|
8
|
+
pageGroup?: string;
|
|
9
|
+
position?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const useExposure: (ref: RefObject<HTMLDivElement>, { componentType, componentName, componentTitle, componentDescription, navigation, position }: ExposureOptions) => void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
type DelayOptions = {
|
|
3
|
+
callback: () => void;
|
|
4
|
+
once?: boolean;
|
|
5
|
+
threshold?: number;
|
|
6
|
+
delay?: number;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* 只有提留超过delay设置的时间才会触发callback
|
|
10
|
+
* @param targetRef
|
|
11
|
+
* @param callback
|
|
12
|
+
* @param once
|
|
13
|
+
* @param threshold
|
|
14
|
+
* @param delay
|
|
15
|
+
*/
|
|
16
|
+
export declare const useIntersectionObserverDelay: (targetRef: RefObject<any> | undefined, { callback, once, threshold, delay }: DelayOptions) => void;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
type UseRolloutOptions = IntersectionObserverInit & {
|
|
3
|
+
/**
|
|
4
|
+
* When true, once the target enters the viewport the first time,
|
|
5
|
+
* the observer disconnects and `inView` stays true.
|
|
6
|
+
*/
|
|
7
|
+
once?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Observe when an element enters the viewport.
|
|
11
|
+
* Returns a ref to attach to the element and a boolean indicating visibility.
|
|
12
|
+
*/
|
|
13
|
+
export declare function useRollout<T extends HTMLElement = HTMLElement>(options?: UseRolloutOptions): [MutableRefObject<T | null>, boolean];
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/index.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface ContainerProps {
|
|
3
|
+
container?: {
|
|
4
|
+
/** 桌面端列内容宽度 */
|
|
5
|
+
desktopSpan: number;
|
|
6
|
+
/** 移动端列内容宽度 */
|
|
7
|
+
mobileSpan: number;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface StylesProps {
|
|
11
|
+
/** 自定义样式字符串 */
|
|
12
|
+
style?: string;
|
|
13
|
+
/** 唯一标识符 */
|
|
14
|
+
uid?: string;
|
|
15
|
+
/** 是否禁用 */
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 从组件 props 中提取样式相关属性
|
|
20
|
+
*/
|
|
21
|
+
export declare const getStylesProps: <T extends Record<string, unknown>>(props: T & StylesProps) => StylesProps;
|
|
22
|
+
/**
|
|
23
|
+
* 样式 Hook,返回样式类名和样式组件
|
|
24
|
+
* @param styleProps - 样式属性
|
|
25
|
+
*/
|
|
26
|
+
export declare const useStyles: (styleProps: Partial<StylesProps>, data?: Record<string, any>) => {
|
|
27
|
+
readonly className: `block-${string} `;
|
|
28
|
+
readonly StyleComponent: import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
readonly uid: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* 高阶组件, 用于给组件用style 标签的形式追加样式
|
|
33
|
+
* @param WrappedComponent - 需要包装的组件
|
|
34
|
+
* @param defaultLayoutProps - 默认样式属性
|
|
35
|
+
*/
|
|
36
|
+
export declare function withLayout<P extends object>(WrappedComponent: React.ComponentType<P>, defaultLayoutProps?: Partial<StylesProps & ContainerProps>): React.ForwardRefExoticComponent<React.PropsWithoutRef<Omit<P, keyof StylesProps> & Partial<StylesProps & ContainerProps> & {
|
|
37
|
+
className?: string | undefined;
|
|
38
|
+
data?: Record<string, any> | undefined;
|
|
39
|
+
}> & React.RefAttributes<any>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isVideo: (mimeType?: string) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function simpleHash(str: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function throttle<T extends (...args: any[]) => any>(fn: T, delay: number): (...args: Parameters<T>) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const gaTrack: (data: any) => "" | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import HeroBanner from '../biz-components/HeroBanner/HeroBanner.js';
|
|
3
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof HeroBanner>;
|
|
6
|
+
export declare const LightTheme: Story;
|
|
7
|
+
export declare const DarkTheme: Story;
|
|
8
|
+
export declare const MultiBanner: () => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const WithoutSecondaryButton: Story;
|
|
10
|
+
export declare const WithPadImage: Story;
|
|
11
|
+
export declare const WithPlayButton: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const WithoutSubtitle: Story;
|
|
7
|
+
export declare const WithoutPosters: Story;
|
|
8
|
+
export declare const LongDescription: Story;
|
|
9
|
+
export declare const DarkTheme: Story;
|
|
10
|
+
export declare const LightTheme: Story;
|
|
11
|
+
export declare const CustomStyled: Story;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
/**
|
|
3
|
+
* MarqueeReview 组件用于展示垂直滚动的用户评论轮播。
|
|
4
|
+
*
|
|
5
|
+
* ## 功能特性
|
|
6
|
+
* - 垂直无限滚动动画
|
|
7
|
+
* - 支持多列布局(响应式)
|
|
8
|
+
* - 星级评分显示
|
|
9
|
+
* - 用户头像展示
|
|
10
|
+
* - 渐变边缘遮罩效果
|
|
11
|
+
*
|
|
12
|
+
* ## 使用场景
|
|
13
|
+
* - 产品评价展示
|
|
14
|
+
* - 用户证言
|
|
15
|
+
* - 客户反馈墙
|
|
16
|
+
*/
|
|
17
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
18
|
+
export default meta;
|
|
19
|
+
type Story = StoryObj<typeof meta>;
|
|
20
|
+
/**
|
|
21
|
+
* 默认状态 - 展示完整的评论轮播效果
|
|
22
|
+
*/
|
|
23
|
+
export declare const Default: Story;
|
|
24
|
+
/**
|
|
25
|
+
* 中文内容 - 展示中文评论
|
|
26
|
+
*/
|
|
27
|
+
export declare const Chinese: Story;
|
|
28
|
+
/**
|
|
29
|
+
* 少量评论 - 当评论数量不足时,组件会自动复制填充
|
|
30
|
+
*/
|
|
31
|
+
export declare const FewReviews: Story;
|
|
32
|
+
/**
|
|
33
|
+
* 不同评分 - 展示不同星级评分
|
|
34
|
+
*/
|
|
35
|
+
export declare const MixedRatings: Story;
|
|
36
|
+
/**
|
|
37
|
+
* 自定义样式 - 使用自定义 className
|
|
38
|
+
*/
|
|
39
|
+
export declare const CustomStyle: Story;
|
|
40
|
+
/**
|
|
41
|
+
* 长评论内容 - 测试长文本的显示效果
|
|
42
|
+
*/
|
|
43
|
+
export declare const LongComments: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MemberEquity from '../biz-components/MemberEquity/index.js';
|
|
3
|
+
declare const meta: Meta<typeof MemberEquity>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MemberEquity>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Round: Story;
|
|
8
|
+
export declare const CustomButtons: Story;
|
|
9
|
+
export declare const CustomStyles: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import MultiLayoutGraphicBlock from '../biz-components/MultiLayoutGraphicBlock/MultiLayoutGraphicBlock.js';
|
|
3
|
+
declare const meta: Meta<typeof MultiLayoutGraphicBlock>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MultiLayoutGraphicBlock>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ThirdWidth: Story;
|
|
8
|
+
export declare const WithCarousel: Story;
|
|
9
|
+
export declare const WithTabs: Story;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const WithoutTitle: Story;
|
|
7
|
+
export declare const WithoutItemTitles: Story;
|
|
8
|
+
export declare const ThreeItems: Story;
|
|
9
|
+
export declare const CustomClassName: Story;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Round: Story;
|
|
7
|
+
export declare const CustomLayout: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
2
|
+
export default meta;
|
|
3
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export declare const AvatarType: () => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const AvatarSize: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: ComponentAnnotations<import("@storybook/react").ReactRenderer, import("react").ComponentProps<TCmpOrArgs>>;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj<typeof meta>;
|
|
5
|
+
export declare const Default: Story;
|
|
6
|
+
export declare const Examples: Story;
|