@quintype/arrow 3.15.1-perf.5 → 3.15.1-perf.9
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/cjs/index.js +28 -28
- package/esm/components/Atoms/AdPlaceholder/ads.m.css +13 -0
- package/esm/components/Atoms/AdPlaceholder/index.js +28 -0
- package/esm/components/Atoms/Author/README.md +19 -0
- package/esm/components/Atoms/Author/author.m.css +65 -0
- package/esm/components/Atoms/Author/index.js +109 -0
- package/esm/components/Atoms/Author/stories.js +28 -0
- package/esm/components/Atoms/AuthorCard/README.md +47 -0
- package/esm/components/Atoms/AuthorCard/author-card.m.css +174 -0
- package/esm/components/Atoms/AuthorCard/author-card.test.js +93 -0
- package/esm/components/Atoms/AuthorCard/index.js +133 -0
- package/esm/components/Atoms/AuthorCard/stories.js +68 -0
- package/esm/components/Atoms/AuthorImage/README.md +31 -0
- package/esm/components/Atoms/AuthorImage/author-image.m.css +53 -0
- package/esm/components/Atoms/AuthorImage/index.js +69 -0
- package/esm/components/Atoms/AuthorImage/stories.js +26 -0
- package/esm/components/Atoms/AuthorWithTimestamp/README.md +12 -0
- package/esm/components/Atoms/AuthorWithTimestamp/author-with-timestamp.m.css +42 -0
- package/esm/components/Atoms/AuthorWithTimestamp/index.js +95 -0
- package/esm/components/Atoms/AuthorWithTimestamp/stories.js +22 -0
- package/esm/components/Atoms/BulletPoint/README.md +9 -0
- package/esm/components/Atoms/BulletPoint/bullet-point.m.css +14 -0
- package/esm/components/Atoms/BulletPoint/index.js +27 -0
- package/esm/components/Atoms/BulletPoint/stories.js +9 -0
- package/esm/components/Atoms/CaptionAttribution/README.md +15 -0
- package/esm/components/Atoms/CaptionAttribution/caption-attribution.m.css +40 -0
- package/esm/components/Atoms/CaptionAttribution/caption-attribution.test.js +50 -0
- package/esm/components/Atoms/CaptionAttribution/index.js +66 -0
- package/esm/components/Atoms/CaptionAttribution/stories.js +47 -0
- package/esm/components/Atoms/CollectionName/README.md +11 -0
- package/esm/components/Atoms/CollectionName/collection-name.m.css +94 -0
- package/esm/components/Atoms/CollectionName/index.js +152 -0
- package/esm/components/Atoms/CollectionName/stories.js +41 -0
- package/esm/components/Atoms/Divider/__snapshots__/divider.test.js.snap +18 -0
- package/esm/components/Atoms/Divider/divider.m.css +6 -0
- package/esm/components/Atoms/Divider/divider.test.js +9 -0
- package/esm/components/Atoms/Divider/index.js +34 -0
- package/esm/components/Atoms/Dot/dot.js +39 -0
- package/esm/components/Atoms/Dot/dot.m.css +6 -0
- package/esm/components/Atoms/ExtendedLoadMore/README.md +9 -0
- package/esm/components/Atoms/ExtendedLoadMore/__snapshots__/extended-load-more.test.js.snap +11 -0
- package/esm/components/Atoms/ExtendedLoadMore/extended-load-more.test.js +14 -0
- package/esm/components/Atoms/ExtendedLoadMore/index.js +183 -0
- package/esm/components/Atoms/FallbackImage/fallback.m.css +33 -0
- package/esm/components/Atoms/FallbackImage/index.js +29 -0
- package/esm/components/Atoms/Headline/README.md +7 -0
- package/esm/components/Atoms/Headline/headline.m.css +26 -0
- package/esm/components/Atoms/Headline/index.js +97 -0
- package/esm/components/Atoms/Headline/stories.js +39 -0
- package/esm/components/Atoms/HeroImage/README.md +13 -0
- package/esm/components/Atoms/HeroImage/hero-image.m.css +72 -0
- package/esm/components/Atoms/HeroImage/index.js +175 -0
- package/esm/components/Atoms/HeroImage/stories.js +23 -0
- package/esm/components/Atoms/Hyperlink/hyperlink.m.css +10 -0
- package/esm/components/Atoms/Hyperlink/index.js +20 -0
- package/esm/components/Atoms/LoadMoreTarget/index.js +24 -0
- package/esm/components/Atoms/Loadmore/README.md +0 -0
- package/esm/components/Atoms/Loadmore/__snapshots__/load-more.test.js.snap +25 -0
- package/esm/components/Atoms/Loadmore/index.js +61 -0
- package/esm/components/Atoms/Loadmore/load-more.m.css +23 -0
- package/esm/components/Atoms/Loadmore/load-more.test.js +26 -0
- package/esm/components/Atoms/Loadmore/stories.js +17 -0
- package/esm/components/Atoms/MagazineCoverImage/README.md +21 -0
- package/esm/components/Atoms/MagazineCoverImage/index.js +58 -0
- package/esm/components/Atoms/MagazineCoverImage/magazine-cover-image.m.css +24 -0
- package/esm/components/Atoms/MagazineCoverImage/stories.js +22 -0
- package/esm/components/Atoms/PremiumStoryIcon/index.js +54 -0
- package/esm/components/Atoms/PublishDetail/README.md +15 -0
- package/esm/components/Atoms/PublishDetail/index.js +104 -0
- package/esm/components/Atoms/PublishDetail/publish-details.m.css +47 -0
- package/esm/components/Atoms/PublishDetail/publish-details.test.js +38 -0
- package/esm/components/Atoms/PublishDetail/stories.js +20 -0
- package/esm/components/Atoms/ReadTime/README.md +13 -0
- package/esm/components/Atoms/ReadTime/index.js +46 -0
- package/esm/components/Atoms/ReadTime/read-time.m.css +25 -0
- package/esm/components/Atoms/ReadTime/read-time.test.js +29 -0
- package/esm/components/Atoms/ReadTime/stories.js +15 -0
- package/esm/components/Atoms/ScrollSnap/SliderArrow/index.js +64 -0
- package/esm/components/Atoms/ScrollSnap/SliderArrow/slider-arrow.m.css +45 -0
- package/esm/components/Atoms/ScrollSnap/SliderIndicator/index.js +53 -0
- package/esm/components/Atoms/ScrollSnap/SliderIndicator/slider-indicator.m.css +71 -0
- package/esm/components/Atoms/ScrollSnap/index.js +165 -0
- package/esm/components/Atoms/ScrollSnap/scroll-snap.m.css +27 -0
- package/esm/components/Atoms/SectionTag/README.md +11 -0
- package/esm/components/Atoms/SectionTag/index.js +79 -0
- package/esm/components/Atoms/SectionTag/section.m.css +53 -0
- package/esm/components/Atoms/SectionTag/stories.js +22 -0
- package/esm/components/Atoms/SocialSharePopup/README.md +25 -0
- package/esm/components/Atoms/SocialSharePopup/__snapshots__/social-share-popup.test.js.snap +653 -0
- package/esm/components/Atoms/SocialSharePopup/index.js +100 -0
- package/esm/components/Atoms/SocialSharePopup/social-share-popup.m.css +109 -0
- package/esm/components/Atoms/SocialSharePopup/social-share-popup.test.js +87 -0
- package/esm/components/Atoms/SocialSharePopup/stories.js +18 -0
- package/esm/components/Atoms/StoryElements/AlsoRead/README.md +49 -0
- package/esm/components/Atoms/StoryElements/AlsoRead/also-read.m.css +135 -0
- package/esm/components/Atoms/StoryElements/AlsoRead/also-read.test.js +97 -0
- package/esm/components/Atoms/StoryElements/AlsoRead/index.js +156 -0
- package/esm/components/Atoms/StoryElements/AlsoRead/stories.js +47 -0
- package/esm/components/Atoms/StoryElements/Attachment/README.md +21 -0
- package/esm/components/Atoms/StoryElements/Attachment/__snapshots__/attachment.test.js.snap +47 -0
- package/esm/components/Atoms/StoryElements/Attachment/attachment.m.css +125 -0
- package/esm/components/Atoms/StoryElements/Attachment/attachment.test.js +66 -0
- package/esm/components/Atoms/StoryElements/Attachment/index.js +86 -0
- package/esm/components/Atoms/StoryElements/Attachment/stories.js +62 -0
- package/esm/components/Atoms/StoryElements/BigFact/README.md +9 -0
- package/esm/components/Atoms/StoryElements/BigFact/big-fact.m.css +41 -0
- package/esm/components/Atoms/StoryElements/BigFact/big-fact.test.js +28 -0
- package/esm/components/Atoms/StoryElements/BigFact/index.js +56 -0
- package/esm/components/Atoms/StoryElements/BigFact/stories.js +11 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/README.md +49 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/Svg/curve.js +32 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/Svg/edge.js +32 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/Svg/icon.m.css +4 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.m.css +161 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.test.js +71 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/index.js +154 -0
- package/esm/components/Atoms/StoryElements/BlockQuote/stories.js +42 -0
- package/esm/components/Atoms/StoryElements/Blurb/README.md +43 -0
- package/esm/components/Atoms/StoryElements/Blurb/blurb.m.css +55 -0
- package/esm/components/Atoms/StoryElements/Blurb/blurb.test.js +76 -0
- package/esm/components/Atoms/StoryElements/Blurb/index.js +96 -0
- package/esm/components/Atoms/StoryElements/Blurb/stories.js +38 -0
- package/esm/components/Atoms/StoryElements/Image/README.md +13 -0
- package/esm/components/Atoms/StoryElements/Image/image.m.css +21 -0
- package/esm/components/Atoms/StoryElements/Image/image.test.js +19 -0
- package/esm/components/Atoms/StoryElements/Image/index.js +87 -0
- package/esm/components/Atoms/StoryElements/Image/stories.js +28 -0
- package/esm/components/Atoms/StoryElements/ImageSlideshow/README.md +13 -0
- package/esm/components/Atoms/StoryElements/ImageSlideshow/image-slideshow.m.css +49 -0
- package/esm/components/Atoms/StoryElements/ImageSlideshow/index.js +82 -0
- package/esm/components/Atoms/StoryElements/ImageSlideshow/stories.js +31 -0
- package/esm/components/Atoms/StoryElements/QuestionAnswer/README.md +56 -0
- package/esm/components/Atoms/StoryElements/QuestionAnswer/index.js +176 -0
- package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.m.css +106 -0
- package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.test.js +130 -0
- package/esm/components/Atoms/StoryElements/QuestionAnswer/stories.js +102 -0
- package/esm/components/Atoms/StoryElements/Quote/README.md +41 -0
- package/esm/components/Atoms/StoryElements/Quote/index.js +87 -0
- package/esm/components/Atoms/StoryElements/Quote/quote.m.css +111 -0
- package/esm/components/Atoms/StoryElements/Quote/quote.test.js +61 -0
- package/esm/components/Atoms/StoryElements/Quote/stories.js +39 -0
- package/esm/components/Atoms/StoryElements/Reference/README.md +9 -0
- package/esm/components/Atoms/StoryElements/Reference/index.js +80 -0
- package/esm/components/Atoms/StoryElements/Reference/reference.m.css +42 -0
- package/esm/components/Atoms/StoryElements/Reference/reference.test.js +38 -0
- package/esm/components/Atoms/StoryElements/Reference/stories.js +16 -0
- package/esm/components/Atoms/StoryElements/StoryElement/README.md +10 -0
- package/esm/components/Atoms/StoryElements/StoryElement/index.js +30 -0
- package/esm/components/Atoms/StoryElements/StoryElement/stories.js +17 -0
- package/esm/components/Atoms/StoryElements/StoryElement/storyelement.test.js +14 -0
- package/esm/components/Atoms/StoryElements/Summary/README.md +56 -0
- package/esm/components/Atoms/StoryElements/Summary/index.js +98 -0
- package/esm/components/Atoms/StoryElements/Summary/stories.js +41 -0
- package/esm/components/Atoms/StoryElements/Summary/summary.m.css +121 -0
- package/esm/components/Atoms/StoryElements/Summary/summary.test.js +83 -0
- package/esm/components/Atoms/StoryElements/Text/README.md +32 -0
- package/esm/components/Atoms/StoryElements/Text/index.js +74 -0
- package/esm/components/Atoms/StoryElements/Text/stories.js +56 -0
- package/esm/components/Atoms/StoryElements/Text/text.m.css +78 -0
- package/esm/components/Atoms/StoryElements/Text/text.test.js +70 -0
- package/esm/components/Atoms/StoryElements/Video/README.md +9 -0
- package/esm/components/Atoms/StoryElements/Video/index.js +37 -0
- package/esm/components/Atoms/StoryElements/Video/stories.js +29 -0
- package/esm/components/Atoms/StoryElements/Video/video.m.css +89 -0
- package/esm/components/Atoms/StoryElements/Video/video.test.js +14 -0
- package/esm/components/Atoms/StoryElements/imageGallery/README.md +18 -0
- package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.m.css +52 -0
- package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.test.js +17 -0
- package/esm/components/Atoms/StoryElements/imageGallery/index.js +112 -0
- package/esm/components/Atoms/StoryElements/imageGallery/stories.js +22 -0
- package/esm/components/Atoms/StoryElements/withElementWrapper.js +21 -0
- package/esm/components/Atoms/StoryElements/withElementWrapper.test.js +49 -0
- package/esm/components/Atoms/StoryHeadline/index.js +57 -0
- package/esm/components/Atoms/StoryHeadline/story-headline.m.css +36 -0
- package/esm/components/Atoms/StoryTags/README.md +9 -0
- package/esm/components/Atoms/StoryTags/index.js +47 -0
- package/esm/components/Atoms/StoryTags/stories.js +23 -0
- package/esm/components/Atoms/StoryTags/story-tags.test.js +16 -0
- package/esm/components/Atoms/StoryTags/tags.m.css +34 -0
- package/esm/components/Atoms/Subheadline/README.md +17 -0
- package/esm/components/Atoms/Subheadline/index.js +52 -0
- package/esm/components/Atoms/Subheadline/stories.js +21 -0
- package/esm/components/Atoms/Subheadline/subheadline.m.css +17 -0
- package/esm/components/Atoms/TimeStamp/README.md +9 -0
- package/esm/components/Atoms/TimeStamp/index.js +39 -0
- package/esm/components/Atoms/TimeStamp/stories.js +11 -0
- package/esm/components/Atoms/TimeStamp/timestamp.m.css +22 -0
- package/esm/components/Fixture/config.json +2703 -0
- package/esm/components/Fixture/dummy-collection.js +2547 -0
- package/esm/components/Fixture/dummyStory.js +2089 -0
- package/esm/components/Fixture/index.js +433 -0
- package/esm/components/Fixture/slot-config.js +26 -0
- package/esm/components/Molecules/FullScreenImages/fullscreenimages.scss +56 -0
- package/esm/components/Molecules/FullScreenImages/index.js +119 -0
- package/esm/components/Molecules/KeyEvents/README.md +21 -0
- package/esm/components/Molecules/KeyEvents/index.js +152 -0
- package/esm/components/Molecules/KeyEvents/key-events.m.css +89 -0
- package/esm/components/Molecules/KeyEvents/stories.js +25 -0
- package/esm/components/Molecules/PageIntroductionCard/README.md +25 -0
- package/esm/components/Molecules/PageIntroductionCard/index.js +77 -0
- package/esm/components/Molecules/PageIntroductionCard/page-intro-card.m.css +61 -0
- package/esm/components/Molecules/PageIntroductionCard/stories.js +17 -0
- package/esm/components/Molecules/PortraitStoryCard/README.md +10 -0
- package/esm/components/Molecules/PortraitStoryCard/index.js +52 -0
- package/esm/components/Molecules/PortraitStoryCard/portrait-story-card.m.css +38 -0
- package/esm/components/Molecules/PortraitStoryCard/stories.js +24 -0
- package/esm/components/Molecules/SliderHorizontalCard/README.md +14 -0
- package/esm/components/Molecules/SliderHorizontalCard/index.js +69 -0
- package/esm/components/Molecules/SliderHorizontalCard/slider-horizontal-card.m.css +42 -0
- package/esm/components/Molecules/SliderHorizontalCard/stories.js +27 -0
- package/esm/components/Molecules/SocialShareTemplate/README.md +118 -0
- package/esm/components/Molecules/SocialShareTemplate/__snapshots__/social-share-template.test.js.snap +738 -0
- package/esm/components/Molecules/SocialShareTemplate/index.js +164 -0
- package/esm/components/Molecules/SocialShareTemplate/social-share-data.js +90 -0
- package/esm/components/Molecules/SocialShareTemplate/social-share-template.m.css +174 -0
- package/esm/components/Molecules/SocialShareTemplate/social-share-template.test.js +108 -0
- package/esm/components/Molecules/SocialShareTemplate/stories.js +38 -0
- package/esm/components/Molecules/StoryCard/README.md +75 -0
- package/esm/components/Molecules/StoryCard/READMEBGIMAGE.md +25 -0
- package/esm/components/Molecules/StoryCard/READMEBORDER.md +61 -0
- package/esm/components/Molecules/StoryCard/index.js +200 -0
- package/esm/components/Molecules/StoryCard/stories.js +274 -0
- package/esm/components/Molecules/StoryCard/storycard.m.css +158 -0
- package/esm/components/Molecules/StoryCardWithBulletPoint/README.md +9 -0
- package/esm/components/Molecules/StoryCardWithBulletPoint/index.js +43 -0
- package/esm/components/Molecules/StoryCardWithBulletPoint/stories.js +28 -0
- package/esm/components/Molecules/StoryCardWithBulletPoint/story-card-with-bullet-point.m.css +7 -0
- package/esm/components/Molecules/StoryElementCard/README.md +9 -0
- package/esm/components/Molecules/StoryElementCard/index.js +494 -0
- package/esm/components/Molecules/StoryElementCard/stories.js +25 -0
- package/esm/components/Molecules/StoryElementCard/story-element-card.m.css +78 -0
- package/esm/components/Molecules/StorycardContent/README.md +34 -0
- package/esm/components/Molecules/StorycardContent/index.js +86 -0
- package/esm/components/Molecules/StorycardContent/stories.js +45 -0
- package/esm/components/Molecules/StorycardContent/storycardContent.m.css +21 -0
- package/esm/components/Rows/AlternateCollectionFilter/README.md +38 -0
- package/esm/components/Rows/AlternateCollectionFilter/alternate-collection-filter.m.css +254 -0
- package/esm/components/Rows/AlternateCollectionFilter/index.js +288 -0
- package/esm/components/Rows/AlternateCollectionFilter/stories.js +68 -0
- package/esm/components/Rows/AsideCollection/README.md +27 -0
- package/esm/components/Rows/AsideCollection/aside-collection.m.css +103 -0
- package/esm/components/Rows/AsideCollection/aside-collection.test.js +32 -0
- package/esm/components/Rows/AsideCollection/index.js +253 -0
- package/esm/components/Rows/AsideCollection/stories.js +48 -0
- package/esm/components/Rows/AstrologyCollection/README.md +40 -0
- package/esm/components/Rows/AstrologyCollection/astrology-collection.m.css +165 -0
- package/esm/components/Rows/AstrologyCollection/index.js +272 -0
- package/esm/components/Rows/AstrologyCollection/stories.js +61 -0
- package/esm/components/Rows/AuthorIntroductionCard/README.md +43 -0
- package/esm/components/Rows/AuthorIntroductionCard/author-intro.m.css +278 -0
- package/esm/components/Rows/AuthorIntroductionCard/author-intro.test.js +148 -0
- package/esm/components/Rows/AuthorIntroductionCard/index.js +157 -0
- package/esm/components/Rows/AuthorIntroductionCard/stories.js +46 -0
- package/esm/components/Rows/AuthorsList/README.md +24 -0
- package/esm/components/Rows/AuthorsList/author-list.test.js +66 -0
- package/esm/components/Rows/AuthorsList/authors-list.m.css +22 -0
- package/esm/components/Rows/AuthorsList/index.js +64 -0
- package/esm/components/Rows/AuthorsList/stories.js +62 -0
- package/esm/components/Rows/CollectionFilter/README.md +39 -0
- package/esm/components/Rows/CollectionFilter/collection-filter.m.css +213 -0
- package/esm/components/Rows/CollectionFilter/index.js +366 -0
- package/esm/components/Rows/CollectionFilter/stories.js +78 -0
- package/esm/components/Rows/ElevenStories/11-stories.m.css +85 -0
- package/esm/components/Rows/ElevenStories/README.md +39 -0
- package/esm/components/Rows/ElevenStories/index.js +418 -0
- package/esm/components/Rows/ElevenStories/stories.js +71 -0
- package/esm/components/Rows/FourColFiveStories/README.md +37 -0
- package/esm/components/Rows/FourColFiveStories/four-col-five-stories.m.css +112 -0
- package/esm/components/Rows/FourColFiveStories/index.js +179 -0
- package/esm/components/Rows/FourColFiveStories/stories.js +67 -0
- package/esm/components/Rows/FourColGrid/README.md +39 -0
- package/esm/components/Rows/FourColGrid/four-col.m.css +50 -0
- package/esm/components/Rows/FourColGrid/index.js +167 -0
- package/esm/components/Rows/FourColGrid/stories.js +68 -0
- package/esm/components/Rows/FourColPortraitStories/README.md +38 -0
- package/esm/components/Rows/FourColPortraitStories/four-col-portrait-stories.m.css +45 -0
- package/esm/components/Rows/FourColPortraitStories/index.js +153 -0
- package/esm/components/Rows/FourColPortraitStories/stories.js +68 -0
- package/esm/components/Rows/FourColSixteenStories/README.md +35 -0
- package/esm/components/Rows/FourColSixteenStories/four-col-sixteen-stories.m.css +141 -0
- package/esm/components/Rows/FourColSixteenStories/index.js +157 -0
- package/esm/components/Rows/FourColSixteenStories/stories.js +43 -0
- package/esm/components/Rows/FourColTwelveStory/README.md +39 -0
- package/esm/components/Rows/FourColTwelveStory/four-col-twelve-story.m.css +71 -0
- package/esm/components/Rows/FourColTwelveStory/index.js +219 -0
- package/esm/components/Rows/FourColTwelveStory/stories.js +107 -0
- package/esm/components/Rows/FourStorySlider/README.md +45 -0
- package/esm/components/Rows/FourStorySlider/four-story-slider.m.css +78 -0
- package/esm/components/Rows/FourStorySlider/index.js +145 -0
- package/esm/components/Rows/FourStorySlider/stories.js +125 -0
- package/esm/components/Rows/FourStorySliderPortrait/README.md +45 -0
- package/esm/components/Rows/FourStorySliderPortrait/four-story-slider-portrait.m.css +221 -0
- package/esm/components/Rows/FourStorySliderPortrait/index.js +148 -0
- package/esm/components/Rows/FourStorySliderPortrait/stories.js +125 -0
- package/esm/components/Rows/FourTabbedBigStorySlider/README.md +39 -0
- package/esm/components/Rows/FourTabbedBigStorySlider/four-tabbed-big-story-slider.m.css +265 -0
- package/esm/components/Rows/FourTabbedBigStorySlider/index.js +221 -0
- package/esm/components/Rows/FourTabbedBigStorySlider/stories.js +59 -0
- package/esm/components/Rows/FullScreenSlider/README.md +46 -0
- package/esm/components/Rows/FullScreenSlider/full-screen-slider.m.css +155 -0
- package/esm/components/Rows/FullScreenSlider/index.js +140 -0
- package/esm/components/Rows/FullScreenSlider/stories.js +113 -0
- package/esm/components/Rows/HalfScreenSlider/README.md +43 -0
- package/esm/components/Rows/HalfScreenSlider/half-screen-slider.m.css +80 -0
- package/esm/components/Rows/HalfScreenSlider/index.js +124 -0
- package/esm/components/Rows/HalfScreenSlider/stories.js +118 -0
- package/esm/components/Rows/ListComponent/README.md +48 -0
- package/esm/components/Rows/ListComponent/index.js +176 -0
- package/esm/components/Rows/ListComponent/list-component.m.css +65 -0
- package/esm/components/Rows/ListComponent/stories.js +65 -0
- package/esm/components/Rows/Listicles/README.md +32 -0
- package/esm/components/Rows/Listicles/index.js +240 -0
- package/esm/components/Rows/Listicles/listicles.m.css +149 -0
- package/esm/components/Rows/Listicles/stories.js +53 -0
- package/esm/components/Rows/MagazineEditions/README.md +21 -0
- package/esm/components/Rows/MagazineEditions/index.js +123 -0
- package/esm/components/Rows/MagazineEditions/magazine-editions.m.css +50 -0
- package/esm/components/Rows/MagazineEditions/magazine-editions.test.js +30 -0
- package/esm/components/Rows/MagazineEditions/stories.js +41 -0
- package/esm/components/Rows/MagazineHeaderCard/README.md +21 -0
- package/esm/components/Rows/MagazineHeaderCard/index.js +117 -0
- package/esm/components/Rows/MagazineHeaderCard/magazine-cards.m.css +106 -0
- package/esm/components/Rows/MagazineHeaderCard/stories.js +34 -0
- package/esm/components/Rows/MagazineWidget/README.md +21 -0
- package/esm/components/Rows/MagazineWidget/index.js +177 -0
- package/esm/components/Rows/MagazineWidget/stories.js +40 -0
- package/esm/components/Rows/OneColStoryList/README.md +48 -0
- package/esm/components/Rows/OneColStoryList/index.js +245 -0
- package/esm/components/Rows/OneColStoryList/one-col-story-list.m.css +81 -0
- package/esm/components/Rows/OneColStoryList/stories.js +78 -0
- package/esm/components/Rows/OpinionCollection/README.md +36 -0
- package/esm/components/Rows/OpinionCollection/index.js +205 -0
- package/esm/components/Rows/OpinionCollection/opinion-collection.m.css +226 -0
- package/esm/components/Rows/OpinionCollection/stories.js +92 -0
- package/esm/components/Rows/SixColSixStories/README.md +37 -0
- package/esm/components/Rows/SixColSixStories/index.js +179 -0
- package/esm/components/Rows/SixColSixStories/six-col-six-stories.m.css +75 -0
- package/esm/components/Rows/SixColSixStories/stories.js +74 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/README.md +19 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/__snapshots__/listicle-story.test.js.snap +841 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/index.js +330 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.m.css +249 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.test.js +46 -0
- package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/stories.js +119 -0
- package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/README.md +25 -0
- package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/index.js +97 -0
- package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/live-blog.m.css +326 -0
- package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/stories.js +118 -0
- package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/templates.js +418 -0
- package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/index.js +294 -0
- package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo-story.test.js +163 -0
- package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo.m.css +175 -0
- package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/stories.js +124 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/README.md +49 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/index.js +100 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/stories.js +124 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/templates.js +285 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.m.css +449 -0
- package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.test.js +242 -0
- package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/README.md +31 -0
- package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/index.js +239 -0
- package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/stories.js +214 -0
- package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/video-story.m.css +195 -0
- package/esm/components/Rows/TagIntroductionCard/README.md +11 -0
- package/esm/components/Rows/TagIntroductionCard/index.js +45 -0
- package/esm/components/Rows/TagIntroductionCard/stories.js +20 -0
- package/esm/components/Rows/TagIntroductionCard/tag-intro-card.module.css +25 -0
- package/esm/components/Rows/ThreeColFlexStories/README.md +38 -0
- package/esm/components/Rows/ThreeColFlexStories/index.js +227 -0
- package/esm/components/Rows/ThreeColFlexStories/stories.js +74 -0
- package/esm/components/Rows/ThreeColFlexStories/three-col-flex-stories.m.css +60 -0
- package/esm/components/Rows/ThreeColFourteenStory/README.md +28 -0
- package/esm/components/Rows/ThreeColFourteenStory/index.js +154 -0
- package/esm/components/Rows/ThreeColFourteenStory/stories.js +65 -0
- package/esm/components/Rows/ThreeColFourteenStory/three-col-fourteen-story.m.css +51 -0
- package/esm/components/Rows/ThreeColGrid/README.md +36 -0
- package/esm/components/Rows/ThreeColGrid/index.js +176 -0
- package/esm/components/Rows/ThreeColGrid/stories.js +78 -0
- package/esm/components/Rows/ThreeColGrid/three-col.m.css +43 -0
- package/esm/components/Rows/ThreeColSevenStory/README.md +36 -0
- package/esm/components/Rows/ThreeColSevenStory/index.js +201 -0
- package/esm/components/Rows/ThreeColSevenStory/stories.js +74 -0
- package/esm/components/Rows/ThreeColSevenStory/three-col-seven-story.m.css +44 -0
- package/esm/components/Rows/ThreeColSixStories/README.md +40 -0
- package/esm/components/Rows/ThreeColSixStories/index.js +183 -0
- package/esm/components/Rows/ThreeColSixStories/stories.js +74 -0
- package/esm/components/Rows/ThreeColSixStories/three-col-six-stories.m.css +32 -0
- package/esm/components/Rows/ThreeColTwelveStories/README.md +41 -0
- package/esm/components/Rows/ThreeColTwelveStories/index.js +165 -0
- package/esm/components/Rows/ThreeColTwelveStories/stories.js +53 -0
- package/esm/components/Rows/ThreeColTwelveStories/three-col-twelve-stories.m.css +83 -0
- package/esm/components/Rows/TwoColFourStory/README.md +33 -0
- package/esm/components/Rows/TwoColFourStory/index.js +174 -0
- package/esm/components/Rows/TwoColFourStory/stories.js +63 -0
- package/esm/components/Rows/TwoColFourStory/two-col-four-story.m.css +64 -0
- package/esm/components/Rows/TwoColFourStoryHighlight/README.md +35 -0
- package/esm/components/Rows/TwoColFourStoryHighlight/index.js +164 -0
- package/esm/components/Rows/TwoColFourStoryHighlight/stories.js +50 -0
- package/esm/components/Rows/TwoColFourStoryHighlight/two-col-four-story-highlight.m.css +116 -0
- package/esm/components/Rows/TwoColSevenStories/README.md +37 -0
- package/esm/components/Rows/TwoColSevenStories/index.js +193 -0
- package/esm/components/Rows/TwoColSevenStories/stories.js +102 -0
- package/esm/components/Rows/TwoColSevenStories/two-col-seven-stories.m.css +175 -0
- package/esm/components/Rows/TwoColSixStories/README.md +36 -0
- package/esm/components/Rows/TwoColSixStories/index.js +185 -0
- package/esm/components/Rows/TwoColSixStories/stories.js +67 -0
- package/esm/components/Rows/TwoColSixStories/two-col-six-stories.m.css +135 -0
- package/esm/components/Rows/TwoColTenStoriesSidebar/README.md +34 -0
- package/esm/components/Rows/TwoColTenStoriesSidebar/index.js +191 -0
- package/esm/components/Rows/TwoColTenStoriesSidebar/stories.js +53 -0
- package/esm/components/Rows/TwoColTenStoriesSidebar/two-col-ten-stories-sidebar.m.css +52 -0
- package/esm/components/Rows/TwoColThreeStory/README.md +40 -0
- package/esm/components/Rows/TwoColThreeStory/index.js +146 -0
- package/esm/components/Rows/TwoColThreeStory/stories.js +63 -0
- package/esm/components/Rows/TwoColThreeStory/two-col-three-story.m.css +36 -0
- package/esm/components/SharedContext.js +17 -0
- package/esm/components/Svgs/Loading/loading.js +140 -0
- package/esm/components/Svgs/Loading/loading.m.css +5 -0
- package/esm/components/Svgs/SocialIcons/facebook.js +18 -0
- package/esm/components/Svgs/SocialIcons/instagram.js +33 -0
- package/esm/components/Svgs/SocialIcons/linkedin.js +18 -0
- package/esm/components/Svgs/SocialIcons/pinterest.js +12 -0
- package/esm/components/Svgs/SocialIcons/twitter.js +18 -0
- package/esm/components/Svgs/SocialIcons/whatsapp.js +19 -0
- package/esm/components/Svgs/SocialIcons/youtube.js +19 -0
- package/esm/components/Svgs/caret-right.svg +3 -0
- package/esm/components/Svgs/clock-icon.js +19 -0
- package/esm/components/Svgs/close-icon.js +22 -0
- package/esm/components/Svgs/crown.js +40 -0
- package/esm/components/Svgs/fallbackImage.js +45 -0
- package/esm/components/Svgs/hyperlink.js +22 -0
- package/esm/components/Svgs/key.js +39 -0
- package/esm/components/Svgs/left-arrow.js +24 -0
- package/esm/components/Svgs/liveicon.js +16 -0
- package/esm/components/Svgs/lock.js +40 -0
- package/esm/components/Svgs/right-arrow.js +24 -0
- package/esm/components/Svgs/share-icon.js +19 -0
- package/esm/components/Svgs/star.js +34 -0
- package/esm/components/Svgs/user-fallback-icon.js +22 -0
- package/esm/components/Typography/README.md +7 -0
- package/esm/components/Typography/index.js +33 -0
- package/esm/components/Typography/stories.js +15 -0
- package/esm/components/Typography/style.m.css +11 -0
- package/esm/entry-points.js +291 -0
- package/esm/guide/stories.js +22 -0
- package/esm/hydration-component/index.js +41 -0
- package/esm/hydration-component/useNearScreen.js +71 -0
- package/esm/index.js +88 -0
- package/esm/rows.js +40 -0
- package/esm/stylesheets/mixins.scss +27 -0
- package/esm/stylesheets/react-image-lightbox-styles.css +344 -0
- package/esm/stylesheets/viewports.m.css +3 -0
- package/esm/utils/testing-utils.js +8 -0
- package/esm/utils/utils.js +363 -0
- package/esm/utils/utils.test.js +46 -0
- package/package.json +1 -1
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import _getClassName from "babel-plugin-react-css-modules/dist/browser/getClassName";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { Link } from "@quintype/components";
|
|
5
|
+
import { useStateValue } from "../../SharedContext";
|
|
6
|
+
import { get } from "lodash";
|
|
7
|
+
import { getTextColor, isExternalStory, getStoryUrl } from "../../../utils/utils";
|
|
8
|
+
import { PremiumStoryIcon } from "../PremiumStoryIcon";
|
|
9
|
+
import LiveIcon from "../../Svgs/liveicon";
|
|
10
|
+
import "./headline.m.css";
|
|
11
|
+
var _styleModuleImportMap = {
|
|
12
|
+
"./headline.m.css": {
|
|
13
|
+
"wrapper": "headline-m_wrapper__3nUmh",
|
|
14
|
+
"headline": "headline-m_headline__3_NhV",
|
|
15
|
+
"dark": "headline-m_dark__en3hW",
|
|
16
|
+
"light": "headline-m_light__3lKJB"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export var Headline = function Headline(_ref) {
|
|
20
|
+
var story = _ref.story,
|
|
21
|
+
headerLevel = _ref.headerLevel,
|
|
22
|
+
_ref$premiumStoryIcon = _ref.premiumStoryIconConfig,
|
|
23
|
+
premiumStoryIconConfig = _ref$premiumStoryIcon === void 0 ? {} : _ref$premiumStoryIcon,
|
|
24
|
+
isLink = _ref.isLink;
|
|
25
|
+
var configData = useStateValue() || {};
|
|
26
|
+
var _premiumStoryIconConf = premiumStoryIconConfig.iconColor,
|
|
27
|
+
iconColor = _premiumStoryIconConf === void 0 ? "#F7B500" : _premiumStoryIconConf,
|
|
28
|
+
_premiumStoryIconConf2 = premiumStoryIconConfig.iconStyle,
|
|
29
|
+
iconStyle = _premiumStoryIconConf2 === void 0 ? "star" : _premiumStoryIconConf2,
|
|
30
|
+
_premiumStoryIconConf3 = premiumStoryIconConfig.enablePremiumStoryIcon,
|
|
31
|
+
enablePremiumStoryIcon = _premiumStoryIconConf3 === void 0 ? false : _premiumStoryIconConf3,
|
|
32
|
+
_premiumStoryIconConf4 = premiumStoryIconConfig.showLiveIcon,
|
|
33
|
+
showLiveIcon = _premiumStoryIconConf4 === void 0 ? false : _premiumStoryIconConf4;
|
|
34
|
+
var alternateHeadline = get(story, ["alternative", "home", "default", "headline"]);
|
|
35
|
+
var premiumStory = enablePremiumStoryIcon && get(story, ["access"]) === "subscription";
|
|
36
|
+
var headline = alternateHeadline || story.headline;
|
|
37
|
+
var HeaderTag = "h" + headerLevel;
|
|
38
|
+
|
|
39
|
+
var positionHeadline = function positionHeadline() {
|
|
40
|
+
switch (parseInt(headerLevel)) {
|
|
41
|
+
case 1:
|
|
42
|
+
return "-2px";
|
|
43
|
+
|
|
44
|
+
case 2:
|
|
45
|
+
return "2px";
|
|
46
|
+
|
|
47
|
+
case 3:
|
|
48
|
+
return "4px";
|
|
49
|
+
|
|
50
|
+
case 4:
|
|
51
|
+
return "5px";
|
|
52
|
+
|
|
53
|
+
default:
|
|
54
|
+
return "6px";
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var textColor = getTextColor(configData.theme);
|
|
59
|
+
var wrapperClass = premiumStory ? "wrapper" : "";
|
|
60
|
+
var iconSize = "24px";
|
|
61
|
+
var enableLiveIcon = showLiveIcon && story["story-template"] === "live-blog" && !get(story, ["metadata", "is-closed"], false);
|
|
62
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
"data-test-id": "headline",
|
|
64
|
+
className: "arrow-component arr--headline " + _getClassName(wrapperClass, _styleModuleImportMap)
|
|
65
|
+
}, premiumStory && /*#__PURE__*/React.createElement(PremiumStoryIcon, {
|
|
66
|
+
width: iconSize,
|
|
67
|
+
height: iconSize,
|
|
68
|
+
color: iconColor,
|
|
69
|
+
iconType: iconStyle,
|
|
70
|
+
positionTop: positionHeadline()
|
|
71
|
+
}), isLink ? /*#__PURE__*/React.createElement(Link, {
|
|
72
|
+
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
73
|
+
externalLink: isExternalStory(story),
|
|
74
|
+
"aria-label": "headline"
|
|
75
|
+
}, /*#__PURE__*/React.createElement(HeaderTag, {
|
|
76
|
+
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap)
|
|
77
|
+
}, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline)) : /*#__PURE__*/React.createElement(HeaderTag, {
|
|
78
|
+
className: _getClassName("headline ".concat(textColor), _styleModuleImportMap)
|
|
79
|
+
}, enableLiveIcon && /*#__PURE__*/React.createElement(LiveIcon, null), headline));
|
|
80
|
+
};
|
|
81
|
+
Headline.propTypes = {
|
|
82
|
+
/** The Story Object from the API response */
|
|
83
|
+
story: PropTypes.object.isRequired,
|
|
84
|
+
|
|
85
|
+
/** Header tags ranging h1-h6, where h[headerLevel] */
|
|
86
|
+
headerLevel: PropTypes.string,
|
|
87
|
+
premiumStoryIconConfig: PropTypes.shape({
|
|
88
|
+
iconColor: PropTypes.string,
|
|
89
|
+
iconType: PropTypes.string,
|
|
90
|
+
enablePremiumStoryIcon: PropTypes.bool
|
|
91
|
+
}),
|
|
92
|
+
isLink: PropTypes.bool
|
|
93
|
+
};
|
|
94
|
+
Headline.defaultProps = {
|
|
95
|
+
headerLevel: "6",
|
|
96
|
+
isLink: true
|
|
97
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { generateStory } from "../../Fixture";
|
|
3
|
+
import { optionalSelect, withStore } from "../../../../storybook";
|
|
4
|
+
import { Headline } from "./index";
|
|
5
|
+
import Readme from "./README.md";
|
|
6
|
+
import { boolean as _boolean, color } from "@storybook/addon-knobs";
|
|
7
|
+
var story = generateStory();
|
|
8
|
+
var headerLevelOptions = {
|
|
9
|
+
"No Value": "",
|
|
10
|
+
h1: 1,
|
|
11
|
+
h2: 2,
|
|
12
|
+
h3: 3,
|
|
13
|
+
h4: 4,
|
|
14
|
+
h5: 5,
|
|
15
|
+
h6: 6
|
|
16
|
+
};
|
|
17
|
+
var iconType = {
|
|
18
|
+
Star: "star",
|
|
19
|
+
Crown: "crown",
|
|
20
|
+
Lock: "lock",
|
|
21
|
+
Key: "key"
|
|
22
|
+
};
|
|
23
|
+
withStore("Atoms/Headline", {
|
|
24
|
+
qt: {
|
|
25
|
+
config: {
|
|
26
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}, Readme).add("default", function () {
|
|
30
|
+
return /*#__PURE__*/React.createElement(Headline, {
|
|
31
|
+
story: story,
|
|
32
|
+
headerLevel: optionalSelect("Header level", headerLevelOptions),
|
|
33
|
+
premiumStoryIconConfig: {
|
|
34
|
+
iconColor: color("Icon color", "#F7B500"),
|
|
35
|
+
iconStyle: optionalSelect("Icon Types", iconType),
|
|
36
|
+
enablePremiumStoryIcon: _boolean("Enable Premium Icon", true)
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}, Readme);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# HeroImage
|
|
2
|
+
Displays the Hero Image for a story with the help of the `ResponsiveHeroImage` component from the `@quintype/components` package.
|
|
3
|
+
|
|
4
|
+
## Usage
|
|
5
|
+
```jsx
|
|
6
|
+
<HeroImage story={story} />
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
<HeroImage story={story} FullBleed={false} />
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
<!-- PROPS -->
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@custom-media --viewport-medium (width >= 768px);
|
|
2
|
+
|
|
3
|
+
.hero-image {
|
|
4
|
+
margin-bottom: var(--arrow-spacing-xs);
|
|
5
|
+
padding-right: 0;
|
|
6
|
+
flex-grow: 1;
|
|
7
|
+
position: relative;
|
|
8
|
+
}
|
|
9
|
+
.right-padding {
|
|
10
|
+
margin-bottom: 0;
|
|
11
|
+
padding-right: var(--arrow-spacing-s);
|
|
12
|
+
flex-grow: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.left-padding {
|
|
16
|
+
margin-bottom: 0;
|
|
17
|
+
padding-left: var(--arrow-spacing-s);
|
|
18
|
+
flex-grow: 1;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.right-padding-mob {
|
|
22
|
+
margin-bottom: 0;
|
|
23
|
+
padding-right: var(--arrow-spacing-s);
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
flex-basis: 30%;
|
|
26
|
+
@media (--viewport-medium) {
|
|
27
|
+
padding-right: 0;
|
|
28
|
+
margin-bottom: var(--arrow-spacing-xs);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.placeholder {
|
|
33
|
+
background-color: lightgray;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
html[dir="rtl"] {
|
|
37
|
+
.right-padding,
|
|
38
|
+
.right-padding-mob {
|
|
39
|
+
padding-right: 0;
|
|
40
|
+
padding-left: var(--arrow-spacing-s);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.right-padding-mob {
|
|
44
|
+
@media (--viewport-medium) {
|
|
45
|
+
padding-left: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.hero-image-mob {
|
|
51
|
+
margin-bottom: var(--arrow-spacing-xs);
|
|
52
|
+
padding-right: 0;
|
|
53
|
+
flex-grow: 1;
|
|
54
|
+
@media (--viewport-medium) {
|
|
55
|
+
/* margin-bottom: 0; */
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.with-padding {
|
|
59
|
+
padding: 16px 16px 0 16px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.image {
|
|
63
|
+
position: relative;
|
|
64
|
+
}
|
|
65
|
+
.image img {
|
|
66
|
+
position: absolute;
|
|
67
|
+
top: 0;
|
|
68
|
+
bottom: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
right: 0;
|
|
71
|
+
height: 100%;
|
|
72
|
+
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
import _getClassName from "babel-plugin-react-css-modules/dist/browser/getClassName";
|
|
3
|
+
import { Link, ResponsiveHeroImage } from "@quintype/components";
|
|
4
|
+
import { get } from "lodash";
|
|
5
|
+
import PropTypes from "prop-types";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { useSelector } from "react-redux";
|
|
8
|
+
import { clientWidth, isExternalStory, getStoryUrl } from "../../../utils/utils";
|
|
9
|
+
import { useStateValue } from "../../SharedContext";
|
|
10
|
+
import { FallbackImage } from "../FallbackImage";
|
|
11
|
+
import { HyperLink } from "../Hyperlink";
|
|
12
|
+
import "./hero-image.m.css";
|
|
13
|
+
var _styleModuleImportMap = {
|
|
14
|
+
"./hero-image.m.css": {
|
|
15
|
+
"hero-image": "hero-image-m_hero-image__3lraV",
|
|
16
|
+
"right-padding": "hero-image-m_right-padding__1LkCe",
|
|
17
|
+
"left-padding": "hero-image-m_left-padding__pYRAj",
|
|
18
|
+
"right-padding-mob": "hero-image-m_right-padding-mob__3-uOU",
|
|
19
|
+
"placeholder": "hero-image-m_placeholder__1omCm",
|
|
20
|
+
"hero-image-mob": "hero-image-m_hero-image-mob__13JJp",
|
|
21
|
+
"with-padding": "hero-image-m_with-padding__324G_",
|
|
22
|
+
"image": "hero-image-m_image__1mz0U"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
export var HeroImage = function HeroImage(_ref) {
|
|
26
|
+
var story = _ref.story,
|
|
27
|
+
FullBleed = _ref.FullBleed,
|
|
28
|
+
aspectRatio = _ref.aspectRatio,
|
|
29
|
+
defaultWidth = _ref.defaultWidth,
|
|
30
|
+
widths = _ref.widths,
|
|
31
|
+
isHorizontal = _ref.isHorizontal,
|
|
32
|
+
isHorizontalMobile = _ref.isHorizontalMobile,
|
|
33
|
+
isHorizontalWithImageLast = _ref.isHorizontalWithImageLast,
|
|
34
|
+
defaultFallback = _ref.defaultFallback,
|
|
35
|
+
isStoryPageImage = _ref.isStoryPageImage,
|
|
36
|
+
config = _ref.config;
|
|
37
|
+
|
|
38
|
+
var _ref2 = useStateValue() || {},
|
|
39
|
+
_ref2$fallbackImageUr = _ref2.fallbackImageUrl,
|
|
40
|
+
fallbackImageUrl = _ref2$fallbackImageUr === void 0 ? "" : _ref2$fallbackImageUr;
|
|
41
|
+
|
|
42
|
+
var _config$StoryTemplate = config.StoryTemplateIcon,
|
|
43
|
+
StoryTemplateIcon = _config$StoryTemplate === void 0 ? function () {
|
|
44
|
+
return null;
|
|
45
|
+
} : _config$StoryTemplate;
|
|
46
|
+
var showImagePlaceholder = useSelector(function (state) {
|
|
47
|
+
return get(state, ["qt", "config", "showPlaceholder"]);
|
|
48
|
+
});
|
|
49
|
+
var getPlaceholderStyleName = showImagePlaceholder ? "placeholder" : "";
|
|
50
|
+
var fullBleed = FullBleed ? "" : "with-padding";
|
|
51
|
+
var heroImageClass = "hero-image";
|
|
52
|
+
if (isHorizontal) heroImageClass = "right-padding";else if (isHorizontalWithImageLast) heroImageClass = "left-padding";
|
|
53
|
+
var heroImageMobClasses = isHorizontalMobile ? "right-padding-mob" : "";
|
|
54
|
+
|
|
55
|
+
var getPadding = function getPadding(aspectRatio) {
|
|
56
|
+
var _aspectRatio = _slicedToArray(aspectRatio, 2),
|
|
57
|
+
height = _aspectRatio[0],
|
|
58
|
+
width = _aspectRatio[1];
|
|
59
|
+
|
|
60
|
+
if (height > 0 && width > 0) {
|
|
61
|
+
var padding = width / height * 100;
|
|
62
|
+
return padding;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return 0;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
var _aspectRatio2 = _slicedToArray(aspectRatio, 2),
|
|
69
|
+
mobileAspectRatio = _aspectRatio2[0],
|
|
70
|
+
_aspectRatio2$ = _aspectRatio2[1],
|
|
71
|
+
desktopAspectRatio = _aspectRatio2$ === void 0 ? mobileAspectRatio : _aspectRatio2$;
|
|
72
|
+
|
|
73
|
+
var isMobile = clientWidth("mobile");
|
|
74
|
+
var imageAspectRatio = isMobile ? mobileAspectRatio : desktopAspectRatio;
|
|
75
|
+
var imagePadding = isMobile ? getPadding(mobileAspectRatio) : getPadding(desktopAspectRatio);
|
|
76
|
+
var slug = get(story, ["hero-image-s3-key"]) || get(story, ["alternative", "home", "default", "hero-image", "hero-image-s3-key"]);
|
|
77
|
+
var hyperLink = get(story, ["hero-image-hyperlink"], "");
|
|
78
|
+
|
|
79
|
+
var fallbackImage = function fallbackImage() {
|
|
80
|
+
if (!slug) {
|
|
81
|
+
if (fallbackImageUrl && !isStoryPageImage) {
|
|
82
|
+
return /*#__PURE__*/React.createElement("figure", {
|
|
83
|
+
style: {
|
|
84
|
+
paddingTop: imagePadding + "%"
|
|
85
|
+
},
|
|
86
|
+
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap)
|
|
87
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
88
|
+
className: "qt-image",
|
|
89
|
+
"data-src": "".concat(fallbackImageUrl),
|
|
90
|
+
alt: "image-fallback"
|
|
91
|
+
}));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, defaultFallback ? /*#__PURE__*/React.createElement("div", {
|
|
95
|
+
"data-test-id": "arr--fallback-hero-image",
|
|
96
|
+
style: {
|
|
97
|
+
paddingTop: imagePadding + "%"
|
|
98
|
+
},
|
|
99
|
+
className: "arr--fallback-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap)
|
|
100
|
+
}, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
|
|
101
|
+
storyTemplate: story["story-template"]
|
|
102
|
+
}), /*#__PURE__*/React.createElement(FallbackImage, null)) : null);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("figure", {
|
|
106
|
+
style: {
|
|
107
|
+
paddingTop: imagePadding + "%"
|
|
108
|
+
},
|
|
109
|
+
className: "arr--responsive-hero-image " + _getClassName("image ".concat(getPlaceholderStyleName), _styleModuleImportMap)
|
|
110
|
+
}, /*#__PURE__*/React.createElement(StoryTemplateIcon, {
|
|
111
|
+
storyTemplate: story["story-template"]
|
|
112
|
+
}), /*#__PURE__*/React.createElement(ResponsiveHeroImage, {
|
|
113
|
+
story: story,
|
|
114
|
+
aspectRatio: imageAspectRatio,
|
|
115
|
+
defaultWidth: defaultWidth,
|
|
116
|
+
widths: widths,
|
|
117
|
+
imgParams: {
|
|
118
|
+
auto: ["format", "compress"],
|
|
119
|
+
fit: "max"
|
|
120
|
+
}
|
|
121
|
+
})), isStoryPageImage && hyperLink && /*#__PURE__*/React.createElement(HyperLink, {
|
|
122
|
+
hyperLink: hyperLink
|
|
123
|
+
}));
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
return story && (isStoryPageImage ? /*#__PURE__*/React.createElement("div", {
|
|
127
|
+
"data-test-id": "arr--hero-image",
|
|
128
|
+
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap)
|
|
129
|
+
}, fallbackImage()) : /*#__PURE__*/React.createElement(Link, {
|
|
130
|
+
"data-test-id": "arr--hero-image",
|
|
131
|
+
href: getStoryUrl(story, "/".concat(story.slug)),
|
|
132
|
+
externalLink: isExternalStory(story),
|
|
133
|
+
"aria-label": "fallback-hero-image",
|
|
134
|
+
className: "arr--hero-image " + _getClassName("".concat(heroImageClass, " ").concat(fullBleed, " ").concat(heroImageMobClasses), _styleModuleImportMap)
|
|
135
|
+
}, fallbackImage()));
|
|
136
|
+
};
|
|
137
|
+
HeroImage.propTypes = {
|
|
138
|
+
/** The Story Object from the API response */
|
|
139
|
+
story: PropTypes.object.isRequired,
|
|
140
|
+
|
|
141
|
+
/** Removes the Hero Image padding for the image to bleed over the margin */
|
|
142
|
+
FullBleed: PropTypes.bool,
|
|
143
|
+
|
|
144
|
+
/** The default width for the image, in case the browser does not support srcset */
|
|
145
|
+
defaultWidth: PropTypes.number,
|
|
146
|
+
|
|
147
|
+
/** The list of available widths */
|
|
148
|
+
widths: PropTypes.array,
|
|
149
|
+
// fatch the correct hero image
|
|
150
|
+
aspectRatio: PropTypes.array,
|
|
151
|
+
// Hints for the browser to choose the best size
|
|
152
|
+
|
|
153
|
+
/** This prop is responsible for adding padding-right of the image and remove padding bottom of the image */
|
|
154
|
+
isHorizontal: PropTypes.bool,
|
|
155
|
+
|
|
156
|
+
/** This prop is responsible for adding padding-bottom in desktop and padding-right in mobile */
|
|
157
|
+
isHorizontalMobile: PropTypes.bool,
|
|
158
|
+
// this prop is responsive for rendering fallback image on story page
|
|
159
|
+
defaultFallback: PropTypes.bool,
|
|
160
|
+
isHorizontalWithImageLast: PropTypes.bool,
|
|
161
|
+
isStoryPageImage: PropTypes.bool,
|
|
162
|
+
config: PropTypes.object
|
|
163
|
+
};
|
|
164
|
+
HeroImage.defaultProps = {
|
|
165
|
+
FullBleed: true,
|
|
166
|
+
aspectRatio: [[1, 1], [16, 9]],
|
|
167
|
+
defaultWidth: 480,
|
|
168
|
+
widths: [250, 480, 640],
|
|
169
|
+
isHorizontal: false,
|
|
170
|
+
isHorizontalMobile: false,
|
|
171
|
+
defaultFallback: true,
|
|
172
|
+
isStoryPageImage: false,
|
|
173
|
+
isHorizontalWithImageLast: false,
|
|
174
|
+
config: {}
|
|
175
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { generateStory } from "../../Fixture";
|
|
3
|
+
import { HeroImage } from "./index";
|
|
4
|
+
import Readme from "./README.md";
|
|
5
|
+
import { withStore } from "../../../../storybook";
|
|
6
|
+
var story = generateStory();
|
|
7
|
+
withStore("Atoms/Hero Image", {
|
|
8
|
+
qt: {
|
|
9
|
+
config: {
|
|
10
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, Readme).add("Full Bleed Image", function () {
|
|
14
|
+
return /*#__PURE__*/React.createElement(HeroImage, {
|
|
15
|
+
story: story
|
|
16
|
+
});
|
|
17
|
+
}).add("With Padding Image", function () {
|
|
18
|
+
return /*#__PURE__*/React.createElement(HeroImage, {
|
|
19
|
+
story: story,
|
|
20
|
+
FullBleed: false,
|
|
21
|
+
aspectRatio: [[1, 1], [16, 9]]
|
|
22
|
+
});
|
|
23
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Link } from "@quintype/components";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { HyperLinkIcon } from "../../Svgs/hyperlink";
|
|
5
|
+
import "./hyperlink.m.css";
|
|
6
|
+
export var HyperLink = function HyperLink(_ref) {
|
|
7
|
+
var _ref$hyperLink = _ref.hyperLink,
|
|
8
|
+
hyperLink = _ref$hyperLink === void 0 ? "" : _ref$hyperLink;
|
|
9
|
+
if (!hyperLink) return null;
|
|
10
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
11
|
+
href: hyperLink,
|
|
12
|
+
"aria-label": "hyperlink-button",
|
|
13
|
+
className: "arr--hyperlink-button hyperlink-m_hyperlink-button__1CqWx",
|
|
14
|
+
target: "_blank",
|
|
15
|
+
rel: "noopener noreferrer"
|
|
16
|
+
}, /*#__PURE__*/React.createElement(HyperLinkIcon, null));
|
|
17
|
+
};
|
|
18
|
+
HyperLink.propTypes = {
|
|
19
|
+
hyperLink: PropTypes.string
|
|
20
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import PropTypes from "prop-types";
|
|
3
|
+
export var LoadMoreTarget = function LoadMoreTarget(_ref) {
|
|
4
|
+
var collection = _ref.collection,
|
|
5
|
+
componentName = _ref.componentName,
|
|
6
|
+
offset = _ref.offset,
|
|
7
|
+
limit = _ref.limit;
|
|
8
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
9
|
+
id: "ELM-".concat(collection.id),
|
|
10
|
+
"data-collection-slug": collection["slug"],
|
|
11
|
+
"data-component-name": componentName,
|
|
12
|
+
"data-collection-offset": offset,
|
|
13
|
+
"data-collection-limit": limit
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
LoadMoreTarget.propTypes = {
|
|
17
|
+
collection: PropTypes.shape({
|
|
18
|
+
id: PropTypes.string,
|
|
19
|
+
slug: PropTypes.string
|
|
20
|
+
}),
|
|
21
|
+
componentName: PropTypes.string,
|
|
22
|
+
offset: PropTypes.number,
|
|
23
|
+
limit: PropTypes.number
|
|
24
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Load more button Should render button and load items subsequently with SubsequentLoadCount as template property. 1`] = `
|
|
4
|
+
<div
|
|
5
|
+
className="arr--button load-more-m_button__1mmf1 load-more-m_dark__3dfzb load-more-m_default__2_k4V"
|
|
6
|
+
data-test-id="load-more"
|
|
7
|
+
>
|
|
8
|
+
Read More
|
|
9
|
+
</div>
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
exports[`Load more button Should render button and navigate to the corresponding url with NavigateToPage as template property. 1`] = `
|
|
13
|
+
<a
|
|
14
|
+
aria-label="load-more"
|
|
15
|
+
data-test-id="load-more"
|
|
16
|
+
href="/"
|
|
17
|
+
onClick={[Function]}
|
|
18
|
+
>
|
|
19
|
+
<div
|
|
20
|
+
className="arr--button load-more-m_button__1mmf1 load-more-m_dark__3dfzb load-more-m_default__2_k4V"
|
|
21
|
+
>
|
|
22
|
+
Read More
|
|
23
|
+
</div>
|
|
24
|
+
</a>
|
|
25
|
+
`;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
import _getClassName from "babel-plugin-react-css-modules/dist/browser/getClassName";
|
|
3
|
+
var _styleModuleImportMap = {
|
|
4
|
+
"./load-more.m.css": {
|
|
5
|
+
"button": "load-more-m_button__1mmf1",
|
|
6
|
+
"default": "load-more-m_default__2_k4V",
|
|
7
|
+
"dark": "load-more-m_dark__3dfzb",
|
|
8
|
+
"light": "load-more-m_light__ePZQI"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13
|
+
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
|
|
16
|
+
import React from "react";
|
|
17
|
+
import { LinkBase } from "@quintype/components";
|
|
18
|
+
import PropTypes from "prop-types";
|
|
19
|
+
import { getTextColor, generateNavigateSlug } from "../../../utils/utils";
|
|
20
|
+
import "./load-more.m.css";
|
|
21
|
+
export var LoadmoreButton = function LoadmoreButton(_ref) {
|
|
22
|
+
var _ref$config = _ref.config,
|
|
23
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
24
|
+
collection = _ref.collection,
|
|
25
|
+
_ref$template = _ref.template,
|
|
26
|
+
template = _ref$template === void 0 ? "SubsequentLoadCount" : _ref$template,
|
|
27
|
+
onClick = _ref.onClick,
|
|
28
|
+
navigate = _ref.navigate,
|
|
29
|
+
qtConfig = _ref.qtConfig;
|
|
30
|
+
var _config$showButton = config.showButton,
|
|
31
|
+
showButton = _config$showButton === void 0 ? true : _config$showButton,
|
|
32
|
+
_config$buttonText = config.buttonText,
|
|
33
|
+
buttonText = _config$buttonText === void 0 ? "Read More" : _config$buttonText,
|
|
34
|
+
_config$theme = config.theme,
|
|
35
|
+
theme = _config$theme === void 0 ? "" : _config$theme,
|
|
36
|
+
_config$customUrlPath = config.customUrlPath,
|
|
37
|
+
customUrlPath = _config$customUrlPath === void 0 ? "" : _config$customUrlPath;
|
|
38
|
+
if (!showButton) return null;
|
|
39
|
+
var textColor = getTextColor(theme);
|
|
40
|
+
var slug = customUrlPath ? "/".concat(customUrlPath) : generateNavigateSlug(collection, _objectSpread(_objectSpread({}, qtConfig), config));
|
|
41
|
+
return template === "SubsequentLoadCount" ? /*#__PURE__*/React.createElement("div", {
|
|
42
|
+
onClick: onClick,
|
|
43
|
+
"data-test-id": "load-more",
|
|
44
|
+
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
45
|
+
}, buttonText) : /*#__PURE__*/React.createElement(LinkBase, {
|
|
46
|
+
href: slug,
|
|
47
|
+
navigateTo: navigate,
|
|
48
|
+
"data-test-id": "load-more",
|
|
49
|
+
"aria-label": "load-more"
|
|
50
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: "arr--button " + _getClassName("button ".concat(textColor, " default"), _styleModuleImportMap)
|
|
52
|
+
}, buttonText));
|
|
53
|
+
};
|
|
54
|
+
LoadmoreButton.propTypes = {
|
|
55
|
+
collection: PropTypes.object,
|
|
56
|
+
template: PropTypes.string,
|
|
57
|
+
config: PropTypes.object,
|
|
58
|
+
onClick: PropTypes.func,
|
|
59
|
+
navigate: PropTypes.func,
|
|
60
|
+
qtConfig: PropTypes.object
|
|
61
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.button {
|
|
2
|
+
padding: var(--arrow-spacing-xs) var(--arrow-spacing-l);
|
|
3
|
+
border: 1px solid;
|
|
4
|
+
display: flex;
|
|
5
|
+
margin: var(--arrow-spacing-m) auto var(--arrow-spacing-xs) auto;
|
|
6
|
+
font-size: var(--arrow-fs-xs);
|
|
7
|
+
border-radius: var(--arrow-spacing-xxs);
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
width: fit-content;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.default {
|
|
14
|
+
display: block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dark {
|
|
18
|
+
color: var(--arrow-c-mono2);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.light {
|
|
22
|
+
color: var(--arrow-c-invert-mono2);
|
|
23
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import renderer from "react-test-renderer";
|
|
3
|
+
import { LoadmoreButton } from "./index";
|
|
4
|
+
import { Provider } from "react-redux";
|
|
5
|
+
import { generateStore, generateCollection } from "../../Fixture";
|
|
6
|
+
var collection = generateCollection();
|
|
7
|
+
describe("Load more button", function () {
|
|
8
|
+
it("Should render button and load items subsequently with SubsequentLoadCount as template property.", function () {
|
|
9
|
+
var wrapper = renderer.create( /*#__PURE__*/React.createElement(Provider, {
|
|
10
|
+
store: generateStore
|
|
11
|
+
}, /*#__PURE__*/React.createElement(LoadmoreButton, {
|
|
12
|
+
template: "SubsequentLoadCount",
|
|
13
|
+
collection: collection
|
|
14
|
+
}))).toJSON();
|
|
15
|
+
expect(wrapper).toMatchSnapshot();
|
|
16
|
+
});
|
|
17
|
+
it("Should render button and navigate to the corresponding url with NavigateToPage as template property.", function () {
|
|
18
|
+
var wrapper = renderer.create( /*#__PURE__*/React.createElement(Provider, {
|
|
19
|
+
store: generateStore
|
|
20
|
+
}, /*#__PURE__*/React.createElement(LoadmoreButton, {
|
|
21
|
+
template: "NavigateToPage",
|
|
22
|
+
collection: collection
|
|
23
|
+
}))).toJSON();
|
|
24
|
+
expect(wrapper).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { withStore, optionalSelect } from "../../../../storybook";
|
|
3
|
+
import { LoadmoreButton } from "./index";
|
|
4
|
+
import Readme from "./README.md";
|
|
5
|
+
import { generateCollection } from "../../Fixture";
|
|
6
|
+
var collection = generateCollection();
|
|
7
|
+
var buttonOptions = {
|
|
8
|
+
NavigateToPage: "NavigateToPage",
|
|
9
|
+
SubsequentLoadCount: "SubsequentLoadCount",
|
|
10
|
+
CustomUrlPath: "CustomUrlPath"
|
|
11
|
+
};
|
|
12
|
+
withStore("Atoms/Button", {}, Readme).add("Buttons Options", function () {
|
|
13
|
+
return /*#__PURE__*/React.createElement(LoadmoreButton, {
|
|
14
|
+
collection: collection,
|
|
15
|
+
template: optionalSelect("Button Options", buttonOptions)
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# MagazineCoverImage
|
|
2
|
+
|
|
3
|
+
Magazine cover image is used to represent the cover of the magazine.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Import the MagazineCoverImage and pass collection, props and the config.
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { MagazineCoverImage } from "@quintype/arrow";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Use as a component
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
const contextConfig = {
|
|
17
|
+
theme: #333333;
|
|
18
|
+
};
|
|
19
|
+
<MagazineCoverImage collection={collection} config={contextConfig} >
|
|
20
|
+
|
|
21
|
+
```
|