@quintype/arrow 3.15.1-perf.5 → 3.15.1-perf.7
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/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/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,119 @@
|
|
|
1
|
+
import { boolean as _boolean, color, text } from "@storybook/addon-knobs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ListicleStoryTemplateBase } from ".";
|
|
4
|
+
import { optionalSelect, withStore } from "../../../../../storybook";
|
|
5
|
+
import { AdPlaceholder } from "../../../Atoms/AdPlaceholder";
|
|
6
|
+
import { generateCollection, generateStory } from "../../../Fixture";
|
|
7
|
+
import { slotData } from "../../../Fixture/slot-config";
|
|
8
|
+
import Readme from "./README.md";
|
|
9
|
+
var story = generateStory("listicle-story");
|
|
10
|
+
var collection = generateCollection({
|
|
11
|
+
stories: 4
|
|
12
|
+
});
|
|
13
|
+
var label = "BG Color";
|
|
14
|
+
var defaultvalue = "#ffffff";
|
|
15
|
+
|
|
16
|
+
var configurableSlot = function configurableSlot() {
|
|
17
|
+
return /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
18
|
+
height: "250px",
|
|
19
|
+
width: "300px"
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
var storyTemplates = {
|
|
24
|
+
Default: "default",
|
|
25
|
+
"Hero Priority": "hero-priority",
|
|
26
|
+
"Headline Priority": "headline-priority",
|
|
27
|
+
"Headline Hero Priority": "headline-hero-priority",
|
|
28
|
+
"Hero Overlay": "hero-overlay",
|
|
29
|
+
"Headline Sideway": "headline-sideway"
|
|
30
|
+
};
|
|
31
|
+
var sectionTagTemplates = {
|
|
32
|
+
Default: "",
|
|
33
|
+
"Border Bottom Small": "borderBottomSml",
|
|
34
|
+
Solid: "solid",
|
|
35
|
+
"Border Left": "borderLeft"
|
|
36
|
+
};
|
|
37
|
+
var authorTemplates = {
|
|
38
|
+
"default": "default",
|
|
39
|
+
leftAligned: "leftAligned",
|
|
40
|
+
centerAligned: "centerAligned"
|
|
41
|
+
};
|
|
42
|
+
withStore("Rows/Story Templates/Listicle Story Template", {
|
|
43
|
+
qt: {
|
|
44
|
+
config: {
|
|
45
|
+
"cdn-image": "thumbor-stg.assettype.com",
|
|
46
|
+
mountAt: "/sub-directory"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, Readme).add("Default", function () {
|
|
50
|
+
var templateConfig = {
|
|
51
|
+
templateType: optionalSelect("Template Options", storyTemplates),
|
|
52
|
+
theme: color(label, defaultvalue),
|
|
53
|
+
noOfVisibleCards: -1,
|
|
54
|
+
showSection: _boolean("Show Section Tag", true),
|
|
55
|
+
publishedDetails: {
|
|
56
|
+
showReadTime: _boolean("Read time", true),
|
|
57
|
+
enablePublishedTime: _boolean("Show Published Time", true),
|
|
58
|
+
enableUpdatedTime: _boolean("Show Updated Time", false)
|
|
59
|
+
},
|
|
60
|
+
authorDetails: {
|
|
61
|
+
template: optionalSelect("Author Templates", authorTemplates) || "default",
|
|
62
|
+
opts: {
|
|
63
|
+
showBio: _boolean("Author Bio", false),
|
|
64
|
+
showImage: _boolean("Author Image", true),
|
|
65
|
+
showName: _boolean("Author Name", true)
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
sectionTagSettings: {
|
|
69
|
+
template: optionalSelect("Section Template", sectionTagTemplates) || "borderBottomSml",
|
|
70
|
+
borderColor: color("Section Tag Border Color", "#ff214b")
|
|
71
|
+
},
|
|
72
|
+
premiumStoryIconConfig: {
|
|
73
|
+
iconColor: "#F7B500",
|
|
74
|
+
iconType: "star",
|
|
75
|
+
enablePremiumStoryIcon: true
|
|
76
|
+
},
|
|
77
|
+
asideCollection: {
|
|
78
|
+
data: collection,
|
|
79
|
+
config: {
|
|
80
|
+
collectionNameBorderColor: color("Aside Collection Name Border Color", "#3a9fdd"),
|
|
81
|
+
title: text("Aside Collection Title", "Trending"),
|
|
82
|
+
theme: color(label, defaultvalue),
|
|
83
|
+
adSlot: [{
|
|
84
|
+
type: "ad",
|
|
85
|
+
component: configurableSlot
|
|
86
|
+
}],
|
|
87
|
+
showAuthor: _boolean("Author", true),
|
|
88
|
+
showTime: _boolean("Timestamp", true)
|
|
89
|
+
},
|
|
90
|
+
slots: slotData
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
var storyElementsConfig = {
|
|
94
|
+
summary: {},
|
|
95
|
+
blurb: {},
|
|
96
|
+
blockquote: {},
|
|
97
|
+
quote: {},
|
|
98
|
+
"also-read": {},
|
|
99
|
+
"q-and-a": {},
|
|
100
|
+
question: {},
|
|
101
|
+
answer: {},
|
|
102
|
+
references: {}
|
|
103
|
+
};
|
|
104
|
+
return /*#__PURE__*/React.createElement(ListicleStoryTemplateBase, {
|
|
105
|
+
story: story,
|
|
106
|
+
config: templateConfig,
|
|
107
|
+
storyElementsConfig: storyElementsConfig,
|
|
108
|
+
firstChild: /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
109
|
+
height: "250px",
|
|
110
|
+
width: "300px"
|
|
111
|
+
}),
|
|
112
|
+
secondChild: /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
113
|
+
height: "250px",
|
|
114
|
+
width: "300px"
|
|
115
|
+
}),
|
|
116
|
+
adComponent: configurableSlot,
|
|
117
|
+
widgetComp: configurableSlot
|
|
118
|
+
});
|
|
119
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# LiveBlog Story Template
|
|
2
|
+
|
|
3
|
+
LiveBlog story template is a basic component used to represent a LiveBlog story.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
## Default template
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
<LiveBlog story={story} templateConfig={templateConfig} templateType="default" />
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Hero Priority
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
<LiveBlog story={story} templateConfig={templateConfig} templateType="hero-priority" />
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Template with Children
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
<LiveBlog story={story} templateConfig={templateConfig}>
|
|
23
|
+
<Children />
|
|
24
|
+
</LiveBlog>
|
|
25
|
+
```
|
|
@@ -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 { useSelector } from "react-redux";
|
|
5
|
+
import { get } from "lodash";
|
|
6
|
+
import { LiveBlogStoryTemplates } from "./templates";
|
|
7
|
+
import { StateProvider } from "../../../SharedContext";
|
|
8
|
+
import "./live-blog.m.css";
|
|
9
|
+
var _styleModuleImportMap = {
|
|
10
|
+
"./live-blog.m.css": {
|
|
11
|
+
"header-details": "live-blog-m_header-details__1VbwD",
|
|
12
|
+
"wrapper": "live-blog-m_wrapper__3kmc6",
|
|
13
|
+
"container": "live-blog-m_container__2Eru6",
|
|
14
|
+
"live-headline": "live-blog-m_live-headline__1Y1iT",
|
|
15
|
+
"time-wrapper": "live-blog-m_time-wrapper__Pv8u4",
|
|
16
|
+
"card-share": "live-blog-m_card-share__nvSEx",
|
|
17
|
+
"live-icon": "live-blog-m_live-icon__zzBV_",
|
|
18
|
+
"blink": "live-blog-m_blink__1USEE",
|
|
19
|
+
"timestamp-social-share": "live-blog-m_timestamp-social-share__2siNN",
|
|
20
|
+
"header-wrapper": "live-blog-m_header-wrapper__3rFRU",
|
|
21
|
+
"grid-col-full": "live-blog-m_grid-col-full__3iWHn",
|
|
22
|
+
"grid-container": "live-blog-m_grid-container__1b98H",
|
|
23
|
+
"top-space": "live-blog-m_top-space__2NpBq",
|
|
24
|
+
"grid-col-9-15": "live-blog-m_grid-col-9-15__MwtUq",
|
|
25
|
+
"grid-col-2-9": "live-blog-m_grid-col-2-9__IJ4Ok",
|
|
26
|
+
"sideway": "live-blog-m_sideway__1j2fD",
|
|
27
|
+
"grid-col-9-14": "live-blog-m_grid-col-9-14__2oCwT",
|
|
28
|
+
"grid-col-4-12": "live-blog-m_grid-col-4-12__XeqdX",
|
|
29
|
+
"side-column": "live-blog-m_side-column__Ss2sl",
|
|
30
|
+
"story-details": "live-blog-m_story-details__2uwo9",
|
|
31
|
+
"headline-space": "live-blog-m_headline-space__2Dhkq",
|
|
32
|
+
"overlay-hero": "live-blog-m_overlay-hero__30Yoo",
|
|
33
|
+
"overlay-grid": "live-blog-m_overlay-grid__1-XBm",
|
|
34
|
+
"key-events": "live-blog-m_key-events__2YDJ3",
|
|
35
|
+
"share-cards": "live-blog-m_share-cards__96lnW",
|
|
36
|
+
"dark": "live-blog-m_dark__1dgpM",
|
|
37
|
+
"light": "live-blog-m_light__3GyWj",
|
|
38
|
+
"space-32": "live-blog-m_space-32__3J4JJ",
|
|
39
|
+
"sticky": "live-blog-m_sticky__2c9ke",
|
|
40
|
+
"index-2": "live-blog-m_index-2__2f0tW",
|
|
41
|
+
"grid-row-1-2": "live-blog-m_grid-row-1-2__2t7wA",
|
|
42
|
+
"grid-row-2-3": "live-blog-m_grid-row-2-3__32fm_",
|
|
43
|
+
"grid-row-3-4": "live-blog-m_grid-row-3-4__2LIEm",
|
|
44
|
+
"grid-row-1-6": "live-blog-m_grid-row-1-6__3CH8o",
|
|
45
|
+
"tablet-index-2": "live-blog-m_tablet-index-2__2WqZJ"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
export var LiveBlogStoryTemplateBase = function LiveBlogStoryTemplateBase(_ref) {
|
|
49
|
+
var _ref$story = _ref.story,
|
|
50
|
+
story = _ref$story === void 0 ? {} : _ref$story,
|
|
51
|
+
_ref$config = _ref.config,
|
|
52
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
53
|
+
storyElementsConfig = _ref.storyElementsConfig,
|
|
54
|
+
adComponent = _ref.adComponent,
|
|
55
|
+
widgetComp = _ref.widgetComp,
|
|
56
|
+
firstChild = _ref.firstChild,
|
|
57
|
+
secondChild = _ref.secondChild;
|
|
58
|
+
var _config$theme = config.theme,
|
|
59
|
+
theme = _config$theme === void 0 ? "" : _config$theme,
|
|
60
|
+
_config$templateType = config.templateType,
|
|
61
|
+
templateType = _config$templateType === void 0 ? "default" : _config$templateType,
|
|
62
|
+
_config$verticalShare = config.verticalShare,
|
|
63
|
+
verticalShare = _config$verticalShare === void 0 ? "" : _config$verticalShare;
|
|
64
|
+
var containerClass = templateType !== "hero-overlay" ? "container" : "";
|
|
65
|
+
var timezone = useSelector(function (state) {
|
|
66
|
+
return get(state, ["qt", "data", "timezone"], null);
|
|
67
|
+
});
|
|
68
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
69
|
+
"data-test-id": "live-blog-".concat(templateType),
|
|
70
|
+
style: {
|
|
71
|
+
backgroundColor: theme
|
|
72
|
+
},
|
|
73
|
+
className: ("arrow-component arr--content-wrapper arr-story-grid arr--live-blog-story-template-wrapper ".concat(templateType) ? "arrow-component arr--content-wrapper arr-story-grid arr--live-blog-story-template-wrapper ".concat(templateType) + " " : "") + _getClassName("".concat(containerClass, " ").concat(verticalShare, " wrapper"), _styleModuleImportMap)
|
|
74
|
+
}, /*#__PURE__*/React.createElement(LiveBlogStoryTemplates, {
|
|
75
|
+
templateType: templateType,
|
|
76
|
+
story: story,
|
|
77
|
+
storyElementsConfig: storyElementsConfig,
|
|
78
|
+
config: config,
|
|
79
|
+
adComponent: adComponent,
|
|
80
|
+
widgetComp: widgetComp,
|
|
81
|
+
firstChild: firstChild,
|
|
82
|
+
secondChild: secondChild,
|
|
83
|
+
timezone: timezone
|
|
84
|
+
}));
|
|
85
|
+
};
|
|
86
|
+
LiveBlogStoryTemplateBase.propTypes = {
|
|
87
|
+
story: PropTypes.object,
|
|
88
|
+
config: PropTypes.shape({
|
|
89
|
+
templateType: PropTypes.string
|
|
90
|
+
}),
|
|
91
|
+
firstChild: PropTypes.node,
|
|
92
|
+
secondChild: PropTypes.node,
|
|
93
|
+
storyElementsConfig: PropTypes.object,
|
|
94
|
+
adComponent: PropTypes.func,
|
|
95
|
+
widgetComp: PropTypes.func
|
|
96
|
+
};
|
|
97
|
+
export var LiveBlogStoryTemplate = StateProvider(LiveBlogStoryTemplateBase);
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
@import "../../../../../assets/stylesheets/mixins.scss";
|
|
2
|
+
|
|
3
|
+
.header-details {
|
|
4
|
+
margin-top: var(--arrow-spacing-l);
|
|
5
|
+
@include tablet {
|
|
6
|
+
margin-top: var(--arrow-spacing-xl);
|
|
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
|
+
.wrapper :global(.gap-32) {
|
|
19
|
+
margin-top: var(--arrow-spacing-l);
|
|
20
|
+
@include tablet {
|
|
21
|
+
margin-top: var(--arrow-spacing-xl);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.container :global(.story-element-title) {
|
|
26
|
+
line-height: var(--arrow-lh-2);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.container :global(.arr--caption-attribution) {
|
|
30
|
+
margin: var(--arrow-spacing-xs) 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.live-headline {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.time-wrapper {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
font-size: var(--arrow-fs-tiny);
|
|
42
|
+
svg {
|
|
43
|
+
margin-right: var(--arrow-spacing-xxs);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.card-share {
|
|
48
|
+
display: flex;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.live-icon {
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
margin-right: var(--arrow-fs-xs);
|
|
55
|
+
animation: blink 1s linear infinite;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@keyframes blink {
|
|
59
|
+
0% {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
62
|
+
50% {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
}
|
|
65
|
+
100% {
|
|
66
|
+
opacity: 0;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.timestamp-social-share {
|
|
71
|
+
display: flex;
|
|
72
|
+
justify-content: space-between;
|
|
73
|
+
align-items: center;
|
|
74
|
+
margin-bottom: var(--arrow-fs-l);
|
|
75
|
+
@include tablet {
|
|
76
|
+
margin-bottom: 40px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.header-wrapper {
|
|
81
|
+
grid-column: 1/5;
|
|
82
|
+
@include tablet {
|
|
83
|
+
grid-column: container-start / 10;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.grid-col-full {
|
|
88
|
+
grid-column: 1/5;
|
|
89
|
+
@include tablet {
|
|
90
|
+
grid-column: grid-start / grid-end;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.grid-container {
|
|
95
|
+
grid-column: 1/5;
|
|
96
|
+
@include tablet {
|
|
97
|
+
grid-column: container-start/container-end;
|
|
98
|
+
margin: var(--arrow-spacing-xl) 0 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.top-space {
|
|
103
|
+
@include tablet {
|
|
104
|
+
margin-top: var(--arrow-spacing-xl);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.grid-col-9-15 {
|
|
109
|
+
grid-column: 1/5;
|
|
110
|
+
@include tablet {
|
|
111
|
+
grid-column: 9/15;
|
|
112
|
+
margin: var(--arrow-spacing-xl) 0 0;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.grid-col-2-9 {
|
|
117
|
+
grid-column: 1/5;
|
|
118
|
+
@include tablet {
|
|
119
|
+
grid-column: container-start / 9;
|
|
120
|
+
margin-bottom: var(--arrow-spacing-xl);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.sideway {
|
|
125
|
+
align-self: center;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.grid-col-9-14 {
|
|
129
|
+
grid-column: 1/5;
|
|
130
|
+
@include tablet {
|
|
131
|
+
grid-column: 9 / 14;
|
|
132
|
+
grid-row: 1 / auto;
|
|
133
|
+
margin-top: var(--arrow-spacing-xl);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.grid-col-4-12 {
|
|
138
|
+
grid-column: 1/5;
|
|
139
|
+
@include tablet {
|
|
140
|
+
grid-column: 4 / 12;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.side-column {
|
|
145
|
+
grid-column: 1/5;
|
|
146
|
+
@include tablet {
|
|
147
|
+
margin-top: 40px;
|
|
148
|
+
grid-column: 10 / container-end;
|
|
149
|
+
grid-row: 2 / auto;
|
|
150
|
+
@include desktop {
|
|
151
|
+
margin-top: 60px;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.story-details {
|
|
157
|
+
display: flex;
|
|
158
|
+
justify-content: space-between;
|
|
159
|
+
align-items: center;
|
|
160
|
+
margin-bottom: var(--arrow-spacing-l);
|
|
161
|
+
@include tablet {
|
|
162
|
+
margin-bottom: var(--arrow-spacing-xl);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.headline-space {
|
|
167
|
+
margin: 0 0 var(--arrow-spacing-l);
|
|
168
|
+
@include tablet {
|
|
169
|
+
margin: 0 0 var(--arrow-spacing-xl);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.grid-col-9-15 > :global(.arr--caption-attribution) {
|
|
174
|
+
@include tablet {
|
|
175
|
+
margin: var(--arrow-spacing-xs) 0;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.overlay-hero {
|
|
180
|
+
grid-column: 1/5;
|
|
181
|
+
grid-row: 1/2;
|
|
182
|
+
margin-top: var(--arrow-spacing-s);
|
|
183
|
+
@include tablet {
|
|
184
|
+
grid-column: container-start/container-end;
|
|
185
|
+
margin-top: var(--arrow-spacing-xl);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.overlay-hero > :global(.arr--hero-image) img {
|
|
190
|
+
-webkit-filter: blur(4px);
|
|
191
|
+
filter: blur(4px);
|
|
192
|
+
opacity: 0.5;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.overlay-grid {
|
|
196
|
+
align-self: center;
|
|
197
|
+
z-index: var(--z-index-9);
|
|
198
|
+
grid-row: 1/2;
|
|
199
|
+
grid-column: 1/5;
|
|
200
|
+
padding: 0 36px;
|
|
201
|
+
@include tablet {
|
|
202
|
+
grid-column: 4/12;
|
|
203
|
+
padding: 0;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.key-events {
|
|
208
|
+
margin: var(--arrow-fs-l) 0 36px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.share-cards.dark {
|
|
212
|
+
border-bottom: 1px solid var(--arrow-c-mono5);
|
|
213
|
+
margin-bottom: var(--arrow-spacing-m);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.share-cards.light {
|
|
217
|
+
border-bottom: 1px solid var(--arrow-c-invert-mono5);
|
|
218
|
+
margin-bottom: var(--arrow-spacing-m);
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.time-wrapper.dark {
|
|
222
|
+
color: var(--arrow-c-mono4);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.time-wrapper.light {
|
|
226
|
+
color: var(--arrow-c-invert-mono4);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.space-32 > * {
|
|
230
|
+
margin-top: var(--arrow-spacing-l);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.sticky :global(.arr--share) {
|
|
234
|
+
grid-column: 4/5;
|
|
235
|
+
justify-self: flex-end;
|
|
236
|
+
@include tablet {
|
|
237
|
+
grid-column: 9 / grid-end;
|
|
238
|
+
@include desktop {
|
|
239
|
+
position: sticky;
|
|
240
|
+
position: -webkit-sticky;
|
|
241
|
+
grid-column: 3/4;
|
|
242
|
+
grid-row: 2/3;
|
|
243
|
+
align-self: flex-start;
|
|
244
|
+
margin-top: var(--arrow-spacing-xs);
|
|
245
|
+
top: 120px;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.card-share :global(.desktop-share-wrapper) {
|
|
251
|
+
max-width: 42px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.sticky:global(.default) {
|
|
255
|
+
:global(.arr--share) {
|
|
256
|
+
@include tablet {
|
|
257
|
+
grid-column: 9/10;
|
|
258
|
+
@include desktop {
|
|
259
|
+
grid-column: grid-start/container-start;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.sticky:global(.headline-priority) {
|
|
266
|
+
:global(.arr--share) {
|
|
267
|
+
@include tablet {
|
|
268
|
+
grid-column: 8/9;
|
|
269
|
+
@include desktop {
|
|
270
|
+
grid-column: grid-start/container-start;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.sticky:global(.headline-hero-priority) {
|
|
277
|
+
:global(.arr--share) {
|
|
278
|
+
@include desktop {
|
|
279
|
+
grid-row: 3/4;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.sticky .index-2 {
|
|
285
|
+
z-index: 2;
|
|
286
|
+
@include desktop {
|
|
287
|
+
z-index: unset;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.grid-row-1-2 {
|
|
292
|
+
@include desktop {
|
|
293
|
+
grid-row: 1/2;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.grid-row-2-3 {
|
|
298
|
+
@include desktop {
|
|
299
|
+
grid-row: 2/3;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.grid-row-3-4 {
|
|
304
|
+
@include desktop {
|
|
305
|
+
grid-row: 3/4;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.grid-row-1-6 {
|
|
310
|
+
@include tablet {
|
|
311
|
+
grid-row: 1/6;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.tablet-index-2 {
|
|
316
|
+
@include tablet {
|
|
317
|
+
z-index: 2;
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
html[dir="rtl"] {
|
|
322
|
+
.time-wrapper {
|
|
323
|
+
direction: ltr;
|
|
324
|
+
flex-direction: row-reverse;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { boolean as _boolean, color, text } from "@storybook/addon-knobs";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { optionalSelect, withStore } from "../../../../../storybook";
|
|
4
|
+
import { AdPlaceholder } from "../../../Atoms/AdPlaceholder";
|
|
5
|
+
import { generateCollection, generateStory } from "../../../Fixture";
|
|
6
|
+
import { slotData } from "../../../Fixture/slot-config";
|
|
7
|
+
import { LiveBlogStoryTemplateBase } from "./index";
|
|
8
|
+
import Readme from "./README.md";
|
|
9
|
+
var story = generateStory("live-blog");
|
|
10
|
+
var collection = generateCollection({
|
|
11
|
+
stories: 4
|
|
12
|
+
});
|
|
13
|
+
var storyElementsConfig = {
|
|
14
|
+
summary: {},
|
|
15
|
+
blurb: {},
|
|
16
|
+
blockquote: {},
|
|
17
|
+
quote: {},
|
|
18
|
+
"also-read": {},
|
|
19
|
+
"q-and-a": {},
|
|
20
|
+
question: {},
|
|
21
|
+
answer: {}
|
|
22
|
+
};
|
|
23
|
+
var label = "BG Color";
|
|
24
|
+
var defaultvalue = "#ffffff";
|
|
25
|
+
var authorTemplate = {
|
|
26
|
+
"default": "default",
|
|
27
|
+
leftAligned: "leftAligned",
|
|
28
|
+
centerAligned: "centerAligned"
|
|
29
|
+
};
|
|
30
|
+
var iconTypeOptions = {
|
|
31
|
+
"Circular Color Svg": "circular-color-svg",
|
|
32
|
+
"Circular Plain Svg": "circular-plain-svg",
|
|
33
|
+
"Plain Svg": "plain-svg",
|
|
34
|
+
"Plain Color Svg": "plain-color-svg",
|
|
35
|
+
"Square Svg": "square-svg"
|
|
36
|
+
};
|
|
37
|
+
var shareType = {
|
|
38
|
+
"Vertical Share": "sticky",
|
|
39
|
+
"Horizontal Share": ""
|
|
40
|
+
};
|
|
41
|
+
var templateTypes = {
|
|
42
|
+
"default": "default",
|
|
43
|
+
"Hero Overlay": "hero-overlay",
|
|
44
|
+
"Headline Sideway": "headline-sideway",
|
|
45
|
+
"Hero Priority": "hero-priority",
|
|
46
|
+
"Headline Priority": "headline-priority",
|
|
47
|
+
"Headline Hero Priority": "headline-hero-priority"
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
var configurableSlot = function configurableSlot() {
|
|
51
|
+
return /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
52
|
+
height: "250px",
|
|
53
|
+
width: "300px"
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
withStore("Rows/Story Templates/Live Blog Story Template", {
|
|
58
|
+
qt: {
|
|
59
|
+
config: {
|
|
60
|
+
"cdn-image": "thumbor-stg.assettype.com",
|
|
61
|
+
mountAt: "/sub-directory"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}, Readme).add("Default", function () {
|
|
65
|
+
var templateConfig = {
|
|
66
|
+
shareIconType: optionalSelect("Social Share Icon Type", iconTypeOptions),
|
|
67
|
+
verticalShare: optionalSelect("Share Type", shareType),
|
|
68
|
+
theme: color(label, defaultvalue),
|
|
69
|
+
noOfVisibleCards: -1,
|
|
70
|
+
initialLoadCount: text("Initial key events count", 4),
|
|
71
|
+
showSection: _boolean("Show Section Tag", true),
|
|
72
|
+
templateType: optionalSelect("Template", templateTypes),
|
|
73
|
+
buttonText: text("Key Events Button text", "Load More"),
|
|
74
|
+
publishedDetails: {
|
|
75
|
+
enablePublishedTime: _boolean("Show Published Time", true),
|
|
76
|
+
enableUpdatedTime: _boolean("Show Updated Time", false),
|
|
77
|
+
showReadTime: _boolean("Read time", false)
|
|
78
|
+
},
|
|
79
|
+
authorDetails: {
|
|
80
|
+
template: optionalSelect("Author templates", authorTemplate),
|
|
81
|
+
opts: {
|
|
82
|
+
showBio: _boolean("Author Bio", false),
|
|
83
|
+
showImage: _boolean("Author Image", false),
|
|
84
|
+
showName: _boolean("Author Name", true)
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
premiumStoryIconConfig: {
|
|
88
|
+
iconColor: "#F7B500",
|
|
89
|
+
iconType: "star",
|
|
90
|
+
enablePremiumStoryIcon: true
|
|
91
|
+
},
|
|
92
|
+
asideCollection: {
|
|
93
|
+
data: collection,
|
|
94
|
+
config: {
|
|
95
|
+
title: text("Aside Collection Title", "Trending"),
|
|
96
|
+
theme: color(label, defaultvalue),
|
|
97
|
+
showAuthor: _boolean("Show Author", true),
|
|
98
|
+
showTime: _boolean("Show Timestamp", true)
|
|
99
|
+
},
|
|
100
|
+
slots: slotData
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
return /*#__PURE__*/React.createElement(LiveBlogStoryTemplateBase, {
|
|
104
|
+
story: story,
|
|
105
|
+
config: templateConfig,
|
|
106
|
+
storyElementsConfig: storyElementsConfig,
|
|
107
|
+
adComponent: configurableSlot,
|
|
108
|
+
widgetComp: configurableSlot,
|
|
109
|
+
firstChild: /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
110
|
+
height: "250px",
|
|
111
|
+
width: "300px"
|
|
112
|
+
}),
|
|
113
|
+
secondChild: /*#__PURE__*/React.createElement(AdPlaceholder, {
|
|
114
|
+
height: "250px",
|
|
115
|
+
width: "300px"
|
|
116
|
+
})
|
|
117
|
+
});
|
|
118
|
+
});
|