@reuters-graphics/graphics-components 3.0.25 → 3.0.27

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 (379) hide show
  1. package/dist/components/@types/global.d.ts +1 -0
  2. package/dist/components/HorizontalScroller/Debug.svelte +345 -0
  3. package/dist/components/HorizontalScroller/Debug.svelte.d.ts +5 -0
  4. package/dist/components/HorizontalScroller/HorizontalScroller.svelte +252 -0
  5. package/dist/components/HorizontalScroller/HorizontalScroller.svelte.d.ts +34 -0
  6. package/dist/components/HorizontalScroller/assets/illustrator.png +0 -0
  7. package/dist/components/HorizontalScroller/utils/index.d.ts +16 -0
  8. package/dist/components/HorizontalScroller/utils/index.js +30 -0
  9. package/dist/components/Lottie/Debug.svelte +259 -0
  10. package/dist/components/Lottie/Debug.svelte.d.ts +5 -0
  11. package/dist/components/Lottie/Lottie.svelte +439 -0
  12. package/dist/components/Lottie/Lottie.svelte.d.ts +4 -0
  13. package/dist/components/Lottie/LottieForeground.svelte +138 -0
  14. package/dist/components/Lottie/LottieForeground.svelte.d.ts +16 -0
  15. package/dist/components/Lottie/assets/marker.jpg +0 -0
  16. package/dist/components/Lottie/lottie/demo.zip +0 -0
  17. package/dist/components/Lottie/lottie/foregroundSample.zip +0 -0
  18. package/dist/components/Lottie/lottie/markerSample.zip +0 -0
  19. package/dist/components/Lottie/lottie/themesLottie.zip +0 -0
  20. package/dist/components/Lottie/ts/lottieState.svelte.d.ts +25 -0
  21. package/dist/components/Lottie/ts/lottieState.svelte.js +25 -0
  22. package/dist/components/Lottie/ts/types.d.ts +39 -0
  23. package/dist/components/Lottie/ts/types.js +2 -0
  24. package/dist/components/Lottie/ts/utils.d.ts +44 -0
  25. package/dist/components/Lottie/ts/utils.js +93 -0
  26. package/dist/components/ScrollerVideo/Debug.svelte +9 -4
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.js +3 -0
  29. package/package.json +12 -2
  30. package/dist/actions/cssVariables/cssVariables.mdx +0 -39
  31. package/dist/actions/resizeObserver/resizeObserver.mdx +0 -20
  32. package/dist/components/AdSlot/InlineAd.mdx +0 -56
  33. package/dist/components/AdSlot/InlineAd.stories.svelte +0 -20
  34. package/dist/components/AdSlot/InlineAd.stories.svelte.d.ts +0 -19
  35. package/dist/components/AdSlot/LeaderboardAd.mdx +0 -31
  36. package/dist/components/AdSlot/LeaderboardAd.stories.svelte +0 -29
  37. package/dist/components/AdSlot/LeaderboardAd.stories.svelte.d.ts +0 -19
  38. package/dist/components/AdSlot/SponsorshipAd.mdx +0 -37
  39. package/dist/components/AdSlot/SponsorshipAd.stories.svelte +0 -20
  40. package/dist/components/AdSlot/SponsorshipAd.stories.svelte.d.ts +0 -19
  41. package/dist/components/Analytics/Analytics.mdx +0 -73
  42. package/dist/components/Analytics/Analytics.stories.svelte +0 -17
  43. package/dist/components/Analytics/Analytics.stories.svelte.d.ts +0 -19
  44. package/dist/components/Article/Article.mdx +0 -117
  45. package/dist/components/Article/Article.stories.svelte +0 -119
  46. package/dist/components/Article/Article.stories.svelte.d.ts +0 -19
  47. package/dist/components/BeforeAfter/BeforeAfter.mdx +0 -111
  48. package/dist/components/BeforeAfter/BeforeAfter.stories.svelte +0 -66
  49. package/dist/components/BeforeAfter/BeforeAfter.stories.svelte.d.ts +0 -19
  50. package/dist/components/BeforeAfter/images/myrne-after.jpg +0 -0
  51. package/dist/components/BeforeAfter/images/myrne-before.jpg +0 -0
  52. package/dist/components/Block/Block.mdx +0 -99
  53. package/dist/components/Block/Block.stories.svelte +0 -181
  54. package/dist/components/Block/Block.stories.svelte.d.ts +0 -19
  55. package/dist/components/BodyText/BodyText.mdx +0 -115
  56. package/dist/components/BodyText/BodyText.stories.svelte +0 -100
  57. package/dist/components/BodyText/BodyText.stories.svelte.d.ts +0 -19
  58. package/dist/components/Byline/Byline.mdx +0 -110
  59. package/dist/components/Byline/Byline.stories.svelte +0 -63
  60. package/dist/components/Byline/Byline.stories.svelte.d.ts +0 -19
  61. package/dist/components/DatawrapperChart/DatawrapperChart.mdx +0 -45
  62. package/dist/components/DatawrapperChart/DatawrapperChart.stories.svelte +0 -41
  63. package/dist/components/DatawrapperChart/DatawrapperChart.stories.svelte.d.ts +0 -19
  64. package/dist/components/DocumentCloud/DocumentCloud.mdx +0 -26
  65. package/dist/components/DocumentCloud/DocumentCloud.stories.svelte +0 -23
  66. package/dist/components/DocumentCloud/DocumentCloud.stories.svelte.d.ts +0 -19
  67. package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.mdx +0 -19
  68. package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.stories.svelte +0 -17
  69. package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.stories.svelte.d.ts +0 -19
  70. package/dist/components/EndNotes/EndNotes.mdx +0 -67
  71. package/dist/components/EndNotes/EndNotes.stories.svelte +0 -29
  72. package/dist/components/EndNotes/EndNotes.stories.svelte.d.ts +0 -19
  73. package/dist/components/FeaturePhoto/FeaturePhoto.mdx +0 -72
  74. package/dist/components/FeaturePhoto/FeaturePhoto.stories.svelte +0 -41
  75. package/dist/components/FeaturePhoto/FeaturePhoto.stories.svelte.d.ts +0 -19
  76. package/dist/components/FeaturePhoto/images/shark.jpg +0 -0
  77. package/dist/components/Framer/Framer.mdx +0 -19
  78. package/dist/components/Framer/Framer.stories.svelte +0 -19
  79. package/dist/components/Framer/Framer.stories.svelte.d.ts +0 -19
  80. package/dist/components/Functions/Utils.mdx +0 -23
  81. package/dist/components/Functions/Utils.stories.svelte +0 -9
  82. package/dist/components/Functions/Utils.stories.svelte.d.ts +0 -18
  83. package/dist/components/GraphicBlock/GraphicBlock.mdx +0 -215
  84. package/dist/components/GraphicBlock/GraphicBlock.stories.svelte +0 -131
  85. package/dist/components/GraphicBlock/GraphicBlock.stories.svelte.d.ts +0 -19
  86. package/dist/components/GraphicBlock/demo/ai2svelte/ai-chart.svelte +0 -628
  87. package/dist/components/GraphicBlock/demo/ai2svelte/ai-chart.svelte.d.ts +0 -3
  88. package/dist/components/GraphicBlock/demo/imgs/ai-chart-md.png +0 -0
  89. package/dist/components/GraphicBlock/demo/imgs/ai-chart-sm.png +0 -0
  90. package/dist/components/GraphicBlock/demo/imgs/ai-chart-xs.png +0 -0
  91. package/dist/components/GraphicBlock/demo/placeholder.png +0 -0
  92. package/dist/components/Headline/Headline.mdx +0 -150
  93. package/dist/components/Headline/Headline.stories.svelte +0 -108
  94. package/dist/components/Headline/Headline.stories.svelte.d.ts +0 -19
  95. package/dist/components/Headline/demo/crown.png +0 -0
  96. package/dist/components/Headline/demo/graphic-lg.png +0 -0
  97. package/dist/components/Headline/demo/graphic-md.png +0 -0
  98. package/dist/components/Headline/demo/graphic-sm.png +0 -0
  99. package/dist/components/Headline/demo/graphic-xl.png +0 -0
  100. package/dist/components/Headline/demo/graphic-xs.png +0 -0
  101. package/dist/components/Headline/demo/graphic.svelte +0 -957
  102. package/dist/components/Headline/demo/graphic.svelte.d.ts +0 -6
  103. package/dist/components/Headpile/Headpile.mdx +0 -37
  104. package/dist/components/Headpile/Headpile.stories.svelte +0 -37
  105. package/dist/components/Headpile/Headpile.stories.svelte.d.ts +0 -19
  106. package/dist/components/Headpile/images/abdel.png +0 -0
  107. package/dist/components/Headpile/images/hemedti.png +0 -0
  108. package/dist/components/HeroHeadline/HeroHeadline.mdx +0 -329
  109. package/dist/components/HeroHeadline/HeroHeadline.stories.svelte +0 -264
  110. package/dist/components/HeroHeadline/HeroHeadline.stories.svelte.d.ts +0 -19
  111. package/dist/components/HeroHeadline/demo/eurovis.jpeg +0 -0
  112. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-lg.jpeg +0 -0
  113. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-md.jpeg +0 -0
  114. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-sm.jpeg +0 -0
  115. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-xl.jpeg +0 -0
  116. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-xl_copy.jpeg +0 -0
  117. package/dist/components/HeroHeadline/demo/graphics/CRASH_1-xs.jpeg +0 -0
  118. package/dist/components/HeroHeadline/demo/graphics/crash.svelte +0 -630
  119. package/dist/components/HeroHeadline/demo/graphics/crash.svelte.d.ts +0 -6
  120. package/dist/components/HeroHeadline/demo/graphics/quake-map-top-lg.jpeg +0 -0
  121. package/dist/components/HeroHeadline/demo/graphics/quake-map-top-md.jpeg +0 -0
  122. package/dist/components/HeroHeadline/demo/graphics/quake-map-top-sm.jpeg +0 -0
  123. package/dist/components/HeroHeadline/demo/graphics/quake-map-top-xl.jpeg +0 -0
  124. package/dist/components/HeroHeadline/demo/graphics/quake-map-top-xs.jpeg +0 -0
  125. package/dist/components/HeroHeadline/demo/graphics/quakemap.svelte +0 -865
  126. package/dist/components/HeroHeadline/demo/graphics/quakemap.svelte.d.ts +0 -6
  127. package/dist/components/HeroHeadline/demo/polar.jpg +0 -0
  128. package/dist/components/InfoBox/InfoBox.mdx +0 -122
  129. package/dist/components/InfoBox/InfoBox.stories.svelte +0 -98
  130. package/dist/components/InfoBox/InfoBox.stories.svelte.d.ts +0 -19
  131. package/dist/components/PaddingReset/PaddingReset.mdx +0 -53
  132. package/dist/components/PaddingReset/PaddingReset.stories.svelte +0 -42
  133. package/dist/components/PaddingReset/PaddingReset.stories.svelte.d.ts +0 -19
  134. package/dist/components/PhotoPack/PhotoPack.mdx +0 -177
  135. package/dist/components/PhotoPack/PhotoPack.stories.svelte +0 -140
  136. package/dist/components/PhotoPack/PhotoPack.stories.svelte.d.ts +0 -19
  137. package/dist/components/PymChild/PymChild.mdx +0 -33
  138. package/dist/components/PymChild/PymChild.stories.svelte +0 -11
  139. package/dist/components/PymChild/PymChild.stories.svelte.d.ts +0 -19
  140. package/dist/components/ReferralBlock/ReferralBlock.mdx +0 -44
  141. package/dist/components/ReferralBlock/ReferralBlock.stories.svelte +0 -51
  142. package/dist/components/ReferralBlock/ReferralBlock.stories.svelte.d.ts +0 -19
  143. package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.mdx +0 -21
  144. package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.stories.svelte +0 -14
  145. package/dist/components/ReutersGraphicsLogo/ReutersGraphicsLogo.stories.svelte.d.ts +0 -19
  146. package/dist/components/ReutersLogo/ReutersLogo.mdx +0 -19
  147. package/dist/components/ReutersLogo/ReutersLogo.stories.svelte +0 -15
  148. package/dist/components/ReutersLogo/ReutersLogo.stories.svelte.d.ts +0 -19
  149. package/dist/components/SEO/SEO.mdx +0 -80
  150. package/dist/components/SEO/SEO.stories.svelte +0 -23
  151. package/dist/components/SEO/SEO.stories.svelte.d.ts +0 -18
  152. package/dist/components/Scroller/Scroller.mdx +0 -279
  153. package/dist/components/Scroller/Scroller.stories.svelte +0 -195
  154. package/dist/components/Scroller/Scroller.stories.svelte.d.ts +0 -19
  155. package/dist/components/Scroller/demo/components/ai2svelte/ai-foreground.svelte +0 -118
  156. package/dist/components/Scroller/demo/components/ai2svelte/ai-foreground.svelte.d.ts +0 -6
  157. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-1.svelte +0 -128
  158. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-1.svelte.d.ts +0 -3
  159. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-2.svelte +0 -282
  160. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-2.svelte.d.ts +0 -3
  161. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-3.svelte +0 -282
  162. package/dist/components/Scroller/demo/components/ai2svelte/ai-scroller-3.svelte.d.ts +0 -3
  163. package/dist/components/Scroller/demo/components/ai2svelte/images/Body-issues-key-xs.png +0 -0
  164. package/dist/components/Scroller/demo/components/ai2svelte/images/step-1-lg.png +0 -0
  165. package/dist/components/Scroller/demo/components/ai2svelte/images/step-1-md.png +0 -0
  166. package/dist/components/Scroller/demo/components/ai2svelte/images/step-1-sm.png +0 -0
  167. package/dist/components/Scroller/demo/components/ai2svelte/images/step-1-xl.png +0 -0
  168. package/dist/components/Scroller/demo/components/ai2svelte/images/step-1-xs.png +0 -0
  169. package/dist/components/Scroller/demo/components/ai2svelte/images/step-2-lg.png +0 -0
  170. package/dist/components/Scroller/demo/components/ai2svelte/images/step-2-md.png +0 -0
  171. package/dist/components/Scroller/demo/components/ai2svelte/images/step-2-sm.png +0 -0
  172. package/dist/components/Scroller/demo/components/ai2svelte/images/step-2-xl.png +0 -0
  173. package/dist/components/Scroller/demo/components/ai2svelte/images/step-2-xs.png +0 -0
  174. package/dist/components/Scroller/demo/components/ai2svelte/images/step-3-lg.png +0 -0
  175. package/dist/components/Scroller/demo/components/ai2svelte/images/step-3-md.png +0 -0
  176. package/dist/components/Scroller/demo/components/ai2svelte/images/step-3-sm.png +0 -0
  177. package/dist/components/Scroller/demo/components/ai2svelte/images/step-3-xl.png +0 -0
  178. package/dist/components/Scroller/demo/components/ai2svelte/images/step-3-xs.png +0 -0
  179. package/dist/components/Scroller/demo/components/basic/InteractiveForeground.svelte +0 -17
  180. package/dist/components/Scroller/demo/components/basic/InteractiveForeground.svelte.d.ts +0 -6
  181. package/dist/components/Scroller/demo/components/basic/Step.svelte +0 -16
  182. package/dist/components/Scroller/demo/components/basic/Step.svelte.d.ts +0 -6
  183. package/dist/components/ScrollerBase/ScrollerBase.mdx +0 -77
  184. package/dist/components/ScrollerBase/ScrollerBase.stories.svelte +0 -12
  185. package/dist/components/ScrollerBase/ScrollerBase.stories.svelte.d.ts +0 -19
  186. package/dist/components/ScrollerBase/demo/DraggableLabel.svelte +0 -96
  187. package/dist/components/ScrollerBase/demo/DraggableLabel.svelte.d.ts +0 -21
  188. package/dist/components/ScrollerBase/demo/ScrollerDemo.svelte +0 -83
  189. package/dist/components/ScrollerBase/demo/ScrollerDemo.svelte.d.ts +0 -3
  190. package/dist/components/ScrollerVideo/ScrollerVideo.mdx +0 -465
  191. package/dist/components/ScrollerVideo/ScrollerVideo.stories.svelte +0 -190
  192. package/dist/components/ScrollerVideo/ScrollerVideo.stories.svelte.d.ts +0 -19
  193. package/dist/components/ScrollerVideo/demo/AdvancedUsecases.svelte +0 -85
  194. package/dist/components/ScrollerVideo/demo/AdvancedUsecases.svelte.d.ts +0 -3
  195. package/dist/components/ScrollerVideo/demo/Embedded.svelte +0 -94
  196. package/dist/components/ScrollerVideo/demo/Embedded.svelte.d.ts +0 -3
  197. package/dist/components/ScrollerVideo/demo/WithAi2svelteForegrounds.svelte +0 -117
  198. package/dist/components/ScrollerVideo/demo/WithAi2svelteForegrounds.svelte.d.ts +0 -3
  199. package/dist/components/ScrollerVideo/demo/WithScrollerBase.svelte +0 -54
  200. package/dist/components/ScrollerVideo/demo/WithScrollerBase.svelte.d.ts +0 -3
  201. package/dist/components/ScrollerVideo/demo/WithTextForegrounds.svelte +0 -72
  202. package/dist/components/ScrollerVideo/demo/WithTextForegrounds.svelte.d.ts +0 -18
  203. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/ai-chart.svelte +0 -631
  204. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/ai-chart.svelte.d.ts +0 -3
  205. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation1.svelte +0 -428
  206. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation1.svelte.d.ts +0 -26
  207. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation2.svelte +0 -402
  208. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation2.svelte.d.ts +0 -26
  209. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation3.svelte +0 -398
  210. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation3.svelte.d.ts +0 -26
  211. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation4.svelte +0 -360
  212. package/dist/components/ScrollerVideo/demo/graphic/ai2svelte/annotation4.svelte.d.ts +0 -26
  213. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-md.png +0 -0
  214. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-sm.png +0 -0
  215. package/dist/components/ScrollerVideo/demo/graphic/imgs/ai-chart-xs.png +0 -0
  216. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-lg.png +0 -0
  217. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-md.png +0 -0
  218. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-sm.png +0 -0
  219. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-xl.png +0 -0
  220. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation1-xs.png +0 -0
  221. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-lg.png +0 -0
  222. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-md.png +0 -0
  223. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-sm.png +0 -0
  224. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-xl.png +0 -0
  225. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation2-xs.png +0 -0
  226. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-lg.png +0 -0
  227. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-md.png +0 -0
  228. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-sm.png +0 -0
  229. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-xl.png +0 -0
  230. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation3-xs.png +0 -0
  231. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-lg.png +0 -0
  232. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-md.png +0 -0
  233. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-sm.png +0 -0
  234. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-xl.png +0 -0
  235. package/dist/components/ScrollerVideo/demo/graphic/imgs/annotation4-xs.png +0 -0
  236. package/dist/components/ScrollerVideo/videos/HPO.mp4 +0 -0
  237. package/dist/components/ScrollerVideo/videos/drone.mp4 +0 -0
  238. package/dist/components/ScrollerVideo/videos/goldengate.mp4 +0 -0
  239. package/dist/components/ScrollerVideo/videos/tennis.mp4 +0 -0
  240. package/dist/components/ScrollerVideo/videos/waves_lg.mp4 +0 -0
  241. package/dist/components/ScrollerVideo/videos/waves_md.mp4 +0 -0
  242. package/dist/components/ScrollerVideo/videos/waves_sm.mp4 +0 -0
  243. package/dist/components/SearchInput/SearchInput.mdx +0 -29
  244. package/dist/components/SearchInput/SearchInput.stories.svelte +0 -24
  245. package/dist/components/SearchInput/SearchInput.stories.svelte.d.ts +0 -19
  246. package/dist/components/SimpleTimeline/SimpleTimeline.mdx +0 -121
  247. package/dist/components/SimpleTimeline/SimpleTimeline.stories.svelte +0 -95
  248. package/dist/components/SimpleTimeline/SimpleTimeline.stories.svelte.d.ts +0 -19
  249. package/dist/components/SiteFooter/SiteFooter.mdx +0 -45
  250. package/dist/components/SiteFooter/SiteFooter.stories.svelte +0 -29
  251. package/dist/components/SiteFooter/SiteFooter.stories.svelte.d.ts +0 -19
  252. package/dist/components/SiteHeader/SiteHeader.mdx +0 -33
  253. package/dist/components/SiteHeader/SiteHeader.stories.svelte +0 -45
  254. package/dist/components/SiteHeader/SiteHeader.stories.svelte.d.ts +0 -19
  255. package/dist/components/SiteHeadline/SiteHeadline.mdx +0 -69
  256. package/dist/components/SiteHeadline/SiteHeadline.stories.svelte +0 -49
  257. package/dist/components/SiteHeadline/SiteHeadline.stories.svelte.d.ts +0 -19
  258. package/dist/components/Spinner/Spinner.mdx +0 -25
  259. package/dist/components/Spinner/Spinner.stories.svelte +0 -20
  260. package/dist/components/Spinner/Spinner.stories.svelte.d.ts +0 -19
  261. package/dist/components/Table/Table.mdx +0 -177
  262. package/dist/components/Table/Table.stories.svelte +0 -132
  263. package/dist/components/Table/Table.stories.svelte.d.ts +0 -19
  264. package/dist/components/Table/demo/homeRuns.json +0 -42
  265. package/dist/components/Table/demo/pressFreedom.json +0 -887
  266. package/dist/components/Table/demo/richestWomen.json +0 -42
  267. package/dist/components/Theme/Theme.mdx +0 -164
  268. package/dist/components/Theme/Theme.stories.svelte +0 -145
  269. package/dist/components/Theme/Theme.stories.svelte.d.ts +0 -19
  270. package/dist/components/Theme/demo/ThemedPage.svelte +0 -36
  271. package/dist/components/Theme/demo/ThemedPage.svelte.d.ts +0 -26
  272. package/dist/components/ToolsHeader/ToolsHeader.mdx +0 -23
  273. package/dist/components/ToolsHeader/ToolsHeader.stories.svelte +0 -22
  274. package/dist/components/ToolsHeader/ToolsHeader.stories.svelte.d.ts +0 -19
  275. package/dist/components/Video/Video.mdx +0 -155
  276. package/dist/components/Video/Video.stories.svelte +0 -104
  277. package/dist/components/Video/Video.stories.svelte.d.ts +0 -19
  278. package/dist/components/Video/demo/silent-video.mp4 +0 -0
  279. package/dist/components/Video/demo/sound-video.mp4 +0 -0
  280. package/dist/components/Visible/Visible.mdx +0 -34
  281. package/dist/components/Visible/Visible.stories.svelte +0 -15
  282. package/dist/components/Visible/Visible.stories.svelte.d.ts +0 -19
  283. package/dist/components/Visible/demo/VisibleDemo.svelte +0 -46
  284. package/dist/components/Visible/demo/VisibleDemo.svelte.d.ts +0 -3
  285. package/dist/docs/actions/intro.mdx +0 -14
  286. package/dist/docs/contributing/component-guidelines.mdx +0 -139
  287. package/dist/docs/contributing/quickstart.mdx +0 -36
  288. package/dist/docs/contributing/writing-component-stories.mdx +0 -31
  289. package/dist/docs/docStyles.scss +0 -11
  290. package/dist/docs/docs-components/CopyColourTable/ImportSnippet.d.ts +0 -6
  291. package/dist/docs/docs-components/CopyColourTable/ImportSnippet.jsx +0 -54
  292. package/dist/docs/docs-components/CopyColourTable/Table.d.ts +0 -10
  293. package/dist/docs/docs-components/CopyColourTable/Table.jsx +0 -106
  294. package/dist/docs/docs-components/CopyColourTable/styles.module.scss +0 -184
  295. package/dist/docs/docs-components/CopyTable/Table.d.ts +0 -10
  296. package/dist/docs/docs-components/CopyTable/Table.jsx +0 -99
  297. package/dist/docs/docs-components/CopyTable/styles.module.scss +0 -129
  298. package/dist/docs/docs-components/Herbie/Herbie.d.ts +0 -7
  299. package/dist/docs/docs-components/Herbie/Herbie.tsx +0 -47
  300. package/dist/docs/docs-components/Highlight/Highlight.d.ts +0 -6
  301. package/dist/docs/docs-components/Highlight/Highlight.tsx +0 -19
  302. package/dist/docs/docs-components/MdxTheme/Theme.d.ts +0 -3
  303. package/dist/docs/docs-components/MdxTheme/Theme.jsx +0 -29
  304. package/dist/docs/docs-components/Mermaid/Mermaid.d.ts +0 -2
  305. package/dist/docs/docs-components/Mermaid/Mermaid.jsx +0 -32
  306. package/dist/docs/docs-components/SubtleHighlight/SubtleHighlight.d.ts +0 -6
  307. package/dist/docs/docs-components/SubtleHighlight/SubtleHighlight.tsx +0 -16
  308. package/dist/docs/docs-components/ThemeBuilder/CSSVariables/VariableTable.d.ts +0 -3
  309. package/dist/docs/docs-components/ThemeBuilder/CSSVariables/VariableTable.jsx +0 -21
  310. package/dist/docs/docs-components/ThemeBuilder/Customiser/ColourPicker.d.ts +0 -6
  311. package/dist/docs/docs-components/ThemeBuilder/Customiser/ColourPicker.jsx +0 -25
  312. package/dist/docs/docs-components/ThemeBuilder/Customiser/Customiser.d.ts +0 -7
  313. package/dist/docs/docs-components/ThemeBuilder/Customiser/Customiser.jsx +0 -27
  314. package/dist/docs/docs-components/ThemeBuilder/Customiser/Key.d.ts +0 -10
  315. package/dist/docs/docs-components/ThemeBuilder/Customiser/Key.jsx +0 -40
  316. package/dist/docs/docs-components/ThemeBuilder/Customiser/Value.d.ts +0 -10
  317. package/dist/docs/docs-components/ThemeBuilder/Customiser/Value.jsx +0 -61
  318. package/dist/docs/docs-components/ThemeBuilder/Customiser/styles.module.scss +0 -93
  319. package/dist/docs/docs-components/ThemeBuilder/NewTheme/NewTheme.d.ts +0 -6
  320. package/dist/docs/docs-components/ThemeBuilder/NewTheme/NewTheme.jsx +0 -55
  321. package/dist/docs/docs-components/ThemeBuilder/NewTheme/styles.module.scss +0 -17
  322. package/dist/docs/docs-components/ThemeBuilder/ThemeBuilder.d.ts +0 -3
  323. package/dist/docs/docs-components/ThemeBuilder/ThemeBuilder.jsx +0 -42
  324. package/dist/docs/docs-components/ThemeBuilder/ThemeSwitch/Switch.d.ts +0 -6
  325. package/dist/docs/docs-components/ThemeBuilder/ThemeSwitch/Switch.jsx +0 -28
  326. package/dist/docs/docs-components/ThemeBuilder/ThemeSwitch/styles.module.scss +0 -40
  327. package/dist/docs/docs-components/ThemeBuilder/styles.module.scss +0 -20
  328. package/dist/docs/docs-components/syntax/nord.d.ts +0 -7
  329. package/dist/docs/docs-components/syntax/nord.js +0 -155
  330. package/dist/docs/guides/archieml.mdx +0 -441
  331. package/dist/docs/guides/customising-with-scss.mdx +0 -95
  332. package/dist/docs/guides/getting-help.mdx +0 -28
  333. package/dist/docs/guides/graphics-kit.mdx +0 -34
  334. package/dist/docs/guides/imgs/argstable.png +0 -0
  335. package/dist/docs/guides/imgs/frame.png +0 -0
  336. package/dist/docs/guides/imgs/intro.png +0 -0
  337. package/dist/docs/guides/imgs/more-stories.png +0 -0
  338. package/dist/docs/guides/imgs/prop.png +0 -0
  339. package/dist/docs/guides/imgs/quickit.png +0 -0
  340. package/dist/docs/guides/imgs/scss-change.png +0 -0
  341. package/dist/docs/guides/imgs/scss-highlight.png +0 -0
  342. package/dist/docs/guides/imgs/scss-inspector.png +0 -0
  343. package/dist/docs/guides/imgs/scss-start.png +0 -0
  344. package/dist/docs/guides/imgs/scss-test.png +0 -0
  345. package/dist/docs/guides/imgs/scss-winning.png +0 -0
  346. package/dist/docs/guides/imgs/slots.png +0 -0
  347. package/dist/docs/guides/imgs/stories.png +0 -0
  348. package/dist/docs/guides/svelte-components.mdx +0 -138
  349. package/dist/docs/guides/using-docs.mdx +0 -58
  350. package/dist/docs/intro.mdx +0 -36
  351. package/dist/docs/layout/article-well.jpg +0 -0
  352. package/dist/docs/layout/intro.mdx +0 -27
  353. package/dist/docs/styles/colours/intro.mdx +0 -22
  354. package/dist/docs/styles/colours/primary.mdx +0 -163
  355. package/dist/docs/styles/colours/thematic.mdx +0 -24
  356. package/dist/docs/styles/intro.mdx +0 -21
  357. package/dist/docs/styles/tokens/accessibility/main.mdx +0 -17
  358. package/dist/docs/styles/tokens/backgrounds/main.mdx +0 -18
  359. package/dist/docs/styles/tokens/borders/main.mdx +0 -44
  360. package/dist/docs/styles/tokens/flexbox/main.mdx +0 -111
  361. package/dist/docs/styles/tokens/interactivity/_main.mdx +0 -27
  362. package/dist/docs/styles/tokens/intro.mdx +0 -124
  363. package/dist/docs/styles/tokens/layout/main.mdx +0 -71
  364. package/dist/docs/styles/tokens/sizing/main.mdx +0 -62
  365. package/dist/docs/styles/tokens/spacers/main.mdx +0 -56
  366. package/dist/docs/styles/tokens/styles.scss +0 -9
  367. package/dist/docs/styles/tokens/typography/main.mdx +0 -145
  368. package/dist/docs/styles/tokens/typography/styles.scss +0 -9
  369. package/dist/docs/styles/tokens/variables/main.mdx +0 -27
  370. package/dist/docs/theme-builder/theme-builder.mdx +0 -12
  371. package/dist/docs/theming/css-variables.mdx +0 -105
  372. package/dist/docs/utils/css-to-js/index.d.ts +0 -2
  373. package/dist/docs/utils/css-to-js/index.js +0 -388
  374. package/dist/docs/utils/docsPage.d.ts +0 -25
  375. package/dist/docs/utils/docsPage.js +0 -13
  376. package/dist/docs/utils/parseCss.d.ts +0 -3
  377. package/dist/docs/utils/parseCss.js +0 -42
  378. package/dist/test/utils.test.d.ts +0 -1
  379. package/dist/test/utils.test.js +0 -141
