@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.
Files changed (452) hide show
  1. package/esm/components/Atoms/AdPlaceholder/ads.m.css +13 -0
  2. package/esm/components/Atoms/AdPlaceholder/index.js +28 -0
  3. package/esm/components/Atoms/Author/README.md +19 -0
  4. package/esm/components/Atoms/Author/author.m.css +65 -0
  5. package/esm/components/Atoms/Author/index.js +109 -0
  6. package/esm/components/Atoms/Author/stories.js +28 -0
  7. package/esm/components/Atoms/AuthorCard/README.md +47 -0
  8. package/esm/components/Atoms/AuthorCard/author-card.m.css +174 -0
  9. package/esm/components/Atoms/AuthorCard/author-card.test.js +93 -0
  10. package/esm/components/Atoms/AuthorCard/index.js +133 -0
  11. package/esm/components/Atoms/AuthorCard/stories.js +68 -0
  12. package/esm/components/Atoms/AuthorImage/README.md +31 -0
  13. package/esm/components/Atoms/AuthorImage/author-image.m.css +53 -0
  14. package/esm/components/Atoms/AuthorImage/index.js +69 -0
  15. package/esm/components/Atoms/AuthorImage/stories.js +26 -0
  16. package/esm/components/Atoms/AuthorWithTimestamp/README.md +12 -0
  17. package/esm/components/Atoms/AuthorWithTimestamp/author-with-timestamp.m.css +42 -0
  18. package/esm/components/Atoms/AuthorWithTimestamp/index.js +95 -0
  19. package/esm/components/Atoms/AuthorWithTimestamp/stories.js +22 -0
  20. package/esm/components/Atoms/BulletPoint/README.md +9 -0
  21. package/esm/components/Atoms/BulletPoint/bullet-point.m.css +14 -0
  22. package/esm/components/Atoms/BulletPoint/index.js +27 -0
  23. package/esm/components/Atoms/BulletPoint/stories.js +9 -0
  24. package/esm/components/Atoms/CaptionAttribution/README.md +15 -0
  25. package/esm/components/Atoms/CaptionAttribution/caption-attribution.m.css +40 -0
  26. package/esm/components/Atoms/CaptionAttribution/caption-attribution.test.js +50 -0
  27. package/esm/components/Atoms/CaptionAttribution/index.js +66 -0
  28. package/esm/components/Atoms/CaptionAttribution/stories.js +47 -0
  29. package/esm/components/Atoms/CollectionName/README.md +11 -0
  30. package/esm/components/Atoms/CollectionName/collection-name.m.css +94 -0
  31. package/esm/components/Atoms/CollectionName/index.js +152 -0
  32. package/esm/components/Atoms/CollectionName/stories.js +41 -0
  33. package/esm/components/Atoms/Divider/__snapshots__/divider.test.js.snap +18 -0
  34. package/esm/components/Atoms/Divider/divider.m.css +6 -0
  35. package/esm/components/Atoms/Divider/divider.test.js +9 -0
  36. package/esm/components/Atoms/Divider/index.js +34 -0
  37. package/esm/components/Atoms/Dot/dot.js +39 -0
  38. package/esm/components/Atoms/Dot/dot.m.css +6 -0
  39. package/esm/components/Atoms/ExtendedLoadMore/README.md +9 -0
  40. package/esm/components/Atoms/ExtendedLoadMore/__snapshots__/extended-load-more.test.js.snap +11 -0
  41. package/esm/components/Atoms/ExtendedLoadMore/extended-load-more.test.js +14 -0
  42. package/esm/components/Atoms/ExtendedLoadMore/index.js +183 -0
  43. package/esm/components/Atoms/FallbackImage/fallback.m.css +33 -0
  44. package/esm/components/Atoms/FallbackImage/index.js +29 -0
  45. package/esm/components/Atoms/Headline/README.md +7 -0
  46. package/esm/components/Atoms/Headline/headline.m.css +26 -0
  47. package/esm/components/Atoms/Headline/index.js +97 -0
  48. package/esm/components/Atoms/Headline/stories.js +39 -0
  49. package/esm/components/Atoms/HeroImage/README.md +13 -0
  50. package/esm/components/Atoms/HeroImage/hero-image.m.css +72 -0
  51. package/esm/components/Atoms/HeroImage/index.js +175 -0
  52. package/esm/components/Atoms/HeroImage/stories.js +23 -0
  53. package/esm/components/Atoms/Hyperlink/hyperlink.m.css +10 -0
  54. package/esm/components/Atoms/Hyperlink/index.js +20 -0
  55. package/esm/components/Atoms/LoadMoreTarget/index.js +24 -0
  56. package/esm/components/Atoms/Loadmore/README.md +0 -0
  57. package/esm/components/Atoms/Loadmore/__snapshots__/load-more.test.js.snap +25 -0
  58. package/esm/components/Atoms/Loadmore/index.js +61 -0
  59. package/esm/components/Atoms/Loadmore/load-more.m.css +23 -0
  60. package/esm/components/Atoms/Loadmore/load-more.test.js +26 -0
  61. package/esm/components/Atoms/Loadmore/stories.js +17 -0
  62. package/esm/components/Atoms/MagazineCoverImage/README.md +21 -0
  63. package/esm/components/Atoms/MagazineCoverImage/index.js +58 -0
  64. package/esm/components/Atoms/MagazineCoverImage/magazine-cover-image.m.css +24 -0
  65. package/esm/components/Atoms/MagazineCoverImage/stories.js +22 -0
  66. package/esm/components/Atoms/PremiumStoryIcon/index.js +54 -0
  67. package/esm/components/Atoms/PublishDetail/README.md +15 -0
  68. package/esm/components/Atoms/PublishDetail/index.js +104 -0
  69. package/esm/components/Atoms/PublishDetail/publish-details.m.css +47 -0
  70. package/esm/components/Atoms/PublishDetail/publish-details.test.js +38 -0
  71. package/esm/components/Atoms/PublishDetail/stories.js +20 -0
  72. package/esm/components/Atoms/ReadTime/README.md +13 -0
  73. package/esm/components/Atoms/ReadTime/index.js +46 -0
  74. package/esm/components/Atoms/ReadTime/read-time.m.css +25 -0
  75. package/esm/components/Atoms/ReadTime/read-time.test.js +29 -0
  76. package/esm/components/Atoms/ReadTime/stories.js +15 -0
  77. package/esm/components/Atoms/ScrollSnap/SliderArrow/index.js +64 -0
  78. package/esm/components/Atoms/ScrollSnap/SliderArrow/slider-arrow.m.css +45 -0
  79. package/esm/components/Atoms/ScrollSnap/SliderIndicator/index.js +53 -0
  80. package/esm/components/Atoms/ScrollSnap/SliderIndicator/slider-indicator.m.css +71 -0
  81. package/esm/components/Atoms/ScrollSnap/index.js +165 -0
  82. package/esm/components/Atoms/ScrollSnap/scroll-snap.m.css +27 -0
  83. package/esm/components/Atoms/SectionTag/README.md +11 -0
  84. package/esm/components/Atoms/SectionTag/index.js +79 -0
  85. package/esm/components/Atoms/SectionTag/section.m.css +53 -0
  86. package/esm/components/Atoms/SectionTag/stories.js +22 -0
  87. package/esm/components/Atoms/SocialSharePopup/README.md +25 -0
  88. package/esm/components/Atoms/SocialSharePopup/__snapshots__/social-share-popup.test.js.snap +653 -0
  89. package/esm/components/Atoms/SocialSharePopup/index.js +100 -0
  90. package/esm/components/Atoms/SocialSharePopup/social-share-popup.m.css +109 -0
  91. package/esm/components/Atoms/SocialSharePopup/social-share-popup.test.js +87 -0
  92. package/esm/components/Atoms/SocialSharePopup/stories.js +18 -0
  93. package/esm/components/Atoms/StoryElements/AlsoRead/README.md +49 -0
  94. package/esm/components/Atoms/StoryElements/AlsoRead/also-read.m.css +135 -0
  95. package/esm/components/Atoms/StoryElements/AlsoRead/also-read.test.js +97 -0
  96. package/esm/components/Atoms/StoryElements/AlsoRead/index.js +156 -0
  97. package/esm/components/Atoms/StoryElements/AlsoRead/stories.js +47 -0
  98. package/esm/components/Atoms/StoryElements/Attachment/README.md +21 -0
  99. package/esm/components/Atoms/StoryElements/Attachment/__snapshots__/attachment.test.js.snap +47 -0
  100. package/esm/components/Atoms/StoryElements/Attachment/attachment.m.css +125 -0
  101. package/esm/components/Atoms/StoryElements/Attachment/attachment.test.js +66 -0
  102. package/esm/components/Atoms/StoryElements/Attachment/index.js +86 -0
  103. package/esm/components/Atoms/StoryElements/Attachment/stories.js +62 -0
  104. package/esm/components/Atoms/StoryElements/BigFact/README.md +9 -0
  105. package/esm/components/Atoms/StoryElements/BigFact/big-fact.m.css +41 -0
  106. package/esm/components/Atoms/StoryElements/BigFact/big-fact.test.js +28 -0
  107. package/esm/components/Atoms/StoryElements/BigFact/index.js +56 -0
  108. package/esm/components/Atoms/StoryElements/BigFact/stories.js +11 -0
  109. package/esm/components/Atoms/StoryElements/BlockQuote/README.md +49 -0
  110. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/curve.js +32 -0
  111. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/edge.js +32 -0
  112. package/esm/components/Atoms/StoryElements/BlockQuote/Svg/icon.m.css +4 -0
  113. package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.m.css +161 -0
  114. package/esm/components/Atoms/StoryElements/BlockQuote/block-quote.test.js +71 -0
  115. package/esm/components/Atoms/StoryElements/BlockQuote/index.js +154 -0
  116. package/esm/components/Atoms/StoryElements/BlockQuote/stories.js +42 -0
  117. package/esm/components/Atoms/StoryElements/Blurb/README.md +43 -0
  118. package/esm/components/Atoms/StoryElements/Blurb/blurb.m.css +55 -0
  119. package/esm/components/Atoms/StoryElements/Blurb/blurb.test.js +76 -0
  120. package/esm/components/Atoms/StoryElements/Blurb/index.js +96 -0
  121. package/esm/components/Atoms/StoryElements/Blurb/stories.js +38 -0
  122. package/esm/components/Atoms/StoryElements/Image/README.md +13 -0
  123. package/esm/components/Atoms/StoryElements/Image/image.m.css +21 -0
  124. package/esm/components/Atoms/StoryElements/Image/image.test.js +19 -0
  125. package/esm/components/Atoms/StoryElements/Image/index.js +87 -0
  126. package/esm/components/Atoms/StoryElements/Image/stories.js +28 -0
  127. package/esm/components/Atoms/StoryElements/ImageSlideshow/README.md +13 -0
  128. package/esm/components/Atoms/StoryElements/ImageSlideshow/image-slideshow.m.css +49 -0
  129. package/esm/components/Atoms/StoryElements/ImageSlideshow/index.js +82 -0
  130. package/esm/components/Atoms/StoryElements/ImageSlideshow/stories.js +31 -0
  131. package/esm/components/Atoms/StoryElements/QuestionAnswer/README.md +56 -0
  132. package/esm/components/Atoms/StoryElements/QuestionAnswer/index.js +176 -0
  133. package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.m.css +106 -0
  134. package/esm/components/Atoms/StoryElements/QuestionAnswer/question-answer.test.js +130 -0
  135. package/esm/components/Atoms/StoryElements/QuestionAnswer/stories.js +102 -0
  136. package/esm/components/Atoms/StoryElements/Quote/README.md +41 -0
  137. package/esm/components/Atoms/StoryElements/Quote/index.js +87 -0
  138. package/esm/components/Atoms/StoryElements/Quote/quote.m.css +111 -0
  139. package/esm/components/Atoms/StoryElements/Quote/quote.test.js +61 -0
  140. package/esm/components/Atoms/StoryElements/Quote/stories.js +39 -0
  141. package/esm/components/Atoms/StoryElements/Reference/README.md +9 -0
  142. package/esm/components/Atoms/StoryElements/Reference/index.js +80 -0
  143. package/esm/components/Atoms/StoryElements/Reference/reference.m.css +42 -0
  144. package/esm/components/Atoms/StoryElements/Reference/reference.test.js +38 -0
  145. package/esm/components/Atoms/StoryElements/Reference/stories.js +16 -0
  146. package/esm/components/Atoms/StoryElements/StoryElement/README.md +10 -0
  147. package/esm/components/Atoms/StoryElements/StoryElement/index.js +30 -0
  148. package/esm/components/Atoms/StoryElements/StoryElement/stories.js +17 -0
  149. package/esm/components/Atoms/StoryElements/StoryElement/storyelement.test.js +14 -0
  150. package/esm/components/Atoms/StoryElements/Summary/README.md +56 -0
  151. package/esm/components/Atoms/StoryElements/Summary/index.js +98 -0
  152. package/esm/components/Atoms/StoryElements/Summary/stories.js +41 -0
  153. package/esm/components/Atoms/StoryElements/Summary/summary.m.css +121 -0
  154. package/esm/components/Atoms/StoryElements/Summary/summary.test.js +83 -0
  155. package/esm/components/Atoms/StoryElements/Text/README.md +32 -0
  156. package/esm/components/Atoms/StoryElements/Text/index.js +74 -0
  157. package/esm/components/Atoms/StoryElements/Text/stories.js +56 -0
  158. package/esm/components/Atoms/StoryElements/Text/text.m.css +78 -0
  159. package/esm/components/Atoms/StoryElements/Text/text.test.js +70 -0
  160. package/esm/components/Atoms/StoryElements/Video/README.md +9 -0
  161. package/esm/components/Atoms/StoryElements/Video/index.js +37 -0
  162. package/esm/components/Atoms/StoryElements/Video/stories.js +29 -0
  163. package/esm/components/Atoms/StoryElements/Video/video.m.css +89 -0
  164. package/esm/components/Atoms/StoryElements/Video/video.test.js +14 -0
  165. package/esm/components/Atoms/StoryElements/imageGallery/README.md +18 -0
  166. package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.m.css +52 -0
  167. package/esm/components/Atoms/StoryElements/imageGallery/image-gallery.test.js +17 -0
  168. package/esm/components/Atoms/StoryElements/imageGallery/index.js +112 -0
  169. package/esm/components/Atoms/StoryElements/imageGallery/stories.js +22 -0
  170. package/esm/components/Atoms/StoryElements/withElementWrapper.js +21 -0
  171. package/esm/components/Atoms/StoryElements/withElementWrapper.test.js +49 -0
  172. package/esm/components/Atoms/StoryHeadline/index.js +57 -0
  173. package/esm/components/Atoms/StoryHeadline/story-headline.m.css +36 -0
  174. package/esm/components/Atoms/StoryTags/README.md +9 -0
  175. package/esm/components/Atoms/StoryTags/index.js +47 -0
  176. package/esm/components/Atoms/StoryTags/stories.js +23 -0
  177. package/esm/components/Atoms/StoryTags/story-tags.test.js +16 -0
  178. package/esm/components/Atoms/StoryTags/tags.m.css +34 -0
  179. package/esm/components/Atoms/Subheadline/README.md +17 -0
  180. package/esm/components/Atoms/Subheadline/index.js +52 -0
  181. package/esm/components/Atoms/Subheadline/stories.js +21 -0
  182. package/esm/components/Atoms/Subheadline/subheadline.m.css +17 -0
  183. package/esm/components/Atoms/TimeStamp/README.md +9 -0
  184. package/esm/components/Atoms/TimeStamp/index.js +39 -0
  185. package/esm/components/Atoms/TimeStamp/stories.js +11 -0
  186. package/esm/components/Atoms/TimeStamp/timestamp.m.css +22 -0
  187. package/esm/components/Fixture/config.json +2703 -0
  188. package/esm/components/Fixture/dummy-collection.js +2547 -0
  189. package/esm/components/Fixture/dummyStory.js +2089 -0
  190. package/esm/components/Fixture/index.js +433 -0
  191. package/esm/components/Fixture/slot-config.js +26 -0
  192. package/esm/components/Molecules/FullScreenImages/fullscreenimages.scss +56 -0
  193. package/esm/components/Molecules/FullScreenImages/index.js +119 -0
  194. package/esm/components/Molecules/KeyEvents/README.md +21 -0
  195. package/esm/components/Molecules/KeyEvents/index.js +152 -0
  196. package/esm/components/Molecules/KeyEvents/key-events.m.css +89 -0
  197. package/esm/components/Molecules/KeyEvents/stories.js +25 -0
  198. package/esm/components/Molecules/PageIntroductionCard/README.md +25 -0
  199. package/esm/components/Molecules/PageIntroductionCard/index.js +77 -0
  200. package/esm/components/Molecules/PageIntroductionCard/page-intro-card.m.css +61 -0
  201. package/esm/components/Molecules/PageIntroductionCard/stories.js +17 -0
  202. package/esm/components/Molecules/PortraitStoryCard/README.md +10 -0
  203. package/esm/components/Molecules/PortraitStoryCard/index.js +52 -0
  204. package/esm/components/Molecules/PortraitStoryCard/portrait-story-card.m.css +38 -0
  205. package/esm/components/Molecules/PortraitStoryCard/stories.js +24 -0
  206. package/esm/components/Molecules/SliderHorizontalCard/README.md +14 -0
  207. package/esm/components/Molecules/SliderHorizontalCard/index.js +69 -0
  208. package/esm/components/Molecules/SliderHorizontalCard/slider-horizontal-card.m.css +42 -0
  209. package/esm/components/Molecules/SliderHorizontalCard/stories.js +27 -0
  210. package/esm/components/Molecules/SocialShareTemplate/README.md +118 -0
  211. package/esm/components/Molecules/SocialShareTemplate/__snapshots__/social-share-template.test.js.snap +738 -0
  212. package/esm/components/Molecules/SocialShareTemplate/index.js +164 -0
  213. package/esm/components/Molecules/SocialShareTemplate/social-share-data.js +90 -0
  214. package/esm/components/Molecules/SocialShareTemplate/social-share-template.m.css +174 -0
  215. package/esm/components/Molecules/SocialShareTemplate/social-share-template.test.js +108 -0
  216. package/esm/components/Molecules/SocialShareTemplate/stories.js +38 -0
  217. package/esm/components/Molecules/StoryCard/README.md +75 -0
  218. package/esm/components/Molecules/StoryCard/READMEBGIMAGE.md +25 -0
  219. package/esm/components/Molecules/StoryCard/READMEBORDER.md +61 -0
  220. package/esm/components/Molecules/StoryCard/index.js +200 -0
  221. package/esm/components/Molecules/StoryCard/stories.js +274 -0
  222. package/esm/components/Molecules/StoryCard/storycard.m.css +158 -0
  223. package/esm/components/Molecules/StoryCardWithBulletPoint/README.md +9 -0
  224. package/esm/components/Molecules/StoryCardWithBulletPoint/index.js +43 -0
  225. package/esm/components/Molecules/StoryCardWithBulletPoint/stories.js +28 -0
  226. package/esm/components/Molecules/StoryCardWithBulletPoint/story-card-with-bullet-point.m.css +7 -0
  227. package/esm/components/Molecules/StoryElementCard/README.md +9 -0
  228. package/esm/components/Molecules/StoryElementCard/index.js +494 -0
  229. package/esm/components/Molecules/StoryElementCard/stories.js +25 -0
  230. package/esm/components/Molecules/StoryElementCard/story-element-card.m.css +78 -0
  231. package/esm/components/Molecules/StorycardContent/README.md +34 -0
  232. package/esm/components/Molecules/StorycardContent/index.js +86 -0
  233. package/esm/components/Molecules/StorycardContent/stories.js +45 -0
  234. package/esm/components/Molecules/StorycardContent/storycardContent.m.css +21 -0
  235. package/esm/components/Rows/AlternateCollectionFilter/README.md +38 -0
  236. package/esm/components/Rows/AlternateCollectionFilter/alternate-collection-filter.m.css +254 -0
  237. package/esm/components/Rows/AlternateCollectionFilter/index.js +288 -0
  238. package/esm/components/Rows/AlternateCollectionFilter/stories.js +68 -0
  239. package/esm/components/Rows/AsideCollection/README.md +27 -0
  240. package/esm/components/Rows/AsideCollection/aside-collection.m.css +103 -0
  241. package/esm/components/Rows/AsideCollection/aside-collection.test.js +32 -0
  242. package/esm/components/Rows/AsideCollection/index.js +253 -0
  243. package/esm/components/Rows/AsideCollection/stories.js +48 -0
  244. package/esm/components/Rows/AstrologyCollection/README.md +40 -0
  245. package/esm/components/Rows/AstrologyCollection/astrology-collection.m.css +165 -0
  246. package/esm/components/Rows/AstrologyCollection/index.js +272 -0
  247. package/esm/components/Rows/AstrologyCollection/stories.js +61 -0
  248. package/esm/components/Rows/AuthorIntroductionCard/README.md +43 -0
  249. package/esm/components/Rows/AuthorIntroductionCard/author-intro.m.css +278 -0
  250. package/esm/components/Rows/AuthorIntroductionCard/author-intro.test.js +148 -0
  251. package/esm/components/Rows/AuthorIntroductionCard/index.js +157 -0
  252. package/esm/components/Rows/AuthorIntroductionCard/stories.js +46 -0
  253. package/esm/components/Rows/AuthorsList/README.md +24 -0
  254. package/esm/components/Rows/AuthorsList/author-list.test.js +66 -0
  255. package/esm/components/Rows/AuthorsList/authors-list.m.css +22 -0
  256. package/esm/components/Rows/AuthorsList/index.js +64 -0
  257. package/esm/components/Rows/AuthorsList/stories.js +62 -0
  258. package/esm/components/Rows/CollectionFilter/README.md +39 -0
  259. package/esm/components/Rows/CollectionFilter/collection-filter.m.css +213 -0
  260. package/esm/components/Rows/CollectionFilter/index.js +366 -0
  261. package/esm/components/Rows/CollectionFilter/stories.js +78 -0
  262. package/esm/components/Rows/ElevenStories/11-stories.m.css +85 -0
  263. package/esm/components/Rows/ElevenStories/README.md +39 -0
  264. package/esm/components/Rows/ElevenStories/index.js +418 -0
  265. package/esm/components/Rows/ElevenStories/stories.js +71 -0
  266. package/esm/components/Rows/FourColFiveStories/README.md +37 -0
  267. package/esm/components/Rows/FourColFiveStories/four-col-five-stories.m.css +112 -0
  268. package/esm/components/Rows/FourColFiveStories/index.js +179 -0
  269. package/esm/components/Rows/FourColFiveStories/stories.js +67 -0
  270. package/esm/components/Rows/FourColGrid/README.md +39 -0
  271. package/esm/components/Rows/FourColGrid/four-col.m.css +50 -0
  272. package/esm/components/Rows/FourColGrid/index.js +167 -0
  273. package/esm/components/Rows/FourColGrid/stories.js +68 -0
  274. package/esm/components/Rows/FourColPortraitStories/README.md +38 -0
  275. package/esm/components/Rows/FourColPortraitStories/four-col-portrait-stories.m.css +45 -0
  276. package/esm/components/Rows/FourColPortraitStories/index.js +153 -0
  277. package/esm/components/Rows/FourColPortraitStories/stories.js +68 -0
  278. package/esm/components/Rows/FourColSixteenStories/README.md +35 -0
  279. package/esm/components/Rows/FourColSixteenStories/four-col-sixteen-stories.m.css +141 -0
  280. package/esm/components/Rows/FourColSixteenStories/index.js +157 -0
  281. package/esm/components/Rows/FourColSixteenStories/stories.js +43 -0
  282. package/esm/components/Rows/FourColTwelveStory/README.md +39 -0
  283. package/esm/components/Rows/FourColTwelveStory/four-col-twelve-story.m.css +71 -0
  284. package/esm/components/Rows/FourColTwelveStory/index.js +219 -0
  285. package/esm/components/Rows/FourColTwelveStory/stories.js +107 -0
  286. package/esm/components/Rows/FourStorySlider/README.md +45 -0
  287. package/esm/components/Rows/FourStorySlider/four-story-slider.m.css +78 -0
  288. package/esm/components/Rows/FourStorySlider/index.js +145 -0
  289. package/esm/components/Rows/FourStorySlider/stories.js +125 -0
  290. package/esm/components/Rows/FourStorySliderPortrait/README.md +45 -0
  291. package/esm/components/Rows/FourStorySliderPortrait/four-story-slider-portrait.m.css +221 -0
  292. package/esm/components/Rows/FourStorySliderPortrait/index.js +148 -0
  293. package/esm/components/Rows/FourStorySliderPortrait/stories.js +125 -0
  294. package/esm/components/Rows/FourTabbedBigStorySlider/README.md +39 -0
  295. package/esm/components/Rows/FourTabbedBigStorySlider/four-tabbed-big-story-slider.m.css +265 -0
  296. package/esm/components/Rows/FourTabbedBigStorySlider/index.js +221 -0
  297. package/esm/components/Rows/FourTabbedBigStorySlider/stories.js +59 -0
  298. package/esm/components/Rows/FullScreenSlider/README.md +46 -0
  299. package/esm/components/Rows/FullScreenSlider/full-screen-slider.m.css +155 -0
  300. package/esm/components/Rows/FullScreenSlider/index.js +140 -0
  301. package/esm/components/Rows/FullScreenSlider/stories.js +113 -0
  302. package/esm/components/Rows/HalfScreenSlider/README.md +43 -0
  303. package/esm/components/Rows/HalfScreenSlider/half-screen-slider.m.css +80 -0
  304. package/esm/components/Rows/HalfScreenSlider/index.js +124 -0
  305. package/esm/components/Rows/HalfScreenSlider/stories.js +118 -0
  306. package/esm/components/Rows/ListComponent/README.md +48 -0
  307. package/esm/components/Rows/ListComponent/index.js +176 -0
  308. package/esm/components/Rows/ListComponent/list-component.m.css +65 -0
  309. package/esm/components/Rows/ListComponent/stories.js +65 -0
  310. package/esm/components/Rows/Listicles/README.md +32 -0
  311. package/esm/components/Rows/Listicles/index.js +240 -0
  312. package/esm/components/Rows/Listicles/listicles.m.css +149 -0
  313. package/esm/components/Rows/Listicles/stories.js +53 -0
  314. package/esm/components/Rows/MagazineEditions/README.md +21 -0
  315. package/esm/components/Rows/MagazineEditions/index.js +123 -0
  316. package/esm/components/Rows/MagazineEditions/magazine-editions.m.css +50 -0
  317. package/esm/components/Rows/MagazineEditions/magazine-editions.test.js +30 -0
  318. package/esm/components/Rows/MagazineEditions/stories.js +41 -0
  319. package/esm/components/Rows/MagazineHeaderCard/README.md +21 -0
  320. package/esm/components/Rows/MagazineHeaderCard/index.js +117 -0
  321. package/esm/components/Rows/MagazineHeaderCard/magazine-cards.m.css +106 -0
  322. package/esm/components/Rows/MagazineHeaderCard/stories.js +34 -0
  323. package/esm/components/Rows/MagazineWidget/README.md +21 -0
  324. package/esm/components/Rows/MagazineWidget/index.js +177 -0
  325. package/esm/components/Rows/MagazineWidget/stories.js +40 -0
  326. package/esm/components/Rows/OneColStoryList/README.md +48 -0
  327. package/esm/components/Rows/OneColStoryList/index.js +245 -0
  328. package/esm/components/Rows/OneColStoryList/one-col-story-list.m.css +81 -0
  329. package/esm/components/Rows/OneColStoryList/stories.js +78 -0
  330. package/esm/components/Rows/OpinionCollection/README.md +36 -0
  331. package/esm/components/Rows/OpinionCollection/index.js +205 -0
  332. package/esm/components/Rows/OpinionCollection/opinion-collection.m.css +226 -0
  333. package/esm/components/Rows/OpinionCollection/stories.js +92 -0
  334. package/esm/components/Rows/SixColSixStories/README.md +37 -0
  335. package/esm/components/Rows/SixColSixStories/index.js +179 -0
  336. package/esm/components/Rows/SixColSixStories/six-col-six-stories.m.css +75 -0
  337. package/esm/components/Rows/SixColSixStories/stories.js +74 -0
  338. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/README.md +19 -0
  339. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/__snapshots__/listicle-story.test.js.snap +841 -0
  340. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/index.js +330 -0
  341. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.m.css +249 -0
  342. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/listicle-story.test.js +46 -0
  343. package/esm/components/Rows/StoryTemplates/ListicleStoryTemplates/stories.js +119 -0
  344. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/README.md +25 -0
  345. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/index.js +97 -0
  346. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/live-blog.m.css +326 -0
  347. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/stories.js +118 -0
  348. package/esm/components/Rows/StoryTemplates/LiveBlogStoryTemplates/templates.js +418 -0
  349. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/index.js +294 -0
  350. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo-story.test.js +163 -0
  351. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/photo.m.css +175 -0
  352. package/esm/components/Rows/StoryTemplates/PhotoStoryTemplates/stories.js +124 -0
  353. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/README.md +49 -0
  354. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/index.js +100 -0
  355. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/stories.js +124 -0
  356. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/templates.js +285 -0
  357. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.m.css +449 -0
  358. package/esm/components/Rows/StoryTemplates/TextStoryTemplates/text-story.test.js +242 -0
  359. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/README.md +31 -0
  360. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/index.js +239 -0
  361. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/stories.js +214 -0
  362. package/esm/components/Rows/StoryTemplates/VideoStoryTemplates/video-story.m.css +195 -0
  363. package/esm/components/Rows/TagIntroductionCard/README.md +11 -0
  364. package/esm/components/Rows/TagIntroductionCard/index.js +45 -0
  365. package/esm/components/Rows/TagIntroductionCard/stories.js +20 -0
  366. package/esm/components/Rows/TagIntroductionCard/tag-intro-card.module.css +25 -0
  367. package/esm/components/Rows/ThreeColFlexStories/README.md +38 -0
  368. package/esm/components/Rows/ThreeColFlexStories/index.js +227 -0
  369. package/esm/components/Rows/ThreeColFlexStories/stories.js +74 -0
  370. package/esm/components/Rows/ThreeColFlexStories/three-col-flex-stories.m.css +60 -0
  371. package/esm/components/Rows/ThreeColFourteenStory/README.md +28 -0
  372. package/esm/components/Rows/ThreeColFourteenStory/index.js +154 -0
  373. package/esm/components/Rows/ThreeColFourteenStory/stories.js +65 -0
  374. package/esm/components/Rows/ThreeColFourteenStory/three-col-fourteen-story.m.css +51 -0
  375. package/esm/components/Rows/ThreeColGrid/README.md +36 -0
  376. package/esm/components/Rows/ThreeColGrid/index.js +176 -0
  377. package/esm/components/Rows/ThreeColGrid/stories.js +78 -0
  378. package/esm/components/Rows/ThreeColGrid/three-col.m.css +43 -0
  379. package/esm/components/Rows/ThreeColSevenStory/README.md +36 -0
  380. package/esm/components/Rows/ThreeColSevenStory/index.js +201 -0
  381. package/esm/components/Rows/ThreeColSevenStory/stories.js +74 -0
  382. package/esm/components/Rows/ThreeColSevenStory/three-col-seven-story.m.css +44 -0
  383. package/esm/components/Rows/ThreeColSixStories/README.md +40 -0
  384. package/esm/components/Rows/ThreeColSixStories/index.js +183 -0
  385. package/esm/components/Rows/ThreeColSixStories/stories.js +74 -0
  386. package/esm/components/Rows/ThreeColSixStories/three-col-six-stories.m.css +32 -0
  387. package/esm/components/Rows/ThreeColTwelveStories/README.md +41 -0
  388. package/esm/components/Rows/ThreeColTwelveStories/index.js +165 -0
  389. package/esm/components/Rows/ThreeColTwelveStories/stories.js +53 -0
  390. package/esm/components/Rows/ThreeColTwelveStories/three-col-twelve-stories.m.css +83 -0
  391. package/esm/components/Rows/TwoColFourStory/README.md +33 -0
  392. package/esm/components/Rows/TwoColFourStory/index.js +174 -0
  393. package/esm/components/Rows/TwoColFourStory/stories.js +63 -0
  394. package/esm/components/Rows/TwoColFourStory/two-col-four-story.m.css +64 -0
  395. package/esm/components/Rows/TwoColFourStoryHighlight/README.md +35 -0
  396. package/esm/components/Rows/TwoColFourStoryHighlight/index.js +164 -0
  397. package/esm/components/Rows/TwoColFourStoryHighlight/stories.js +50 -0
  398. package/esm/components/Rows/TwoColFourStoryHighlight/two-col-four-story-highlight.m.css +116 -0
  399. package/esm/components/Rows/TwoColSevenStories/README.md +37 -0
  400. package/esm/components/Rows/TwoColSevenStories/index.js +193 -0
  401. package/esm/components/Rows/TwoColSevenStories/stories.js +102 -0
  402. package/esm/components/Rows/TwoColSevenStories/two-col-seven-stories.m.css +175 -0
  403. package/esm/components/Rows/TwoColSixStories/README.md +36 -0
  404. package/esm/components/Rows/TwoColSixStories/index.js +185 -0
  405. package/esm/components/Rows/TwoColSixStories/stories.js +67 -0
  406. package/esm/components/Rows/TwoColSixStories/two-col-six-stories.m.css +135 -0
  407. package/esm/components/Rows/TwoColTenStoriesSidebar/README.md +34 -0
  408. package/esm/components/Rows/TwoColTenStoriesSidebar/index.js +191 -0
  409. package/esm/components/Rows/TwoColTenStoriesSidebar/stories.js +53 -0
  410. package/esm/components/Rows/TwoColTenStoriesSidebar/two-col-ten-stories-sidebar.m.css +52 -0
  411. package/esm/components/Rows/TwoColThreeStory/README.md +40 -0
  412. package/esm/components/Rows/TwoColThreeStory/index.js +146 -0
  413. package/esm/components/Rows/TwoColThreeStory/stories.js +63 -0
  414. package/esm/components/Rows/TwoColThreeStory/two-col-three-story.m.css +36 -0
  415. package/esm/components/SharedContext.js +17 -0
  416. package/esm/components/Svgs/Loading/loading.js +140 -0
  417. package/esm/components/Svgs/Loading/loading.m.css +5 -0
  418. package/esm/components/Svgs/SocialIcons/facebook.js +18 -0
  419. package/esm/components/Svgs/SocialIcons/instagram.js +33 -0
  420. package/esm/components/Svgs/SocialIcons/linkedin.js +18 -0
  421. package/esm/components/Svgs/SocialIcons/pinterest.js +12 -0
  422. package/esm/components/Svgs/SocialIcons/twitter.js +18 -0
  423. package/esm/components/Svgs/SocialIcons/whatsapp.js +19 -0
  424. package/esm/components/Svgs/SocialIcons/youtube.js +19 -0
  425. package/esm/components/Svgs/caret-right.svg +3 -0
  426. package/esm/components/Svgs/clock-icon.js +19 -0
  427. package/esm/components/Svgs/close-icon.js +22 -0
  428. package/esm/components/Svgs/crown.js +40 -0
  429. package/esm/components/Svgs/fallbackImage.js +45 -0
  430. package/esm/components/Svgs/hyperlink.js +22 -0
  431. package/esm/components/Svgs/key.js +39 -0
  432. package/esm/components/Svgs/left-arrow.js +24 -0
  433. package/esm/components/Svgs/liveicon.js +16 -0
  434. package/esm/components/Svgs/lock.js +40 -0
  435. package/esm/components/Svgs/right-arrow.js +24 -0
  436. package/esm/components/Svgs/share-icon.js +19 -0
  437. package/esm/components/Svgs/star.js +34 -0
  438. package/esm/components/Svgs/user-fallback-icon.js +22 -0
  439. package/esm/components/Typography/README.md +7 -0
  440. package/esm/components/Typography/index.js +33 -0
  441. package/esm/components/Typography/stories.js +15 -0
  442. package/esm/components/Typography/style.m.css +11 -0
  443. package/esm/entry-points.js +291 -0
  444. package/esm/guide/stories.js +22 -0
  445. package/esm/hydration-component/index.js +41 -0
  446. package/esm/hydration-component/useNearScreen.js +71 -0
  447. package/esm/index.js +88 -0
  448. package/esm/rows.js +40 -0
  449. package/esm/utils/testing-utils.js +8 -0
  450. package/esm/utils/utils.js +363 -0
  451. package/esm/utils/utils.test.js +46 -0
  452. package/package.json +1 -1
