@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,148 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { mount } from "enzyme";
|
|
3
|
+
import { AuthorIntroductionCard } from ".";
|
|
4
|
+
import { generateStore, authorData } from "../../Fixture";
|
|
5
|
+
import { Provider } from "react-redux";
|
|
6
|
+
describe("Author Intro component", function () {
|
|
7
|
+
it("Should render default template with border, author bio and social-links enabled", function () {
|
|
8
|
+
var contextConfig = {
|
|
9
|
+
theme: "#ffffff",
|
|
10
|
+
enableBio: true,
|
|
11
|
+
enableSocialLinks: true
|
|
12
|
+
};
|
|
13
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
14
|
+
store: generateStore
|
|
15
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
16
|
+
data: authorData,
|
|
17
|
+
config: contextConfig
|
|
18
|
+
}), ";"));
|
|
19
|
+
expect(wrapper.find({
|
|
20
|
+
"data-test-id": "author-intro"
|
|
21
|
+
}).prop("className")).toMatch(/default/);
|
|
22
|
+
expect(wrapper.find({
|
|
23
|
+
"data-test-id": "social-link"
|
|
24
|
+
}).length).toBe(7);
|
|
25
|
+
expect(wrapper.find({
|
|
26
|
+
"data-test-id": "author-bio"
|
|
27
|
+
}).length).toBe(1);
|
|
28
|
+
});
|
|
29
|
+
it("Should render default template with border, author bio and social-links disabled", function () {
|
|
30
|
+
var contextConfig = {
|
|
31
|
+
theme: "#ffffff",
|
|
32
|
+
enableBio: false,
|
|
33
|
+
enableSocialLinks: false
|
|
34
|
+
};
|
|
35
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
36
|
+
store: generateStore
|
|
37
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
38
|
+
data: authorData,
|
|
39
|
+
config: contextConfig
|
|
40
|
+
}), ";"));
|
|
41
|
+
expect(wrapper.find({
|
|
42
|
+
"data-test-id": "author-intro"
|
|
43
|
+
}).prop("className")).toMatch(/default/);
|
|
44
|
+
expect(wrapper.find({
|
|
45
|
+
"data-test-id": "social-link"
|
|
46
|
+
}).length).toBe(0);
|
|
47
|
+
expect(wrapper.find({
|
|
48
|
+
"data-test-id": "author-bio"
|
|
49
|
+
}).length).toBe(0);
|
|
50
|
+
});
|
|
51
|
+
it("Should render square template with border, author bio and social-links enabled", function () {
|
|
52
|
+
var contextConfig = {
|
|
53
|
+
theme: "#ffffff",
|
|
54
|
+
enableBio: true,
|
|
55
|
+
enableSocialLinks: true
|
|
56
|
+
};
|
|
57
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
58
|
+
store: generateStore
|
|
59
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
60
|
+
data: authorData,
|
|
61
|
+
config: contextConfig,
|
|
62
|
+
template: "square"
|
|
63
|
+
}), ";"));
|
|
64
|
+
expect(wrapper.find({
|
|
65
|
+
"data-test-id": "author-intro"
|
|
66
|
+
}).prop("className")).toMatch(/default/);
|
|
67
|
+
expect(wrapper.find({
|
|
68
|
+
"data-test-id": "social-link"
|
|
69
|
+
}).length).toBe(7);
|
|
70
|
+
expect(wrapper.find({
|
|
71
|
+
"data-test-id": "author-bio"
|
|
72
|
+
}).length).toBe(1);
|
|
73
|
+
});
|
|
74
|
+
it("Should render square template with border, author bio and social-links disabled", function () {
|
|
75
|
+
var contextConfig = {
|
|
76
|
+
theme: "#ffffff",
|
|
77
|
+
enableBio: false,
|
|
78
|
+
enableSocialLinks: false
|
|
79
|
+
};
|
|
80
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
81
|
+
store: generateStore
|
|
82
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
83
|
+
data: authorData,
|
|
84
|
+
config: contextConfig,
|
|
85
|
+
template: "square"
|
|
86
|
+
}), ";"));
|
|
87
|
+
expect(wrapper.find({
|
|
88
|
+
"data-test-id": "author-intro"
|
|
89
|
+
}).prop("className")).toMatch(/default/);
|
|
90
|
+
expect(wrapper.find({
|
|
91
|
+
"data-test-id": "social-link"
|
|
92
|
+
}).length).toBe(0);
|
|
93
|
+
expect(wrapper.find({
|
|
94
|
+
"data-test-id": "author-bio"
|
|
95
|
+
}).length).toBe(0);
|
|
96
|
+
});
|
|
97
|
+
it("Should render small cirlce template with border, author bio and social-links enabled", function () {
|
|
98
|
+
var contextConfig = {
|
|
99
|
+
theme: "#ffffff",
|
|
100
|
+
enableBio: true,
|
|
101
|
+
enableSocialLinks: true,
|
|
102
|
+
borderSupport: true
|
|
103
|
+
};
|
|
104
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
105
|
+
store: generateStore
|
|
106
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
107
|
+
data: authorData,
|
|
108
|
+
config: contextConfig,
|
|
109
|
+
template: "smallCircle"
|
|
110
|
+
}), ";"));
|
|
111
|
+
expect(wrapper.find({
|
|
112
|
+
"data-test-id": "author-intro"
|
|
113
|
+
}).prop("className")).toMatch(/small-circle/);
|
|
114
|
+
expect(wrapper.find({
|
|
115
|
+
"data-test-id": "author-intro"
|
|
116
|
+
}).prop("className")).toMatch(/border/);
|
|
117
|
+
expect(wrapper.find({
|
|
118
|
+
"data-test-id": "social-link"
|
|
119
|
+
}).length).toBe(7);
|
|
120
|
+
expect(wrapper.find({
|
|
121
|
+
"data-test-id": "author-bio"
|
|
122
|
+
}).length).toBe(1);
|
|
123
|
+
});
|
|
124
|
+
it("Should render small cirlce template with border, author bio and social-links disabled", function () {
|
|
125
|
+
var contextConfig = {
|
|
126
|
+
theme: "#ffffff",
|
|
127
|
+
enableBio: false,
|
|
128
|
+
enableSocialLinks: false,
|
|
129
|
+
borderSupport: false
|
|
130
|
+
};
|
|
131
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
132
|
+
store: generateStore
|
|
133
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
134
|
+
data: authorData,
|
|
135
|
+
config: contextConfig,
|
|
136
|
+
template: "smallCircle"
|
|
137
|
+
}), ";"));
|
|
138
|
+
expect(wrapper.find({
|
|
139
|
+
"data-test-id": "author-intro"
|
|
140
|
+
}).prop("className")).toMatch(/small-circle/);
|
|
141
|
+
expect(wrapper.find({
|
|
142
|
+
"data-test-id": "social-link"
|
|
143
|
+
}).length).toBe(0);
|
|
144
|
+
expect(wrapper.find({
|
|
145
|
+
"data-test-id": "author-bio"
|
|
146
|
+
}).length).toBe(0);
|
|
147
|
+
});
|
|
148
|
+
});
|
|
@@ -0,0 +1,157 @@
|
|
|
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 { getTextColor, sharePageUrl, clientWidth } from "../../../utils/utils";
|
|
5
|
+
import AuthorImage from "../../Atoms/AuthorImage";
|
|
6
|
+
import { SocialShareTemplate } from "../../Molecules/SocialShareTemplate/index";
|
|
7
|
+
import { SocialShare } from "@quintype/components";
|
|
8
|
+
import "./author-intro.m.css";
|
|
9
|
+
import { Facebook } from "../../Svgs/SocialIcons/facebook";
|
|
10
|
+
import { Youtube } from "../../Svgs/SocialIcons/youtube";
|
|
11
|
+
import { Twitter } from "../../Svgs/SocialIcons/twitter";
|
|
12
|
+
import { LinkedIn } from "../../Svgs/SocialIcons/linkedin";
|
|
13
|
+
import { Instagram } from "../../Svgs/SocialIcons/instagram";
|
|
14
|
+
import { WhatsApp } from "../../Svgs/SocialIcons/whatsapp";
|
|
15
|
+
import { Pinterest } from "../../Svgs/SocialIcons/pinterest";
|
|
16
|
+
var _styleModuleImportMap = {
|
|
17
|
+
"./author-intro.m.css": {
|
|
18
|
+
"viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
|
|
19
|
+
"mobile": "768px",
|
|
20
|
+
"tablet": "992px",
|
|
21
|
+
"connect": "author-intro-m_connect__15zIX",
|
|
22
|
+
"social-share": "author-intro-m_social-share__f5EpE",
|
|
23
|
+
"share-icon": "author-intro-m_share-icon__3gke5",
|
|
24
|
+
"default": "author-intro-m_default__1rQ_v",
|
|
25
|
+
"author-image": "author-intro-m_author-image__2jRxy",
|
|
26
|
+
"author-name": "author-intro-m_author-name__1L60a",
|
|
27
|
+
"author-description": "author-intro-m_author-description__2CTEw",
|
|
28
|
+
"wrapper": "author-intro-m_wrapper__2Bi-s",
|
|
29
|
+
"introduction-card": "author-intro-m_introduction-card__1kdGt",
|
|
30
|
+
"social-wrapper": "author-intro-m_social-wrapper__1F9jD",
|
|
31
|
+
"linkWrapper": "author-intro-m_linkWrapper__Au0nU",
|
|
32
|
+
"social-connect-wrapper": "author-intro-m_social-connect-wrapper__2B0QA",
|
|
33
|
+
"dark": "author-intro-m_dark__ALdDb",
|
|
34
|
+
"light": "author-intro-m_light__2SfeE",
|
|
35
|
+
"small-circle": "author-intro-m_small-circle__jyG1s",
|
|
36
|
+
"border": "author-intro-m_border__3Tii9",
|
|
37
|
+
"fade-out": "author-intro-m_fade-out__1EBqd"
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export var AuthorIntroductionCard = function AuthorIntroductionCard(_ref) {
|
|
41
|
+
var _ref$data = _ref.data,
|
|
42
|
+
data = _ref$data === void 0 ? {} : _ref$data,
|
|
43
|
+
_ref$config = _ref.config,
|
|
44
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
45
|
+
_ref$template = _ref.template,
|
|
46
|
+
template = _ref$template === void 0 ? "" : _ref$template;
|
|
47
|
+
var _config$theme = config.theme,
|
|
48
|
+
theme = _config$theme === void 0 ? "" : _config$theme,
|
|
49
|
+
_config$enableBio = config.enableBio,
|
|
50
|
+
enableBio = _config$enableBio === void 0 ? true : _config$enableBio,
|
|
51
|
+
_config$enableSocialL = config.enableSocialLinks,
|
|
52
|
+
enableSocialLinks = _config$enableSocialL === void 0 ? true : _config$enableSocialL,
|
|
53
|
+
_config$borderSupport = config.borderSupport,
|
|
54
|
+
borderSupport = _config$borderSupport === void 0 ? true : _config$borderSupport;
|
|
55
|
+
var textColor = getTextColor(theme);
|
|
56
|
+
var name = data.name,
|
|
57
|
+
bio = data.bio,
|
|
58
|
+
social = data.social;
|
|
59
|
+
var isSmallCircle = template === "smallCircle";
|
|
60
|
+
var authorCardStyle = isSmallCircle ? "small-circle" : "default";
|
|
61
|
+
var isMobile = clientWidth("mobile");
|
|
62
|
+
var isFullWidth = !isSmallCircle ? "full-width-with-padding" : "";
|
|
63
|
+
var supportBorder = isSmallCircle && borderSupport ? "border" : "";
|
|
64
|
+
|
|
65
|
+
var getIcon = function getIcon(item) {
|
|
66
|
+
switch (item) {
|
|
67
|
+
case "twitter":
|
|
68
|
+
return /*#__PURE__*/React.createElement(Twitter, null);
|
|
69
|
+
|
|
70
|
+
case "facebook":
|
|
71
|
+
return /*#__PURE__*/React.createElement(Facebook, null);
|
|
72
|
+
|
|
73
|
+
case "youtube":
|
|
74
|
+
return /*#__PURE__*/React.createElement(Youtube, null);
|
|
75
|
+
|
|
76
|
+
case "linkedin":
|
|
77
|
+
return /*#__PURE__*/React.createElement(LinkedIn, null);
|
|
78
|
+
|
|
79
|
+
case "whatsapp":
|
|
80
|
+
return /*#__PURE__*/React.createElement(WhatsApp, {
|
|
81
|
+
color: "#4AC959"
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
case "instagram":
|
|
85
|
+
return /*#__PURE__*/React.createElement(Instagram, null);
|
|
86
|
+
|
|
87
|
+
case "pinterest":
|
|
88
|
+
return /*#__PURE__*/React.createElement(Pinterest, null);
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
93
|
+
"data-test-id": "author-intro",
|
|
94
|
+
style: {
|
|
95
|
+
backgroundColor: theme,
|
|
96
|
+
color: textColor
|
|
97
|
+
},
|
|
98
|
+
className: ("".concat(isFullWidth, " arrow-component arr--author-intro-card") ? "".concat(isFullWidth, " arrow-component arr--author-intro-card") + " " : "") + _getClassName("".concat(authorCardStyle, " ").concat(supportBorder, " ").concat(textColor), _styleModuleImportMap)
|
|
99
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: "arrow-author-intro-wrapper " + _getClassName("wrapper ".concat(textColor), _styleModuleImportMap)
|
|
101
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
+
className: "arrow-author-introduction-card author-intro-m_introduction-card__1kdGt"
|
|
103
|
+
}, isSmallCircle && isMobile ? null : /*#__PURE__*/React.createElement("h2", {
|
|
104
|
+
className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
|
|
105
|
+
}, name), enableBio && bio && /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
"data-test-id": "author-bio",
|
|
107
|
+
className: _getClassName("author-description ".concat(textColor), _styleModuleImportMap)
|
|
108
|
+
}, bio, isSmallCircle && /*#__PURE__*/React.createElement("div", {
|
|
109
|
+
className: "author-intro-m_fade-out__1EBqd",
|
|
110
|
+
style: {
|
|
111
|
+
backgroundImage: "linear-gradient(to right, transparent, ".concat(theme, ")")
|
|
112
|
+
}
|
|
113
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
114
|
+
className: "author-intro-m_social-wrapper__1F9jD"
|
|
115
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
116
|
+
className: "author-intro-m_social-connect-wrapper__2B0QA"
|
|
117
|
+
}, enableSocialLinks && social && /*#__PURE__*/React.createElement(React.Fragment, null, template !== "smallCircle" && /*#__PURE__*/React.createElement("div", {
|
|
118
|
+
className: _getClassName("connect ".concat(textColor), _styleModuleImportMap)
|
|
119
|
+
}, "Connect :"), Object.entries(social).map(function (item, index) {
|
|
120
|
+
return item.length > 0 && item[1] ? // can add Social Networks without the url so adding an additional check below
|
|
121
|
+
item[1].url ? /*#__PURE__*/React.createElement("a", {
|
|
122
|
+
"data-test-id": "social-link",
|
|
123
|
+
href: item[1].url,
|
|
124
|
+
key: "".concat(item, "-").concat(index),
|
|
125
|
+
rel: "noopener noreferrer",
|
|
126
|
+
target: "_blank",
|
|
127
|
+
className: "author-intro-m_social-share__f5EpE"
|
|
128
|
+
}, getIcon(item[0])) : null : null;
|
|
129
|
+
}))), !isSmallCircle && /*#__PURE__*/React.createElement(SocialShare, {
|
|
130
|
+
template: SocialShareTemplate,
|
|
131
|
+
fullUrl: sharePageUrl,
|
|
132
|
+
title: name,
|
|
133
|
+
theme: theme,
|
|
134
|
+
iconType: "plain-svg"
|
|
135
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "arrow-author-image author-intro-m_author-image__2jRxy"
|
|
137
|
+
}, /*#__PURE__*/React.createElement(AuthorImage, {
|
|
138
|
+
author: data,
|
|
139
|
+
template: template
|
|
140
|
+
}), isSmallCircle && isMobile && /*#__PURE__*/React.createElement("h2", {
|
|
141
|
+
className: _getClassName("author-name ".concat(textColor), _styleModuleImportMap)
|
|
142
|
+
}, name))));
|
|
143
|
+
};
|
|
144
|
+
AuthorIntroductionCard.propTypes = {
|
|
145
|
+
data: PropTypes.shape({
|
|
146
|
+
name: PropTypes.string,
|
|
147
|
+
bio: PropTypes.string,
|
|
148
|
+
social: PropTypes.object
|
|
149
|
+
}),
|
|
150
|
+
config: PropTypes.shape({
|
|
151
|
+
theme: PropTypes.string,
|
|
152
|
+
enableBio: PropTypes.bool,
|
|
153
|
+
enableSocialLinks: PropTypes.bool,
|
|
154
|
+
borderSupport: PropTypes.bool
|
|
155
|
+
}),
|
|
156
|
+
template: PropTypes.string
|
|
157
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { withStore } from "../../../../storybook";
|
|
3
|
+
import { AuthorIntroductionCard } from "./index";
|
|
4
|
+
import { color, boolean as _boolean } from "@storybook/addon-knobs";
|
|
5
|
+
import { authorData } from "../../Fixture";
|
|
6
|
+
import Readme from "./README.md";
|
|
7
|
+
withStore("Rows/Author Introduction Card ", {
|
|
8
|
+
qt: {
|
|
9
|
+
config: {
|
|
10
|
+
"cdn-image": "thumbor-stg.assettype.com"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}, Readme).add("Default", function () {
|
|
14
|
+
var contextConfig = {
|
|
15
|
+
theme: color("Color", "#ffffff"),
|
|
16
|
+
enableBio: _boolean("Enable Bio", true),
|
|
17
|
+
enableSocialLinks: _boolean("Enable Social Links", true)
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
20
|
+
data: authorData,
|
|
21
|
+
config: contextConfig
|
|
22
|
+
});
|
|
23
|
+
}).add("Square", function () {
|
|
24
|
+
var contextConfig = {
|
|
25
|
+
theme: color("Color", "#ffffff"),
|
|
26
|
+
enableBio: _boolean("Enable Bio", true),
|
|
27
|
+
enableSocialLinks: _boolean("Enable Social Links", true)
|
|
28
|
+
};
|
|
29
|
+
return /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
30
|
+
data: authorData,
|
|
31
|
+
config: contextConfig,
|
|
32
|
+
template: "square"
|
|
33
|
+
});
|
|
34
|
+
}).add("Small Circle", function () {
|
|
35
|
+
var contextConfig = {
|
|
36
|
+
theme: color("Color", "#ffffff"),
|
|
37
|
+
enableBio: _boolean("Enable Bio", true),
|
|
38
|
+
enableSocialLinks: _boolean("Enable Social Links", true),
|
|
39
|
+
borderSupport: _boolean("With Border", true)
|
|
40
|
+
};
|
|
41
|
+
return /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
42
|
+
data: authorData,
|
|
43
|
+
config: contextConfig,
|
|
44
|
+
template: "smallCircle"
|
|
45
|
+
});
|
|
46
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Authors List
|
|
2
|
+
|
|
3
|
+
Authors List is used to display the authors information which consists of name, bio with author image and social connect of the author.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
Import the AuthorsList and pass authorDetails as data and config.
|
|
8
|
+
|
|
9
|
+
```jsx
|
|
10
|
+
import { AuthorsList } from "@quintype/arrow";
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Use as a component
|
|
14
|
+
|
|
15
|
+
```jsx
|
|
16
|
+
const config = {
|
|
17
|
+
enableBio: boolean("Enable Bio", true),
|
|
18
|
+
buttonText: text("Footer text", "Load More"),
|
|
19
|
+
theme: color("color", "#ffffff")
|
|
20
|
+
enableSocialLinks: boolean("Enable Social Links", true)
|
|
21
|
+
};
|
|
22
|
+
limit = 9;
|
|
23
|
+
<AuthorsList config={config} data={data} getMoreData={getMoreData} limit={limit} hideLoadmore={false} />;
|
|
24
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { mount } from "enzyme";
|
|
3
|
+
import { LoadmoreButton } from "../../Atoms/Loadmore";
|
|
4
|
+
import { AuthorsListBase } from ".";
|
|
5
|
+
import { generateStore, authorData } from "../../Fixture";
|
|
6
|
+
import { Provider } from "react-redux";
|
|
7
|
+
|
|
8
|
+
var getMoreData = function getMoreData() {
|
|
9
|
+
return null;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
var AuthorsData = Array(8).fill(authorData);
|
|
13
|
+
describe("Authors List component", function () {
|
|
14
|
+
it("Should render authors list component if data is present", function () {
|
|
15
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
16
|
+
store: generateStore
|
|
17
|
+
}, /*#__PURE__*/React.createElement(AuthorsListBase, {
|
|
18
|
+
data: AuthorsData,
|
|
19
|
+
config: {},
|
|
20
|
+
getMoreData: getMoreData,
|
|
21
|
+
hideLoadmore: false,
|
|
22
|
+
limit: 9
|
|
23
|
+
}), ";"));
|
|
24
|
+
expect(wrapper.find({
|
|
25
|
+
"data-test-id": "authors-list"
|
|
26
|
+
}).prop("className")).toMatch(/arr--authors-list/);
|
|
27
|
+
});
|
|
28
|
+
it("Should not render authors list component if data is absent", function () {
|
|
29
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
30
|
+
store: generateStore
|
|
31
|
+
}, /*#__PURE__*/React.createElement(AuthorsListBase, {
|
|
32
|
+
data: [],
|
|
33
|
+
config: {},
|
|
34
|
+
getMoreData: getMoreData,
|
|
35
|
+
hideLoadmore: false,
|
|
36
|
+
limit: 9
|
|
37
|
+
}), ";"));
|
|
38
|
+
expect(wrapper.find({
|
|
39
|
+
"data-test-id": "authors-list"
|
|
40
|
+
}).length).toBe(0);
|
|
41
|
+
});
|
|
42
|
+
it("Should render Authors List component with Load More disabled", function () {
|
|
43
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
44
|
+
store: generateStore
|
|
45
|
+
}, /*#__PURE__*/React.createElement(AuthorsListBase, {
|
|
46
|
+
data: AuthorsData,
|
|
47
|
+
config: {},
|
|
48
|
+
getMoreData: getMoreData,
|
|
49
|
+
hideLoadmore: true,
|
|
50
|
+
limit: 9
|
|
51
|
+
}), "; );"));
|
|
52
|
+
expect(wrapper.find(LoadmoreButton).length).toEqual(0);
|
|
53
|
+
});
|
|
54
|
+
it("Should render Authors List component with Load More enabled", function () {
|
|
55
|
+
var wrapper = mount( /*#__PURE__*/React.createElement(Provider, {
|
|
56
|
+
store: generateStore
|
|
57
|
+
}, /*#__PURE__*/React.createElement(AuthorsListBase, {
|
|
58
|
+
data: AuthorsData,
|
|
59
|
+
config: {},
|
|
60
|
+
getMoreData: getMoreData,
|
|
61
|
+
hideLoadmore: false,
|
|
62
|
+
limit: 9
|
|
63
|
+
}), "; );"));
|
|
64
|
+
expect(wrapper.find(LoadmoreButton).length).toEqual(1);
|
|
65
|
+
});
|
|
66
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@value viewports: "../../../../assets/stylesheets/viewports.m.css";
|
|
2
|
+
@value mobile from viewports;
|
|
3
|
+
|
|
4
|
+
.wrapper {
|
|
5
|
+
margin: 0 var(--arrow-spacing-s);
|
|
6
|
+
@media (min-width: mobile) {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(3, 1fr);
|
|
9
|
+
grid-gap: var(--arrow-spacing-l);
|
|
10
|
+
margin: 0 var(--arrow-spacing-l);
|
|
11
|
+
}
|
|
12
|
+
@media (min-width: tablet) {
|
|
13
|
+
margin: 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.linkWrapper :global(.arr--author-intro-card) {
|
|
18
|
+
margin-bottom: var(--arrow-spacing-m);
|
|
19
|
+
@media (min-width: mobile) {
|
|
20
|
+
margin-bottom: unset;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Link } from "@quintype/components";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import { getTextColor } from "../../../utils/utils";
|
|
5
|
+
import { LoadmoreButton } from "../../Atoms/Loadmore";
|
|
6
|
+
import { AuthorIntroductionCard } from "../AuthorIntroductionCard";
|
|
7
|
+
import { StateProvider } from "../../SharedContext";
|
|
8
|
+
import "./authors-list.m.css";
|
|
9
|
+
import { useSelector } from "react-redux";
|
|
10
|
+
import { get } from "lodash";
|
|
11
|
+
export var AuthorsListBase = function AuthorsListBase(_ref) {
|
|
12
|
+
var _ref$data = _ref.data,
|
|
13
|
+
data = _ref$data === void 0 ? [] : _ref$data,
|
|
14
|
+
_ref$config = _ref.config,
|
|
15
|
+
config = _ref$config === void 0 ? {} : _ref$config,
|
|
16
|
+
getMoreData = _ref.getMoreData,
|
|
17
|
+
_ref$hideLoadmore = _ref.hideLoadmore,
|
|
18
|
+
hideLoadmore = _ref$hideLoadmore === void 0 ? false : _ref$hideLoadmore,
|
|
19
|
+
limit = _ref.limit;
|
|
20
|
+
if (data.length < 1) return null;
|
|
21
|
+
var theme = config.theme;
|
|
22
|
+
var textColor = getTextColor(theme);
|
|
23
|
+
var mountAt = config.mountAt || "";
|
|
24
|
+
var qtConfig = useSelector(function (state) {
|
|
25
|
+
return get(state, ["qt", "config"], {});
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
28
|
+
"data-test-id": "authors-list",
|
|
29
|
+
className: "full-width-with-padding arrow-component arr--authors-list",
|
|
30
|
+
style: {
|
|
31
|
+
background: theme,
|
|
32
|
+
color: textColor
|
|
33
|
+
}
|
|
34
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
35
|
+
className: "authors-list-m_wrapper__6y3He"
|
|
36
|
+
}, data.slice(0, limit).map(function (author, index) {
|
|
37
|
+
return /*#__PURE__*/React.createElement(Link, {
|
|
38
|
+
href: "".concat(mountAt, "/author/") + author.slug,
|
|
39
|
+
key: "author-list-".concat(index),
|
|
40
|
+
className: "authors-list-m_linkWrapper__1ZhOs",
|
|
41
|
+
"aria-label": "author"
|
|
42
|
+
}, /*#__PURE__*/React.createElement(AuthorIntroductionCard, {
|
|
43
|
+
data: author,
|
|
44
|
+
config: config,
|
|
45
|
+
template: "smallCircle"
|
|
46
|
+
}));
|
|
47
|
+
})), !hideLoadmore && /*#__PURE__*/React.createElement(LoadmoreButton, {
|
|
48
|
+
onClick: getMoreData,
|
|
49
|
+
template: "SubsequentLoadCount",
|
|
50
|
+
config: config,
|
|
51
|
+
qtConfig: qtConfig
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
AuthorsListBase.propTypes = {
|
|
55
|
+
data: PropTypes.array,
|
|
56
|
+
config: PropTypes.shape({
|
|
57
|
+
enableBio: PropTypes.bool,
|
|
58
|
+
theme: PropTypes.string
|
|
59
|
+
}),
|
|
60
|
+
getMoreData: PropTypes.object.isRequired,
|
|
61
|
+
limit: PropTypes.number,
|
|
62
|
+
hideLoadmore: PropTypes.bool
|
|
63
|
+
};
|
|
64
|
+
export var AuthorsList = StateProvider(AuthorsListBase);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { withStore } from "../../../../storybook";
|
|
3
|
+
import { AuthorsListBase } from "./index";
|
|
4
|
+
import { color, boolean as _boolean, text } from "@storybook/addon-knobs";
|
|
5
|
+
import { authorData } from "../../Fixture";
|
|
6
|
+
import Readme from "./README.md";
|
|
7
|
+
var AuthorsData = Array(8).fill(authorData);
|
|
8
|
+
AuthorsData.push({
|
|
9
|
+
slug: "parvathi-mohan-2",
|
|
10
|
+
name: "Lucy Douglas",
|
|
11
|
+
social: {
|
|
12
|
+
twitter: {
|
|
13
|
+
url: "https://twitter.com/Reena00659364",
|
|
14
|
+
handle: "Twitter"
|
|
15
|
+
},
|
|
16
|
+
youtube: {
|
|
17
|
+
url: "https://www.facebook.com/people/Reena-Singh/100005438855189",
|
|
18
|
+
handle: "Youtube"
|
|
19
|
+
},
|
|
20
|
+
facebook: {
|
|
21
|
+
url: "https://www.facebook.com/people/Reena-Singh/100005438855189",
|
|
22
|
+
handle: "Facebook"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
bio: "",
|
|
26
|
+
id: 94985,
|
|
27
|
+
"avatar-url": "",
|
|
28
|
+
"avatar-s3-key": "",
|
|
29
|
+
"twitter-handle": "quintype_inc",
|
|
30
|
+
stats: {
|
|
31
|
+
contributions: null
|
|
32
|
+
},
|
|
33
|
+
metadata: {}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
var getMoreData = function getMoreData() {
|
|
37
|
+
return null;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
withStore("Rows/Author List", {
|
|
41
|
+
qt: {
|
|
42
|
+
config: {
|
|
43
|
+
"cdn-image": "thumbor-stg.assettype.com",
|
|
44
|
+
mountAt: "/sub-directory"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}, Readme).add("Default", function () {
|
|
48
|
+
var config = {
|
|
49
|
+
enableBio: _boolean("Enable Bio", true),
|
|
50
|
+
buttonText: text("Footer text", "Load More"),
|
|
51
|
+
theme: color("color", "#ffffff"),
|
|
52
|
+
enableSocialLinks: _boolean("Enable Social Links", true),
|
|
53
|
+
borderSupport: _boolean("With Border", true)
|
|
54
|
+
};
|
|
55
|
+
return /*#__PURE__*/React.createElement(AuthorsListBase, {
|
|
56
|
+
data: AuthorsData,
|
|
57
|
+
config: config,
|
|
58
|
+
getMoreData: getMoreData,
|
|
59
|
+
hideLoadmore: false,
|
|
60
|
+
limit: 9
|
|
61
|
+
});
|
|
62
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Collection Filter
|
|
2
|
+
|
|
3
|
+
The _CollectionFilter_ component is a collection of collections in a tabbed interface.
|
|
4
|
+
|
|
5
|
+
The last 3 stories can be replaced with an Ad/Widget based on the slotConfig.
|
|
6
|
+
|
|
7
|
+
## Usage
|
|
8
|
+
|
|
9
|
+
### Import
|
|
10
|
+
```jsx
|
|
11
|
+
import { CollectionFilter } from "@quintype/arrow";
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
### Setting the Row context
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
const contextConfig = {
|
|
18
|
+
theme: "#ffffff",
|
|
19
|
+
border: "",
|
|
20
|
+
collectionNameTemplate: "default",
|
|
21
|
+
sectionTagTemplate: "solid",
|
|
22
|
+
showSection: true,
|
|
23
|
+
showAuthor: true,
|
|
24
|
+
showTime: true,
|
|
25
|
+
slotConfig: [{ type: "story", component: () => <CustomAdOrWidget /> }],
|
|
26
|
+
showRowTitle: true,
|
|
27
|
+
showFooterButton: true,
|
|
28
|
+
buttonText: "Load More",
|
|
29
|
+
footerSlotConfig: { footerSlot: () => <CustomFooterSlot /> }
|
|
30
|
+
};
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Use as a component
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
<CollectionFilter collection={collection} config={contextConfig} />
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
<!-- PROPS -->
|