@quintype/arrow 3.15.1-perf.4 → 3.15.1-perf.8
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 +14589 -0
- 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/{atoms/ExtendedLoadMore/index-b5754c5d.js → esm/components/Rows/FourColFiveStories/index.js} +54 -70
- 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/{atoms/ExtendedLoadMore/index-37a9ccff.js → esm/components/Rows/FourColGrid/index.js} +50 -65
- 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/{atoms/ExtendedLoadMore/index-bbaf526e.js → esm/components/Rows/OneColStoryList/index.js} +69 -80
- 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/{atoms/ExtendedLoadMore/index-cfb262ef.js → esm/components/Rows/SixColSixStories/index.js} +56 -69
- 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/{atoms/ExtendedLoadMore/index-57dd4870.js → esm/components/Rows/ThreeColFlexStories/index.js} +70 -82
- 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/{atoms/ExtendedLoadMore/index-446679c8.js → esm/components/Rows/ThreeColGrid/index.js} +54 -69
- 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/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
- package/atoms/Author/index.js +0 -170
- package/atoms/Author/styles.arrow.css +0 -1
- package/atoms/AuthorWithTime/index.js +0 -514
- package/atoms/AuthorWithTime/styles.arrow.css +0 -1
- package/atoms/CollectionName/index.js +0 -255
- package/atoms/CollectionName/styles.arrow.css +0 -1
- package/atoms/ExtendedLoadMore/index-0f809dd9.js +0 -254
- package/atoms/ExtendedLoadMore/index-142f015c.js +0 -476
- package/atoms/ExtendedLoadMore/index-44f97338.js +0 -300
- package/atoms/ExtendedLoadMore/index-66dd4dbd.js +0 -215
- package/atoms/ExtendedLoadMore/index-8462c597.js +0 -363
- package/atoms/ExtendedLoadMore/index-93cb06d1.js +0 -1016
- package/atoms/ExtendedLoadMore/index-afd44863.js +0 -95
- package/atoms/ExtendedLoadMore/index.js +0 -20
- package/atoms/ExtendedLoadMore/styles.arrow.css +0 -1
- package/atoms/Headline/index.js +0 -379
- package/atoms/Headline/styles.arrow.css +0 -1
- package/atoms/HeroImage/index.js +0 -336
- package/atoms/HeroImage/styles.arrow.css +0 -1
- package/atoms/LoadmoreButton/index.js +0 -175
- package/atoms/LoadmoreButton/styles.arrow.css +0 -1
- package/atoms/ScrollSnap/index.js +0 -379
- package/atoms/ScrollSnap/styles.arrow.css +0 -1
- package/atoms/SectionTag/index.js +0 -140
- package/atoms/SectionTag/styles.arrow.css +0 -1
- package/atoms/Subheadline/index.js +0 -120
- package/atoms/Subheadline/styles.arrow.css +0 -1
- package/atoms/TimeStamp/index.js +0 -221
- package/atoms/TimeStamp/styles.arrow.css +0 -1
- package/molecules/KeyEvents/index.js +0 -457
- package/molecules/KeyEvents/styles.arrow.css +0 -1
- package/molecules/PageIntroductionCard/index.js +0 -248
- package/molecules/PageIntroductionCard/styles.arrow.css +0 -1
- package/molecules/SocialShareTemplate/index.js +0 -506
- package/molecules/SocialShareTemplate/styles.arrow.css +0 -1
- package/molecules/StoryCard/index.js +0 -1430
- package/molecules/StoryCard/styles.arrow.css +0 -1
- package/molecules/StoryElementCard/index.js +0 -3091
- package/molecules/StoryElementCard/styles.arrow.css +0 -1
- package/molecules/StorycardContent/index.js +0 -976
- package/molecules/StorycardContent/styles.arrow.css +0 -1
- package/rows/AlternateCollectionFilter/index.js +0 -2189
- package/rows/AlternateCollectionFilter/styles.arrow.css +0 -1
- package/rows/AsideCollection/index.js +0 -2135
- package/rows/AsideCollection/styles.arrow.css +0 -1
- package/rows/AstrologyCollection/index.js +0 -2106
- package/rows/AstrologyCollection/styles.arrow.css +0 -1
- package/rows/AuthorIntroductionCard/index.js +0 -813
- package/rows/AuthorIntroductionCard/styles.arrow.css +0 -1
- package/rows/AuthorsList/index.js +0 -996
- package/rows/AuthorsList/styles.arrow.css +0 -1
- package/rows/CollectionFilter/index.js +0 -2279
- package/rows/CollectionFilter/styles.arrow.css +0 -1
- package/rows/ElevenStories/index.js +0 -2118
- package/rows/ElevenStories/styles.arrow.css +0 -1
- package/rows/FourColFiveStories/index.js +0 -1861
- package/rows/FourColFiveStories/styles.arrow.css +0 -1
- package/rows/FourColGrid/index.js +0 -2083
- package/rows/FourColGrid/styles.arrow.css +0 -1
- package/rows/FourColPortraitStories/index.js +0 -2116
- package/rows/FourColPortraitStories/styles.arrow.css +0 -1
- package/rows/FourColSixteenStories/index.js +0 -1849
- package/rows/FourColSixteenStories/styles.arrow.css +0 -1
- package/rows/FourColTwelveStories/index.js +0 -1822
- package/rows/FourColTwelveStories/styles.arrow.css +0 -1
- package/rows/FourStorySlider/index.js +0 -2223
- package/rows/FourStorySlider/styles.arrow.css +0 -1
- package/rows/FourStorySliderPortrait/index.js +0 -2226
- package/rows/FourStorySliderPortrait/styles.arrow.css +0 -1
- package/rows/FourTabbedBigStorySlider/index.js +0 -1985
- package/rows/FourTabbedBigStorySlider/styles.arrow.css +0 -1
- package/rows/FullScreenSlider/index.js +0 -2141
- package/rows/FullScreenSlider/styles.arrow.css +0 -1
- package/rows/HalfScreenSlider/index.js +0 -1994
- package/rows/HalfScreenSlider/styles.arrow.css +0 -1
- package/rows/ListComponent/index.js +0 -1942
- package/rows/ListComponent/styles.arrow.css +0 -1
- package/rows/Listicles/index.js +0 -945
- package/rows/Listicles/styles.arrow.css +0 -1
- package/rows/MagazineEditions/index.js +0 -690
- package/rows/MagazineEditions/styles.arrow.css +0 -1
- package/rows/MagazineHeaderCard/index.js +0 -684
- package/rows/MagazineHeaderCard/styles.arrow.css +0 -1
- package/rows/MagazineWidget/index.js +0 -1994
- package/rows/MagazineWidget/styles.arrow.css +0 -1
- package/rows/OneColStoryList/index.js +0 -2169
- package/rows/OneColStoryList/styles.arrow.css +0 -1
- package/rows/OpinionCollection/index.js +0 -1545
- package/rows/OpinionCollection/styles.arrow.css +0 -1
- package/rows/SixColSixStories/index.js +0 -2014
- package/rows/SixColSixStories/styles.arrow.css +0 -1
- package/rows/StoryCollection/index.js +0 -2135
- package/rows/StoryCollection/styles.arrow.css +0 -1
- package/rows/TagIntroductionCard/index.js +0 -103
- package/rows/TagIntroductionCard/styles.arrow.css +0 -1
- package/rows/ThreeColFlexStories/index.js +0 -2074
- package/rows/ThreeColFlexStories/styles.arrow.css +0 -1
- package/rows/ThreeColFourteenStories/index.js +0 -1770
- package/rows/ThreeColFourteenStories/styles.arrow.css +0 -1
- package/rows/ThreeColGrid/index.js +0 -2104
- package/rows/ThreeColGrid/styles.arrow.css +0 -1
- package/rows/ThreeColSevenStory/index.js +0 -1982
- package/rows/ThreeColSevenStory/styles.arrow.css +0 -1
- package/rows/ThreeColSixStories/index.js +0 -1965
- package/rows/ThreeColSixStories/styles.arrow.css +0 -1
- package/rows/ThreeColTwelveStories/index.js +0 -1854
- package/rows/ThreeColTwelveStories/styles.arrow.css +0 -1
- package/rows/TwoColFourStories/index.js +0 -1943
- package/rows/TwoColFourStories/styles.arrow.css +0 -1
- package/rows/TwoColFourStoryHighlight/index.js +0 -1930
- package/rows/TwoColFourStoryHighlight/styles.arrow.css +0 -1
- package/rows/TwoColSevenStories/index.js +0 -1970
- package/rows/TwoColSevenStories/styles.arrow.css +0 -1
- package/rows/TwoColSixStories/index.js +0 -1963
- package/rows/TwoColSixStories/styles.arrow.css +0 -1
- package/rows/TwoColTenStoriesSidebar/index.js +0 -2029
- package/rows/TwoColTenStoriesSidebar/styles.arrow.css +0 -1
- package/rows/TwoColThreeStories/index.js +0 -1916
- package/rows/TwoColThreeStories/styles.arrow.css +0 -1
- package/story-elements/AlsoRead/index.js +0 -320
- package/story-elements/AlsoRead/styles.arrow.css +0 -1
- package/story-elements/Attachment/index.js +0 -167
- package/story-elements/Attachment/styles.arrow.css +0 -1
- package/story-elements/BigFact/index.js +0 -137
- package/story-elements/BigFact/styles.arrow.css +0 -1
- package/story-elements/BlockQuote/index.js +0 -304
- package/story-elements/BlockQuote/styles.arrow.css +0 -1
- package/story-elements/Blurb/index.js +0 -189
- package/story-elements/Blurb/styles.arrow.css +0 -1
- package/story-elements/Image/index.js +0 -529
- package/story-elements/Image/styles.arrow.css +0 -1
- package/story-elements/ImageGallery/index.js +0 -462
- package/story-elements/ImageGallery/styles.arrow.css +0 -1
- package/story-elements/ImageSlideshow/index.js +0 -773
- package/story-elements/ImageSlideshow/styles.arrow.css +0 -1
- package/story-elements/QuestionAnswer/index.js +0 -267
- package/story-elements/QuestionAnswer/styles.arrow.css +0 -1
- package/story-elements/Quote/index.js +0 -166
- package/story-elements/Quote/styles.arrow.css +0 -1
- package/story-elements/Reference/index.js +0 -160
- package/story-elements/Reference/styles.arrow.css +0 -1
- package/story-elements/StoryElement/index.js +0 -75
- package/story-elements/Summary/index.js +0 -190
- package/story-elements/Summary/styles.arrow.css +0 -1
- package/story-elements/Text/index.js +0 -165
- package/story-elements/Text/styles.arrow.css +0 -1
- package/story-elements/Video/index.js +0 -81
- package/story-elements/Video/styles.arrow.css +0 -1
- package/story-templates/ListicleStoryTemplate/index.js +0 -5586
- package/story-templates/ListicleStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/LiveBlogStoryTemplate/index.js +0 -5762
- package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/PhotoStoryTemplate/index.js +0 -5564
- package/story-templates/PhotoStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/TextStoryTemplate/index.js +0 -5637
- package/story-templates/TextStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/VideoStoryTemplate/index.js +0 -5496
- package/story-templates/VideoStoryTemplate/styles.arrow.css +0 -1
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
@import "../../../../stylesheets/mixins.scss";
|
|
2
|
+
|
|
3
|
+
.header-details {
|
|
4
|
+
margin: var(--arrow-spacing-m) 0 var(--arrow-spacing-xs) 0;
|
|
5
|
+
@include tablet {
|
|
6
|
+
margin: var(--arrow-fs-huge) 0;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header-details :global(.arr--sub-headline) {
|
|
11
|
+
font-size: var(--arrow-fs-s);
|
|
12
|
+
font-style: italic;
|
|
13
|
+
@include tablet {
|
|
14
|
+
font-size: var(--arrow-fs-m);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.timestamp-social-share {
|
|
19
|
+
display: flex;
|
|
20
|
+
justify-content: space-between;
|
|
21
|
+
align-items: center;
|
|
22
|
+
margin-top: var(--arrow-spacing-s);
|
|
23
|
+
@include tablet {
|
|
24
|
+
margin-top: 0;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.story-tags > * {
|
|
28
|
+
margin: var(--arrow-spacing-m) 0;
|
|
29
|
+
@include tablet {
|
|
30
|
+
margin: var(--arrow-spacing-l) 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.hero-image :global(.arr--hero-image) {
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.dark {
|
|
39
|
+
color: var(--arrow-c-mono4);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.light {
|
|
43
|
+
color: var(--arrow-c-invert-mono4);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.hero-vertical-priority,
|
|
47
|
+
.headline-hero-priority,
|
|
48
|
+
.hero-priority-center,
|
|
49
|
+
.headline-overlay-priority {
|
|
50
|
+
.story-content-inner-wrapper {
|
|
51
|
+
grid-column: 1/5;
|
|
52
|
+
@include tablet {
|
|
53
|
+
grid-column: 4/ 12;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
.aside-collection {
|
|
57
|
+
grid-column: 1/5;
|
|
58
|
+
@include tablet {
|
|
59
|
+
grid-column: container-start / container-end;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.default :global(.section-tag) {
|
|
65
|
+
margin-bottom: var(--arrow-spacing-xs);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.default .story-details,
|
|
69
|
+
.default .aside-collection {
|
|
70
|
+
margin: 0 var(--arrow-spacing-s);
|
|
71
|
+
@include tablet {
|
|
72
|
+
margin: unset;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.sticky :global(.arr--share) {
|
|
77
|
+
grid-column: 4/5;
|
|
78
|
+
justify-self: flex-end;
|
|
79
|
+
@include tablet {
|
|
80
|
+
/* grid column value is to make the vertical share sticky */
|
|
81
|
+
grid-column: 9 / grid-end;
|
|
82
|
+
@include desktop {
|
|
83
|
+
position: sticky;
|
|
84
|
+
position: -webkit-sticky;
|
|
85
|
+
top: 120px;
|
|
86
|
+
grid-column: 3/ 4;
|
|
87
|
+
grid-row: 2/3;
|
|
88
|
+
align-self: flex-start;
|
|
89
|
+
margin-top: var(--arrow-spacing-xs);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.default .hero-image {
|
|
95
|
+
@include tablet {
|
|
96
|
+
grid-column: gutter-1-start/ gutter-2-end;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.headline-overlay-priority > .hero-image {
|
|
101
|
+
background-color: var(--arrow-c-dark);
|
|
102
|
+
overflow: hidden;
|
|
103
|
+
grid-row: 1 / 2;
|
|
104
|
+
grid-column: 1/5;
|
|
105
|
+
@include tablet {
|
|
106
|
+
grid-column: 2 / 14;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.headline-overlay-priority .header-details {
|
|
111
|
+
align-self: center;
|
|
112
|
+
grid-row: 1/2;
|
|
113
|
+
grid-column: 1/5;
|
|
114
|
+
padding: 0 var(--arrow-fs-l);
|
|
115
|
+
z-index: 2;
|
|
116
|
+
@include tablet {
|
|
117
|
+
grid-column: 3 / 13;
|
|
118
|
+
@include desktop {
|
|
119
|
+
grid-column: 4 / 12;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
:global(.section-tag) {
|
|
123
|
+
color: var(--arrow-c-invert-mono4);
|
|
124
|
+
}
|
|
125
|
+
:global(.arr--sub-headline),
|
|
126
|
+
:global(.arr--story-headline) {
|
|
127
|
+
color: var(--arrow-c-invert-mono1);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.headline-hero-priority.sticky {
|
|
132
|
+
:global(.arr--share) {
|
|
133
|
+
@include desktop {
|
|
134
|
+
grid-row: 3/4;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.default.sticky,
|
|
140
|
+
.headline-priority.sticky {
|
|
141
|
+
:global(.arr--share) {
|
|
142
|
+
@include desktop {
|
|
143
|
+
grid-column: grid-start / container-start;
|
|
144
|
+
grid-row: 2/3;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.hero-vertical-priority.container :global(.section-tag) {
|
|
150
|
+
padding: var(--arrow-spacing-xxs) 0 var(--arrow-spacing-xs);
|
|
151
|
+
@include tablet {
|
|
152
|
+
padding: unset;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.hero-vertical-priority.container :global(.arr--caption-attribution) {
|
|
157
|
+
margin: 0 0 var(--arrow-spacing-xs);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.hero-vertical-priority.fullBleed :global(.section-tag) {
|
|
161
|
+
padding-bottom: var(--arrow-spacing-xs);
|
|
162
|
+
@include tablet {
|
|
163
|
+
padding-bottom: unset;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.fullBleed.hero-vertical-priority :global(.arr--caption-attribution) {
|
|
168
|
+
@include mobile {
|
|
169
|
+
margin: var(--arrow-spacing-xs) var(--arrow-spacing-s);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.hero-vertical-priority.headline-first.sticky :global(.arr--share) {
|
|
174
|
+
@include desktop {
|
|
175
|
+
grid-row: 3/4;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.text-story-side-column {
|
|
180
|
+
grid-column: 1/5;
|
|
181
|
+
@include tablet {
|
|
182
|
+
grid-column: 9 / 14;
|
|
183
|
+
grid-row: 2/3;
|
|
184
|
+
@include desktop {
|
|
185
|
+
grid-column: 10 / 14;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.headline-priority {
|
|
191
|
+
.header-details {
|
|
192
|
+
grid-column: 1/5;
|
|
193
|
+
@include tablet {
|
|
194
|
+
grid-column: 2 / 14;
|
|
195
|
+
@include desktop {
|
|
196
|
+
grid-column: 2 / 10;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
.story-content-inner-wrapper {
|
|
201
|
+
grid-column: 1/5;
|
|
202
|
+
@include tablet {
|
|
203
|
+
grid-column: 2 / 9;
|
|
204
|
+
@include desktop {
|
|
205
|
+
grid-column: 2 / 10;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
.text-story-side-column {
|
|
210
|
+
@include tablet {
|
|
211
|
+
grid-row: 2/6;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.default.fullBleed .hero-image,
|
|
217
|
+
.headline-hero-priority.fullBleed .hero-image,
|
|
218
|
+
.hero-priority-center.fullBleed .hero-image {
|
|
219
|
+
grid-column: 1/5;
|
|
220
|
+
@include tablet {
|
|
221
|
+
grid-column: grid-start/ grid-end;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.default .story-content-inner-wrapper {
|
|
226
|
+
grid-column: 1/5;
|
|
227
|
+
@include tablet {
|
|
228
|
+
grid-column: 2 / 9;
|
|
229
|
+
@include desktop-lg {
|
|
230
|
+
grid-column: 2 / 10;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.default .text-story-side-column {
|
|
236
|
+
grid-column: 1/5;
|
|
237
|
+
@include tablet {
|
|
238
|
+
grid-column: 9 / 14;
|
|
239
|
+
@include desktop-lg {
|
|
240
|
+
grid-column: 10 / 14;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.fullBleed .story-content-inner-wrapper,
|
|
246
|
+
.fullBleed.hero-vertical-priority .aside-collection,
|
|
247
|
+
.fullBleed.headline-hero-priority .aside-collection .fullBleed.hero-priority-center .aside-collection,
|
|
248
|
+
.fullBleed .text-story-side-column {
|
|
249
|
+
@include mobile {
|
|
250
|
+
margin: 0 var(--arrow-spacing-s);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.fullBleed.hero-vertical-priority .header-details {
|
|
255
|
+
margin: var(--arrow-spacing-m) var(--arrow-spacing-s) var(--arrow-spacing-xs);
|
|
256
|
+
@include tablet {
|
|
257
|
+
margin: var(--arrow-fs-huge) 0;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.default.container {
|
|
262
|
+
.hero-image :global(.arr--hero-image) {
|
|
263
|
+
margin-top: var(--arrow-spacing-s);
|
|
264
|
+
@include tablet {
|
|
265
|
+
grid-column: 2 / 14;
|
|
266
|
+
margin-top: unset;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.hero-vertical-priority.image-first .header-details {
|
|
272
|
+
padding-bottom: 20px;
|
|
273
|
+
@include tablet {
|
|
274
|
+
padding-bottom: unset;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.hero-vertical-priority.image-first .image-wrapper {
|
|
279
|
+
grid-row: 1/2;
|
|
280
|
+
@include tablet {
|
|
281
|
+
grid-row: unset;
|
|
282
|
+
grid-column: 8 / 14;
|
|
283
|
+
margin-bottom: var(--arrow-spacing-l);
|
|
284
|
+
@include desktop-lg {
|
|
285
|
+
grid-column: 8 / 13;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.hero-priority-center.container .hero-image,
|
|
291
|
+
.headline-hero-priority.container .hero-image,
|
|
292
|
+
.default.container .hero-image {
|
|
293
|
+
grid-column: 1/5;
|
|
294
|
+
@include tablet {
|
|
295
|
+
grid-column: 2 / 14;
|
|
296
|
+
margin-top: var(--arrow-spacing-xs);
|
|
297
|
+
@include desktop-lg {
|
|
298
|
+
margin-top: var(--arrow-spacing-m);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.hero-vertical-priority.fullBleed.headline-first .hero-image {
|
|
304
|
+
grid-column: 1/5;
|
|
305
|
+
@include tablet {
|
|
306
|
+
grid-column: 7 / grid-end;
|
|
307
|
+
@include desktop {
|
|
308
|
+
grid-column: 8 / grid-end;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
.hero-vertical-priority.fullBleed.headline-first :global(.arr--caption-attribution) {
|
|
313
|
+
grid-column: 1/5;
|
|
314
|
+
@include tablet {
|
|
315
|
+
grid-column: 7 / grid-end;
|
|
316
|
+
@include desktop {
|
|
317
|
+
grid-column: 8 / grid-end;
|
|
318
|
+
grid-row: 2/3;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.hero-vertical-priority.fullBleed.headline-first .header-details {
|
|
324
|
+
grid-column: 1/5;
|
|
325
|
+
@include tablet {
|
|
326
|
+
grid-column: 2 / 7;
|
|
327
|
+
align-self: center;
|
|
328
|
+
@include desktop {
|
|
329
|
+
grid-column: 2 / 8;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.hero-vertical-priority.container.headline-first .header-details {
|
|
335
|
+
grid-column: 1/5;
|
|
336
|
+
@include tablet {
|
|
337
|
+
align-self: center;
|
|
338
|
+
grid-column: 2 / 8;
|
|
339
|
+
@include desktop {
|
|
340
|
+
grid-column: 3 / 8;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.hero-vertical-priority.container.headline-first .hero-image,
|
|
346
|
+
.hero-vertical-priority.container.headline-first :global(.arr--caption-attribution) {
|
|
347
|
+
grid-column: 1/5;
|
|
348
|
+
@include tablet {
|
|
349
|
+
grid-column: 8 / 14;
|
|
350
|
+
@include desktop {
|
|
351
|
+
grid-column: 8 / 13;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
.hero-vertical-priority.fullBleed.image-first .hero-image {
|
|
357
|
+
grid-column: 1/5;
|
|
358
|
+
@include tablet {
|
|
359
|
+
grid-row: 1 / 2;
|
|
360
|
+
grid-column: grid-start / 9;
|
|
361
|
+
@include desktop {
|
|
362
|
+
grid-column: grid-start / 8;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.hero-vertical-priority.fullBleed.image-first :global(.arr--caption-attribution) {
|
|
368
|
+
grid-column: 1/5;
|
|
369
|
+
@include tablet {
|
|
370
|
+
grid-row: 1 / 2;
|
|
371
|
+
grid-column: grid-start / 9;
|
|
372
|
+
@include desktop {
|
|
373
|
+
grid-column: grid-start / 8;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
.hero-vertical-priority.fullBleed.image-first .header-details {
|
|
379
|
+
grid-column: 1/5;
|
|
380
|
+
@include tablet {
|
|
381
|
+
align-self: center;
|
|
382
|
+
grid-column: 9 / 14;
|
|
383
|
+
@include desktop {
|
|
384
|
+
grid-column: 8 / 14;
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.hero-vertical-priority.container.image-first .header-details {
|
|
390
|
+
grid-column: 1/5;
|
|
391
|
+
@include tablet {
|
|
392
|
+
align-self: center;
|
|
393
|
+
grid-column: 8 / 14;
|
|
394
|
+
@include desktop {
|
|
395
|
+
grid-column: 8 / 13;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
.hero-vertical-priority.container.image-first .hero-image,
|
|
401
|
+
.hero-vertical-priority.container.image-first :global(.arr--caption-attribution) {
|
|
402
|
+
grid-column: 1/5;
|
|
403
|
+
@include tablet {
|
|
404
|
+
grid-column: 2 / 8;
|
|
405
|
+
grid-row: 1 / 2;
|
|
406
|
+
@include desktop {
|
|
407
|
+
grid-column: 3 / 8;
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
:global(.section-tag) {
|
|
412
|
+
margin-bottom: var(--arrow-spacing-xs);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.hero-vertical-priority.container .story-content-wrapper {
|
|
417
|
+
display: grid;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
.headline-overlay-priority > .hero-image figure {
|
|
421
|
+
opacity: 0.5;
|
|
422
|
+
}
|
|
423
|
+
.headline-overlay-priority > .hero-image img {
|
|
424
|
+
-webkit-filter: blur(4px);
|
|
425
|
+
filter: blur(4px);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.gap-16 {
|
|
429
|
+
margin-top: var(--arrow-spacing-m);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.sticky .index-2 {
|
|
433
|
+
@include tablet {
|
|
434
|
+
z-index: 2;
|
|
435
|
+
@include desktop {
|
|
436
|
+
z-index: unset;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.tablet-index-2 {
|
|
442
|
+
@include tablet {
|
|
443
|
+
z-index: 2;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.fullBleed:global(.arr-story-grid) {
|
|
448
|
+
margin: unset;
|
|
449
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
|
|
3
|
+
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; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { mount } from "enzyme";
|
|
9
|
+
import { generateStory, generateCollection, generateStore } from "../../../Fixture";
|
|
10
|
+
import { TextStoryTemplateBase } from "./index";
|
|
11
|
+
import { AdPlaceholder } from "../../../Atoms/AdPlaceholder";
|
|
12
|
+
import { Provider } from "react-redux";
|
|
13
|
+
import { mockIntersectionObserver } from "../../../../utils/testing-utils";
|
|
14
|
+
var story = generateStory();
|
|
15
|
+
var collection = generateCollection({
|
|
16
|
+
stories: 4
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
var configurableSlot = function configurableSlot() {
|
|
20
|
+
return /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
21
|
+
height: "250px",
|
|
22
|
+
width: "300px"
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
var child = /*#__PURE__*/React.createElement("div", null, "children");
|
|
27
|
+
var storyElementsConfig = {
|
|
28
|
+
summary: {},
|
|
29
|
+
blurb: {},
|
|
30
|
+
blockquote: {},
|
|
31
|
+
quote: {},
|
|
32
|
+
"also-read": {},
|
|
33
|
+
"q-and-a": {},
|
|
34
|
+
question: {},
|
|
35
|
+
answer: {}
|
|
36
|
+
};
|
|
37
|
+
var templateConfig = {
|
|
38
|
+
theme: "#ffffff",
|
|
39
|
+
sort: "image-first",
|
|
40
|
+
noOfVisibleCards: -1,
|
|
41
|
+
publishedDetails: {
|
|
42
|
+
enablePublishedTime: true,
|
|
43
|
+
enableUpdatedTime: false,
|
|
44
|
+
showReadTime: true
|
|
45
|
+
},
|
|
46
|
+
asideCollection: {
|
|
47
|
+
data: collection,
|
|
48
|
+
config: {
|
|
49
|
+
collectionNameBorderColor: "#3a9fdd",
|
|
50
|
+
title: "Trending",
|
|
51
|
+
theme: "#ffffff",
|
|
52
|
+
adSlot: [{
|
|
53
|
+
type: "ad",
|
|
54
|
+
component: configurableSlot
|
|
55
|
+
}]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
authorDetails: {
|
|
59
|
+
template: "default",
|
|
60
|
+
opts: {
|
|
61
|
+
showBio: false,
|
|
62
|
+
showImage: true,
|
|
63
|
+
showName: true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
beforeEach(function () {
|
|
68
|
+
mockIntersectionObserver();
|
|
69
|
+
});
|
|
70
|
+
describe("Text Story Templates", function () {
|
|
71
|
+
it("Should render text story template with image full-bleed", function () {
|
|
72
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
73
|
+
imageRender: "fullBleed"
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
77
|
+
store: generateStore
|
|
78
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
79
|
+
story: story,
|
|
80
|
+
config: config,
|
|
81
|
+
storyElementsConfig: storyElementsConfig,
|
|
82
|
+
firstChild: child,
|
|
83
|
+
secondChild: child,
|
|
84
|
+
adComponent: configurableSlot,
|
|
85
|
+
widgetComp: configurableSlot
|
|
86
|
+
})));
|
|
87
|
+
expect(wrapper.find({
|
|
88
|
+
"data-test-id": "text-story-default-full-bleed"
|
|
89
|
+
}).prop("className")).toMatch(/fullBleed/);
|
|
90
|
+
});
|
|
91
|
+
it("Should render text story template with in container image", function () {
|
|
92
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
93
|
+
templateType: "hero-priority-center",
|
|
94
|
+
imageRender: "container"
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
98
|
+
store: generateStore
|
|
99
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
100
|
+
story: story,
|
|
101
|
+
config: config,
|
|
102
|
+
storyElementsConfig: storyElementsConfig,
|
|
103
|
+
firstChild: child,
|
|
104
|
+
secondChild: child,
|
|
105
|
+
adComponent: configurableSlot,
|
|
106
|
+
widgetComp: configurableSlot
|
|
107
|
+
})));
|
|
108
|
+
expect(wrapper.find({
|
|
109
|
+
"data-test-id": "text-story-hero-priority-center-container"
|
|
110
|
+
}).prop("className")).toMatch(/container/);
|
|
111
|
+
});
|
|
112
|
+
it("Should render hero priority center align template", function () {
|
|
113
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
114
|
+
templateType: "hero-priority-center",
|
|
115
|
+
imageRender: "container"
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
119
|
+
store: generateStore
|
|
120
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
121
|
+
story: story,
|
|
122
|
+
config: config,
|
|
123
|
+
storyElementsConfig: storyElementsConfig,
|
|
124
|
+
firstChild: child,
|
|
125
|
+
secondChild: child,
|
|
126
|
+
adComponent: configurableSlot,
|
|
127
|
+
widgetComp: configurableSlot
|
|
128
|
+
})));
|
|
129
|
+
expect(wrapper.find({
|
|
130
|
+
"data-test-id": "text-story-hero-priority-center-container"
|
|
131
|
+
}).prop("className")).toMatch(/hero-priority-center/);
|
|
132
|
+
expect(wrapper.find("AsideCollectionCard").length).toEqual(1);
|
|
133
|
+
});
|
|
134
|
+
it("Should render hero priority left align template", function () {
|
|
135
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
136
|
+
templateType: "default",
|
|
137
|
+
imageRender: "container"
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
141
|
+
store: generateStore
|
|
142
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
143
|
+
story: story,
|
|
144
|
+
config: config,
|
|
145
|
+
storyElementsConfig: storyElementsConfig,
|
|
146
|
+
firstChild: child,
|
|
147
|
+
secondChild: child,
|
|
148
|
+
adComponent: configurableSlot,
|
|
149
|
+
widgetComp: configurableSlot
|
|
150
|
+
})));
|
|
151
|
+
expect(wrapper.find({
|
|
152
|
+
"data-test-id": "text-story-default-container"
|
|
153
|
+
}).prop("className")).toMatch(/default/);
|
|
154
|
+
expect(wrapper.find("SideColumn").length).toEqual(1);
|
|
155
|
+
});
|
|
156
|
+
it("Should render headline hero priority template", function () {
|
|
157
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
158
|
+
templateType: "headline-hero-priority",
|
|
159
|
+
imageRender: "container"
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
163
|
+
store: generateStore
|
|
164
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
165
|
+
story: story,
|
|
166
|
+
config: config,
|
|
167
|
+
storyElementsConfig: storyElementsConfig,
|
|
168
|
+
firstChild: child,
|
|
169
|
+
secondChild: child,
|
|
170
|
+
adComponent: configurableSlot,
|
|
171
|
+
widgetComp: configurableSlot
|
|
172
|
+
})));
|
|
173
|
+
expect(wrapper.find({
|
|
174
|
+
"data-test-id": "text-story-headline-hero-priority-container"
|
|
175
|
+
}).prop("className")).toMatch(/headline-hero-priority/);
|
|
176
|
+
expect(wrapper.find("AsideCollectionCard").length).toEqual(1);
|
|
177
|
+
});
|
|
178
|
+
it("Should render hero vertical priority template", function () {
|
|
179
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
180
|
+
templateType: "hero-vertical-priority",
|
|
181
|
+
imageRender: "container"
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
185
|
+
store: generateStore
|
|
186
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
187
|
+
story: story,
|
|
188
|
+
config: config,
|
|
189
|
+
storyElementsConfig: storyElementsConfig,
|
|
190
|
+
firstChild: child,
|
|
191
|
+
secondChild: child,
|
|
192
|
+
adComponent: configurableSlot,
|
|
193
|
+
widgetComp: configurableSlot
|
|
194
|
+
})));
|
|
195
|
+
expect(wrapper.find({
|
|
196
|
+
"data-test-id": "text-story-hero-vertical-priority-container"
|
|
197
|
+
}).prop("className")).toMatch(/hero-vertical-priority/);
|
|
198
|
+
expect(wrapper.find("AsideCollectionCard").length).toEqual(1);
|
|
199
|
+
});
|
|
200
|
+
it("Should render headline priority template", function () {
|
|
201
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
202
|
+
templateType: "headline-priority"
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
206
|
+
store: generateStore
|
|
207
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
208
|
+
story: story,
|
|
209
|
+
config: config,
|
|
210
|
+
storyElementsConfig: storyElementsConfig,
|
|
211
|
+
firstChild: child,
|
|
212
|
+
secondChild: child,
|
|
213
|
+
adComponent: configurableSlot,
|
|
214
|
+
widgetComp: configurableSlot
|
|
215
|
+
})));
|
|
216
|
+
expect(wrapper.find({
|
|
217
|
+
"data-test-id": "text-story-headline-priority"
|
|
218
|
+
}).prop("className")).toMatch(/headline-priority/);
|
|
219
|
+
expect(wrapper.find("SideColumn").length).toEqual(1);
|
|
220
|
+
});
|
|
221
|
+
it("Should render headline overlay priority template", function () {
|
|
222
|
+
var config = _objectSpread(_objectSpread({}, templateConfig), {}, {
|
|
223
|
+
templateType: "headline-overlay-priority"
|
|
224
|
+
});
|
|
225
|
+
|
|
226
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
227
|
+
store: generateStore
|
|
228
|
+
}, /*#__PURE__*/React.createElement(TextStoryTemplateBase, {
|
|
229
|
+
story: story,
|
|
230
|
+
config: config,
|
|
231
|
+
storyElementsConfig: storyElementsConfig,
|
|
232
|
+
firstChild: child,
|
|
233
|
+
secondChild: child,
|
|
234
|
+
adComponent: configurableSlot,
|
|
235
|
+
widgetComp: configurableSlot
|
|
236
|
+
})));
|
|
237
|
+
expect(wrapper.find({
|
|
238
|
+
"data-test-id": "text-story-headline-overlay-priority"
|
|
239
|
+
}).prop("className")).toMatch(/headline-overlay-priority/);
|
|
240
|
+
expect(wrapper.find("AsideCollectionCard").length).toEqual(1);
|
|
241
|
+
});
|
|
242
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Video Story Template
|
|
2
|
+
|
|
3
|
+
Video story template is a basic component used to represent a video story.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
## Default Video Story
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
<VideoStoryTemplate story={story} templateConfig={templateConfig} />
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Hero priority Video Story
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
<VideoStoryTemplate story={story} templateConfig={templateConfig} />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Headline priority Video Story
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
<VideoStoryTemplate story={story} templateConfig={templateConfig} />
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Template with Children
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
<VideoStoryTemplate story={story} templateConfig={templateConfig}>
|
|
29
|
+
<Children />
|
|
30
|
+
</VideoStoryTemplate>
|
|
31
|
+
```
|