@quintype/arrow 3.15.1-perf.3 → 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/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-3976fac4.js → esm/components/Rows/FourColFiveStories/index.js} +54 -64
- 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-bc129cb8.js → esm/components/Rows/FourColGrid/index.js} +52 -59
- 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-a5c95f84.js → esm/components/Rows/OneColStoryList/index.js} +69 -72
- 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-6ecceae4.js → esm/components/Rows/SixColSixStories/index.js} +57 -61
- 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-b5936059.js → esm/components/Rows/ThreeColFlexStories/index.js} +70 -74
- 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-6e083738.js → esm/components/Rows/ThreeColGrid/index.js} +55 -62
- 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
- package/atoms/Author/index.js +0 -2259
- package/atoms/Author/styles.arrow.css +0 -1
- package/atoms/AuthorWithTime/index.js +0 -2964
- package/atoms/AuthorWithTime/styles.arrow.css +0 -1
- package/atoms/CollectionName/index.js +0 -2344
- package/atoms/CollectionName/styles.arrow.css +0 -1
- package/atoms/ExtendedLoadMore/index-3c4ac692.js +0 -1025
- package/atoms/ExtendedLoadMore/index-4ddfe28d.js +0 -93
- package/atoms/ExtendedLoadMore/index-5c8eda4a.js +0 -358
- package/atoms/ExtendedLoadMore/index-9e0d32b7.js +0 -290
- package/atoms/ExtendedLoadMore/index-b22f1843.js +0 -251
- package/atoms/ExtendedLoadMore/index-e7cde739.js +0 -3051
- package/atoms/ExtendedLoadMore/index-fee73a14.js +0 -207
- package/atoms/ExtendedLoadMore/index.js +0 -13
- package/atoms/ExtendedLoadMore/styles.arrow.css +0 -1
- package/atoms/Headline/index.js +0 -2468
- package/atoms/Headline/styles.arrow.css +0 -1
- package/atoms/HeroImage/index.js +0 -2484
- package/atoms/HeroImage/styles.arrow.css +0 -1
- package/atoms/LoadmoreButton/index.js +0 -2277
- package/atoms/LoadmoreButton/styles.arrow.css +0 -1
- package/atoms/ScrollSnap/index.js +0 -2540
- package/atoms/ScrollSnap/styles.arrow.css +0 -1
- package/atoms/SectionTag/index.js +0 -2229
- package/atoms/SectionTag/styles.arrow.css +0 -1
- package/atoms/Subheadline/index.js +0 -2209
- package/atoms/Subheadline/styles.arrow.css +0 -1
- package/atoms/TimeStamp/index.js +0 -2671
- package/atoms/TimeStamp/styles.arrow.css +0 -1
- package/molecules/KeyEvents/index.js +0 -2979
- package/molecules/KeyEvents/styles.arrow.css +0 -1
- package/molecules/PageIntroductionCard/index.js +0 -2685
- package/molecules/PageIntroductionCard/styles.arrow.css +0 -1
- package/molecules/SocialShareTemplate/index.js +0 -3102
- package/molecules/SocialShareTemplate/styles.arrow.css +0 -1
- package/molecules/StoryCard/index.js +0 -3948
- package/molecules/StoryCard/styles.arrow.css +0 -1
- package/molecules/StoryElementCard/index.js +0 -5861
- package/molecules/StoryElementCard/styles.arrow.css +0 -1
- package/molecules/StorycardContent/index.js +0 -3426
- package/molecules/StorycardContent/styles.arrow.css +0 -1
- package/rows/AlternateCollectionFilter/index.js +0 -4756
- package/rows/AlternateCollectionFilter/styles.arrow.css +0 -1
- package/rows/AsideCollection/index.js +0 -4702
- package/rows/AsideCollection/styles.arrow.css +0 -1
- package/rows/AstrologyCollection/index.js +0 -4673
- package/rows/AstrologyCollection/styles.arrow.css +0 -1
- package/rows/AuthorIntroductionCard/index.js +0 -3529
- package/rows/AuthorIntroductionCard/styles.arrow.css +0 -1
- package/rows/AuthorsList/index.js +0 -3725
- package/rows/AuthorsList/styles.arrow.css +0 -1
- package/rows/CollectionFilter/index.js +0 -4846
- package/rows/CollectionFilter/styles.arrow.css +0 -1
- package/rows/ElevenStories/index.js +0 -4649
- package/rows/ElevenStories/styles.arrow.css +0 -1
- package/rows/FourColFiveStories/index.js +0 -4389
- package/rows/FourColFiveStories/styles.arrow.css +0 -1
- package/rows/FourColGrid/index.js +0 -4614
- package/rows/FourColGrid/styles.arrow.css +0 -1
- package/rows/FourColPortraitStories/index.js +0 -4647
- package/rows/FourColPortraitStories/styles.arrow.css +0 -1
- package/rows/FourColSixteenStories/index.js +0 -4386
- package/rows/FourColSixteenStories/styles.arrow.css +0 -1
- package/rows/FourColTwelveStories/index.js +0 -4346
- package/rows/FourColTwelveStories/styles.arrow.css +0 -1
- package/rows/FourStorySlider/index.js +0 -4754
- package/rows/FourStorySlider/styles.arrow.css +0 -1
- package/rows/FourStorySliderPortrait/index.js +0 -4757
- package/rows/FourStorySliderPortrait/styles.arrow.css +0 -1
- package/rows/FourTabbedBigStorySlider/index.js +0 -4516
- package/rows/FourTabbedBigStorySlider/styles.arrow.css +0 -1
- package/rows/FullScreenSlider/index.js +0 -4672
- package/rows/FullScreenSlider/styles.arrow.css +0 -1
- package/rows/HalfScreenSlider/index.js +0 -4525
- package/rows/HalfScreenSlider/styles.arrow.css +0 -1
- package/rows/ListComponent/index.js +0 -4473
- package/rows/ListComponent/styles.arrow.css +0 -1
- package/rows/Listicles/index.js +0 -3142
- package/rows/Listicles/styles.arrow.css +0 -1
- package/rows/MagazineEditions/index.js +0 -3153
- package/rows/MagazineEditions/styles.arrow.css +0 -1
- package/rows/MagazineHeaderCard/index.js +0 -3147
- package/rows/MagazineHeaderCard/styles.arrow.css +0 -1
- package/rows/MagazineWidget/index.js +0 -4525
- package/rows/MagazineWidget/styles.arrow.css +0 -1
- package/rows/OneColStoryList/index.js +0 -4700
- package/rows/OneColStoryList/styles.arrow.css +0 -1
- package/rows/OpinionCollection/index.js +0 -4067
- package/rows/OpinionCollection/styles.arrow.css +0 -1
- package/rows/SixColSixStories/index.js +0 -4545
- package/rows/SixColSixStories/styles.arrow.css +0 -1
- package/rows/StoryCollection/index.js +0 -4702
- package/rows/StoryCollection/styles.arrow.css +0 -1
- package/rows/TagIntroductionCard/index.js +0 -1910
- package/rows/TagIntroductionCard/styles.arrow.css +0 -1
- package/rows/ThreeColFlexStories/index.js +0 -4605
- package/rows/ThreeColFlexStories/styles.arrow.css +0 -1
- package/rows/ThreeColFourteenStories/index.js +0 -4294
- package/rows/ThreeColFourteenStories/styles.arrow.css +0 -1
- package/rows/ThreeColGrid/index.js +0 -4635
- package/rows/ThreeColGrid/styles.arrow.css +0 -1
- package/rows/ThreeColSevenStory/index.js +0 -4513
- package/rows/ThreeColSevenStory/styles.arrow.css +0 -1
- package/rows/ThreeColSixStories/index.js +0 -4496
- package/rows/ThreeColSixStories/styles.arrow.css +0 -1
- package/rows/ThreeColTwelveStories/index.js +0 -4391
- package/rows/ThreeColTwelveStories/styles.arrow.css +0 -1
- package/rows/TwoColFourStories/index.js +0 -4474
- package/rows/TwoColFourStories/styles.arrow.css +0 -1
- package/rows/TwoColFourStoryHighlight/index.js +0 -4467
- package/rows/TwoColFourStoryHighlight/styles.arrow.css +0 -1
- package/rows/TwoColSevenStories/index.js +0 -4501
- package/rows/TwoColSevenStories/styles.arrow.css +0 -1
- package/rows/TwoColSixStories/index.js +0 -4500
- package/rows/TwoColSixStories/styles.arrow.css +0 -1
- package/rows/TwoColTenStoriesSidebar/index.js +0 -4560
- package/rows/TwoColTenStoriesSidebar/styles.arrow.css +0 -1
- package/rows/TwoColThreeStories/index.js +0 -4447
- package/rows/TwoColThreeStories/styles.arrow.css +0 -1
- package/story-elements/AlsoRead/index.js +0 -2466
- package/story-elements/AlsoRead/styles.arrow.css +0 -1
- package/story-elements/Attachment/index.js +0 -2022
- package/story-elements/Attachment/styles.arrow.css +0 -1
- package/story-elements/BigFact/index.js +0 -1992
- package/story-elements/BigFact/styles.arrow.css +0 -1
- package/story-elements/BlockQuote/index.js +0 -2441
- package/story-elements/BlockQuote/styles.arrow.css +0 -1
- package/story-elements/Blurb/index.js +0 -2103
- package/story-elements/Blurb/styles.arrow.css +0 -1
- package/story-elements/Image/index.js +0 -2738
- package/story-elements/Image/styles.arrow.css +0 -1
- package/story-elements/ImageGallery/index.js +0 -2671
- package/story-elements/ImageGallery/styles.arrow.css +0 -1
- package/story-elements/ImageSlideshow/index.js +0 -2982
- package/story-elements/ImageSlideshow/styles.arrow.css +0 -1
- package/story-elements/QuestionAnswer/index.js +0 -2404
- package/story-elements/QuestionAnswer/styles.arrow.css +0 -1
- package/story-elements/Quote/index.js +0 -2021
- package/story-elements/Quote/styles.arrow.css +0 -1
- package/story-elements/Reference/index.js +0 -2015
- package/story-elements/Reference/styles.arrow.css +0 -1
- package/story-elements/StoryElement/index.js +0 -1788
- package/story-elements/Summary/index.js +0 -2045
- package/story-elements/Summary/styles.arrow.css +0 -1
- package/story-elements/Text/index.js +0 -2302
- package/story-elements/Text/styles.arrow.css +0 -1
- package/story-elements/Video/index.js +0 -1794
- package/story-elements/Video/styles.arrow.css +0 -1
- package/story-templates/ListicleStoryTemplate/index.js +0 -8471
- package/story-templates/ListicleStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/LiveBlogStoryTemplate/index.js +0 -8647
- package/story-templates/LiveBlogStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/PhotoStoryTemplate/index.js +0 -8449
- package/story-templates/PhotoStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/TextStoryTemplate/index.js +0 -8522
- package/story-templates/TextStoryTemplate/styles.arrow.css +0 -1
- package/story-templates/VideoStoryTemplate/index.js +0 -8381
- package/story-templates/VideoStoryTemplate/styles.arrow.css +0 -1
|
@@ -0,0 +1,133 @@
|
|
|
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 { kebabCase } from "lodash";
|
|
5
|
+
import { Dot } from "../Dot/dot";
|
|
6
|
+
import { ResponsiveImage, Link } from "@quintype/components";
|
|
7
|
+
import { Twitter } from "../../Svgs/SocialIcons/twitter";
|
|
8
|
+
import "./author-card.m.css";
|
|
9
|
+
import { useStateValue } from "../../SharedContext";
|
|
10
|
+
import { getTextColor } from "../../../utils/utils";
|
|
11
|
+
var _styleModuleImportMap = {
|
|
12
|
+
"./author-card.m.css": {
|
|
13
|
+
"viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
|
|
14
|
+
"mobile": "768px",
|
|
15
|
+
"author-card-wrapper": "author-card-m_author-card-wrapper__2tErR",
|
|
16
|
+
"centerAligned": "author-card-m_centerAligned__2h4Yq",
|
|
17
|
+
"author-image-wrapper": "author-card-m_author-image-wrapper__1at-z",
|
|
18
|
+
"default": "author-card-m_default__2dkRY",
|
|
19
|
+
"author-image": "author-card-m_author-image__3Fu25",
|
|
20
|
+
"multi-author-image": "author-card-m_multi-author-image__zAm2h",
|
|
21
|
+
"first-author-image": "author-card-m_first-author-image__18Y3p",
|
|
22
|
+
"author-details-wrapper": "author-card-m_author-details-wrapper__1c2uc",
|
|
23
|
+
"leftAligned": "author-card-m_leftAligned__3B9ao",
|
|
24
|
+
"author-name-share": "author-card-m_author-name-share__3vb9q",
|
|
25
|
+
"multiple-author-style": "author-card-m_multiple-author-style__1Fd3D",
|
|
26
|
+
"dot-wrapper": "author-card-m_dot-wrapper__2soc1",
|
|
27
|
+
"author-bio": "author-card-m_author-bio__2WDsW",
|
|
28
|
+
"dark": "author-card-m_dark__1u0YB",
|
|
29
|
+
"light": "author-card-m_light__3z8S3"
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
var authorImage = function authorImage(author) {
|
|
34
|
+
var avatarUrl = author["avatar-url"],
|
|
35
|
+
avatarS3Key = author["avatar-s3-key"],
|
|
36
|
+
authorName = author.name;
|
|
37
|
+
|
|
38
|
+
if (!avatarUrl && !avatarS3Key) {
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return /*#__PURE__*/React.createElement("figure", {
|
|
43
|
+
"data-test-id": "author-image"
|
|
44
|
+
}, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
|
|
45
|
+
slug: avatarS3Key,
|
|
46
|
+
"aspect-ratio": [1, 1],
|
|
47
|
+
defaultWidth: 48,
|
|
48
|
+
imgParams: {
|
|
49
|
+
auto: ["format", "compress"]
|
|
50
|
+
},
|
|
51
|
+
alt: authorName
|
|
52
|
+
}) : /*#__PURE__*/React.createElement("img", {
|
|
53
|
+
src: avatarUrl
|
|
54
|
+
}));
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export var AuthorCard = function AuthorCard(_ref) {
|
|
58
|
+
var _ref$story = _ref.story,
|
|
59
|
+
story = _ref$story === void 0 ? {} : _ref$story,
|
|
60
|
+
_ref$template = _ref.template,
|
|
61
|
+
template = _ref$template === void 0 ? "leftAligned" : _ref$template,
|
|
62
|
+
_ref$clazzName = _ref.clazzName,
|
|
63
|
+
clazzName = _ref$clazzName === void 0 ? "" : _ref$clazzName,
|
|
64
|
+
_ref$opts = _ref.opts,
|
|
65
|
+
opts = _ref$opts === void 0 ? {} : _ref$opts,
|
|
66
|
+
_ref$mountAt = _ref.mountAt,
|
|
67
|
+
mountAt = _ref$mountAt === void 0 ? "" : _ref$mountAt;
|
|
68
|
+
var configData = useStateValue() || {};
|
|
69
|
+
var _story$authors = story.authors,
|
|
70
|
+
authors = _story$authors === void 0 ? [] : _story$authors;
|
|
71
|
+
var isSingleAuthor = authors.length === 1;
|
|
72
|
+
var _opts$showBio = opts.showBio,
|
|
73
|
+
showBio = _opts$showBio === void 0 ? false : _opts$showBio,
|
|
74
|
+
_opts$showImage = opts.showImage,
|
|
75
|
+
showImage = _opts$showImage === void 0 ? true : _opts$showImage,
|
|
76
|
+
_opts$showName = opts.showName,
|
|
77
|
+
showName = _opts$showName === void 0 ? true : _opts$showName;
|
|
78
|
+
var textColor = getTextColor(configData.theme);
|
|
79
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
"data-test-id": "author-card-".concat(kebabCase(template)),
|
|
81
|
+
className: (clazzName ? clazzName + " " : "") + _getClassName("author-card-wrapper ".concat(template), _styleModuleImportMap)
|
|
82
|
+
}, authors.map(function (author, index) {
|
|
83
|
+
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
84
|
+
key: author.id
|
|
85
|
+
}, showImage && (author["avatar-url"] || author["avatar-s3-key"]) && /*#__PURE__*/React.createElement("div", {
|
|
86
|
+
"data-test-id": "author-image",
|
|
87
|
+
className: "author-card-m_author-image-wrapper__1at-z"
|
|
88
|
+
}, /*#__PURE__*/React.createElement(Link, {
|
|
89
|
+
href: "".concat(mountAt, "/author/") + author.slug,
|
|
90
|
+
key: "author-image-".concat(index),
|
|
91
|
+
"aria-label": "author-image"
|
|
92
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
className: _getClassName("author-image ".concat(!index ? "first-author-image" : "", " ").concat(!isSingleAuthor ? "multi-author-image" : ""), _styleModuleImportMap)
|
|
94
|
+
}, authorImage(author)))));
|
|
95
|
+
}), showName && /*#__PURE__*/React.createElement("div", {
|
|
96
|
+
"data-test-id": "author-name",
|
|
97
|
+
className: "author-card-m_author-name-share__3vb9q"
|
|
98
|
+
}, authors.map(function (author, index) {
|
|
99
|
+
var spaceHolder = ",\xA0";
|
|
100
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, index !== 0 && (authors.length > 1 ? spaceHolder : ""), /*#__PURE__*/React.createElement(Link, {
|
|
101
|
+
href: "".concat(mountAt, "/author/") + author.slug,
|
|
102
|
+
"aria-label": "author-name"
|
|
103
|
+
}, /*#__PURE__*/React.createElement("h5", {
|
|
104
|
+
className: _getClassName("multiple-author-style ".concat(textColor), _styleModuleImportMap)
|
|
105
|
+
}, author.name)));
|
|
106
|
+
}), isSingleAuthor && template !== "centerAligned" && /*#__PURE__*/React.createElement(React.Fragment, null, authors[0]["twitter-handle"] && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
107
|
+
className: "author-card-m_dot-wrapper__2soc1"
|
|
108
|
+
}, /*#__PURE__*/React.createElement(Dot, {
|
|
109
|
+
color: textColor
|
|
110
|
+
})), /*#__PURE__*/React.createElement("a", {
|
|
111
|
+
href: "http://twitter.com/" + authors[0]["twitter-handle"],
|
|
112
|
+
target: "_blank",
|
|
113
|
+
rel: "noopener noreferrer"
|
|
114
|
+
}, /*#__PURE__*/React.createElement(Twitter, null))))), /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
"data-test-id": "author-info",
|
|
116
|
+
className: "author-card-m_author-details-wrapper__1c2uc"
|
|
117
|
+
}, showBio && isSingleAuthor && template !== "default" && /*#__PURE__*/React.createElement("p", {
|
|
118
|
+
className: _getClassName("author-bio ".concat(textColor), _styleModuleImportMap)
|
|
119
|
+
}, authors[0].bio)));
|
|
120
|
+
};
|
|
121
|
+
AuthorCard.propTypes = {
|
|
122
|
+
story: PropTypes.shape({
|
|
123
|
+
authors: PropTypes.array
|
|
124
|
+
}),
|
|
125
|
+
template: PropTypes.string,
|
|
126
|
+
opts: PropTypes.shape({
|
|
127
|
+
showImage: PropTypes.bool,
|
|
128
|
+
showBio: PropTypes.bool,
|
|
129
|
+
showName: PropTypes.bool
|
|
130
|
+
}),
|
|
131
|
+
mountAt: PropTypes.string,
|
|
132
|
+
clazzName: PropTypes.string
|
|
133
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
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 React from "react";
|
|
8
|
+
import { generateStory } from "../../Fixture";
|
|
9
|
+
import { withStore, optionalSelect } from "../../../../storybook";
|
|
10
|
+
import { AuthorCard } from "./index";
|
|
11
|
+
import Readme from "./README.md";
|
|
12
|
+
import { boolean as _boolean } from "@storybook/addon-knobs";
|
|
13
|
+
var authorTemplate = {
|
|
14
|
+
"No value": "",
|
|
15
|
+
"default": "default",
|
|
16
|
+
leftAligned: "leftAligned",
|
|
17
|
+
centerAligned: "centerAligned"
|
|
18
|
+
};
|
|
19
|
+
var story = generateStory();
|
|
20
|
+
|
|
21
|
+
var singleAuthorStory = _objectSpread(_objectSpread({}, story), {}, {
|
|
22
|
+
authors: [{
|
|
23
|
+
id: 123981,
|
|
24
|
+
name: "Ravigopal Kesari",
|
|
25
|
+
slug: "ravigopal-kesari",
|
|
26
|
+
"avatar-url": "https://lh5.googleusercontent.com/-NhNrHEp1w4M/AAAAAAAAAAI/AAAAAAAAAAs/lzYwVY1BQdQ/photo.jpg?sz=50",
|
|
27
|
+
"avatar-s3-key": null,
|
|
28
|
+
"twitter-handle": "quintype_inc",
|
|
29
|
+
bio: "William Shakespeare was an English poet, playwright, and actor, widely regarded as the greatest writer in the English language and the world’s greatest dramatist. He is often called England’s national poet and the “Bard of Avon”",
|
|
30
|
+
"contributor-role": {
|
|
31
|
+
id: 873,
|
|
32
|
+
name: "Author"
|
|
33
|
+
}
|
|
34
|
+
}]
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
withStore("Atoms/Author Card", {
|
|
38
|
+
qt: {
|
|
39
|
+
config: {
|
|
40
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, Readme).addDecorator(function (story) {
|
|
44
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
style: {
|
|
46
|
+
maxWidth: "1000px",
|
|
47
|
+
margin: "auto"
|
|
48
|
+
}
|
|
49
|
+
}, story());
|
|
50
|
+
}).add("Default", function () {
|
|
51
|
+
return /*#__PURE__*/React.createElement(AuthorCard, {
|
|
52
|
+
story: story,
|
|
53
|
+
template: optionalSelect("Template Options", authorTemplate),
|
|
54
|
+
opts: {
|
|
55
|
+
showBio: _boolean("bio", false),
|
|
56
|
+
showImage: _boolean("image", true)
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
}).add("single author template", function () {
|
|
60
|
+
return /*#__PURE__*/React.createElement(AuthorCard, {
|
|
61
|
+
story: singleAuthorStory,
|
|
62
|
+
template: optionalSelect("Template Options", authorTemplate),
|
|
63
|
+
opts: {
|
|
64
|
+
showBio: _boolean("bio", true),
|
|
65
|
+
showImage: _boolean("image", true)
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Author Image
|
|
2
|
+
|
|
3
|
+
Author image is a generic component which picks a specific author's image.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Import the AuthorImage component and pass author details as props.
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { AuthorImage } from "@quintype/arrow";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Use as a component
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
|
|
17
|
+
<AuthorImage author={authorDetails}>
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```jsx
|
|
22
|
+
|
|
23
|
+
<AuthorImage author={authorDetails} template="square">
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
```jsx
|
|
28
|
+
|
|
29
|
+
<AuthorImage author={authorDetails} template="smallCircle">
|
|
30
|
+
|
|
31
|
+
```
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
@value viewports: "../../../../assets/stylesheets/viewports.m.css";
|
|
2
|
+
@value mobile from viewports;
|
|
3
|
+
@value tablet from viewports;
|
|
4
|
+
|
|
5
|
+
.image-container {
|
|
6
|
+
top: 0;
|
|
7
|
+
left: 0;
|
|
8
|
+
right: 0;
|
|
9
|
+
bottom: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.author-image img,
|
|
15
|
+
.author-image svg {
|
|
16
|
+
border-radius: 50%;
|
|
17
|
+
width: 160px;
|
|
18
|
+
height: 160px;
|
|
19
|
+
@media (min-width: mobile) {
|
|
20
|
+
position: relative;
|
|
21
|
+
width: 224px;
|
|
22
|
+
height: 224px;
|
|
23
|
+
@media (min-width: tablet) {
|
|
24
|
+
width: 364px;
|
|
25
|
+
height: 364px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.square img {
|
|
31
|
+
border-radius: 0;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.small-circle.author-image img,
|
|
35
|
+
.small-circle.author-image svg {
|
|
36
|
+
border-radius: 133.5px;
|
|
37
|
+
width: 40px;
|
|
38
|
+
height: 40px;
|
|
39
|
+
@media (min-width: mobile) {
|
|
40
|
+
width: 88px;
|
|
41
|
+
height: 88px;
|
|
42
|
+
}
|
|
43
|
+
@media (min-width: tablet) {
|
|
44
|
+
width: 120px;
|
|
45
|
+
height: 120px;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.smaller-circle.author-image img,
|
|
50
|
+
.smaller-circle.author-image svg {
|
|
51
|
+
width: 64px;
|
|
52
|
+
height: 64px;
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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 { ResponsiveImage, Link } from "@quintype/components";
|
|
5
|
+
import { UserFallbackIcon } from "../../Svgs/user-fallback-icon";
|
|
6
|
+
import "./author-image.m.css";
|
|
7
|
+
var _styleModuleImportMap = {
|
|
8
|
+
"./author-image.m.css": {
|
|
9
|
+
"viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
|
|
10
|
+
"mobile": "768px",
|
|
11
|
+
"tablet": "992px",
|
|
12
|
+
"image-container": "author-image-m_image-container__19WNd",
|
|
13
|
+
"author-image": "author-image-m_author-image__D8GMB",
|
|
14
|
+
"square": "author-image-m_square__bjK7M",
|
|
15
|
+
"small-circle": "author-image-m_small-circle__DbQMN",
|
|
16
|
+
"smaller-circle": "author-image-m_smaller-circle__2yMOZ"
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
var authorWithImage = function authorWithImage(author, templateStyle) {
|
|
21
|
+
var avatarUrl = author["avatar-url"],
|
|
22
|
+
avatarS3Key = author["avatar-s3-key"],
|
|
23
|
+
name = author.name;
|
|
24
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
25
|
+
"data-test-id": "author-image",
|
|
26
|
+
className: "arr--author-image " + _getClassName("author-image ".concat(templateStyle), _styleModuleImportMap)
|
|
27
|
+
}, /*#__PURE__*/React.createElement("figure", {
|
|
28
|
+
className: "author-image-m_image-container__19WNd"
|
|
29
|
+
}, avatarS3Key ? /*#__PURE__*/React.createElement(ResponsiveImage, {
|
|
30
|
+
slug: avatarS3Key,
|
|
31
|
+
alt: name,
|
|
32
|
+
defaultWidth: 250,
|
|
33
|
+
widths: [250, 480],
|
|
34
|
+
aspectRatio: [[1, 1], [1, 1]],
|
|
35
|
+
sizes: "98vw",
|
|
36
|
+
imgParams: {
|
|
37
|
+
auto: ["format", "compress"]
|
|
38
|
+
}
|
|
39
|
+
}) : avatarUrl ? /*#__PURE__*/React.createElement("img", {
|
|
40
|
+
src: avatarUrl
|
|
41
|
+
}) : /*#__PURE__*/React.createElement(UserFallbackIcon, null)));
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
var AuthorImage = function AuthorImage(_ref) {
|
|
45
|
+
var _ref$author = _ref.author,
|
|
46
|
+
author = _ref$author === void 0 ? {} : _ref$author,
|
|
47
|
+
_ref$template = _ref.template,
|
|
48
|
+
template = _ref$template === void 0 ? "" : _ref$template,
|
|
49
|
+
_ref$config = _ref.config,
|
|
50
|
+
config = _ref$config === void 0 ? {} : _ref$config;
|
|
51
|
+
var slug = author.slug;
|
|
52
|
+
var mountAt = config.mountAt || "";
|
|
53
|
+
var templateStyle = "";
|
|
54
|
+
if (template === "smallerCircle") templateStyle = "smaller-circle";else if (template === "smallCircle") templateStyle = "small-circle";else if (template === "square") templateStyle = "square";
|
|
55
|
+
if (slug) return /*#__PURE__*/React.createElement(Link, {
|
|
56
|
+
href: "".concat(mountAt, "/author/") + slug
|
|
57
|
+
}, authorWithImage(author, templateStyle));else return authorWithImage(author, templateStyle);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
AuthorImage.propTypes = {
|
|
61
|
+
author: PropTypes.shape({
|
|
62
|
+
"avatar-url": PropTypes.string,
|
|
63
|
+
"avatar-s3-key": PropTypes.string,
|
|
64
|
+
name: PropTypes.string,
|
|
65
|
+
slug: PropTypes.string
|
|
66
|
+
}),
|
|
67
|
+
template: PropTypes.string
|
|
68
|
+
};
|
|
69
|
+
export default AuthorImage;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { withStore } from "../../../../storybook";
|
|
3
|
+
import AuthorImage from "./index";
|
|
4
|
+
import Readme from "./README.md";
|
|
5
|
+
import { authorData } from "../../Fixture";
|
|
6
|
+
withStore("Atoms/AuthorImage", {
|
|
7
|
+
qt: {
|
|
8
|
+
config: {
|
|
9
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}, Readme).add("Default", function () {
|
|
13
|
+
return /*#__PURE__*/React.createElement(AuthorImage, {
|
|
14
|
+
author: authorData
|
|
15
|
+
});
|
|
16
|
+
}).add("Square Image", function () {
|
|
17
|
+
return /*#__PURE__*/React.createElement(AuthorImage, {
|
|
18
|
+
author: authorData,
|
|
19
|
+
template: "square"
|
|
20
|
+
});
|
|
21
|
+
}).add("Small Circle Image", function () {
|
|
22
|
+
return /*#__PURE__*/React.createElement(AuthorImage, {
|
|
23
|
+
author: authorData,
|
|
24
|
+
template: "smallCircle"
|
|
25
|
+
});
|
|
26
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
@custom-media --viewport-medium (width >= 768px);
|
|
2
|
+
|
|
3
|
+
.author-time-wrapper {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-wrap: wrap;
|
|
6
|
+
align-items: center;
|
|
7
|
+
color: var(--arrow-c-mono2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.author-image {
|
|
11
|
+
border-radius: 100%;
|
|
12
|
+
width: var(--arrow-spacing-l);
|
|
13
|
+
height: var(--arrow-spacing-l);
|
|
14
|
+
margin-right: var(--arrow-spacing-xs);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.dot {
|
|
18
|
+
position: relative;
|
|
19
|
+
margin-right: var(--arrow-spacing-xs);
|
|
20
|
+
top: -6px;
|
|
21
|
+
}
|
|
22
|
+
.bottom-fix {
|
|
23
|
+
margin-top: auto;
|
|
24
|
+
}
|
|
25
|
+
.dash {
|
|
26
|
+
position: relative;
|
|
27
|
+
margin-right: var(--arrow-spacing-xs);
|
|
28
|
+
top: -1px;
|
|
29
|
+
@media (--viewport-medium) {
|
|
30
|
+
top: -3px;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
html[dir="rtl"] {
|
|
35
|
+
.dot {
|
|
36
|
+
margin-left: var(--arrow-spacing-xs);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dash {
|
|
40
|
+
padding-left: var(--arrow-spacing-xs);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import _getClassName from "babel-plugin-react-css-modules/dist/browser/getClassName";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { get } from "lodash";
|
|
4
|
+
import { TimeStamp } from "../TimeStamp";
|
|
5
|
+
import PropTypes from "prop-types";
|
|
6
|
+
import { Author } from "../Author";
|
|
7
|
+
import { Dot } from "../Dot/dot";
|
|
8
|
+
import { Divider } from "../Divider/";
|
|
9
|
+
import { useStateValue } from "../../SharedContext";
|
|
10
|
+
import "./author-with-timestamp.m.css";
|
|
11
|
+
import { getTextColor } from "../../../utils/utils";
|
|
12
|
+
import { ReadTime } from "../ReadTime";
|
|
13
|
+
var _styleModuleImportMap = {
|
|
14
|
+
"./author-with-timestamp.m.css": {
|
|
15
|
+
"author-time-wrapper": "author-with-timestamp-m_author-time-wrapper__G7_eI",
|
|
16
|
+
"author-image": "author-with-timestamp-m_author-image__24xrD",
|
|
17
|
+
"dot": "author-with-timestamp-m_dot__1LHXD",
|
|
18
|
+
"bottom-fix": "author-with-timestamp-m_bottom-fix__1rWGv",
|
|
19
|
+
"dash": "author-with-timestamp-m_dash__2L5XC"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export var AuthorWithTime = function AuthorWithTime(_ref) {
|
|
23
|
+
var story = _ref.story,
|
|
24
|
+
separator = _ref.separator,
|
|
25
|
+
isBottom = _ref.isBottom,
|
|
26
|
+
hideAuthorImage = _ref.hideAuthorImage,
|
|
27
|
+
prefix = _ref.prefix,
|
|
28
|
+
_ref$config = _ref.config,
|
|
29
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
30
|
+
isLightTheme = _ref.isLightTheme;
|
|
31
|
+
var configState = useStateValue() || {};
|
|
32
|
+
var isAuthor = get(config, ["showAuthor"], get(configState, ["showAuthor"], true));
|
|
33
|
+
var isTime = get(config, ["showTime"], get(configState, ["showTime"], true));
|
|
34
|
+
var isReadTime = get(configState, ["showReadTime"], true);
|
|
35
|
+
var isBottomClasses = isBottom ? "bottom-fix" : "";
|
|
36
|
+
var seperatorStyle = separator === "dot" ? "dot" : "dash";
|
|
37
|
+
var textColor = isLightTheme ? "light" : getTextColor(configState.theme);
|
|
38
|
+
|
|
39
|
+
var getSeparator = function getSeparator() {
|
|
40
|
+
if (separator === "divider") {
|
|
41
|
+
return /*#__PURE__*/React.createElement(Divider, {
|
|
42
|
+
color: textColor
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return /*#__PURE__*/React.createElement(Dot, {
|
|
47
|
+
color: textColor
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var getTimeStamp = function getTimeStamp() {
|
|
52
|
+
if (!isTime) return null;
|
|
53
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, isAuthor && /*#__PURE__*/React.createElement("span", {
|
|
54
|
+
className: "arr-separator " + _getClassName("".concat(seperatorStyle), _styleModuleImportMap)
|
|
55
|
+
}, getSeparator()), /*#__PURE__*/React.createElement(TimeStamp, {
|
|
56
|
+
story: story,
|
|
57
|
+
config: config
|
|
58
|
+
}), isReadTime && /*#__PURE__*/React.createElement(ReadTime, {
|
|
59
|
+
story: story,
|
|
60
|
+
opts: config,
|
|
61
|
+
isLightTheme: isLightTheme
|
|
62
|
+
}));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
66
|
+
className: "arr--author-time " + _getClassName("author-time-wrapper ".concat(isBottomClasses), _styleModuleImportMap)
|
|
67
|
+
}, isAuthor ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Author, {
|
|
68
|
+
story: story,
|
|
69
|
+
isBottom: true,
|
|
70
|
+
hideAuthorImage: hideAuthorImage,
|
|
71
|
+
prefix: prefix
|
|
72
|
+
}), getTimeStamp()) : getTimeStamp());
|
|
73
|
+
};
|
|
74
|
+
AuthorWithTime.propTypes = {
|
|
75
|
+
story: PropTypes.object,
|
|
76
|
+
|
|
77
|
+
/** Style of separator between the Author & Timestamp */
|
|
78
|
+
separator: PropTypes.oneOf(["dot", "divider"]),
|
|
79
|
+
|
|
80
|
+
/** hide the author image */
|
|
81
|
+
hideAuthorImage: PropTypes.bool,
|
|
82
|
+
// fix author and time at the end
|
|
83
|
+
isBottom: PropTypes.bool,
|
|
84
|
+
// fix prefix before the author name
|
|
85
|
+
prefix: PropTypes.string,
|
|
86
|
+
config: PropTypes.object,
|
|
87
|
+
isLightTheme: PropTypes.bool
|
|
88
|
+
};
|
|
89
|
+
AuthorWithTime.defaultProps = {
|
|
90
|
+
separator: "dot",
|
|
91
|
+
isBottom: false,
|
|
92
|
+
hideAuthorImage: true,
|
|
93
|
+
prefix: "",
|
|
94
|
+
isLightTheme: false
|
|
95
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { generateStory } from "../../Fixture";
|
|
3
|
+
import { withStore } from "../../../../storybook";
|
|
4
|
+
import { AuthorWithTime } from "./index";
|
|
5
|
+
import Readme from "./README.md";
|
|
6
|
+
var story = generateStory();
|
|
7
|
+
withStore("Atoms/Author With Time Stamp", {
|
|
8
|
+
qt: {
|
|
9
|
+
config: {
|
|
10
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, Readme).add("default", function () {
|
|
14
|
+
return /*#__PURE__*/React.createElement(AuthorWithTime, {
|
|
15
|
+
story: story
|
|
16
|
+
});
|
|
17
|
+
}).add("Author without Divider and Time", function () {
|
|
18
|
+
return /*#__PURE__*/React.createElement(AuthorWithTime, {
|
|
19
|
+
story: story,
|
|
20
|
+
separator: "divider"
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.bullet {
|
|
2
|
+
margin-right: var(--arrow-spacing-l);
|
|
3
|
+
font-size: var(--arrow-fs-huge);
|
|
4
|
+
font-weight: var(--arrow-fw-bold);
|
|
5
|
+
line-height: var(--arrow-lh-3);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.dark {
|
|
9
|
+
color: var(--arrow-c-mono6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.light {
|
|
13
|
+
color: var(--arrow-c-invert-mono6);
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { useStateValue } from "../../SharedContext";
|
|
5
|
+
import { getTextColor } from "../../../utils/utils";
|
|
6
|
+
import "./bullet-point.m.css";
|
|
7
|
+
var _styleModuleImportMap = {
|
|
8
|
+
"./bullet-point.m.css": {
|
|
9
|
+
"bullet": "bullet-point-m_bullet__SbeId",
|
|
10
|
+
"dark": "bullet-point-m_dark__Po6Ze",
|
|
11
|
+
"light": "bullet-point-m_light__1Xy6_"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export var BulletPoint = function BulletPoint(_ref) {
|
|
15
|
+
var _ref$bulletValue = _ref.bulletValue,
|
|
16
|
+
bulletValue = _ref$bulletValue === void 0 ? "" : _ref$bulletValue;
|
|
17
|
+
var configData = useStateValue() || {};
|
|
18
|
+
var textColor = getTextColor(configData.theme);
|
|
19
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
20
|
+
className: "arrow-component arr--bullet-point"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
22
|
+
className: _getClassName("bullet ".concat(textColor), _styleModuleImportMap)
|
|
23
|
+
}, bulletValue));
|
|
24
|
+
};
|
|
25
|
+
BulletPoint.propTypes = {
|
|
26
|
+
bulletValue: PropTypes.string
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { withStore } from "../../../../storybook";
|
|
3
|
+
import { BulletPoint } from "./index";
|
|
4
|
+
import Readme from "./README.md";
|
|
5
|
+
withStore("Atoms/Bullet Point", {}, Readme).add("Default", function () {
|
|
6
|
+
return /*#__PURE__*/React.createElement(BulletPoint, {
|
|
7
|
+
bulletValue: "1"
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# CaptionAttribution
|
|
2
|
+
|
|
3
|
+
Displays the Caption and Attribution of Hero Image or Image Element of the Story.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```jsx
|
|
8
|
+
<CaptionAttribution story={story} config={{ theme: "ffff" }} />
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```jsx
|
|
12
|
+
<CaptionAttribution element={element} config={{ theme: "ffff" }} />
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
<!-- PROPS -->
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@value viewports: "../../../../assets/stylesheets/viewports.m.css";
|
|
2
|
+
@value mobile from viewports;
|
|
3
|
+
|
|
4
|
+
.caption {
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
font-family: var(--arrow-typeface-secondary);
|
|
7
|
+
margin: var(--arrow-spacing-xs) 0;
|
|
8
|
+
line-height: var(--arrow-lh-5);
|
|
9
|
+
@media (min-width: mobile) {
|
|
10
|
+
font-size: var(--arrow-fs-tiny);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.wrapper {
|
|
15
|
+
padding-left: var(--arrow-spacing-s);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.caption.dark {
|
|
19
|
+
color: var(--arrow-c-mono2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.attribution.dark {
|
|
23
|
+
color: var(--arrow-c-mono4);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.caption.light {
|
|
27
|
+
color: var(--arrow-c-invert-mono2);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.attribution.light {
|
|
31
|
+
color: var(--arrow-c-invert-mono4);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
html[dir="rtl"] {
|
|
35
|
+
.wrapper {
|
|
36
|
+
padding-left: 0;
|
|
37
|
+
padding-right: var(--arrow-spacing-s);
|
|
38
|
+
display: inline-block;
|
|
39
|
+
}
|
|
40
|
+
}
|