@@ -1,6 +0,0 @@
1
- export default Graphic;
2
- type Graphic = {
3
- $on?(type: string, callback: (e: any) => void): () => void;
4
- $set?(props: Partial<Record<string, never>>): void;
5
- };
6
- declare const Graphic: import("svelte").Component<Record<string, never>, {}, "">;
@@ -1,37 +0,0 @@
1
- import { Meta, Canvas } from '@storybook/blocks';
2
-
3
- import * as HeadpileStories from './Headpile.stories.svelte';
4
-
5
- <Meta of={HeadpileStories} />
6
-
7
- # Headpile
8
-
9
- The `Headpile` component is a headshot-bulleted list of people, identifying them with their names, roles and a short description of their significance to a story.
10
-
11
- It's designed to be used with headshots that have had their background removed, which can be done in the [Preview app](https://support.apple.com/en-gb/guide/preview/prvw15636/mac?#apd320b3b1b750a4) on macOS.
12
-
13
- ```svelte
14
- <script>
15
- import { Headpile } from '@reuters-graphics/graphics-components';
16
- import { assets } from '$app/paths'; // 👈 If using in the graphics kit...
17
- </script>
18
-
19
- <Headpile
20
- figures={[
21
- {
22
- img: `${assets}/images/person-A.jpg`,
23
- name: 'General Abdel Fattah al-Burhan',
24
- role: "Sudan's Sovereign Council Chief and military commander",
25
- text: 'Burhan was little known in public life until taking part in the coup ...',
26
- },
27
- {
28
- img: `${assets}/images/person-B.jpg`,
29
- name: 'General Mohamed Hamdan Dagalo',
30
- role: 'Leader of the Sudanese paramilitary Rapid Support Forces (RSF)',
31
- text: 'Popularly known as Hemedti, Dagalo rose from lowly beginnings ...',
32
- },
33
- ]}
34
- />
35
- ```
36
-
37
- <Canvas of={HeadpileStories.Demo} />
@@ -1,37 +0,0 @@
1
- <script module lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import Headpile from './Headpile.svelte';
4
-
5
- import hed1 from './images/abdel.png';
6
- import hed2 from './images/hemedti.png';
7
-
8
- const { Story } = defineMeta({
9
- title: 'Components/Text elements/Headpile',
10
- component: Headpile,
11
- argTypes: {},
12
- });
13
-
14
- const defaultArgs = [
15
- {
16
- name: 'General Abdel Fattah al-Burhan',
17
- role: "Sudan's Sovereign Council Chief and military commander",
18
- img: hed1,
19
- text: 'Burhan was little known in public life until taking part in the coup against Bashir in 2019 after a popular uprising against his rule. In August 2019, his role as de facto head of state was affirmed when he became head of the Sovereign Council, a body comprising civilian and military leaders formed to oversee the transition towards elections.',
20
- // colour: '#957caa',
21
- },
22
- {
23
- name: 'General Mohamed Hamdan Dagalo',
24
- role: 'Leader of the Sudanese paramilitary Rapid Support Forces (RSF)',
25
- img: hed2,
26
- text: "Popularly known as Hemedti, Dagalo rose from lowly beginnings as a camel trader to head a widely feared Arab militia that crushed a revolt in Darfur, winning him influence and eventually a role as Sudan's former deputy head of state.\r\n\r\nOver the past decade, he has been a key figure in Sudanese politics, aiding in the ousting of Bashir in 2019 and suppressing pro-democracy protests. As the country limped from one economic crisis to another, Hemedti became one of Sudan’s richest men, exporting gold from mines in Darfur seized by his fighters.",
27
- colour: '#afb776',
28
- },
29
- ];
30
- </script>
31
-
32
- <Story
33
- name="Demo"
34
- args={{
35
- figures: defaultArgs,
36
- }}
37
- />
@@ -1,19 +0,0 @@
1
- import Headpile from './Headpile.svelte';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
14
- }
15
- declare const Headpile: $$__sveltets_2_IsomorphicComponent<Record<string, never>, {
16
- [evt: string]: CustomEvent<any>;
17
- }, {}, {}, string>;
18
- type Headpile = InstanceType<typeof Headpile>;
19
- export default Headpile;
@@ -1,329 +0,0 @@
1
- import { Meta, Canvas } from '@storybook/blocks';
2
-
3
- import * as HeroHeadlineStories from './HeroHeadline.stories.svelte';
4
-
5
- <Meta of={HeroHeadlineStories} />
6
-
7
- # HeroHeadline
8
-
9
- The `HeroHeadline` component creates a Reuters Graphics headline with a hero media, which can be a graphic, photo, video or other media.
10
-
11
- By default, the hero is in the background, i.e., the headline and dek are stacked on top of the hero. You can unstack and insert the hero media inline -- i.e., before or after the headline -- by setting `stacked: false`. [Read more.](?/iframe.html?viewMode=docs&id=components-text-elements-heroheadline--docs&globals=&args=#inline-hero)
12
-
13
- ## Photo hero
14
-
15
- To use a photo as the hero, simply pass the image source to the `img` prop.
16
-
17
- ```svelte
18
- <!-- App.svelte -->
19
- <script>
20
- import { HeroHeadline } from '@reuters-graphics/graphics-components';
21
- import { assets } from '$app/paths'; // 👈 If using in the graphics kit...
22
-
23
- let { embedded = false } = $props(); // 👈 If using in the graphics kit...
24
- </script>
25
-
26
- <HeroHeadline
27
- {embedded}
28
- img={`${assets}/images/polar-bear.jpg`}
29
- ariaDescription="A photo of a polar bear"
30
- notes="Photo by REUTERS"
31
- section={'World News'}
32
- hed={'Reuters Graphics Interactive'}
33
- dek={'The beginning of a beautiful page'}
34
- authors={['Jane Doe', 'John Doe']}
35
- />
36
- ```
37
-
38
- <Canvas of={HeroHeadlineStories.PhotoHero} />
39
-
40
- ## Transparent site header
41
-
42
- In the graphics kit, set styles in `global.scss` to make the Reuters site header transparent and make the hero go all the way to the top of the page:
43
-
44
- ```scss
45
- // global.scss
46
- .nav-container {
47
- background-color: transparent !important;
48
- }
49
- .nav-container .inner {
50
- background-color: transparent !important;
51
- border: none !important;
52
- }
53
- .hero-wrapper {
54
- margin-block-start: -64px;
55
- }
56
- ```
57
-
58
- <Canvas of={HeroHeadlineStories.TransparentHeader} />
59
-
60
- ## Ai2svelte hero
61
-
62
- To use an ai2svelte graphic as the hero, wrap your ai2svelte component in a `GraphicBlock` component and insert it inside `HeroHeadline`.
63
-
64
- To customise styles, use CSS to target the class passed to `HeroHeadline`.
65
-
66
- > **Note:** Pass `notes` and `ariaDescription` to the `GraphicBlock` component to provide additional information about the ai2svelte graphic.
67
-
68
- ```svelte
69
- <!-- App.svelte -->
70
- <script>
71
- import {
72
- HeroHeadline,
73
- GraphicBlock,
74
- } from '@reuters-graphics/graphics-components';
75
-
76
- import QuakeMap from './ai2svelte/graphic.svelte'; // Your ai2svelte component
77
-
78
- import { assets } from '$app/paths'; // 👈 If using in the graphics kit...
79
-
80
- let { embedded = false } = $props(); // 👈 If using in the graphics kit...
81
- </script>
82
-
83
- <HeroHeadline
84
- {embedded}
85
- hed="Earthquake devastates Afghanistan"
86
- hedSize="big"
87
- hedWidth="wide"
88
- class="custom-hero mb-0"
89
- authors={[
90
- 'Anand Katakam',
91
- 'Vijdan Mohammad Kawoosa',
92
- 'Adolfo Arranz',
93
- 'Wen Foo',
94
- 'Simon Scarr',
95
- 'Aman Bhargava',
96
- 'Jitesh Chowdhury',
97
- 'Manas Sharma',
98
- 'Aditi Bhandari',
99
- ]}
100
- publishTime={new Date('2022-06-24').toISOString()}
101
- >
102
- <GraphicBlock
103
- width="widest"
104
- role="figure"
105
- class="my-0"
106
- ariaDescription="Earthquake impact map"
107
- >
108
- <!-- Pass `assetsPath` if in graphics kit -->
109
- <QuakeMap assetsPath={assets || '/'} />
110
- </GraphicBlock>
111
- </HeroHeadline>
112
- ```
113
-
114
- Add styles in `global.scss`:
115
-
116
- ```scss
117
- // global.scss
118
- // Customise styles using the class (e.g. `custom-hero` here) passed to `HeroHeadline`
119
- .hero-wrapper {
120
- .custom-hero.headline {
121
- // Adjust vertical positioning
122
- align-items: flex-end !important;
123
-
124
- @media (max-width: 1100px) {
125
- // Adjust line length of title
126
- max-width: var(--normal-column-width) !important;
127
- }
128
- }
129
-
130
- // Make hero shorter than 100vh
131
- --heroHeight: 85svh;
132
-
133
- @media (max-width: 960px) {
134
- --heroHeight: 65svh;
135
- }
136
-
137
- // For small height
138
- @media (max-height: 850px) {
139
- --heroHeight: 100svh;
140
- }
141
-
142
- // Custom hero sizing for landscape mobile
143
- @media (max-width: 960px) and (orientation: landscape) {
144
- --heroHeight: 200svh;
145
- }
146
- }
147
-
148
- // Override default fixed height for hero layout in embeds
149
- .hero-wrapper.embedded {
150
- --heroHeight: 1000px;
151
- }
152
- ```
153
-
154
- <Canvas of={HeroHeadlineStories.Ai2svelteHero} />
155
-
156
- ## Video hero
157
-
158
- To add a video as the hero, use the [Video](?path=/docs/components-multimedia-video--docs) component. To customise styles, use CSS to target the class passed to `HeroHeadline`.
159
-
160
- > **Note:** Pass `notes` and `ariaDescription` to the `GraphicBlock` component to provide additional information about the video.
161
-
162
- ```svelte
163
- <script>
164
- import { HeroHeadline, Video } from '@reuters-graphics/graphics-components';
165
- import { assets } from '$app/paths'; // 👈 If using in the graphics kit...
166
-
167
- let { embedded = false } = $props(); // 👈 If using in the graphics kit...
168
- </script>
169
-
170
- <HeroHeadline
171
- {embedded}
172
- class="video-hero"
173
- hed="The conflict in Ethiopia"
174
- hedSize="bigger"
175
- hedWidth="wide"
176
- authors={['Aditi Bhandari ', 'David Lewis']}
177
- publishTime={new Date('2020-12-18').toISOString()}
178
- >
179
- <Video
180
- width="widest"
181
- class="my-0"
182
- showControls={false}
183
- preloadVideo="auto"
184
- playVideoWhenInView={false}
185
- src={`${assets}/videos/intro.mp4`}
186
- poster={`${assets}/images/video-poster-intro.jpg`}
187
- notes="Drone footage from the Village 8 refugee camp in Sudan."
188
- ariaDescription="Aerial footage of people houses in refugee camp"
189
- />
190
- </HeroHeadline>
191
- ```
192
-
193
- Add styles in `global.scss`:
194
-
195
- ```scss
196
- // global.scss
197
- // Customise styles using the class (e.g. `video-hero` here) passed to `HeroHeadline`
198
- .hero-wrapper {
199
- --heroHeight: calc(100svh - 60px);
200
- .video-hero.headline {
201
- header {
202
- // Adjust vertical position as offset from default center
203
- top: calc(50svh - 250px);
204
- }
205
-
206
- h1 {
207
- color: #ffd430;
208
- text-shadow: 3px 4px 7px rgba(81, 67, 21, 0.8);
209
- }
210
- }
211
- }
212
- ```
213
-
214
- <Canvas of={HeroHeadlineStories.VideoHero} />
215
-
216
- ## Inline hero
217
-
218
- To use a photo, graphic, video, etc. as an inline hero -- i.e., to make the hero appear _after_ the headline and dek, instead of stacked underneath -- set `stacked` to `false`. Otherwise, add your hero media in the same way as documented above.
219
-
220
- ```svelte
221
- <!-- App.svelte -->
222
- <script>
223
- import {
224
- HeroHeadline,
225
- GraphicBlock,
226
- } from '@reuters-graphics/graphics-components';
227
- import { assets } from '$app/paths'; // 👈 If using in the graphics kit...
228
-
229
- let { embedded = false } = $props(); // 👈 If using in the graphics kit...
230
- </script>
231
-
232
- <!-- Set `stacked` to `false` -->
233
- <HeroHeadline
234
- {embedded}
235
- stacked={false}
236
- section="Global news"
237
- hed="The plunge from 29,000 feet"
238
- dek="How China Eastern Airlines flight MU5735 went from an uneventful flight at cruising altitude to disaster in just minutes."
239
- class="mb-0"
240
- authors={['Simon Scarr', 'Vijdan Mohammad Kawoosa']}
241
- publishTime={new Date('2020-01-01').toISOString()}
242
- >
243
- <GraphicBlock
244
- width="widest"
245
- role="figure"
246
- class="my-0"
247
- ariaDescription="Earthquake impact map"
248
- notes="Source: Satellite image from Google, Maxar Technologies, CNES/Airbus, Landsat/Copernicus"
249
- >
250
- <!-- Pass `assetsPath` if in graphics kit -->
251
- <CrashMap assetsPath={assets || '/'} />
252
- </GraphicBlock>
253
- </HeroHeadline>
254
- ```
255
-
256
- <Canvas of={HeroHeadlineStories.InlineHero} />
257
-
258
- ## Custom hed, dek and byline
259
-
260
- The `HeroHeadline` component internally uses the [Headline](?path=/docs/components-text-elements-headline--docs) component to render the headline and dek, which lets you to customise the headline and dek by passing [snippets](https://svelte.dev/docs/svelte/snippet) into the `hed` and `dek` props.
261
-
262
- Since `Headline` internally uses the [Byline](?path=/docs/components-text-elements-headline--docs) component, you can also customise the author page hyperlink and bylines with the `getAuthorPage`, `byline`, `published` and `updated` props.
263
-
264
- ```svelte
265
- <!-- App.svelte -->
266
- <HeroHeadline
267
- class="custom-hed"
268
- authors={[
269
- 'Prasanta Kumar Dutta',
270
- 'Dea Bankova',
271
- 'Aditi Bhandari',
272
- 'Anurag Rao',
273
- ]}
274
- publishTime={new Date('2023-05-11').toISOString()}
275
- img={eurovisImgSrc}
276
- getAuthorPage={(author) => {
277
- return `mailto:${author.replace(' ', '')}@example.com`;
278
- }}
279
- >
280
- <!-- Custom hed snippet -->
281
- {#snippet hed()}
282
- <h1>
283
- <div class="body-note">A visual guide to</div>
284
- <div class="title text-6xl font-light tracking-widest">EUROVISION</div>
285
- </h1>
286
- {/snippet}
287
-
288
- <!-- Custom dek snippet -->
289
- {#snippet dek()}
290
- <div class="dek">
291
- <p>
292
- Performers from 37 countries are coming together May 9-13 in Liverpool,
293
- England, for the 67th annual Eurovision Song Contest. The winner gets
294
- the trophy and their country gets the right to host next year’s event,
295
- produced by the European Broadcasting Union (EBU).
296
- </p>
297
- </div>
298
- {/snippet}
299
- </HeroHeadline>
300
- ```
301
-
302
- Add styles in `global.scss`:
303
-
304
- ```scss
305
- // global.scss
306
- .custom-hed {
307
- h1 {
308
- .body-note {
309
- color: #ffffff;
310
- }
311
- .title {
312
- color: #ffffff;
313
- text-shadow: 1px 1px 8px #ff7c88;
314
- filter: drop-shadow(0px 0px 12px #ff7c88);
315
- }
316
- }
317
-
318
- .dek {
319
- margin-block-start: 1rem;
320
- p {
321
- color: #ffffff;
322
- text-shadow: 1px 1px 8px #ff7c88;
323
- filter: drop-shadow(0px 0px 12px #ff7c88);
324
- }
325
- }
326
- }
327
- ```
328
-
329
- <Canvas of={HeroHeadlineStories.CustomHed} />
@@ -1,264 +0,0 @@
1
- <script module lang="ts">
2
- import { defineMeta } from '@storybook/addon-svelte-csf';
3
- import HeroHeadline from './HeroHeadline.svelte';
4
-
5
- const { Story } = defineMeta({
6
- title: 'Components/Text elements/HeroHeadline',
7
- component: HeroHeadline,
8
- argTypes: {
9
- hedSize: {
10
- control: 'select',
11
- options: ['small', 'normal', 'big', 'bigger', 'biggest'],
12
- },
13
- hedWidth: {
14
- control: 'select',
15
- options: ['normal', 'wide', 'wider', 'widest'],
16
- },
17
- hedAlign: {
18
- control: 'select',
19
- options: ['left', 'center', 'right'],
20
- },
21
- width: {
22
- control: 'select',
23
- options: ['normal', 'wide', 'wider', 'widest'],
24
- },
25
- },
26
- });
27
- </script>
28
-
29
- <script lang="ts">
30
- import polarImgSrc from './demo/polar.jpg';
31
- import eurovisImgSrc from './demo/eurovis.jpeg';
32
-
33
- import Block from '../Block/Block.svelte';
34
- import SiteHeader from '../SiteHeader/SiteHeader.svelte';
35
- import GraphicBlock from '../GraphicBlock/GraphicBlock.svelte';
36
- import Video from '../Video/Video.svelte';
37
-
38
- import CrashMap from './demo/graphics/crash.svelte';
39
- import QuakeMap from './demo/graphics/quakemap.svelte';
40
- </script>
41
-
42
- <Story name="Photo hero" exportName="PhotoHero">
43
- <Block width="fluid" class="chromatic-ignore">
44
- <SiteHeader />
45
- </Block>
46
- <HeroHeadline
47
- section="World News"
48
- hed="Reuters Graphics Interactive"
49
- dek="The beginning of a beautiful page"
50
- authors={['Jane Doe', 'John Doe']}
51
- publishTime={new Date('2022-03-04').toISOString()}
52
- img={polarImgSrc}
53
- notes="Photo by REUTERS"
54
- ariaDescription="A photo of a polar bear"
55
- />
56
- </Story>
57
-
58
- <Story name="Transparent header" exportName="TransparentHeader">
59
- <div class="transparent-header">
60
- <Block width="fluid" class="chromatic-ignore">
61
- <SiteHeader />
62
- </Block>
63
- <HeroHeadline
64
- section="World News"
65
- hed="Reuters Graphics Interactive"
66
- dek="The beginning of a beautiful page"
67
- authors={['Jane Doe', 'John Doe']}
68
- publishTime={new Date('2022-03-04').toISOString()}
69
- img={polarImgSrc}
70
- ariaDescription="A photo of a polar bear"
71
- />
72
- </div>
73
- </Story>
74
-
75
- <Story name="Ai2svelte hero" exportName="Ai2svelteHero">
76
- <Block width="fluid" class="chromatic-ignore">
77
- <SiteHeader />
78
- </Block>
79
-
80
- <HeroHeadline
81
- hed={'Earthquake devastates Afghanistan'}
82
- hedSize={'big'}
83
- hedWidth="wide"
84
- class="custom-hero mb-0"
85
- authors={[
86
- 'Anand Katakam',
87
- 'Vijdan Mohammad Kawoosa',
88
- 'Adolfo Arranz',
89
- 'Wen Foo',
90
- 'Simon Scarr',
91
- 'Aman Bhargava',
92
- 'Jitesh Chowdhury',
93
- 'Manas Sharma',
94
- 'Aditi Bhandari',
95
- ]}
96
- publishTime={new Date('2022-06-24').toISOString()}
97
- >
98
- <GraphicBlock
99
- width="widest"
100
- role="figure"
101
- class="my-0"
102
- ariaDescription="Earthquake impact map"
103
- >
104
- <QuakeMap />
105
- </GraphicBlock>
106
- </HeroHeadline>
107
- <style>.hero-wrapper {
108
- --heroHeight: 85svh;
109
- }
110
- @media (max-width: 960px) {
111
- .hero-wrapper {
112
- --heroHeight: 65svh;
113
- }
114
- }
115
- @media (max-height: 850px) {
116
- .hero-wrapper {
117
- --heroHeight: 100svh;
118
- }
119
- }
120
- @media (max-width: 960px) and (orientation: landscape) {
121
- .hero-wrapper {
122
- --heroHeight: 200svh;
123
- }
124
- }
125
- .hero-wrapper .custom-hero.headline {
126
- align-items: flex-end !important;
127
- }
128
- @media (max-width: 1100px) {
129
- .hero-wrapper .custom-hero.headline {
130
- max-width: var(--normal-column-width) !important;
131
- }
132
- }
133
-
134
- .hero-wrapper.embedded {
135
- --heroHeight: 1000px;
136
- }</style>
137
- </Story>
138
-
139
- <Story name="Video hero" exportName="VideoHero">
140
- <Block width="fluid" class="chromatic-ignore">
141
- <SiteHeader />
142
- </Block>
143
-
144
- <HeroHeadline
145
- class="video-hero"
146
- hed="The conflict in Ethiopia"
147
- hedSize="bigger"
148
- hedWidth="wide"
149
- authors={['Aditi Bhandari ', 'David Lewis']}
150
- publishTime={new Date('2020-12-18').toISOString()}
151
- >
152
- <Video
153
- width="widest"
154
- class="my-0"
155
- showControls={false}
156
- preloadVideo="auto"
157
- playVideoWhenInView={false}
158
- src="https://vm.reuters.tv/9c72e/titlef2ac(425954_R21MP41500).mp4"
159
- poster="https://www.reuters.com/resizer/vexYmtEuXKmfnsCbfS6jSMVbHms=/1080x0/filters:quality(80)/cloudfront-us-east-2.images.arcpublishing.com/reuters/VKJHKJEENVO4DASDND3VLHPV5Y.jpg"
160
- notes="Drone footage from the Village 8 refugee camp in Sudan."
161
- ariaDescription="Aerial footage of people houses in refugee camp"
162
- />
163
- </HeroHeadline>
164
- <style>.hero-wrapper {
165
- --heroHeight: calc(100svh - 60px);
166
- }
167
- .hero-wrapper .video-hero.headline header {
168
- top: calc(50svh - 250px);
169
- }
170
- .hero-wrapper .video-hero.headline h1 {
171
- color: #ffd430;
172
- text-shadow: 3px 4px 7px rgba(81, 67, 21, 0.8);
173
- }</style>
174
- </Story>
175
-
176
- <Story name="Inline hero" exportName="InlineHero">
177
- <Block width="fluid" class="chromatic-ignore">
178
- <SiteHeader />
179
- </Block>
180
-
181
- <!-- Set `stacked` to `false` -->
182
- <HeroHeadline
183
- stacked={false}
184
- section="Global news"
185
- hed="The plunge from 29,000 feet"
186
- dek="How China Eastern Airlines flight MU5735 went from an uneventful flight at cruising altitude to disaster in just minutes."
187
- class="mb-0"
188
- authors={['Simon Scarr', 'Vijdan Mohammad Kawoosa']}
189
- publishTime={new Date('2020-01-01').toISOString()}
190
- >
191
- <GraphicBlock
192
- width="widest"
193
- role="figure"
194
- class="my-0"
195
- ariaDescription="Earthquake impact map"
196
- notes="Source: Satellite image from Google, Maxar Technologies, CNES/Airbus, Landsat/Copernicus"
197
- >
198
- <CrashMap />
199
- </GraphicBlock>
200
- </HeroHeadline>
201
- </Story>
202
-
203
- <Story name="Custom hed" exportName="CustomHed">
204
- <HeroHeadline
205
- class="custom-hed"
206
- authors={[
207
- 'Prasanta Kumar Dutta',
208
- 'Dea Bankova',
209
- 'Aditi Bhandari',
210
- 'Anurag Rao',
211
- ]}
212
- publishTime={new Date('2023-05-11').toISOString()}
213
- img={eurovisImgSrc}
214
- getAuthorPage={(author: string) => {
215
- return `mailto:${author.replace(' ', '')}@example.com`;
216
- }}
217
- >
218
- {#snippet hed()}
219
- <h1>
220
- <div class="body-note">A visual guide to</div>
221
- <div class="title text-6xl font-light tracking-widest">EUROVISION</div>
222
- </h1>
223
- {/snippet}
224
-
225
- {#snippet dek()}
226
- <div class="dek">
227
- <p>
228
- Performers from 37 countries are coming together May 9-13 in
229
- Liverpool, England, for the 67th annual Eurovision Song Contest. The
230
- winner gets the trophy and their country gets the right to host next
231
- year’s event, produced by the European Broadcasting Union (EBU).
232
- </p>
233
- </div>
234
- {/snippet}
235
- </HeroHeadline>
236
-
237
- <style>.custom-hed h1 .body-note {
238
- color: #ffffff;
239
- }
240
- .custom-hed h1 .title {
241
- color: #ffffff;
242
- text-shadow: 1px 1px 8px #ff7c88;
243
- filter: drop-shadow(0px 0px 12px #ff7c88);
244
- }
245
- .custom-hed .dek {
246
- margin-block-start: 1rem;
247
- }
248
- .custom-hed .dek p {
249
- color: #ffffff;
250
- text-shadow: 1px 1px 8px #ff7c88;
251
- filter: drop-shadow(0px 0px 12px #ff7c88);
252
- }</style>
253
- </Story>
254
-
255
- <style>.transparent-header :global(.nav-container) {
256
- background-color: transparent !important;
257
- }
258
- .transparent-header :global(.nav-container .inner) {
259
- background-color: transparent !important;
260
- border: none !important;
261
- }
262
- .transparent-header :global(.hero-wrapper) {
263
- margin-block-start: -64px;
264
- }</style>