@quintype/arrow 3.20.0-perf-v2.0 → 3.20.0
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/AlsoRead/styles.arrow.css +1 -0
- package/AlternateCollectionFilter/styles.arrow.css +1 -0
- package/AsideCollection/styles.arrow.css +1 -0
- package/AstrologyCollection/styles.arrow.css +1 -0
- package/Attachment/styles.arrow.css +1 -0
- package/Author/styles.arrow.css +1 -0
- package/AuthorIntroductionCard/styles.arrow.css +1 -0
- package/AuthorWithTime/styles.arrow.css +1 -0
- package/AuthorsList/styles.arrow.css +1 -0
- package/BigFact/styles.arrow.css +1 -0
- package/BlockQuote/styles.arrow.css +1 -0
- package/Blurb/styles.arrow.css +1 -0
- package/CollectionFilter/styles.arrow.css +1 -0
- package/CollectionName/styles.arrow.css +1 -0
- package/ElevenStories/styles.arrow.css +1 -0
- package/FourColFiveStories/styles.arrow.css +1 -0
- package/FourColGrid/styles.arrow.css +1 -0
- package/FourColPortraitStories/styles.arrow.css +1 -0
- package/FourColSixteenStories/styles.arrow.css +1 -0
- package/FourColTwelveStories/styles.arrow.css +1 -0
- package/FourStorySlider/styles.arrow.css +1 -0
- package/FourStorySliderPortrait/styles.arrow.css +1 -0
- package/FourTabbedBigStorySlider/styles.arrow.css +1 -0
- package/FullScreenSlider/styles.arrow.css +1 -0
- package/HalfScreenSlider/styles.arrow.css +1 -0
- package/Headline/styles.arrow.css +1 -0
- package/HeroImage/styles.arrow.css +1 -0
- package/Image/styles.arrow.css +1 -0
- package/ImageGallery/styles.arrow.css +1 -0
- package/ImageSlideshow/styles.arrow.css +1 -0
- package/KeyEvents/styles.arrow.css +1 -0
- package/ListComponent/styles.arrow.css +1 -0
- package/ListicleStoryTemplate/styles.arrow.css +1 -0
- package/Listicles/styles.arrow.css +1 -0
- package/LiveBlogStoryTemplate/styles.arrow.css +1 -0
- package/LoadmoreButton/styles.arrow.css +1 -0
- package/MagazineEditions/styles.arrow.css +1 -0
- package/MagazineHeaderCard/styles.arrow.css +1 -0
- package/MagazineWidget/styles.arrow.css +1 -0
- package/OneColStoryList/styles.arrow.css +1 -0
- package/OpinionCollection/styles.arrow.css +1 -0
- package/PageIntroductionCard/styles.arrow.css +1 -0
- package/PhotoStoryTemplate/styles.arrow.css +1 -0
- package/QuestionAnswer/styles.arrow.css +1 -0
- package/Quote/styles.arrow.css +1 -0
- package/README.md +8 -0
- package/Reference/styles.arrow.css +1 -0
- package/ScrollSnap/styles.arrow.css +1 -0
- package/SectionTag/styles.arrow.css +1 -0
- package/SixColSixStories/styles.arrow.css +1 -0
- package/SocialShareTemplate/styles.arrow.css +1 -0
- package/StoryCard/styles.arrow.css +1 -0
- package/StoryCollection/styles.arrow.css +1 -0
- package/StoryElementCard/styles.arrow.css +1 -0
- package/StorycardContent/styles.arrow.css +1 -0
- package/Subheadline/styles.arrow.css +1 -0
- package/Summary/styles.arrow.css +1 -0
- package/TagIntroductionCard/styles.arrow.css +1 -0
- package/Text/styles.arrow.css +1 -0
- package/TextStoryTemplate/styles.arrow.css +1 -0
- package/ThreeColFlexStories/styles.arrow.css +1 -0
- package/ThreeColFourteenStories/styles.arrow.css +1 -0
- package/ThreeColGrid/styles.arrow.css +1 -0
- package/ThreeColSevenStory/styles.arrow.css +1 -0
- package/ThreeColSixStories/styles.arrow.css +1 -0
- package/ThreeColTwelveStories/styles.arrow.css +1 -0
- package/TimeStamp/styles.arrow.css +1 -0
- package/TwoColFourStories/styles.arrow.css +1 -0
- package/TwoColFourStoryHighlight/styles.arrow.css +1 -0
- package/TwoColSevenStories/styles.arrow.css +1 -0
- package/TwoColSixStories/styles.arrow.css +1 -0
- package/TwoColTenStoriesSidebar/styles.arrow.css +1 -0
- package/TwoColThreeStories/styles.arrow.css +1 -0
- package/Video/styles.arrow.css +1 -0
- package/VideoStoryTemplate/styles.arrow.css +1 -0
- package/{assets/stylesheets/app.scss → app.scss} +0 -2
- package/cjs/index.js +1 -0
- package/esm/index.js +1 -0
- package/package.json +1 -131
- package/.babelrc +0 -12
- package/.circleci/config.yml +0 -43
- package/.eslintrc.json +0 -35
- package/.prettierrc +0 -6
- package/.storybook/addons.js +0 -4
- package/.storybook/main.js +0 -7
- package/.storybook/preview.js +0 -3
- package/.storybook/webpack.config.js +0 -8
- package/.stylelintrc +0 -10
- package/.vscode/extensions.json +0 -16
- package/.vscode/settings.json +0 -12
- package/CHANGELOG.md +0 -1641
- package/__mocks__/fileMock.js +0 -1
- package/__mocks__/styleMock.js +0 -1
- package/assets/stylesheets/mixins.scss +0 -27
- package/assets/stylesheets/reset.scss +0 -148
- package/assets/stylesheets/viewports.m.css +0 -3
- package/bin-dev-scripts/prepublish.sh +0 -11
- package/bin-dev-scripts/sync-to.sh +0 -13
- package/jest.config.json +0 -14
- package/publish +0 -22
- package/rollup.js +0 -202
- package/setupTests.js +0 -3
- package/src/components/Atoms/AdPlaceholder/ads.m.css +0 -13
- package/src/components/Atoms/AdPlaceholder/index.js +0 -25
- package/src/components/Atoms/Author/README.md +0 -19
- package/src/components/Atoms/Author/author.m.css +0 -65
- package/src/components/Atoms/Author/index.js +0 -98
- package/src/components/Atoms/Author/stories.js +0 -23
- package/src/components/Atoms/AuthorCard/README.md +0 -47
- package/src/components/Atoms/AuthorCard/author-card.m.css +0 -174
- package/src/components/Atoms/AuthorCard/author-card.test.js +0 -72
- package/src/components/Atoms/AuthorCard/index.js +0 -115
- package/src/components/Atoms/AuthorCard/stories.js +0 -69
- package/src/components/Atoms/AuthorImage/README.md +0 -31
- package/src/components/Atoms/AuthorImage/author-image.m.css +0 -53
- package/src/components/Atoms/AuthorImage/index.js +0 -55
- package/src/components/Atoms/AuthorImage/stories.js +0 -20
- package/src/components/Atoms/AuthorWithTimestamp/README.md +0 -12
- package/src/components/Atoms/AuthorWithTimestamp/author-with-timestamp.m.css +0 -42
- package/src/components/Atoms/AuthorWithTimestamp/index.js +0 -79
- package/src/components/Atoms/AuthorWithTimestamp/stories.js +0 -27
- package/src/components/Atoms/BulletPoint/README.md +0 -9
- package/src/components/Atoms/BulletPoint/bullet-point.m.css +0 -14
- package/src/components/Atoms/BulletPoint/index.js +0 -19
- package/src/components/Atoms/BulletPoint/stories.js +0 -6
- package/src/components/Atoms/CaptionAttribution/README.md +0 -15
- package/src/components/Atoms/CaptionAttribution/caption-attribution.m.css +0 -40
- package/src/components/Atoms/CaptionAttribution/caption-attribution.test.js +0 -29
- package/src/components/Atoms/CaptionAttribution/index.js +0 -40
- package/src/components/Atoms/CaptionAttribution/stories.js +0 -40
- package/src/components/Atoms/CollectionName/README.md +0 -11
- package/src/components/Atoms/CollectionName/collection-name.m.css +0 -94
- package/src/components/Atoms/CollectionName/index.js +0 -143
- package/src/components/Atoms/CollectionName/stories.js +0 -52
- package/src/components/Atoms/Divider/__snapshots__/divider.test.js.snap +0 -18
- package/src/components/Atoms/Divider/divider.m.css +0 -6
- package/src/components/Atoms/Divider/divider.test.js +0 -10
- package/src/components/Atoms/Divider/index.js +0 -20
- package/src/components/Atoms/Dot/dot.js +0 -20
- package/src/components/Atoms/Dot/dot.m.css +0 -6
- package/src/components/Atoms/ExtendedLoadMore/README.md +0 -9
- package/src/components/Atoms/ExtendedLoadMore/__snapshots__/extended-load-more.test.js.snap +0 -11
- package/src/components/Atoms/ExtendedLoadMore/extended-load-more.test.js +0 -19
- package/src/components/Atoms/ExtendedLoadMore/index.js +0 -114
- package/src/components/Atoms/FallbackImage/fallback.m.css +0 -33
- package/src/components/Atoms/FallbackImage/index.js +0 -30
- package/src/components/Atoms/Headline/README.md +0 -7
- package/src/components/Atoms/Headline/headline.m.css +0 -26
- package/src/components/Atoms/Headline/index.js +0 -91
- package/src/components/Atoms/Headline/stories.js +0 -52
- package/src/components/Atoms/HeroImage/README.md +0 -13
- package/src/components/Atoms/HeroImage/hero-image.m.css +0 -72
- package/src/components/Atoms/HeroImage/index.js +0 -168
- package/src/components/Atoms/HeroImage/stories.js +0 -22
- package/src/components/Atoms/Hyperlink/hyperlink.m.css +0 -10
- package/src/components/Atoms/Hyperlink/index.js +0 -24
- package/src/components/Atoms/LoadMoreTarget/index.js +0 -24
- package/src/components/Atoms/Loadmore/README.md +0 -0
- package/src/components/Atoms/Loadmore/__snapshots__/load-more.test.js.snap +0 -25
- package/src/components/Atoms/Loadmore/index.js +0 -41
- package/src/components/Atoms/Loadmore/load-more.m.css +0 -23
- package/src/components/Atoms/Loadmore/load-more.test.js +0 -30
- package/src/components/Atoms/Loadmore/stories.js +0 -17
- package/src/components/Atoms/MagazineCoverImage/README.md +0 -21
- package/src/components/Atoms/MagazineCoverImage/index.js +0 -61
- package/src/components/Atoms/MagazineCoverImage/magazine-cover-image.m.css +0 -24
- package/src/components/Atoms/MagazineCoverImage/stories.js +0 -21
- package/src/components/Atoms/PremiumStoryIcon/index.js +0 -27
- package/src/components/Atoms/PublishDetail/README.md +0 -15
- package/src/components/Atoms/PublishDetail/index.js +0 -66
- package/src/components/Atoms/PublishDetail/publish-details.m.css +0 -47
- package/src/components/Atoms/PublishDetail/publish-details.test.js +0 -22
- package/src/components/Atoms/PublishDetail/stories.js +0 -22
- package/src/components/Atoms/ReadTime/README.md +0 -13
- package/src/components/Atoms/ReadTime/index.js +0 -52
- package/src/components/Atoms/ReadTime/read-time.m.css +0 -25
- package/src/components/Atoms/ReadTime/read-time.test.js +0 -27
- package/src/components/Atoms/ReadTime/stories.js +0 -19
- package/src/components/Atoms/ScrollSnap/SliderArrow/index.js +0 -57
- package/src/components/Atoms/ScrollSnap/SliderArrow/slider-arrow.m.css +0 -45
- package/src/components/Atoms/ScrollSnap/SliderIndicator/index.js +0 -41
- package/src/components/Atoms/ScrollSnap/SliderIndicator/slider-indicator.m.css +0 -71
- package/src/components/Atoms/ScrollSnap/index.js +0 -169
- package/src/components/Atoms/ScrollSnap/scroll-snap.m.css +0 -26
- package/src/components/Atoms/SectionTag/README.md +0 -11
- package/src/components/Atoms/SectionTag/index.js +0 -61
- package/src/components/Atoms/SectionTag/section.m.css +0 -53
- package/src/components/Atoms/SectionTag/stories.js +0 -26
- package/src/components/Atoms/SocialSharePopup/README.md +0 -25
- package/src/components/Atoms/SocialSharePopup/__snapshots__/social-share-popup.test.js.snap +0 -653
- package/src/components/Atoms/SocialSharePopup/index.js +0 -61
- package/src/components/Atoms/SocialSharePopup/social-share-popup.m.css +0 -109
- package/src/components/Atoms/SocialSharePopup/social-share-popup.test.js +0 -93
- package/src/components/Atoms/SocialSharePopup/stories.js +0 -19
- package/src/components/Atoms/StoryElements/AlsoRead/README.md +0 -49
- package/src/components/Atoms/StoryElements/AlsoRead/also-read.m.css +0 -135
- package/src/components/Atoms/StoryElements/AlsoRead/also-read.test.js +0 -83
- package/src/components/Atoms/StoryElements/AlsoRead/index.js +0 -117
- package/src/components/Atoms/StoryElements/AlsoRead/stories.js +0 -40
- package/src/components/Atoms/StoryElements/Attachment/README.md +0 -21
- package/src/components/Atoms/StoryElements/Attachment/__snapshots__/attachment.test.js.snap +0 -47
- package/src/components/Atoms/StoryElements/Attachment/attachment.m.css +0 -125
- package/src/components/Atoms/StoryElements/Attachment/attachment.test.js +0 -39
- package/src/components/Atoms/StoryElements/Attachment/index.js +0 -62
- package/src/components/Atoms/StoryElements/Attachment/stories.js +0 -48
- package/src/components/Atoms/StoryElements/BigFact/README.md +0 -9
- package/src/components/Atoms/StoryElements/BigFact/big-fact.m.css +0 -41
- package/src/components/Atoms/StoryElements/BigFact/big-fact.test.js +0 -21
- package/src/components/Atoms/StoryElements/BigFact/index.js +0 -33
- package/src/components/Atoms/StoryElements/BigFact/stories.js +0 -9
- package/src/components/Atoms/StoryElements/BlockQuote/README.md +0 -49
- package/src/components/Atoms/StoryElements/BlockQuote/Svg/curve.js +0 -26
- package/src/components/Atoms/StoryElements/BlockQuote/Svg/edge.js +0 -26
- package/src/components/Atoms/StoryElements/BlockQuote/Svg/icon.m.css +0 -4
- package/src/components/Atoms/StoryElements/BlockQuote/block-quote.m.css +0 -161
- package/src/components/Atoms/StoryElements/BlockQuote/block-quote.test.js +0 -48
- package/src/components/Atoms/StoryElements/BlockQuote/index.js +0 -82
- package/src/components/Atoms/StoryElements/BlockQuote/stories.js +0 -35
- package/src/components/Atoms/StoryElements/Blurb/README.md +0 -43
- package/src/components/Atoms/StoryElements/Blurb/blurb.m.css +0 -55
- package/src/components/Atoms/StoryElements/Blurb/blurb.test.js +0 -46
- package/src/components/Atoms/StoryElements/Blurb/index.js +0 -53
- package/src/components/Atoms/StoryElements/Blurb/stories.js +0 -28
- package/src/components/Atoms/StoryElements/Image/README.md +0 -13
- package/src/components/Atoms/StoryElements/Image/image.m.css +0 -21
- package/src/components/Atoms/StoryElements/Image/image.test.js +0 -20
- package/src/components/Atoms/StoryElements/Image/index.js +0 -60
- package/src/components/Atoms/StoryElements/Image/stories.js +0 -25
- package/src/components/Atoms/StoryElements/ImageSlideshow/README.md +0 -13
- package/src/components/Atoms/StoryElements/ImageSlideshow/image-slideshow.m.css +0 -49
- package/src/components/Atoms/StoryElements/ImageSlideshow/index.js +0 -65
- package/src/components/Atoms/StoryElements/ImageSlideshow/stories.js +0 -34
- package/src/components/Atoms/StoryElements/QuestionAnswer/README.md +0 -56
- package/src/components/Atoms/StoryElements/QuestionAnswer/index.js +0 -134
- package/src/components/Atoms/StoryElements/QuestionAnswer/question-answer.m.css +0 -106
- package/src/components/Atoms/StoryElements/QuestionAnswer/question-answer.test.js +0 -74
- package/src/components/Atoms/StoryElements/QuestionAnswer/stories.js +0 -79
- package/src/components/Atoms/StoryElements/Quote/README.md +0 -41
- package/src/components/Atoms/StoryElements/Quote/index.js +0 -44
- package/src/components/Atoms/StoryElements/Quote/quote.m.css +0 -111
- package/src/components/Atoms/StoryElements/Quote/quote.test.js +0 -39
- package/src/components/Atoms/StoryElements/Quote/stories.js +0 -28
- package/src/components/Atoms/StoryElements/Reference/README.md +0 -9
- package/src/components/Atoms/StoryElements/Reference/index.js +0 -52
- package/src/components/Atoms/StoryElements/Reference/reference.m.css +0 -42
- package/src/components/Atoms/StoryElements/Reference/reference.test.js +0 -28
- package/src/components/Atoms/StoryElements/Reference/stories.js +0 -18
- package/src/components/Atoms/StoryElements/StoryElement/README.md +0 -10
- package/src/components/Atoms/StoryElements/StoryElement/index.js +0 -21
- package/src/components/Atoms/StoryElements/StoryElement/stories.js +0 -20
- package/src/components/Atoms/StoryElements/StoryElement/storyelement.test.js +0 -13
- package/src/components/Atoms/StoryElements/Summary/README.md +0 -56
- package/src/components/Atoms/StoryElements/Summary/index.js +0 -68
- package/src/components/Atoms/StoryElements/Summary/stories.js +0 -33
- package/src/components/Atoms/StoryElements/Summary/summary.m.css +0 -121
- package/src/components/Atoms/StoryElements/Summary/summary.test.js +0 -50
- package/src/components/Atoms/StoryElements/Text/README.md +0 -32
- package/src/components/Atoms/StoryElements/Text/index.js +0 -41
- package/src/components/Atoms/StoryElements/Text/stories.js +0 -32
- package/src/components/Atoms/StoryElements/Text/text.m.css +0 -78
- package/src/components/Atoms/StoryElements/Text/text.test.js +0 -42
- package/src/components/Atoms/StoryElements/Video/README.md +0 -9
- package/src/components/Atoms/StoryElements/Video/index.js +0 -23
- package/src/components/Atoms/StoryElements/Video/stories.js +0 -24
- package/src/components/Atoms/StoryElements/Video/video.m.css +0 -89
- package/src/components/Atoms/StoryElements/Video/video.test.js +0 -13
- package/src/components/Atoms/StoryElements/imageGallery/README.md +0 -18
- package/src/components/Atoms/StoryElements/imageGallery/image-gallery.m.css +0 -52
- package/src/components/Atoms/StoryElements/imageGallery/image-gallery.test.js +0 -19
- package/src/components/Atoms/StoryElements/imageGallery/index.js +0 -79
- package/src/components/Atoms/StoryElements/imageGallery/stories.js +0 -23
- package/src/components/Atoms/StoryElements/withElementWrapper.js +0 -13
- package/src/components/Atoms/StoryElements/withElementWrapper.test.js +0 -31
- package/src/components/Atoms/StoryHeadline/index.js +0 -36
- package/src/components/Atoms/StoryHeadline/story-headline.m.css +0 -36
- package/src/components/Atoms/StoryTags/README.md +0 -9
- package/src/components/Atoms/StoryTags/index.js +0 -33
- package/src/components/Atoms/StoryTags/stories.js +0 -25
- package/src/components/Atoms/StoryTags/story-tags.test.js +0 -18
- package/src/components/Atoms/StoryTags/tags.m.css +0 -34
- package/src/components/Atoms/Subheadline/README.md +0 -17
- package/src/components/Atoms/Subheadline/index.js +0 -54
- package/src/components/Atoms/Subheadline/stories.js +0 -12
- package/src/components/Atoms/Subheadline/subheadline.m.css +0 -17
- package/src/components/Atoms/TimeStamp/README.md +0 -9
- package/src/components/Atoms/TimeStamp/index.js +0 -40
- package/src/components/Atoms/TimeStamp/stories.js +0 -9
- package/src/components/Atoms/TimeStamp/timestamp.m.css +0 -22
- package/src/components/Fixture/config.json +0 -2703
- package/src/components/Fixture/dummy-collection.js +0 -2790
- package/src/components/Fixture/dummyStory.js +0 -2200
- package/src/components/Fixture/index.js +0 -424
- package/src/components/Fixture/slot-config.js +0 -29
- package/src/components/Molecules/FullScreenImages/fullscreenimages.scss +0 -56
- package/src/components/Molecules/FullScreenImages/index.js +0 -98
- package/src/components/Molecules/KeyEvents/README.md +0 -21
- package/src/components/Molecules/KeyEvents/index.js +0 -109
- package/src/components/Molecules/KeyEvents/key-events.m.css +0 -89
- package/src/components/Molecules/KeyEvents/stories.js +0 -28
- package/src/components/Molecules/PageIntroductionCard/README.md +0 -25
- package/src/components/Molecules/PageIntroductionCard/index.js +0 -50
- package/src/components/Molecules/PageIntroductionCard/page-intro-card.m.css +0 -61
- package/src/components/Molecules/PageIntroductionCard/stories.js +0 -16
- package/src/components/Molecules/PortraitStoryCard/README.md +0 -10
- package/src/components/Molecules/PortraitStoryCard/index.js +0 -49
- package/src/components/Molecules/PortraitStoryCard/portrait-story-card.m.css +0 -38
- package/src/components/Molecules/PortraitStoryCard/stories.js +0 -24
- package/src/components/Molecules/SliderHorizontalCard/README.md +0 -14
- package/src/components/Molecules/SliderHorizontalCard/index.js +0 -45
- package/src/components/Molecules/SliderHorizontalCard/slider-horizontal-card.m.css +0 -42
- package/src/components/Molecules/SliderHorizontalCard/stories.js +0 -30
- package/src/components/Molecules/SocialShareTemplate/README.md +0 -118
- package/src/components/Molecules/SocialShareTemplate/__snapshots__/social-share-template.test.js.snap +0 -738
- package/src/components/Molecules/SocialShareTemplate/index.js +0 -119
- package/src/components/Molecules/SocialShareTemplate/social-share-data.js +0 -66
- package/src/components/Molecules/SocialShareTemplate/social-share-template.m.css +0 -174
- package/src/components/Molecules/SocialShareTemplate/social-share-template.test.js +0 -116
- package/src/components/Molecules/SocialShareTemplate/stories.js +0 -40
- package/src/components/Molecules/StoryCard/README.md +0 -75
- package/src/components/Molecules/StoryCard/READMEBGIMAGE.md +0 -25
- package/src/components/Molecules/StoryCard/READMEBORDER.md +0 -61
- package/src/components/Molecules/StoryCard/index.js +0 -184
- package/src/components/Molecules/StoryCard/stories.js +0 -223
- package/src/components/Molecules/StoryCard/storycard.m.css +0 -158
- package/src/components/Molecules/StoryCardWithBulletPoint/README.md +0 -9
- package/src/components/Molecules/StoryCardWithBulletPoint/index.js +0 -32
- package/src/components/Molecules/StoryCardWithBulletPoint/stories.js +0 -31
- package/src/components/Molecules/StoryCardWithBulletPoint/story-card-with-bullet-point.m.css +0 -7
- package/src/components/Molecules/StoryElementCard/README.md +0 -9
- package/src/components/Molecules/StoryElementCard/index.js +0 -359
- package/src/components/Molecules/StoryElementCard/stories.js +0 -27
- package/src/components/Molecules/StoryElementCard/story-element-card.m.css +0 -78
- package/src/components/Molecules/StorycardContent/README.md +0 -34
- package/src/components/Molecules/StorycardContent/index.js +0 -76
- package/src/components/Molecules/StorycardContent/stories.js +0 -39
- package/src/components/Molecules/StorycardContent/storycardContent.m.css +0 -21
- package/src/components/Rows/AlternateCollectionFilter/README.md +0 -38
- package/src/components/Rows/AlternateCollectionFilter/alternate-collection-filter.m.css +0 -254
- package/src/components/Rows/AlternateCollectionFilter/index.js +0 -179
- package/src/components/Rows/AlternateCollectionFilter/stories.js +0 -74
- package/src/components/Rows/AsideCollection/README.md +0 -27
- package/src/components/Rows/AsideCollection/aside-collection.m.css +0 -103
- package/src/components/Rows/AsideCollection/aside-collection.test.js +0 -34
- package/src/components/Rows/AsideCollection/index.js +0 -175
- package/src/components/Rows/AsideCollection/stories.js +0 -52
- package/src/components/Rows/AstrologyCollection/README.md +0 -40
- package/src/components/Rows/AstrologyCollection/astrology-collection.m.css +0 -165
- package/src/components/Rows/AstrologyCollection/index.js +0 -172
- package/src/components/Rows/AstrologyCollection/stories.js +0 -60
- package/src/components/Rows/AuthorIntroductionCard/README.md +0 -43
- package/src/components/Rows/AuthorIntroductionCard/author-intro.m.css +0 -278
- package/src/components/Rows/AuthorIntroductionCard/author-intro.test.js +0 -106
- package/src/components/Rows/AuthorIntroductionCard/index.js +0 -120
- package/src/components/Rows/AuthorIntroductionCard/stories.js +0 -43
- package/src/components/Rows/AuthorsList/README.md +0 -24
- package/src/components/Rows/AuthorsList/author-list.test.js +0 -50
- package/src/components/Rows/AuthorsList/authors-list.m.css +0 -22
- package/src/components/Rows/AuthorsList/index.js +0 -50
- package/src/components/Rows/AuthorsList/stories.js +0 -61
- package/src/components/Rows/CollectionFilter/README.md +0 -39
- package/src/components/Rows/CollectionFilter/collection-filter.m.css +0 -213
- package/src/components/Rows/CollectionFilter/index.js +0 -232
- package/src/components/Rows/CollectionFilter/stories.js +0 -77
- package/src/components/Rows/ElevenStories/11-stories.m.css +0 -85
- package/src/components/Rows/ElevenStories/README.md +0 -39
- package/src/components/Rows/ElevenStories/index.js +0 -332
- package/src/components/Rows/ElevenStories/stories.js +0 -70
- package/src/components/Rows/FourColFiveStories/README.md +0 -37
- package/src/components/Rows/FourColFiveStories/four-col-five-stories.m.css +0 -112
- package/src/components/Rows/FourColFiveStories/index.js +0 -161
- package/src/components/Rows/FourColFiveStories/stories.js +0 -67
- package/src/components/Rows/FourColGrid/README.md +0 -39
- package/src/components/Rows/FourColGrid/four-col.m.css +0 -50
- package/src/components/Rows/FourColGrid/index.js +0 -144
- package/src/components/Rows/FourColGrid/stories.js +0 -66
- package/src/components/Rows/FourColPortraitStories/README.md +0 -38
- package/src/components/Rows/FourColPortraitStories/four-col-portrait-stories.m.css +0 -45
- package/src/components/Rows/FourColPortraitStories/index.js +0 -145
- package/src/components/Rows/FourColPortraitStories/stories.js +0 -66
- package/src/components/Rows/FourColSixteenStories/README.md +0 -35
- package/src/components/Rows/FourColSixteenStories/four-col-sixteen-stories.m.css +0 -141
- package/src/components/Rows/FourColSixteenStories/index.js +0 -115
- package/src/components/Rows/FourColSixteenStories/stories.js +0 -47
- package/src/components/Rows/FourColTwelveStory/README.md +0 -39
- package/src/components/Rows/FourColTwelveStory/four-col-twelve-story.m.css +0 -71
- package/src/components/Rows/FourColTwelveStory/index.js +0 -176
- package/src/components/Rows/FourColTwelveStory/stories.js +0 -117
- package/src/components/Rows/FourStorySlider/README.md +0 -45
- package/src/components/Rows/FourStorySlider/four-story-slider.m.css +0 -78
- package/src/components/Rows/FourStorySlider/index.js +0 -127
- package/src/components/Rows/FourStorySlider/stories.js +0 -117
- package/src/components/Rows/FourStorySliderPortrait/README.md +0 -45
- package/src/components/Rows/FourStorySliderPortrait/four-story-slider-portrait.m.css +0 -272
- package/src/components/Rows/FourStorySliderPortrait/index.js +0 -129
- package/src/components/Rows/FourStorySliderPortrait/stories.js +0 -117
- package/src/components/Rows/FourTabbedBigStorySlider/README.md +0 -39
- package/src/components/Rows/FourTabbedBigStorySlider/four-tabbed-big-story-slider.m.css +0 -265
- package/src/components/Rows/FourTabbedBigStorySlider/index.js +0 -158
- package/src/components/Rows/FourTabbedBigStorySlider/stories.js +0 -63
- package/src/components/Rows/FullScreenSlider/README.md +0 -46
- package/src/components/Rows/FullScreenSlider/full-screen-slider.m.css +0 -155
- package/src/components/Rows/FullScreenSlider/index.js +0 -118
- package/src/components/Rows/FullScreenSlider/stories.js +0 -115
- package/src/components/Rows/HalfScreenSlider/README.md +0 -43
- package/src/components/Rows/HalfScreenSlider/half-screen-slider.m.css +0 -80
- package/src/components/Rows/HalfScreenSlider/index.js +0 -104
- package/src/components/Rows/HalfScreenSlider/stories.js +0 -115
- package/src/components/Rows/ListComponent/README.md +0 -48
- package/src/components/Rows/ListComponent/index.js +0 -151
- package/src/components/Rows/ListComponent/list-component.m.css +0 -65
- package/src/components/Rows/ListComponent/stories.js +0 -63
- package/src/components/Rows/Listicles/README.md +0 -32
- package/src/components/Rows/Listicles/index.js +0 -162
- package/src/components/Rows/Listicles/listicles.m.css +0 -149
- package/src/components/Rows/Listicles/stories.js +0 -66
- package/src/components/Rows/MagazineEditions/README.md +0 -21
- package/src/components/Rows/MagazineEditions/index.js +0 -91
- package/src/components/Rows/MagazineEditions/magazine-editions.m.css +0 -50
- package/src/components/Rows/MagazineEditions/magazine-editions.test.js +0 -33
- package/src/components/Rows/MagazineEditions/stories.js +0 -45
- package/src/components/Rows/MagazineHeaderCard/README.md +0 -21
- package/src/components/Rows/MagazineHeaderCard/index.js +0 -72
- package/src/components/Rows/MagazineHeaderCard/magazine-cards.m.css +0 -106
- package/src/components/Rows/MagazineHeaderCard/stories.js +0 -36
- package/src/components/Rows/MagazineWidget/README.md +0 -21
- package/src/components/Rows/MagazineWidget/index.js +0 -127
- package/src/components/Rows/MagazineWidget/stories.js +0 -43
- package/src/components/Rows/OneColStoryList/README.md +0 -48
- package/src/components/Rows/OneColStoryList/index.js +0 -198
- package/src/components/Rows/OneColStoryList/one-col-story-list.m.css +0 -81
- package/src/components/Rows/OneColStoryList/stories.js +0 -61
- package/src/components/Rows/OpinionCollection/README.md +0 -36
- package/src/components/Rows/OpinionCollection/index.js +0 -155
- package/src/components/Rows/OpinionCollection/opinion-collection.m.css +0 -226
- package/src/components/Rows/OpinionCollection/stories.js +0 -82
- package/src/components/Rows/SixColSixStories/README.md +0 -37
- package/src/components/Rows/SixColSixStories/index.js +0 -141
- package/src/components/Rows/SixColSixStories/six-col-six-stories.m.css +0 -75
- package/src/components/Rows/SixColSixStories/stories.js +0 -73
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/README.md +0 -19
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/__snapshots__/listicle-story.test.js.snap +0 -841
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/index.js +0 -291
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.m.css +0 -249
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.test.js +0 -47
- package/src/components/Rows/StoryTemplates/ListicleStoryTemplates/stories.js +0 -116
- package/src/components/Rows/StoryTemplates/LiveBlogStoryTemplates/README.md +0 -25
- package/src/components/Rows/StoryTemplates/LiveBlogStoryTemplates/index.js +0 -55
- package/src/components/Rows/StoryTemplates/LiveBlogStoryTemplates/live-blog.m.css +0 -326
- package/src/components/Rows/StoryTemplates/LiveBlogStoryTemplates/stories.js +0 -120
- package/src/components/Rows/StoryTemplates/LiveBlogStoryTemplates/templates.js +0 -378
- package/src/components/Rows/StoryTemplates/PhotoStoryTemplates/index.js +0 -249
- package/src/components/Rows/StoryTemplates/PhotoStoryTemplates/photo-story.test.js +0 -144
- package/src/components/Rows/StoryTemplates/PhotoStoryTemplates/photo.m.css +0 -175
- package/src/components/Rows/StoryTemplates/PhotoStoryTemplates/stories.js +0 -123
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/README.md +0 -49
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/index.js +0 -74
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/stories.js +0 -125
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/templates.js +0 -274
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/text-story.m.css +0 -449
- package/src/components/Rows/StoryTemplates/TextStoryTemplates/text-story.test.js +0 -222
- package/src/components/Rows/StoryTemplates/VideoStoryTemplates/README.md +0 -31
- package/src/components/Rows/StoryTemplates/VideoStoryTemplates/index.js +0 -237
- package/src/components/Rows/StoryTemplates/VideoStoryTemplates/stories.js +0 -204
- package/src/components/Rows/StoryTemplates/VideoStoryTemplates/video-story.m.css +0 -195
- package/src/components/Rows/TagIntroductionCard/README.md +0 -11
- package/src/components/Rows/TagIntroductionCard/index.js +0 -26
- package/src/components/Rows/TagIntroductionCard/stories.js +0 -21
- package/src/components/Rows/TagIntroductionCard/tag-intro-card.module.css +0 -25
- package/src/components/Rows/ThreeColFlexStories/README.md +0 -38
- package/src/components/Rows/ThreeColFlexStories/index.js +0 -182
- package/src/components/Rows/ThreeColFlexStories/stories.js +0 -73
- package/src/components/Rows/ThreeColFlexStories/three-col-flex-stories.m.css +0 -60
- package/src/components/Rows/ThreeColFourteenStory/README.md +0 -28
- package/src/components/Rows/ThreeColFourteenStory/index.js +0 -135
- package/src/components/Rows/ThreeColFourteenStory/stories.js +0 -60
- package/src/components/Rows/ThreeColFourteenStory/three-col-fourteen-story.m.css +0 -51
- package/src/components/Rows/ThreeColGrid/README.md +0 -36
- package/src/components/Rows/ThreeColGrid/index.js +0 -148
- package/src/components/Rows/ThreeColGrid/stories.js +0 -70
- package/src/components/Rows/ThreeColGrid/three-col.m.css +0 -43
- package/src/components/Rows/ThreeColSevenStory/README.md +0 -36
- package/src/components/Rows/ThreeColSevenStory/index.js +0 -172
- package/src/components/Rows/ThreeColSevenStory/stories.js +0 -71
- package/src/components/Rows/ThreeColSevenStory/three-col-seven-story.m.css +0 -44
- package/src/components/Rows/ThreeColSixStories/README.md +0 -40
- package/src/components/Rows/ThreeColSixStories/index.js +0 -161
- package/src/components/Rows/ThreeColSixStories/stories.js +0 -73
- package/src/components/Rows/ThreeColSixStories/three-col-six-stories.m.css +0 -32
- package/src/components/Rows/ThreeColTwelveStories/README.md +0 -41
- package/src/components/Rows/ThreeColTwelveStories/index.js +0 -123
- package/src/components/Rows/ThreeColTwelveStories/stories.js +0 -51
- package/src/components/Rows/ThreeColTwelveStories/three-col-twelve-stories.m.css +0 -83
- package/src/components/Rows/TwoColFourStory/README.md +0 -33
- package/src/components/Rows/TwoColFourStory/index.js +0 -151
- package/src/components/Rows/TwoColFourStory/stories.js +0 -68
- package/src/components/Rows/TwoColFourStory/two-col-four-story.m.css +0 -64
- package/src/components/Rows/TwoColFourStoryHighlight/README.md +0 -35
- package/src/components/Rows/TwoColFourStoryHighlight/index.js +0 -122
- package/src/components/Rows/TwoColFourStoryHighlight/stories.js +0 -48
- package/src/components/Rows/TwoColFourStoryHighlight/two-col-four-story-highlight.m.css +0 -116
- package/src/components/Rows/TwoColSevenStories/README.md +0 -37
- package/src/components/Rows/TwoColSevenStories/index.js +0 -152
- package/src/components/Rows/TwoColSevenStories/stories.js +0 -100
- package/src/components/Rows/TwoColSevenStories/two-col-seven-stories.m.css +0 -175
- package/src/components/Rows/TwoColSixStories/README.md +0 -36
- package/src/components/Rows/TwoColSixStories/index.js +0 -117
- package/src/components/Rows/TwoColSixStories/stories.js +0 -67
- package/src/components/Rows/TwoColSixStories/two-col-six-stories.m.css +0 -135
- package/src/components/Rows/TwoColTenStoriesSidebar/README.md +0 -34
- package/src/components/Rows/TwoColTenStoriesSidebar/index.js +0 -168
- package/src/components/Rows/TwoColTenStoriesSidebar/stories.js +0 -45
- package/src/components/Rows/TwoColTenStoriesSidebar/two-col-ten-stories-sidebar.m.css +0 -52
- package/src/components/Rows/TwoColThreeStory/README.md +0 -40
- package/src/components/Rows/TwoColThreeStory/index.js +0 -137
- package/src/components/Rows/TwoColThreeStory/stories.js +0 -68
- package/src/components/Rows/TwoColThreeStory/two-col-three-story.m.css +0 -36
- package/src/components/SharedContext.js +0 -13
- package/src/components/Svgs/Loading/loading.js +0 -133
- package/src/components/Svgs/Loading/loading.m.css +0 -5
- package/src/components/Svgs/SocialIcons/facebook.js +0 -15
- package/src/components/Svgs/SocialIcons/instagram.js +0 -24
- package/src/components/Svgs/SocialIcons/linkedin.js +0 -15
- package/src/components/Svgs/SocialIcons/pinterest.js +0 -12
- package/src/components/Svgs/SocialIcons/twitter.js +0 -15
- package/src/components/Svgs/SocialIcons/whatsapp.js +0 -17
- package/src/components/Svgs/SocialIcons/youtube.js +0 -17
- package/src/components/Svgs/caret-right.svg +0 -3
- package/src/components/Svgs/clock-icon.js +0 -17
- package/src/components/Svgs/close-icon.js +0 -15
- package/src/components/Svgs/crown.js +0 -31
- package/src/components/Svgs/fallbackImage.js +0 -42
- package/src/components/Svgs/hyperlink.js +0 -17
- package/src/components/Svgs/key.js +0 -33
- package/src/components/Svgs/left-arrow.js +0 -17
- package/src/components/Svgs/liveicon.js +0 -13
- package/src/components/Svgs/lock.js +0 -31
- package/src/components/Svgs/right-arrow.js +0 -17
- package/src/components/Svgs/share-icon.js +0 -17
- package/src/components/Svgs/star.js +0 -28
- package/src/components/Svgs/user-fallback-icon.js +0 -19
- package/src/components/Typography/README.md +0 -7
- package/src/components/Typography/index.js +0 -47
- package/src/components/Typography/stories.js +0 -10
- package/src/components/Typography/style.m.css +0 -11
- package/src/entry-points.js +0 -357
- package/src/guide/stories.js +0 -18
- package/src/hydration-component/index.js +0 -37
- package/src/hydration-component/useNearScreen.js +0 -56
- package/src/index.js +0 -91
- package/src/utils/testing-utils.js +0 -8
- package/src/utils/utils.js +0 -305
- package/src/utils/utils.test.js +0 -55
- package/storybook/index.js +0 -83
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import PropTypes from "prop-types";
|
|
3
|
-
import { socialShareData } from "./social-share-data";
|
|
4
|
-
import { SocialSharePopup } from "../../Atoms/SocialSharePopup";
|
|
5
|
-
import "./social-share-template.m.css";
|
|
6
|
-
import { CloseIcon } from "../../Svgs/close-icon";
|
|
7
|
-
import { ShareIcon } from "../../Svgs/share-icon";
|
|
8
|
-
import { getTextColor } from "../../../utils/utils";
|
|
9
|
-
import camelcase from "lodash.camelcase";
|
|
10
|
-
|
|
11
|
-
const ShareItem = ({ name, url, icon, dataTestId }) => {
|
|
12
|
-
return url ? (
|
|
13
|
-
<li data-testid={dataTestId} styleName="icon">
|
|
14
|
-
<a href={url} target="_blank" rel="noopener noreferrer" data-share-icon={name} aria-label="share-icon">
|
|
15
|
-
{icon}
|
|
16
|
-
</a>
|
|
17
|
-
</li>
|
|
18
|
-
) : null;
|
|
19
|
-
};
|
|
20
|
-
ShareItem.propTypes = {
|
|
21
|
-
name: PropTypes.string,
|
|
22
|
-
url: PropTypes.string,
|
|
23
|
-
icon: PropTypes.node,
|
|
24
|
-
dataTestId: PropTypes.string
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
function getActionIcon(open, color) {
|
|
28
|
-
if (!open) return <ShareIcon color={color} />;
|
|
29
|
-
return <CloseIcon color={color} />;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export const SocialShareTemplate = (props) => {
|
|
33
|
-
const {
|
|
34
|
-
fbUrl = "",
|
|
35
|
-
twitterUrl = "",
|
|
36
|
-
linkedinUrl = "",
|
|
37
|
-
whatsappUrl = "",
|
|
38
|
-
vertical = false,
|
|
39
|
-
theme,
|
|
40
|
-
iconType = "plain-color-svg",
|
|
41
|
-
open = false
|
|
42
|
-
} = props;
|
|
43
|
-
if (!fbUrl && !twitterUrl && !linkedinUrl && !whatsappUrl) return null;
|
|
44
|
-
const iconShade = getTextColor(theme);
|
|
45
|
-
const iconColor = iconShade === "dark" ? "#000000" : "#ffffff";
|
|
46
|
-
const options = { fbUrl, twitterUrl, linkedinUrl, whatsappUrl, iconColor, iconType };
|
|
47
|
-
const iconsList = socialShareData(options);
|
|
48
|
-
const [isOpen, setIsOpen] = useState(open);
|
|
49
|
-
const verticalShare = vertical ? "vertical" : "horizontal";
|
|
50
|
-
|
|
51
|
-
useEffect(() => setIsOpen(open), [open]);
|
|
52
|
-
|
|
53
|
-
const shareIcon = () => {
|
|
54
|
-
return (
|
|
55
|
-
<li styleName="icon" key="horizontal-0">
|
|
56
|
-
<div onClick={clickHandler}>{getActionIcon(isOpen, iconColor)}</div>
|
|
57
|
-
</li>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const clickHandler = () => {
|
|
62
|
-
setIsOpen(!isOpen);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const popUpWrapper = () => {
|
|
66
|
-
return (
|
|
67
|
-
<div styleName="tablet-view">
|
|
68
|
-
{!isOpen && <ul styleName={`wrapper ${isOpen ? "open" : ""}`}>{shareIcon()}</ul>}
|
|
69
|
-
{isOpen && (
|
|
70
|
-
<>
|
|
71
|
-
<div styleName="overlay" onClick={clickHandler}>
|
|
72
|
-
<div className="arr--popup" styleName={`popup-wrapper ${isOpen ? "popup-open" : ""}`}>
|
|
73
|
-
<SocialSharePopup
|
|
74
|
-
fbUrl={fbUrl}
|
|
75
|
-
twitterUrl={twitterUrl}
|
|
76
|
-
linkedinUrl={linkedinUrl}
|
|
77
|
-
whatsappUrl={whatsappUrl}
|
|
78
|
-
iconType={iconType}
|
|
79
|
-
theme={theme}
|
|
80
|
-
closePopup={() => {
|
|
81
|
-
setIsOpen(false);
|
|
82
|
-
}}
|
|
83
|
-
/>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</>
|
|
87
|
-
)}
|
|
88
|
-
</div>
|
|
89
|
-
);
|
|
90
|
-
};
|
|
91
|
-
const popupStyle = !isOpen && vertical ? "tablet-view-popup" : "";
|
|
92
|
-
return (
|
|
93
|
-
<div data-test-id={verticalShare} className="arr--share" styleName={`${iconShade} ${verticalShare} ${popupStyle}`}>
|
|
94
|
-
<div styleName="desktop-view">
|
|
95
|
-
<ul
|
|
96
|
-
data-test-id={camelcase(iconType)}
|
|
97
|
-
className="desktop-share-wrapper"
|
|
98
|
-
styleName={`wrapper ${isOpen ? "open" : ""}`}>
|
|
99
|
-
{shareIcon()}
|
|
100
|
-
{iconsList.map((iconData, index) => (
|
|
101
|
-
<ShareItem {...iconData} key={iconData.name} dataTestId={`card-share-${index}`} />
|
|
102
|
-
))}
|
|
103
|
-
</ul>
|
|
104
|
-
</div>
|
|
105
|
-
{popUpWrapper()}
|
|
106
|
-
</div>
|
|
107
|
-
);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
SocialShareTemplate.propTypes = {
|
|
111
|
-
fbUrl: PropTypes.string,
|
|
112
|
-
twitterUrl: PropTypes.string,
|
|
113
|
-
linkedinUrl: PropTypes.string,
|
|
114
|
-
whatsappUrl: PropTypes.string,
|
|
115
|
-
vertical: PropTypes.bool,
|
|
116
|
-
theme: PropTypes.string,
|
|
117
|
-
iconType: PropTypes.string,
|
|
118
|
-
open: PropTypes.boolean
|
|
119
|
-
};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Twitter } from "../../Svgs/SocialIcons/twitter";
|
|
3
|
-
import { Facebook } from "../../Svgs/SocialIcons/facebook";
|
|
4
|
-
import { LinkedIn } from "../../Svgs/SocialIcons/linkedin";
|
|
5
|
-
import { WhatsApp } from "../../Svgs/SocialIcons/whatsapp";
|
|
6
|
-
|
|
7
|
-
const getSocialIcons = (color, iconType) => {
|
|
8
|
-
switch (iconType) {
|
|
9
|
-
case "plain-color-svg":
|
|
10
|
-
return {
|
|
11
|
-
facebook: <Facebook key={iconType} />,
|
|
12
|
-
twitter: <Twitter key={iconType} />,
|
|
13
|
-
linkedin: <LinkedIn key={iconType} />,
|
|
14
|
-
whatsapp: <WhatsApp key={iconType} />
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
default:
|
|
18
|
-
return {
|
|
19
|
-
facebook: <Facebook color={color} key={iconType} />,
|
|
20
|
-
twitter: <Twitter color={color} key={iconType} />,
|
|
21
|
-
linkedin: <LinkedIn color={color} key={iconType} />,
|
|
22
|
-
whatsapp: <WhatsApp color={color} key={iconType} />
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const socialShareData = ({ fbUrl, twitterUrl, linkedinUrl, whatsappUrl, iconColor, iconType = "plain-svg" }) => {
|
|
28
|
-
const socialIcons = getSocialIcons(iconColor, iconType);
|
|
29
|
-
const getOptions = () => {
|
|
30
|
-
return [
|
|
31
|
-
{
|
|
32
|
-
name: "facebook",
|
|
33
|
-
url: fbUrl,
|
|
34
|
-
icon: socialIcons["facebook"],
|
|
35
|
-
text: "Facebook",
|
|
36
|
-
bgColor: "#4e71a8",
|
|
37
|
-
alt: "fb icon"
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "twitter",
|
|
41
|
-
url: twitterUrl,
|
|
42
|
-
icon: socialIcons["twitter"],
|
|
43
|
-
text: "Twitter",
|
|
44
|
-
bgColor: "#1db7eb",
|
|
45
|
-
alt: "twitter icon"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
name: "linkedin",
|
|
49
|
-
url: linkedinUrl,
|
|
50
|
-
icon: socialIcons["linkedin"],
|
|
51
|
-
text: "LinkedIn",
|
|
52
|
-
bgColor: "#0077B5",
|
|
53
|
-
alt: "linkedin icon"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
name: "whatsapp",
|
|
57
|
-
url: whatsappUrl,
|
|
58
|
-
icon: socialIcons["whatsapp"],
|
|
59
|
-
text: "Whatsapp",
|
|
60
|
-
bgColor: "#25d366",
|
|
61
|
-
alt: "whatsapp share"
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
};
|
|
65
|
-
return getOptions();
|
|
66
|
-
};
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
@import "../../../../assets/stylesheets/mixins.scss";
|
|
2
|
-
|
|
3
|
-
.desktop-view {
|
|
4
|
-
display: none;
|
|
5
|
-
@include desktop {
|
|
6
|
-
display: flex;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.tablet-view {
|
|
11
|
-
@include desktop {
|
|
12
|
-
display: none;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
.wrapper {
|
|
16
|
-
list-style: none;
|
|
17
|
-
align-items: center;
|
|
18
|
-
transition: all 0.3s;
|
|
19
|
-
z-index: var(--z-index-1);
|
|
20
|
-
flex-direction: row-reverse;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.horizontal .wrapper {
|
|
25
|
-
display: flex;
|
|
26
|
-
max-width: var(--arrow-fs-big);
|
|
27
|
-
@include desktop {
|
|
28
|
-
max-width: 120px;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.vertical .wrapper {
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
border-radius: 50%;
|
|
35
|
-
max-height: var(--arrow-fs-big);
|
|
36
|
-
@include desktop {
|
|
37
|
-
position: inherit;
|
|
38
|
-
right: var(--arrow-spacing-l);
|
|
39
|
-
border-radius: unset;
|
|
40
|
-
max-height: 132px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.light.vertical .wrapper {
|
|
45
|
-
background-color: var(--arrow-c-dark);
|
|
46
|
-
box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.17);
|
|
47
|
-
@include desktop {
|
|
48
|
-
background-color: inherit;
|
|
49
|
-
box-shadow: unset;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.dark.vertical .wrapper {
|
|
54
|
-
background-color: var(--arrow-c-light);
|
|
55
|
-
box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.17);
|
|
56
|
-
@include desktop {
|
|
57
|
-
background-color: inherit;
|
|
58
|
-
box-shadow: unset;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.icon {
|
|
63
|
-
padding: var(--arrow-spacing-xs);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.wrapper.open {
|
|
67
|
-
@include desktop {
|
|
68
|
-
border-radius: var(--arrow-spacing-xxs);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.light .wrapper.open {
|
|
73
|
-
@include desktop {
|
|
74
|
-
border: solid 0.6px var(--arrow-c-invert-mono7);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.dark .wrapper.open {
|
|
79
|
-
@include desktop {
|
|
80
|
-
border: solid 0.6px var(--arrow-c-mono7);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.horizontal .wrapper.open {
|
|
85
|
-
@include desktop {
|
|
86
|
-
max-width: 240px;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.vertical .wrapper.open {
|
|
91
|
-
@include desktop {
|
|
92
|
-
max-height: 240px;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.icon:hover {
|
|
97
|
-
@include tablet {
|
|
98
|
-
background-color: var(--arrow-c-mono7);
|
|
99
|
-
border-radius: 50%;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.popup-wrapper {
|
|
104
|
-
position: fixed;
|
|
105
|
-
bottom: 0;
|
|
106
|
-
right: 0;
|
|
107
|
-
left: 0;
|
|
108
|
-
width: 100%;
|
|
109
|
-
@include tablet {
|
|
110
|
-
position: absolute;
|
|
111
|
-
width: 328px;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.popup-wrapper.popup-open {
|
|
116
|
-
@include mobile {
|
|
117
|
-
transition: transform 0.6s;
|
|
118
|
-
}
|
|
119
|
-
@include tablet {
|
|
120
|
-
top: 50%;
|
|
121
|
-
left: 50%;
|
|
122
|
-
transform: translate(-50%, -50%);
|
|
123
|
-
-ms-transform: translateX(-50%) translateY(-50%);
|
|
124
|
-
-webkit-transform: translate(-50%, -50%);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
html[dir="rtl"] {
|
|
129
|
-
.popup-wrapper.popup-open {
|
|
130
|
-
@include tablet {
|
|
131
|
-
right: 50%;
|
|
132
|
-
transform: translate(50%, -50%);
|
|
133
|
-
-ms-transform: translateX(50%) translateY(-50%);
|
|
134
|
-
-webkit-transform: translate(50%, -50%);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.overlay {
|
|
140
|
-
left: 0;
|
|
141
|
-
top: 0;
|
|
142
|
-
right: 0;
|
|
143
|
-
bottom: 0;
|
|
144
|
-
z-index: 1100;
|
|
145
|
-
overflow-y: scroll;
|
|
146
|
-
position: fixed;
|
|
147
|
-
@include desktop {
|
|
148
|
-
position: initial;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.light .overlay {
|
|
153
|
-
background-color: rgba(13, 13, 13, 0.77);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.dark .overlay {
|
|
157
|
-
background-color: rgba(255, 255, 255, 0.77);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.tablet-view-popup:global(.arr--share) {
|
|
161
|
-
position: sticky;
|
|
162
|
-
position: -webkit-sticky;
|
|
163
|
-
bottom: 56px;
|
|
164
|
-
height: 0;
|
|
165
|
-
text-align: center;
|
|
166
|
-
@include tablet {
|
|
167
|
-
right: 24px;
|
|
168
|
-
@include desktop {
|
|
169
|
-
bottom: unset;
|
|
170
|
-
height: unset;
|
|
171
|
-
text-align: unset;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { shallow } from "enzyme";
|
|
3
|
-
import { SocialShareTemplate } from "./index";
|
|
4
|
-
|
|
5
|
-
describe("Social Share Template", () => {
|
|
6
|
-
it("Should render horizontal social share template", () => {
|
|
7
|
-
const data = {
|
|
8
|
-
fbUrl: "https://www.facebook.com",
|
|
9
|
-
twitterUrl: "https://twitter.com/",
|
|
10
|
-
linkedinUrl: "https://twitter.com/",
|
|
11
|
-
whatsappUrl: "https://twitter.com/",
|
|
12
|
-
theme: "#ffff",
|
|
13
|
-
iconType: "plain-svg"
|
|
14
|
-
};
|
|
15
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
16
|
-
expect(wrapper).toMatchSnapshot();
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it("Should render vertical social share template", () => {
|
|
20
|
-
const data = {
|
|
21
|
-
fbUrl: "https://www.facebook.com",
|
|
22
|
-
twitterUrl: "https://twitter.com/",
|
|
23
|
-
linkedinUrl: "https://twitter.com/",
|
|
24
|
-
whatsappUrl: "https://twitter.com/",
|
|
25
|
-
theme: "#ffff",
|
|
26
|
-
iconType: "plain-svg",
|
|
27
|
-
vertical: true
|
|
28
|
-
};
|
|
29
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
30
|
-
expect(wrapper).toMatchSnapshot();
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it("Should not render social share template if url is not passed", () => {
|
|
34
|
-
const data = {
|
|
35
|
-
fbUrl: "",
|
|
36
|
-
twitterUrl: "",
|
|
37
|
-
linkedinUrl: "",
|
|
38
|
-
whatsappUrl: "",
|
|
39
|
-
theme: "#ffff",
|
|
40
|
-
iconType: "plain-svg",
|
|
41
|
-
vertical: true
|
|
42
|
-
};
|
|
43
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
44
|
-
expect(wrapper).toMatchSnapshot();
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it("Should not render facebook icon if url not passed", () => {
|
|
48
|
-
const data = {
|
|
49
|
-
fbUrl: "",
|
|
50
|
-
twitterUrl: "https://twitter.com/",
|
|
51
|
-
linkedinUrl: "https://twitter.com/",
|
|
52
|
-
whatsappUrl: "https://twitter.com/",
|
|
53
|
-
theme: "#ffff",
|
|
54
|
-
iconType: "plain-svg",
|
|
55
|
-
vertical: true
|
|
56
|
-
};
|
|
57
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
58
|
-
expect(wrapper).toMatchSnapshot();
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
it("Should not render twitter icon if url not passed", () => {
|
|
62
|
-
const data = {
|
|
63
|
-
fbUrl: "https://twitter.com/",
|
|
64
|
-
twitterUrl: "",
|
|
65
|
-
linkedinUrl: "https://twitter.com/",
|
|
66
|
-
whatsappUrl: "https://twitter.com/",
|
|
67
|
-
theme: "#ffff",
|
|
68
|
-
iconType: "plain-svg",
|
|
69
|
-
vertical: true
|
|
70
|
-
};
|
|
71
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
72
|
-
expect(wrapper).toMatchSnapshot();
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
it("Should not render whatsapp icon if url not passed", () => {
|
|
76
|
-
const data = {
|
|
77
|
-
fbUrl: "https://twitter.com/",
|
|
78
|
-
twitterUrl: "https://twitter.com/",
|
|
79
|
-
linkedinUrl: "https://twitter.com/",
|
|
80
|
-
whatsappUrl: "",
|
|
81
|
-
theme: "#ffff",
|
|
82
|
-
iconType: "plain-svg",
|
|
83
|
-
vertical: true
|
|
84
|
-
};
|
|
85
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
86
|
-
expect(wrapper).toMatchSnapshot();
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it("Should not render linkedin icon if url not passed", () => {
|
|
90
|
-
const data = {
|
|
91
|
-
fbUrl: "https://twitter.com/",
|
|
92
|
-
twitterUrl: "https://twitter.com/",
|
|
93
|
-
linkedinUrl: "",
|
|
94
|
-
whatsappUrl: "https://twitter.com/",
|
|
95
|
-
theme: "#ffff",
|
|
96
|
-
iconType: "plain-svg",
|
|
97
|
-
vertical: true
|
|
98
|
-
};
|
|
99
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
100
|
-
expect(wrapper).toMatchSnapshot();
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it("Should render template if theme and icon is not passed", () => {
|
|
104
|
-
const data = {
|
|
105
|
-
fbUrl: "https://twitter.com/",
|
|
106
|
-
twitterUrl: "https://twitter.com/",
|
|
107
|
-
linkedinUrl: "https://twitter.com/",
|
|
108
|
-
whatsappUrl: "https://twitter.com/",
|
|
109
|
-
theme: "",
|
|
110
|
-
iconType: "plain-svg",
|
|
111
|
-
vertical: true
|
|
112
|
-
};
|
|
113
|
-
const wrapper = shallow(<SocialShareTemplate {...data} />);
|
|
114
|
-
expect(wrapper).toMatchSnapshot();
|
|
115
|
-
});
|
|
116
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { withStore } from "../../../../storybook";
|
|
3
|
-
import { SocialShareTemplate } from "./index";
|
|
4
|
-
import Readme from "./README.md";
|
|
5
|
-
import { boolean } from "@storybook/addon-knobs";
|
|
6
|
-
|
|
7
|
-
withStore("Molecules/Social Share Template", {}, Readme)
|
|
8
|
-
.add("Horizontal", () => {
|
|
9
|
-
const props = {
|
|
10
|
-
fbUrl: "https://www.facebook.com",
|
|
11
|
-
fullUrl:
|
|
12
|
-
"https://ace-web.qtstage.io/anything/recent-stories/newsready-player-one-review-spielberg-spins-a-dizzying-vr-yarn",
|
|
13
|
-
iconType: "plain-svg",
|
|
14
|
-
linkedinUrl: "https://www.linkedin.com",
|
|
15
|
-
mailtoUrl:
|
|
16
|
-
"mailto:?subject=Ready%20Player%20One%20review%20%E2%80%93%20Spielberg%C2%A0&body=https%3A%2F%2Face-web.qtstage.io%2Fanything%2Frecent-stories%2Fnews%2Fready-player-one-review-spielberg-spins-a-dizzying-vr-yarn",
|
|
17
|
-
publisherUrl: undefined,
|
|
18
|
-
theme: "#ffffff",
|
|
19
|
-
title: "Ready Player One review – Spielberg ",
|
|
20
|
-
twitterUrl: "https://twitter.com"
|
|
21
|
-
};
|
|
22
|
-
return <SocialShareTemplate {...props} open={boolean("open", false)} />;
|
|
23
|
-
})
|
|
24
|
-
.add("Vertical", () => {
|
|
25
|
-
const props = {
|
|
26
|
-
fbUrl: "https://www.facebook.com",
|
|
27
|
-
fullUrl:
|
|
28
|
-
"https://ace-web.qtstage.io/anything/recent-stories/newsready-player-one-review-spielberg-spins-a-dizzying-vr-yarn",
|
|
29
|
-
iconType: "plain-svg",
|
|
30
|
-
linkedinUrl: "https://www.linkedin.com",
|
|
31
|
-
mailtoUrl:
|
|
32
|
-
"mailto:?subject=Ready%20Player%20One%20review%20%E2%80%93%20Spielberg%C2%A0&body=https%3A%2F%2Face-web.qtstage.io%2Fanything%2Frecent-stories%2Fnews%2Fready-player-one-review-spielberg-spins-a-dizzying-vr-yarn",
|
|
33
|
-
publisherUrl: undefined,
|
|
34
|
-
theme: "#ffffff",
|
|
35
|
-
title: "Ready Player One review – Spielberg ",
|
|
36
|
-
twitterUrl: "https://twitter.com",
|
|
37
|
-
vertical: true
|
|
38
|
-
};
|
|
39
|
-
return <SocialShareTemplate {...props} open={boolean("open", false)} />;
|
|
40
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# StoryCard
|
|
2
|
-
|
|
3
|
-
The _StoryCard_ component is a basic [molecule](https://bradfrost.com/blog/post/atomic-web-design/#molecules) used to represent a story within a Row.
|
|
4
|
-
|
|
5
|
-
The _StoryCard_ can be composible based on it's children(Atoms) or using StoryCardContent component(molecule).
|
|
6
|
-
|
|
7
|
-
## Usage
|
|
8
|
-
|
|
9
|
-
### Default Story Card
|
|
10
|
-
|
|
11
|
-
```jsx
|
|
12
|
-
<StoryCard story={story} />
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### Horizontal Story Card
|
|
16
|
-
|
|
17
|
-
```jsx
|
|
18
|
-
<StoryCard story={story} isHorizontal />
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
### Story Card w/ Image & Headline
|
|
22
|
-
|
|
23
|
-
```jsx
|
|
24
|
-
<StoryCard story={story}>
|
|
25
|
-
<HeroImage story={story} />
|
|
26
|
-
<Headline story={story} />
|
|
27
|
-
</StoryCard>
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Story Card w/ Image & Timestamp
|
|
31
|
-
|
|
32
|
-
```jsx
|
|
33
|
-
<StoryCard story={story}>
|
|
34
|
-
<Headline story={story} />
|
|
35
|
-
<TimeStamp story={story} />
|
|
36
|
-
</StoryCard>
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Story Card w/ Headline, Author & Subheadline
|
|
40
|
-
|
|
41
|
-
```jsx
|
|
42
|
-
<StoryCard story={story}>
|
|
43
|
-
<Headline story={story} />
|
|
44
|
-
<Author story={story} />
|
|
45
|
-
<Subheadline story={story} />
|
|
46
|
-
</StoryCard>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Story Card w/ Image, Headline, Author+Timestamp & Subheadline
|
|
50
|
-
|
|
51
|
-
```jsx
|
|
52
|
-
<StoryCard story={story}>
|
|
53
|
-
<HeroImage story={story} />
|
|
54
|
-
<Headline story={story} />
|
|
55
|
-
<AuthorWithTime story={story} />
|
|
56
|
-
<Subheadline story={story} />
|
|
57
|
-
</StoryCard>
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### Story Card using Story content
|
|
61
|
-
|
|
62
|
-
```jsx
|
|
63
|
-
<StoryCard story={story}>
|
|
64
|
-
<HeroImage story={story} />
|
|
65
|
-
<StorycardContent story={story} />
|
|
66
|
-
</StoryCard>
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### Story Card using aspect ratio
|
|
70
|
-
|
|
71
|
-
```jsx
|
|
72
|
-
<StoryCard story={story} aspectRatio={[4, 3]} />
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
<!-- PROPS -->
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# StoryCard with background image
|
|
2
|
-
|
|
3
|
-
The _StoryCard_ component with background image used to represent a story within a Row.
|
|
4
|
-
|
|
5
|
-
The _StoryCard_ can be composible based on it's children(Atoms, molecule).
|
|
6
|
-
|
|
7
|
-
### Story Card with background image
|
|
8
|
-
|
|
9
|
-
```jsx
|
|
10
|
-
<StoryCard story={story} useImageAsBackground>
|
|
11
|
-
<HeroImage story={story} />
|
|
12
|
-
<StorycardContent story={story} />
|
|
13
|
-
</StoryCard>
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
### Story Card with background image and overlap with content
|
|
17
|
-
|
|
18
|
-
```jsx
|
|
19
|
-
<StoryCard story={story} bgImgContentOverlap>
|
|
20
|
-
<HeroImage story={story} />
|
|
21
|
-
<StorycardContent story={story} />
|
|
22
|
-
</StoryCard>
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
<!-- PROPS -->
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# StoryCard
|
|
2
|
-
|
|
3
|
-
The _StoryCard_ component with different kinds of borders and box shadow modules used to represent a story within a Row with borders.
|
|
4
|
-
|
|
5
|
-
The _StoryCard_ can be composible based on it's children(Atoms).
|
|
6
|
-
|
|
7
|
-
### Default Story Card with Full Border
|
|
8
|
-
|
|
9
|
-
```jsx
|
|
10
|
-
<StoryCard story={story} border="full" />
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
### Default Story Card with Border Bottom
|
|
14
|
-
|
|
15
|
-
```jsx
|
|
16
|
-
<StoryCard story={story} border="bottom" />
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Default Story Card with Box Shadow
|
|
20
|
-
|
|
21
|
-
```jsx
|
|
22
|
-
<StoryCard story={story} border="box" />
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
### StoryCard using StoryCardContent
|
|
26
|
-
|
|
27
|
-
```jsx
|
|
28
|
-
<StoryCard story={story} border="full">
|
|
29
|
-
<HeroImage story={story} />
|
|
30
|
-
<StorycardContent story={story}>
|
|
31
|
-
<Headline story={story} />
|
|
32
|
-
<AuthorWithTime story={story} />
|
|
33
|
-
</StorycardContent>
|
|
34
|
-
</StoryCard>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### StoryCard using StoryCardContent border Box and fullBleed False
|
|
38
|
-
|
|
39
|
-
```jsx
|
|
40
|
-
<StoryCard story={story} border="box">
|
|
41
|
-
<HeroImage story={story} FullBleed={false} />
|
|
42
|
-
<StorycardContent story={story}>
|
|
43
|
-
<Headline story={story} />
|
|
44
|
-
<AuthorWithTime story={story} />
|
|
45
|
-
</StorycardContent>
|
|
46
|
-
</StoryCard>
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
### Horizontal StoryCard using StoryCardContent border full
|
|
50
|
-
|
|
51
|
-
```jsx
|
|
52
|
-
<StoryCard story={story} border="full" isHorizontal>
|
|
53
|
-
<HeroImage story={story} />
|
|
54
|
-
<StorycardContent story={story}>
|
|
55
|
-
<Headline story={story} />
|
|
56
|
-
<AuthorWithTime story={story} />
|
|
57
|
-
</StorycardContent>
|
|
58
|
-
</StoryCard>
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
<!-- PROPS -->
|