@@ -0,0 +1,38 @@
1
+ # Four Col Portrait Stories
2
+
3
+ The _FourColPortraitStories_ component is a basic four column portrait storycard [row](https://bradfrost.com/blog/post/atomic-web-design/#organisms).
4
+
5
+ ## Usage
6
+
7
+ ### Import
8
+
9
+ ```jsx
10
+ import { FourColPortraitStories } from "@quintype/arrow";
11
+ ```
12
+
13
+ ### Setting the Row context
14
+
15
+ ```jsx
16
+ const contextConfig = {
17
+ theme: "#ffffff",
18
+ border: "",
19
+ collectionNameTemplate: "default",
20
+ sectionTagTemplate: "default",
21
+ showSection: true,
22
+ showAuthor: true,
23
+ showTime: true,
24
+ showRowTitle: true,
25
+ showFooterButton: true,
26
+ buttonText: "Load More",
27
+ footerSlotConfig: { footerSlot: () => <FooterComponent /> },
28
+ subsequentLoadCount: 8
29
+ };
30
+ ```
31
+
32
+ ### Use as a component
33
+
34
+ ```jsx
35
+ <FourColPortraitStories collection={collection} config={contextConfig} />
36
+ ```
37
+
38
+ <!-- PROPS -->
@@ -0,0 +1,45 @@
1
+ @custom-media --viewport-medium (width > 1024px);
2
+ .four-col-portrait {
3
+ padding: 0 var(--arrow-spacing-s);
4
+
5
+ @media (--viewport-medium) {
6
+ padding: 0;
7
+ }
8
+ }
9
+
10
+ .wrapper {
11
+ display: grid;
12
+ margin: var(--arrow-spacing-xs) 0 0;
13
+ grid-template-columns: repeat(2, 1fr);
14
+ grid-gap: var(--arrow-spacing-s);
15
+
16
+ @media (--viewport-medium) {
17
+ grid-template-columns: repeat(4, 1fr);
18
+ margin: var(--arrow-spacing-m) 0;
19
+ grid-gap: var(--arrow-spacing-l);
20
+ }
21
+
22
+ :global {
23
+ .arr--headline > a > h6 {
24
+ font-size: var(--arrow-fs-tiny);
25
+ @media (--viewport-medium) {
26
+ font-size: var(--arrow-fs-xs);
27
+ }
28
+ }
29
+
30
+ .arr--content-wrapper time,
31
+ .arr--read-time,
32
+ .author-name {
33
+ font-size: 12px;
34
+ @media (--viewport-medium) {
35
+ font-size: var(--arrow-fs-tiny);
36
+ }
37
+ }
38
+ }
39
+
40
+ @media (max-width: 1024px) and (min-width: 768px) {
41
+ :global .arr--headline > a > h6 {
42
+ font-size: var(--arrow-fs-l);
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,153 @@
1
+ import React from "react";
2
+ import { useDispatch, useSelector } from "react-redux";
3
+ import { get } from "lodash";
4
+ import PropTypes from "prop-types";
5
+ import { collectionToStories } from "@quintype/components";
6
+ import { CollectionName } from "../../Atoms/CollectionName";
7
+ import { LoadmoreButton } from "../../Atoms/Loadmore";
8
+ import { generateNavigateSlug, getTextColor, navigateTo } from "../../../utils/utils";
9
+ import { StateProvider } from "../../SharedContext";
10
+ import { ProgressiveHydration } from "../../../hydration-component";
11
+ import { LoadMoreTarget } from "../../Atoms/LoadMoreTarget";
12
+ import { PortraitStoryCard } from "../../Molecules/PortraitStoryCard";
13
+ import "./four-col-portrait-stories.m.css";
14
+
15
+ var loadMore = function loadMore(_ref) {
16
+ var isLoading = _ref.isLoading,
17
+ storyItems = _ref.storyItems,
18
+ getMoreStories = _ref.getMoreStories,
19
+ _ref$subsequentLoadCo = _ref.subsequentLoadCount,
20
+ subsequentLoadCount = _ref$subsequentLoadCo === void 0 ? 4 : _ref$subsequentLoadCo;
21
+ if (isLoading) return; // prevent multiple clicks/calls
22
+
23
+ var limit = subsequentLoadCount;
24
+ var offset = storyItems.length;
25
+ getMoreStories(offset, limit);
26
+ };
27
+
28
+ export var FourColPortraitStoriesBase = function FourColPortraitStoriesBase(_ref2) {
29
+ var collection = _ref2.collection,
30
+ _ref2$config = _ref2.config,
31
+ config = _ref2$config === void 0 ? {} : _ref2$config,
32
+ getMoreStories = _ref2.getMoreStories,
33
+ isLoadMoreVisible = _ref2.isLoadMoreVisible,
34
+ isLoading = _ref2.isLoading,
35
+ isolatedLoadMore = _ref2.isolatedLoadMore;
36
+ var storyItems = collectionToStories(collection);
37
+ if (!storyItems.length) return null;
38
+ var _config$collectionNam = config.collectionNameBorderColor,
39
+ collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
40
+ _config$borderColor = config.borderColor,
41
+ borderColor = _config$borderColor === void 0 ? "" : _config$borderColor,
42
+ _config$theme = config.theme,
43
+ theme = _config$theme === void 0 ? "" : _config$theme,
44
+ _config$border = config.border,
45
+ border = _config$border === void 0 ? "" : _config$border,
46
+ _config$collectionNam2 = config.collectionNameTemplate,
47
+ collectionNameTemplate = _config$collectionNam2 === void 0 ? "" : _config$collectionNam2,
48
+ _config$footerSlotCon = config.footerSlotConfig,
49
+ footerSlotConfig = _config$footerSlotCon === void 0 ? {} : _config$footerSlotCon,
50
+ _config$footerButton = config.footerButton,
51
+ footerButton = _config$footerButton === void 0 ? "" : _config$footerButton,
52
+ customCollectionName = config.customCollectionName,
53
+ _config$navigate = config.navigate,
54
+ navigate = _config$navigate === void 0 ? true : _config$navigate,
55
+ _config$subsequentLoa = config.subsequentLoadCount,
56
+ subsequentLoadCount = _config$subsequentLoa === void 0 ? 4 : _config$subsequentLoa;
57
+ var footerSlot = footerSlotConfig.footerSlot;
58
+ var footerSlotComp = typeof footerSlot === "function" ? footerSlot() : null;
59
+ var textColor = getTextColor(theme);
60
+ var dispatch = useDispatch();
61
+ var qtConfig = useSelector(function (state) {
62
+ return get(state, ["qt", "config"], {});
63
+ });
64
+
65
+ var getLoadMore = function getLoadMore(opts) {
66
+ if (!isLoadMoreVisible) return null;
67
+
68
+ if (isolatedLoadMore) {
69
+ return /*#__PURE__*/React.createElement(LoadMoreTarget, {
70
+ collection: collection,
71
+ componentName: "FourColPortraitStories",
72
+ offset: storyItems.length,
73
+ limit: subsequentLoadCount
74
+ });
75
+ }
76
+
77
+ var url = generateNavigateSlug(collection, qtConfig);
78
+ return /*#__PURE__*/React.createElement(ProgressiveHydration, null, /*#__PURE__*/React.createElement(LoadmoreButton, {
79
+ config: config,
80
+ collection: collection,
81
+ template: footerButton,
82
+ onClick: function onClick() {
83
+ return loadMore(opts);
84
+ },
85
+ navigate: function navigate() {
86
+ return navigateTo(dispatch, url);
87
+ },
88
+ qtConfig: qtConfig
89
+ }));
90
+ };
91
+
92
+ return /*#__PURE__*/React.createElement("div", {
93
+ className: "full-width-with-padding arrow-component",
94
+ "data-test-id": "four-col-portrait-stories",
95
+ style: {
96
+ backgroundColor: theme,
97
+ color: textColor
98
+ }
99
+ }, /*#__PURE__*/React.createElement("div", {
100
+ className: "four-col-portrait-stories-m_four-col-portrait__AtWub"
101
+ }, /*#__PURE__*/React.createElement(CollectionName, {
102
+ collection: collection,
103
+ collectionNameTemplate: collectionNameTemplate,
104
+ collectionNameBorderColor: collectionNameBorderColor,
105
+ customCollectionName: customCollectionName,
106
+ navigate: navigate
107
+ }), /*#__PURE__*/React.createElement("div", {
108
+ className: "four-col-portrait-stories-m_wrapper__1BX02"
109
+ }, storyItems.map(function (story, index) {
110
+ return /*#__PURE__*/React.createElement(PortraitStoryCard, {
111
+ story: story,
112
+ border: border,
113
+ theme: theme,
114
+ config: Object.assign({
115
+ showSection: false,
116
+ showAuthor: false,
117
+ showReadTime: false
118
+ }, config),
119
+ borderColor: borderColor,
120
+ key: "story-card-".concat(index)
121
+ });
122
+ })), getLoadMore({
123
+ isLoading: isLoading,
124
+ storyItems: storyItems,
125
+ getMoreStories: getMoreStories,
126
+ subsequentLoadCount: subsequentLoadCount
127
+ }), footerSlotComp));
128
+ };
129
+ FourColPortraitStoriesBase.propTypes = {
130
+ /** collection is the array of objects which is returning by API */
131
+ collection: PropTypes.object.isRequired,
132
+
133
+ /** The config for the Row */
134
+ config: PropTypes.shape({
135
+ borderColor: PropTypes.string,
136
+ theme: PropTypes.string,
137
+ border: PropTypes.bool,
138
+ collectionNameTemplate: PropTypes.string,
139
+ footerButton: PropTypes.string,
140
+ collectionNameBorderColor: PropTypes.string,
141
+ subsequentLoadCount: PropTypes.number
142
+ }),
143
+ getMoreStories: PropTypes.func,
144
+ isLoadMoreVisible: PropTypes.bool,
145
+ isLoading: PropTypes.bool,
146
+ isolatedLoadMore: PropTypes.bool
147
+ };
148
+ FourColPortraitStoriesBase.defaultProps = {
149
+ getMoreStories: function getMoreStories() {},
150
+ isLoadMoreVisible: true,
151
+ isLoading: false
152
+ };
153
+ export var FourColPortraitStories = StateProvider(FourColPortraitStoriesBase);
@@ -0,0 +1,68 @@
1
+ import React from "react";
2
+ import { color, boolean as _boolean, text } from "@storybook/addon-knobs";
3
+ import { withStore, optionalSelect, sectionTagTemplates, collectionNameTemplates } from "../../../../storybook";
4
+ import { FourColPortraitStoriesBase } from "./index";
5
+ import Readme from "./README.md";
6
+ import { AdPlaceholder } from "../../Atoms/AdPlaceholder";
7
+ import { generateCollection } from "../../Fixture";
8
+ var collection = generateCollection({
9
+ stories: 8
10
+ });
11
+ var label = "color";
12
+ var defaultvalue = "#ffffff";
13
+ var collectionNameDefaultValue = "#3a9fdd";
14
+ var collectionNameBorderColorLabel = "Collection Name Border Color";
15
+ var sectionTagBorderColor = "Section Tag Border Color";
16
+ var sectionTagDefaultvalue = "#3a9fdd";
17
+ var borderTemplate = {
18
+ "default": "",
19
+ border: "full"
20
+ };
21
+ var footerButton = {
22
+ SubsequentLoadCount: "SubsequentLoadCount",
23
+ NavigateToPage: "NavigateToPage"
24
+ };
25
+
26
+ var footerSlot = function footerSlot() {
27
+ return /*#__PURE__*/React.createElement(AdPlaceholder, null);
28
+ };
29
+
30
+ withStore("Rows/Four Col Portrait Stories ", {
31
+ qt: {
32
+ config: {
33
+ "cdn-image": "thumbor-stg.assettype.com"
34
+ }
35
+ }
36
+ }, Readme).addDecorator(function (story) {
37
+ return /*#__PURE__*/React.createElement("div", {
38
+ style: {
39
+ maxWidth: "1000px",
40
+ margin: "auto"
41
+ }
42
+ }, story());
43
+ }).add("Default", function () {
44
+ var contextConfig = {
45
+ collectionNameBorderColor: color(collectionNameBorderColorLabel, collectionNameDefaultValue),
46
+ borderColor: color(sectionTagBorderColor, sectionTagDefaultvalue),
47
+ theme: color(label, defaultvalue),
48
+ border: optionalSelect("Border", borderTemplate),
49
+ collectionNameTemplate: optionalSelect("Collection Name Templates", collectionNameTemplates),
50
+ sectionTagTemplate: optionalSelect("Section Tag Templates", sectionTagTemplates),
51
+ showSection: _boolean("section disable", false),
52
+ showAuthor: _boolean("Author disable", false),
53
+ showTime: _boolean("Timestamp disable", true),
54
+ showRowTitle: _boolean("Row title", true),
55
+ footerButton: optionalSelect("Footer Button", footerButton),
56
+ buttonText: text("Footer text", "Read More"),
57
+ footerSlotConfig: {
58
+ footerSlot: footerSlot
59
+ },
60
+ showButton: _boolean("Show button", true),
61
+ showReadTime: _boolean("Read time", false),
62
+ subsequentLoadCount: text("Subsequent Load", 8)
63
+ };
64
+ return /*#__PURE__*/React.createElement(FourColPortraitStoriesBase, {
65
+ collection: collection,
66
+ config: contextConfig
67
+ });
68
+ });
@@ -0,0 +1,35 @@
1
+ # Four Col Sixteen Stories
2
+
3
+ The _FourColSixteenStories_ component accepts collection of collections.
4
+
5
+ ## Usage
6
+
7
+ ### Import
8
+ ```jsx
9
+ import { FourColSixteenStories } from "@quintype/arrow"
10
+ ```
11
+
12
+ ### Setting the Row context
13
+
14
+ ```jsx
15
+ const contextConfig = {
16
+ theme: "#ffffff",
17
+ collectionNameTemplate: "default",
18
+ sectionTagTemplate: "solid",
19
+ showSection: true,
20
+ showRowTitle: true,
21
+ showAuthor: true,
22
+ showTime: true,
23
+ showSubheadline: true,
24
+ withseparator: true,
25
+ showFooterButton: false,
26
+ buttonText: "Read More",
27
+ };
28
+ ```
29
+
30
+ ### Use as a component
31
+ ```jsx
32
+ <FourColSixteenStories collection={collection} config={contextConfig} />
33
+ ```
34
+
35
+ <!-- PROPS -->
@@ -0,0 +1,141 @@
1
+ @value viewports: "../../../../assets/stylesheets/viewports.m.css";
2
+ @value mobile from viewports;
3
+ @value desktop from viewports;
4
+
5
+ .componentWrapper {
6
+ @media (min-width: mobile) {
7
+ display: grid;
8
+ grid-column-gap: 25px;
9
+ grid-template-columns: repeat(2, 1fr);
10
+ @media (min-width: desktop) {
11
+ grid-template-columns: repeat(4, 1fr);
12
+ }
13
+ }
14
+ }
15
+
16
+ .cardWrapper {
17
+ @media (min-width: mobile) {
18
+ flex: auto;
19
+ }
20
+ }
21
+
22
+ .storyCardWrapper :global(.arr--story-card) {
23
+ padding: var(--arrow-spacing-xs) 0;
24
+ }
25
+
26
+ .storyCardWrapper > :first-child {
27
+ padding: 0 0 var(--arrow-spacing-xs);
28
+ }
29
+
30
+ .storyCardWrapper.storyCardWrapper > :last-child {
31
+ border-bottom: unset;
32
+ }
33
+
34
+ .separator {
35
+ @media (min-width: mobile) {
36
+ position: relative;
37
+ }
38
+ }
39
+
40
+ .separator::after {
41
+ @media (min-width: mobile) {
42
+ content: "";
43
+ width: 1px;
44
+ height: 100%;
45
+ position: absolute;
46
+ top: 0;
47
+ right: -13px;
48
+ }
49
+ }
50
+
51
+ .light .separator::after {
52
+ @media (min-width: mobile) {
53
+ background-color: var(--light-border);
54
+ }
55
+ }
56
+
57
+ .dark .separator::after {
58
+ @media (min-width: mobile) {
59
+ background-color: var(--dark-border);
60
+ }
61
+ }
62
+
63
+ .componentWrapper > :last-child .separator::after {
64
+ @media (min-width: mobile) {
65
+ content: none;
66
+ }
67
+ }
68
+
69
+ .componentWrapper > :nth-child(2) .separator::after {
70
+ @media (min-width: mobile) {
71
+ content: none;
72
+ @media (min-width: desktop) {
73
+ content: "";
74
+ }
75
+ }
76
+ }
77
+
78
+ .contentWrapper {
79
+ @media (min-width: mobile) {
80
+ display: flex;
81
+ flex-direction: column;
82
+ }
83
+ }
84
+
85
+ .componentWrapper:global(.arrow-component.full-width-with-padding) {
86
+ @media (max-width: desktop) {
87
+ padding-left: var(--arrow-spacing-s);
88
+ padding-right: var(--arrow-spacing-s);
89
+ }
90
+ }
91
+
92
+ .componentWrapper > :nth-child(1) :global(.arr--button),
93
+ .componentWrapper > :nth-child(2) :global(.arr--button) {
94
+ @media (max-width: desktop) {
95
+ margin-bottom: var(--arrow-spacing-m);
96
+ }
97
+ }
98
+
99
+ .componentWrapper > :nth-child(3) :global(.arr--button) {
100
+ margin-bottom: var(--arrow-spacing-m);
101
+ @media (min-width: mobile) {
102
+ margin-bottom: var(--arrow-spacing-xs);
103
+ }
104
+ }
105
+
106
+ .storyCardWrapper {
107
+ :global .arr--responsive-hero-image .story-icon,
108
+ :global .arr--fallback-hero-image .story-icon {
109
+ height: 24px;
110
+ width: 24px;
111
+ position: absolute;
112
+ bottom: 10px;
113
+ left: 10px;
114
+ z-index: var(--z-index-1);
115
+ @media (--viewport-small) {
116
+ height: 24px;
117
+ width: 24px;
118
+ }
119
+ }
120
+
121
+ :global .live-icon {
122
+ animation: blink 1.5s linear infinite;
123
+ vertical-align: middle;
124
+ height: 24px;
125
+ width: 24px;
126
+ }
127
+ }
128
+
129
+ @keyframes blink {
130
+ 0% {
131
+ opacity: 0;
132
+ }
133
+
134
+ 50% {
135
+ opacity: 1;
136
+ }
137
+
138
+ 100% {
139
+ opacity: 0;
140
+ }
141
+ }
@@ -0,0 +1,157 @@
1
+ import _toArray from "@babel/runtime/helpers/toArray";
2
+ import _getClassName from "babel-plugin-react-css-modules/dist/browser/getClassName";
3
+ import React from "react";
4
+ import { get } from "lodash";
5
+ import PropTypes from "prop-types";
6
+ import { getTextColor, generateNavigateSlug, navigateTo, rgbToHex, getNumberOfStoriesToShow } from "../../../utils/utils";
7
+ import { collectionToStories } from "@quintype/components";
8
+ import { StateProvider } from "../../SharedContext";
9
+ import { CollectionName } from "../../Atoms/CollectionName";
10
+ import { HeroImage } from "../../Atoms/HeroImage/index";
11
+ import { StoryCard } from "../../Molecules/StoryCard/index";
12
+ import { useDispatch, useSelector } from "react-redux";
13
+ import { Headline } from "../../Atoms/Headline";
14
+ import { AuthorWithTime } from "../../Atoms/AuthorWithTimestamp";
15
+ import { SectionTag } from "../../Atoms/SectionTag/index";
16
+ import { LoadmoreButton } from "../../Atoms/Loadmore";
17
+ import "./four-col-sixteen-stories.m.css";
18
+ var _styleModuleImportMap = {
19
+ "./four-col-sixteen-stories.m.css": {
20
+ "viewports": "\"../../../../assets/stylesheets/viewports.m.css\"",
21
+ "mobile": "768px",
22
+ "desktop": "1025px",
23
+ "componentWrapper": "four-col-sixteen-stories-m_componentWrapper__uBwJ6",
24
+ "cardWrapper": "four-col-sixteen-stories-m_cardWrapper__3lHPs",
25
+ "storyCardWrapper": "four-col-sixteen-stories-m_storyCardWrapper__zdEoM",
26
+ "separator": "four-col-sixteen-stories-m_separator__3e2GZ",
27
+ "light": "four-col-sixteen-stories-m_light__1TOSu",
28
+ "dark": "four-col-sixteen-stories-m_dark__3SEU2",
29
+ "contentWrapper": "four-col-sixteen-stories-m_contentWrapper__3w3Y9",
30
+ "blink": "four-col-sixteen-stories-m_blink__3pAYe"
31
+ }
32
+ };
33
+
34
+ var getChildCollectionData = function getChildCollectionData(collection, config, index) {
35
+ var stories = collectionToStories(collection);
36
+ if (!stories.length) return null;
37
+
38
+ var _stories = _toArray(stories),
39
+ firstStory = _stories[0],
40
+ otherStories = _stories.slice(1);
41
+
42
+ var collectionNameTemplate = config.collectionNameTemplate,
43
+ _config$borderColor = config.borderColor,
44
+ borderColor = _config$borderColor === void 0 ? "" : _config$borderColor,
45
+ _config$withSeparator = config.withSeparator,
46
+ withSeparator = _config$withSeparator === void 0 ? true : _config$withSeparator,
47
+ theme = config.theme,
48
+ _config$footerButton = config.footerButton,
49
+ footerButton = _config$footerButton === void 0 ? "" : _config$footerButton,
50
+ _config$localizationC = config.localizationConfig,
51
+ localizationConfig = _config$localizationC === void 0 ? {} : _config$localizationC,
52
+ _config$collectionNam = config.collectionNameBorderColor,
53
+ collectionNameBorderColor = _config$collectionNam === void 0 ? "" : _config$collectionNam,
54
+ _config$numberOfStori = config.numberOfStoriesToShowInEachColumn,
55
+ numberOfStoriesToShowInEachColumn = _config$numberOfStori === void 0 ? 4 : _config$numberOfStori;
56
+ var dispatch = useDispatch();
57
+ var qtConfig = useSelector(function (state) {
58
+ return get(state, ["qt", "config"], {});
59
+ });
60
+ var SectionTagBorderColor = rgbToHex(borderColor);
61
+ var showNumberOfStoriesInEachColumn = getNumberOfStoriesToShow(numberOfStoriesToShowInEachColumn) - 1;
62
+
63
+ if (numberOfStoriesToShowInEachColumn < 1) {
64
+ return null;
65
+ }
66
+
67
+ return /*#__PURE__*/React.createElement("div", {
68
+ className: "four-col-sixteen-stories-m_contentWrapper__3w3Y9",
69
+ key: index
70
+ }, /*#__PURE__*/React.createElement(CollectionName, {
71
+ collection: collection,
72
+ headerLevel: "3",
73
+ collectionNameTemplate: collectionNameTemplate,
74
+ collectionNameBorderColor: collectionNameBorderColor
75
+ }), /*#__PURE__*/React.createElement("div", {
76
+ className: _getClassName("cardWrapper ".concat(withSeparator ? "separator" : ""), _styleModuleImportMap)
77
+ }, /*#__PURE__*/React.createElement("div", {
78
+ className: "storyCardWrapper four-col-sixteen-stories-m_storyCardWrapper__zdEoM"
79
+ }, /*#__PURE__*/React.createElement(StoryCard, {
80
+ story: firstStory,
81
+ border: withSeparator ? "bottom" : "",
82
+ theme: theme,
83
+ config: config,
84
+ headerLevel: "6"
85
+ }, /*#__PURE__*/React.createElement(HeroImage, {
86
+ config: config,
87
+ story: firstStory,
88
+ aspectRatio: [[16, 9], [16, 9]]
89
+ }), /*#__PURE__*/React.createElement(SectionTag, {
90
+ story: firstStory,
91
+ borderColor: SectionTagBorderColor
92
+ }), /*#__PURE__*/React.createElement(Headline, {
93
+ story: firstStory,
94
+ premiumStoryIconConfig: config
95
+ }), /*#__PURE__*/React.createElement(AuthorWithTime, {
96
+ config: localizationConfig,
97
+ story: firstStory,
98
+ hideAuthorImage: true
99
+ })), otherStories.slice(0, showNumberOfStoriesInEachColumn).map(function (story, index) {
100
+ return /*#__PURE__*/React.createElement(StoryCard, {
101
+ key: index,
102
+ story: story,
103
+ theme: theme,
104
+ border: withSeparator ? "bottom" : "",
105
+ config: config
106
+ }, /*#__PURE__*/React.createElement(SectionTag, {
107
+ story: story,
108
+ borderColor: SectionTagBorderColor
109
+ }), /*#__PURE__*/React.createElement(Headline, {
110
+ story: story,
111
+ premiumStoryIconConfig: config
112
+ }), /*#__PURE__*/React.createElement(AuthorWithTime, {
113
+ config: localizationConfig,
114
+ story: story,
115
+ hideAuthorImage: true
116
+ }));
117
+ }))), /*#__PURE__*/React.createElement(LoadmoreButton, {
118
+ collection: collection,
119
+ template: footerButton,
120
+ config: config,
121
+ navigate: function navigate() {
122
+ return navigateTo(dispatch, generateNavigateSlug(collection, qtConfig));
123
+ },
124
+ qtConfig: qtConfig
125
+ }));
126
+ };
127
+
128
+ export var FourColSixteenStoriesBase = function FourColSixteenStoriesBase(_ref) {
129
+ var collection = _ref.collection,
130
+ _ref$config = _ref.config,
131
+ config = _ref$config === void 0 ? {} : _ref$config;
132
+ var childCollections = get(collection, ["items"], []).filter(function (collections) {
133
+ return collections.type === "collection";
134
+ });
135
+ if (childCollections.length < 4) return null; // if number of collection is less than 4 return null
136
+
137
+ var _config$theme = config.theme,
138
+ theme = _config$theme === void 0 ? "" : _config$theme;
139
+ var textColor = getTextColor(theme);
140
+ return /*#__PURE__*/React.createElement("div", {
141
+ "data-test-id": "four-col-sixteen-stories",
142
+ style: {
143
+ backgroundColor: theme,
144
+ color: textColor
145
+ },
146
+ className: "full-width-with-padding arrow-component arr--four-col-sixteen-stories " + _getClassName("componentWrapper ".concat(textColor), _styleModuleImportMap)
147
+ }, childCollections.slice(0, 4).map(function (collection, index) {
148
+ return getChildCollectionData(collection, config, index);
149
+ }));
150
+ };
151
+ FourColSixteenStoriesBase.propTypes = {
152
+ collection: PropTypes.object.isRequired,
153
+ config: PropTypes.shape({
154
+ theme: PropTypes.string
155
+ })
156
+ };
157
+ export var FourColSixteenStories = StateProvider(FourColSixteenStoriesBase);
@@ -0,0 +1,43 @@
1
+ import React from "react";
2
+ import { FourColSixteenStoriesBase } from ".";
3
+ import { generateCollections } from "../../Fixture";
4
+ import { color, boolean as _boolean, text, number } from "@storybook/addon-knobs";
5
+ import Readme from "./README.md";
6
+ import { withStore, optionalSelect, sectionTagTemplates, collectionNameTemplates, footerButton } from "../../../../storybook";
7
+ var collection = generateCollections(4);
8
+ withStore("Rows/Four Col Sixteen Stories", {
9
+ qt: {
10
+ config: {
11
+ "cdn-image": "thumbor-stg.assettype.com"
12
+ }
13
+ }
14
+ }, Readme).addDecorator(function (story) {
15
+ return /*#__PURE__*/React.createElement("div", {
16
+ style: {
17
+ maxWidth: "1140px",
18
+ margin: "auto"
19
+ }
20
+ }, story());
21
+ }).add("Default", function () {
22
+ var contextConfig = {
23
+ collectionNameBorderColor: color("Collection Name Border Color", "#3a9fdd"),
24
+ borderColor: color("Section Tag Border Color", "#3a9fdd"),
25
+ theme: color("BG Color", "#ffffff"),
26
+ withSeparator: _boolean("Separator", true),
27
+ collectionNameTemplate: optionalSelect("Collection Name Templates", collectionNameTemplates),
28
+ sectionTagTemplate: optionalSelect("Section Tag Templates", sectionTagTemplates),
29
+ showSection: _boolean("section disable", true),
30
+ showAuthor: _boolean("Author disable", true),
31
+ showTime: _boolean("Timestamp disable", true),
32
+ showRowTitle: _boolean("Row title", true),
33
+ footerButton: optionalSelect("Footer Button", footerButton),
34
+ buttonText: text("Footer text", "Read More"),
35
+ showButton: _boolean("Show button", true),
36
+ showReadTime: _boolean("Read time", true),
37
+ numberOfStoriesToShowInEachColumn: number("Number of stories to show in each column", 4)
38
+ };
39
+ return /*#__PURE__*/React.createElement(FourColSixteenStoriesBase, {
40
+ collection: collection,
41
+ config: contextConfig
42
+ });
43
+ });