@reuters-graphics/graphics-components 0.0.1-beta.1

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 (195) hide show
  1. package/README.md +7 -0
  2. package/dist/@types/actions/cssVariables/index.d.ts +4 -0
  3. package/dist/@types/actions/resizeObserver/index.d.ts +4 -0
  4. package/dist/@types/components/@types/global.d.ts +28 -0
  5. package/dist/@types/components/Article/Article.svelte.d.ts +32 -0
  6. package/dist/@types/components/BeforeAfter/BeforeAfter.svelte.d.ts +57 -0
  7. package/dist/@types/components/Block/Block.svelte.d.ts +24 -0
  8. package/dist/@types/components/BodyText/BodyText.svelte.d.ts +20 -0
  9. package/dist/@types/components/DatawrapperChart/DatawrapperChart.svelte.d.ts +52 -0
  10. package/dist/@types/components/EmbedPreviewerLink/EmbedPreviewerLink.svelte.d.ts +16 -0
  11. package/dist/@types/components/FeaturePhoto/FeaturePhoto.svelte.d.ts +43 -0
  12. package/dist/@types/components/Framer/Framer.svelte.d.ts +29 -0
  13. package/dist/@types/components/Framer/Resizer/index.svelte.d.ts +27 -0
  14. package/dist/@types/components/Framer/stores.d.ts +1 -0
  15. package/dist/@types/components/Framer/uniqNames.d.ts +2 -0
  16. package/dist/@types/components/GraphicBlock/AriaHidden.svelte.d.ts +20 -0
  17. package/dist/@types/components/GraphicBlock/GraphicBlock.svelte.d.ts +64 -0
  18. package/dist/@types/components/GraphicBlock/TextBlock.svelte.d.ts +19 -0
  19. package/dist/@types/components/Headline/Headline.svelte.d.ts +29 -0
  20. package/dist/@types/components/Hero/Hero.svelte.d.ts +41 -0
  21. package/dist/@types/components/NoteText/NoteText.svelte.d.ts +20 -0
  22. package/dist/@types/components/PaddingReset/index.svelte.d.ts +27 -0
  23. package/dist/@types/components/PhotoPack/PhotoPack.svelte.d.ts +50 -0
  24. package/dist/@types/components/PhotoPack/docProps.d.ts +38 -0
  25. package/dist/@types/components/PymChild/PymChild.svelte.d.ts +16 -0
  26. package/dist/@types/components/ReutersLogo/ReutersLogo.svelte.d.ts +18 -0
  27. package/dist/@types/components/SEO/SEO.svelte.d.ts +66 -0
  28. package/dist/@types/components/SEO/analytics.d.ts +2 -0
  29. package/dist/@types/components/SEO/publisherTags.d.ts +2 -0
  30. package/dist/@types/components/Scroller/Background.svelte.d.ts +20 -0
  31. package/dist/@types/components/Scroller/Embedded/Background.svelte.d.ts +19 -0
  32. package/dist/@types/components/Scroller/Embedded/Foreground.svelte.d.ts +18 -0
  33. package/dist/@types/components/Scroller/Embedded/index.svelte.d.ts +19 -0
  34. package/dist/@types/components/Scroller/Foreground.svelte.d.ts +17 -0
  35. package/dist/@types/components/Scroller/Scroller.svelte.d.ts +76 -0
  36. package/dist/@types/components/Sharer/Sharer.svelte.d.ts +19 -0
  37. package/dist/@types/components/Sharer/utils/copyToClipboard.d.ts +2 -0
  38. package/dist/@types/components/Sharer/utils/facebook.d.ts +2 -0
  39. package/dist/@types/components/Sharer/utils/meta.d.ts +2 -0
  40. package/dist/@types/components/Sharer/utils/twitter.d.ts +2 -0
  41. package/dist/@types/components/SiteFooter/CompanyLinks.svelte.d.ts +23 -0
  42. package/dist/@types/components/SiteFooter/LegalLinks.svelte.d.ts +23 -0
  43. package/dist/@types/components/SiteFooter/QuickLinks.svelte.d.ts +23 -0
  44. package/dist/@types/components/SiteFooter/Referrals/IntersectionObserver.svelte.d.ts +39 -0
  45. package/dist/@types/components/SiteFooter/Referrals/Link.svelte.d.ts +29 -0
  46. package/dist/@types/components/SiteFooter/Referrals/Referrals.svelte.d.ts +23 -0
  47. package/dist/@types/components/SiteFooter/Referrals/index.svelte.d.ts +23 -0
  48. package/dist/@types/components/SiteFooter/SiteFooter.svelte.d.ts +23 -0
  49. package/dist/@types/components/SiteFooter/svgs/Facebook.svelte.d.ts +23 -0
  50. package/dist/@types/components/SiteFooter/svgs/Graphics.svelte.d.ts +19 -0
  51. package/dist/@types/components/SiteFooter/svgs/Instagram.svelte.d.ts +23 -0
  52. package/dist/@types/components/SiteFooter/svgs/LinkedIn.svelte.d.ts +23 -0
  53. package/dist/@types/components/SiteFooter/svgs/Pictures.svelte.d.ts +19 -0
  54. package/dist/@types/components/SiteFooter/svgs/Twitter.svelte.d.ts +23 -0
  55. package/dist/@types/components/SiteFooter/svgs/Videos.svelte.d.ts +19 -0
  56. package/dist/@types/components/SiteFooter/svgs/YouTube.svelte.d.ts +23 -0
  57. package/dist/@types/components/SiteHeader/MobileMenu/index.svelte.d.ts +27 -0
  58. package/dist/@types/components/SiteHeader/NavBar/DownArrow.svelte.d.ts +23 -0
  59. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/MoreDropdown.svelte.d.ts +23 -0
  60. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/SectionDropdown.svelte.d.ts +25 -0
  61. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte.d.ts +19 -0
  62. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/StoryCard/index.svelte.d.ts +25 -0
  63. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/StoryCard/time.d.ts +1 -0
  64. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/index.svelte.d.ts +27 -0
  65. package/dist/@types/components/SiteHeader/NavBar/index.svelte.d.ts +23 -0
  66. package/dist/@types/components/SiteHeader/NavBar/utils/index.d.ts +1 -0
  67. package/dist/@types/components/SiteHeader/SiteHeader.svelte.d.ts +14 -0
  68. package/dist/@types/components/SiteHeader/svgs/Close.svelte.d.ts +19 -0
  69. package/dist/@types/components/SiteHeader/svgs/Menu.svelte.d.ts +23 -0
  70. package/dist/@types/components/Spinner/Spinner.svelte.d.ts +28 -0
  71. package/dist/@types/components/Theme/@types/component.d.ts +28 -0
  72. package/dist/@types/components/Theme/Theme.svelte.d.ts +54 -0
  73. package/dist/@types/components/Theme/themes/dark.d.ts +2 -0
  74. package/dist/@types/components/Theme/themes/light.d.ts +22 -0
  75. package/dist/@types/components/Theme/utils/flatten.d.ts +1 -0
  76. package/dist/@types/components/Theme/utils/merge.d.ts +4 -0
  77. package/dist/@types/components/Video/Controls.svelte.d.ts +45 -0
  78. package/dist/@types/components/Video/Video.svelte.d.ts +46 -0
  79. package/dist/@types/components/Visible/Visible.svelte.d.ts +29 -0
  80. package/dist/@types/index.d.ts +24 -0
  81. package/dist/actions/cssVariables/index.js +20 -0
  82. package/dist/actions/resizeObserver/index.js +25 -0
  83. package/dist/components/@types/global.js +1 -0
  84. package/dist/components/Article/Article.svelte +47 -0
  85. package/dist/components/BeforeAfter/BeforeAfter.svelte +341 -0
  86. package/dist/components/Block/Block.svelte +177 -0
  87. package/dist/components/BodyText/BodyText.svelte +193 -0
  88. package/dist/components/DatawrapperChart/DatawrapperChart.svelte +105 -0
  89. package/dist/components/EmbedPreviewerLink/EmbedPreviewerLink.svelte +26 -0
  90. package/dist/components/FeaturePhoto/FeaturePhoto.svelte +113 -0
  91. package/dist/components/Framer/Framer.svelte +136 -0
  92. package/dist/components/Framer/Resizer/index.svelte +223 -0
  93. package/dist/components/Framer/stores.js +3 -0
  94. package/dist/components/Framer/uniqNames.js +54 -0
  95. package/dist/components/GraphicBlock/AriaHidden.svelte +13 -0
  96. package/dist/components/GraphicBlock/GraphicBlock.svelte +269 -0
  97. package/dist/components/GraphicBlock/TextBlock.svelte +12 -0
  98. package/dist/components/Headline/Headline.svelte +109 -0
  99. package/dist/components/Hero/Hero.svelte +78 -0
  100. package/dist/components/NoteText/NoteText.svelte +124 -0
  101. package/dist/components/PaddingReset/index.svelte +17 -0
  102. package/dist/components/PhotoPack/PhotoPack.svelte +156 -0
  103. package/dist/components/PhotoPack/docProps.js +20 -0
  104. package/dist/components/PymChild/PymChild.svelte +10 -0
  105. package/dist/components/ReutersLogo/ReutersLogo.svelte +21 -0
  106. package/dist/components/SEO/SEO.svelte +179 -0
  107. package/dist/components/SEO/analytics.js +332 -0
  108. package/dist/components/SEO/publisherTags.js +26 -0
  109. package/dist/components/Scroller/Background.svelte +30 -0
  110. package/dist/components/Scroller/Embedded/Background.svelte +14 -0
  111. package/dist/components/Scroller/Embedded/Foreground.svelte +203 -0
  112. package/dist/components/Scroller/Embedded/index.svelte +18 -0
  113. package/dist/components/Scroller/Foreground.svelte +42 -0
  114. package/dist/components/Scroller/Scroller.svelte +210 -0
  115. package/dist/components/Sharer/Sharer.svelte +157 -0
  116. package/dist/components/Sharer/utils/copyToClipboard.js +10 -0
  117. package/dist/components/Sharer/utils/facebook.js +22 -0
  118. package/dist/components/Sharer/utils/meta.js +7 -0
  119. package/dist/components/Sharer/utils/twitter.js +22 -0
  120. package/dist/components/SiteFooter/CompanyLinks.svelte +173 -0
  121. package/dist/components/SiteFooter/LegalLinks.svelte +202 -0
  122. package/dist/components/SiteFooter/QuickLinks.svelte +259 -0
  123. package/dist/components/SiteFooter/Referrals/IntersectionObserver.svelte +45 -0
  124. package/dist/components/SiteFooter/Referrals/Link.svelte +73 -0
  125. package/dist/components/SiteFooter/Referrals/Referrals.svelte +56 -0
  126. package/dist/components/SiteFooter/Referrals/index.svelte +53 -0
  127. package/dist/components/SiteFooter/SiteFooter.svelte +41 -0
  128. package/dist/components/SiteFooter/data.json +210 -0
  129. package/dist/components/SiteFooter/svgs/Facebook.svelte +18 -0
  130. package/dist/components/SiteFooter/svgs/Graphics.svelte +18 -0
  131. package/dist/components/SiteFooter/svgs/Instagram.svelte +20 -0
  132. package/dist/components/SiteFooter/svgs/LinkedIn.svelte +18 -0
  133. package/dist/components/SiteFooter/svgs/Pictures.svelte +14 -0
  134. package/dist/components/SiteFooter/svgs/Twitter.svelte +18 -0
  135. package/dist/components/SiteFooter/svgs/Videos.svelte +14 -0
  136. package/dist/components/SiteFooter/svgs/YouTube.svelte +18 -0
  137. package/dist/components/SiteHeader/MobileMenu/index.svelte +199 -0
  138. package/dist/components/SiteHeader/NavBar/DownArrow.svelte +26 -0
  139. package/dist/components/SiteHeader/NavBar/NavDropdown/MoreDropdown.svelte +112 -0
  140. package/dist/components/SiteHeader/NavBar/NavDropdown/SectionDropdown.svelte +118 -0
  141. package/dist/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte +49 -0
  142. package/dist/components/SiteHeader/NavBar/NavDropdown/StoryCard/index.svelte +99 -0
  143. package/dist/components/SiteHeader/NavBar/NavDropdown/StoryCard/time.js +70 -0
  144. package/dist/components/SiteHeader/NavBar/NavDropdown/index.svelte +277 -0
  145. package/dist/components/SiteHeader/NavBar/index.svelte +234 -0
  146. package/dist/components/SiteHeader/NavBar/utils/index.js +2 -0
  147. package/dist/components/SiteHeader/SiteHeader.svelte +235 -0
  148. package/dist/components/SiteHeader/data.json +1 -0
  149. package/dist/components/SiteHeader/scss/_breakpoints.scss +59 -0
  150. package/dist/components/SiteHeader/scss/_colors.scss +25 -0
  151. package/dist/components/SiteHeader/scss/_eases.scss +9 -0
  152. package/dist/components/SiteHeader/scss/_grids.scss +126 -0
  153. package/dist/components/SiteHeader/scss/_z-indexes.scss +15 -0
  154. package/dist/components/SiteHeader/svgs/Close.svelte +14 -0
  155. package/dist/components/SiteHeader/svgs/Menu.svelte +19 -0
  156. package/dist/components/Spinner/Spinner.svelte +91 -0
  157. package/dist/components/Theme/@types/component.js +3 -0
  158. package/dist/components/Theme/Theme.svelte +37 -0
  159. package/dist/components/Theme/themes/dark.js +23 -0
  160. package/dist/components/Theme/themes/light.js +22 -0
  161. package/dist/components/Theme/utils/flatten.js +39 -0
  162. package/dist/components/Theme/utils/merge.js +23 -0
  163. package/dist/components/Video/Controls.svelte +68 -0
  164. package/dist/components/Video/Video.svelte +278 -0
  165. package/dist/components/Visible/Visible.svelte +54 -0
  166. package/dist/index.js +31 -0
  167. package/dist/scss/_mixins.scss +6 -0
  168. package/dist/scss/_variables.scss +2 -0
  169. package/dist/scss/bootstrap/_main.scss +34 -0
  170. package/dist/scss/bootstrap/_variables.scss +10 -0
  171. package/dist/scss/colours/thematic/_nord.scss +40 -0
  172. package/dist/scss/colours/thematic/_tr.scss +27 -0
  173. package/dist/scss/components/_hero-title.scss +118 -0
  174. package/dist/scss/fonts/_font-faces.scss +129 -0
  175. package/dist/scss/fonts/_mixins.scss +25 -0
  176. package/dist/scss/fonts/_rules.scss +19 -0
  177. package/dist/scss/fonts/_variables.scss +26 -0
  178. package/dist/scss/main.scss +16 -0
  179. package/dist/scss/mixins/_block.scss +62 -0
  180. package/dist/scss/mixins/_body-text.scss +113 -0
  181. package/dist/scss/mixins/_graphic.scss +66 -0
  182. package/dist/scss/mixins/_note-text.scss +34 -0
  183. package/dist/scss/mixins/_visually-hidden.scss +12 -0
  184. package/dist/scss/spacers/_rules.scss +65 -0
  185. package/dist/scss/spacers/_variables.scss +19 -0
  186. package/dist/scss/typography/_box-shadow.scss +11 -0
  187. package/dist/scss/typography/_font-size.scss +81 -0
  188. package/dist/scss/typography/_letter-spacing.scss +15 -0
  189. package/dist/scss/typography/_main.scss +5 -0
  190. package/dist/scss/typography/_mixins.scss +26 -0
  191. package/dist/scss/typography/_rules.scss +83 -0
  192. package/dist/scss/typography/_text-shadow.scss +13 -0
  193. package/dist/scss/typography/_transform.scss +7 -0
  194. package/dist/scss/typography/_variables.scss +39 -0
  195. package/package.json +210 -0
package/README.md ADDED
@@ -0,0 +1,7 @@
1
+ ![](https://graphics.thomsonreuters.com/style-assets/images/logos/reuters-graphics-logo/svg/graphics-logo-color-dark.svg)
2
+
3
+ # ⚙️ graphics-components
4
+
5
+ Svelte components, SCSS and more for Reuters Graphics pages.
6
+
7
+ [Read the docs.](https://reuters-graphics.github.io/graphics-components/)
@@ -0,0 +1,4 @@
1
+ declare function _default(node: any, props: any): {
2
+ update(newProps: any): void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare function _default(element: any, onResize: any): {
2
+ destroy: () => void;
3
+ };
4
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import type { ComponentType } from 'svelte';
2
+ /**
3
+ * Used for any props that restrict width of a container to one of pre-fab widths.
4
+ */
5
+ export declare type ContainerWidth = 'narrower' | 'narrow' | 'normal' | 'wide' | 'wider' | 'widest' | 'fluid';
6
+ /**
7
+ * A step in the Scroller component.
8
+ */
9
+ export interface ScrollerStep {
10
+ /**
11
+ * A background component
12
+ * @required
13
+ */
14
+ background: ComponentType;
15
+ /**
16
+ * Optional props for background component
17
+ */
18
+ backgroundProps?: Object;
19
+ /**
20
+ * Foreground can either be a component or markdown-formatted string.
21
+ * @required
22
+ */
23
+ foreground: ComponentType | string;
24
+ /**
25
+ * Optional props for foreground component
26
+ */
27
+ foregroundProps?: Object;
28
+ }
@@ -0,0 +1,32 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /** Set to true for embeddables. */ embedded?: boolean;
5
+ /** Add an id to the article tag to target it with custom CSS. */ id?: string | null;
6
+ /** ARIA role of the article. */ role?: string | null;
7
+ /** Set custom widths for the normal, wide and wider column dimensions */ columnWidths?: {
8
+ /** Narrower column width */
9
+ narrower: number;
10
+ /** Narrow column width */
11
+ narrow: number;
12
+ /** Normal column width */
13
+ normal: number;
14
+ /** Wide column width */
15
+ wide: number;
16
+ /** Wider column width */
17
+ wider: number;
18
+ };
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ };
27
+ export declare type ArticleProps = typeof __propDef.props;
28
+ export declare type ArticleEvents = typeof __propDef.events;
29
+ export declare type ArticleSlots = typeof __propDef.slots;
30
+ export default class Article extends SvelteComponentTyped<ArticleProps, ArticleEvents, ArticleSlots> {
31
+ }
32
+ export {};
@@ -0,0 +1,57 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /** Width of the chart within the text well. */ width?: ContainerWidth;
6
+ /** Height of the component */ height?: number;
7
+ /**
8
+ * If set, makes the height a ratio of the component's width.
9
+ * @type {number}
10
+ */ heightRatio?: number | null;
11
+ /**
12
+ * Before image src
13
+ * @required
14
+ */ beforeSrc?: string | null;
15
+ /**
16
+ * Before image altText
17
+ * @required
18
+ */ beforeAlt?: string | null;
19
+ /**
20
+ * After image src
21
+ * @required
22
+ */ afterSrc?: string | null;
23
+ /**
24
+ * After image altText
25
+ * @required
26
+ */ afterAlt?: string | null;
27
+ /** Drag handle colour */ handleColour?: string;
28
+ /** Drag handle opacity */ handleInactiveOpacity?: number;
29
+ /** Margin at the edge of the image to stop dragging */ handleMargin?: number;
30
+ /** Percentage of the component width the handle will travel ona key press */ keyPressStep?: number;
31
+ /** Initial offset of the handle, between 0 and 1. */ offset?: number;
32
+ /**
33
+ * Add an ID to target with SCSS.
34
+ * @type {string}
35
+ */ id?: string;
36
+ };
37
+ events: {
38
+ mousedown: MouseEvent;
39
+ } & {
40
+ [evt: string]: CustomEvent<any>;
41
+ };
42
+ slots: {
43
+ beforeOverlay: {
44
+ description: string;
45
+ };
46
+ afterOverlay: {
47
+ description: string;
48
+ };
49
+ caption: {};
50
+ };
51
+ };
52
+ export declare type BeforeAfterProps = typeof __propDef.props;
53
+ export declare type BeforeAfterEvents = typeof __propDef.events;
54
+ export declare type BeforeAfterSlots = typeof __propDef.slots;
55
+ export default class BeforeAfter extends SvelteComponentTyped<BeforeAfterProps, BeforeAfterEvents, BeforeAfterSlots> {
56
+ }
57
+ export {};
@@ -0,0 +1,24 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /** Width of the block within the article well. */ width?: ContainerWidth;
6
+ /** Add an id to the block tag to target it with custom CSS. */ id?: string;
7
+ /** Add extra classes to the block tag to target it with custom CSS. */ cls?: string;
8
+ /** Snap block to column widths, rather than fluidly resizing them. */ snap?: boolean;
9
+ /** ARIA [role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the block */ role?: string | null;
10
+ /** ARIA [label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) for the block */ ariaLabel?: string | null;
11
+ };
12
+ events: {
13
+ [evt: string]: CustomEvent<any>;
14
+ };
15
+ slots: {
16
+ default: {};
17
+ };
18
+ };
19
+ export declare type BlockProps = typeof __propDef.props;
20
+ export declare type BlockEvents = typeof __propDef.events;
21
+ export declare type BlockSlots = typeof __propDef.slots;
22
+ export default class Block extends SvelteComponentTyped<BlockProps, BlockEvents, BlockSlots> {
23
+ }
24
+ export {};
@@ -0,0 +1,20 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * A markdown text string.
6
+ * @type {string}
7
+ * @required
8
+ */ text: string;
9
+ };
10
+ events: {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {};
14
+ };
15
+ export declare type BodyTextProps = typeof __propDef.props;
16
+ export declare type BodyTextEvents = typeof __propDef.events;
17
+ export declare type BodyTextSlots = typeof __propDef.slots;
18
+ export default class BodyText extends SvelteComponentTyped<BodyTextProps, BodyTextEvents, BodyTextSlots> {
19
+ }
20
+ export {};
@@ -0,0 +1,52 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /**
6
+ * Title of the graphic
7
+ * @type {string}
8
+ */ title?: string | null;
9
+ /**
10
+ * Description of the graphic, passed in as a markdown string.
11
+ * @type {string}
12
+ */ description?: string | null;
13
+ /**
14
+ * iframe title
15
+ * @required
16
+ */ frameTitle?: string;
17
+ /**
18
+ * Notes to the graphic, passed in as a markdown string.
19
+ * @type {string}
20
+ */ notes?: string | null;
21
+ /**
22
+ * iframe aria label
23
+ * @required
24
+ */ ariaLabel?: string;
25
+ /** iframe id */ id?: string;
26
+ /**
27
+ * Datawrapper embed URL
28
+ * @required
29
+ */ src: string;
30
+ /** iframe scrolling option */ scrolling?: "auto" | "yes" | "no";
31
+ /** Width of the chart within the text well. */ width?: ContainerWidth;
32
+ /**
33
+ * Set a different width for the text within the text well, for example,
34
+ * "normal" to keep the title, description and notes inline with the rest
35
+ * of the text well. Can't ever be wider than `width`.
36
+ * @type {string}
37
+ */ textWidth?: ContainerWidth | null;
38
+ };
39
+ events: {
40
+ [evt: string]: CustomEvent<any>;
41
+ };
42
+ slots: {
43
+ title: {};
44
+ notes: {};
45
+ };
46
+ };
47
+ export declare type DatawrapperChartProps = typeof __propDef.props;
48
+ export declare type DatawrapperChartEvents = typeof __propDef.events;
49
+ export declare type DatawrapperChartSlots = typeof __propDef.slots;
50
+ export default class DatawrapperChart extends SvelteComponentTyped<DatawrapperChartProps, DatawrapperChartEvents, DatawrapperChartSlots> {
51
+ }
52
+ export {};
@@ -0,0 +1,16 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ dev?: boolean;
5
+ };
6
+ events: {
7
+ [evt: string]: CustomEvent<any>;
8
+ };
9
+ slots: {};
10
+ };
11
+ export declare type EmbedPreviewerLinkProps = typeof __propDef.props;
12
+ export declare type EmbedPreviewerLinkEvents = typeof __propDef.events;
13
+ export declare type EmbedPreviewerLinkSlots = typeof __propDef.slots;
14
+ export default class EmbedPreviewerLink extends SvelteComponentTyped<EmbedPreviewerLinkProps, EmbedPreviewerLinkEvents, EmbedPreviewerLinkSlots> {
15
+ }
16
+ export {};
@@ -0,0 +1,43 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /**
6
+ * Photo src
7
+ * @type {string}
8
+ * @required
9
+ */ src: string;
10
+ /**
11
+ * Photo altText
12
+ * @type {string}
13
+ * @required
14
+ */ altText: string;
15
+ /**
16
+ * Caption below the photo
17
+ * @type {string}
18
+ */ caption: string;
19
+ /**
20
+ * Height of the photo placeholder when lazy-loading
21
+ */ height?: number;
22
+ /**
23
+ * Width of the container, one of: normal, wide, wider, widest or fluid
24
+ */ width?: ContainerWidth;
25
+ /**
26
+ * Whether to lazy load the photo using the [Intersection Observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API)
27
+ */ lazy?: boolean;
28
+ /** Set Intersection Observer [rootMargin](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin) `top` when lazy loading. */ top?: number;
29
+ /** Set Intersection Observer [rootMargin](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin) `bottom` when lazy loading. */ bottom?: number;
30
+ /** Set Intersection Observer [rootMargin](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin) `left` when lazy loading. */ left?: number;
31
+ /** Set Intersection Observer [rootMargin](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin) `right` when lazy loading. */ right?: number;
32
+ };
33
+ events: {
34
+ [evt: string]: CustomEvent<any>;
35
+ };
36
+ slots: {};
37
+ };
38
+ export declare type FeaturePhotoProps = typeof __propDef.props;
39
+ export declare type FeaturePhotoEvents = typeof __propDef.events;
40
+ export declare type FeaturePhotoSlots = typeof __propDef.slots;
41
+ export default class FeaturePhoto extends SvelteComponentTyped<FeaturePhotoProps, FeaturePhotoEvents, FeaturePhotoSlots> {
42
+ }
43
+ export {};
@@ -0,0 +1,29 @@
1
+ /** @typedef {typeof __propDef.props} FramerProps */
2
+ /** @typedef {typeof __propDef.events} FramerEvents */
3
+ /** @typedef {typeof __propDef.slots} FramerSlots */
4
+ export default class Framer extends SvelteComponentTyped<{
5
+ embeds: any;
6
+ breakpoints?: number[];
7
+ maxFrameWidth?: number;
8
+ minFrameWidth?: number;
9
+ }, {
10
+ [evt: string]: CustomEvent<any>;
11
+ }, {}> {
12
+ }
13
+ export type FramerProps = typeof __propDef.props;
14
+ export type FramerEvents = typeof __propDef.events;
15
+ export type FramerSlots = typeof __propDef.slots;
16
+ import { SvelteComponentTyped } from "svelte";
17
+ declare const __propDef: {
18
+ props: {
19
+ embeds: any;
20
+ breakpoints?: number[];
21
+ maxFrameWidth?: number;
22
+ minFrameWidth?: number;
23
+ };
24
+ events: {
25
+ [evt: string]: CustomEvent<any>;
26
+ };
27
+ slots: {};
28
+ };
29
+ export {};
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} IndexProps */
2
+ /** @typedef {typeof __propDef.events} IndexEvents */
3
+ /** @typedef {typeof __propDef.slots} IndexSlots */
4
+ export default class Index extends SvelteComponentTyped<{
5
+ breakpoints?: number[];
6
+ maxFrameWidth?: number;
7
+ minFrameWidth?: number;
8
+ }, {
9
+ [evt: string]: CustomEvent<any>;
10
+ }, {}> {
11
+ }
12
+ export type IndexProps = typeof __propDef.props;
13
+ export type IndexEvents = typeof __propDef.events;
14
+ export type IndexSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ breakpoints?: number[];
19
+ maxFrameWidth?: number;
20
+ minFrameWidth?: number;
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {};
26
+ };
27
+ export {};
@@ -0,0 +1 @@
1
+ export const width: import("svelte/store").Writable<number>;
@@ -0,0 +1,2 @@
1
+ declare function _default(embeds: any): any;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * Whether to wrap the graphic with an aria hidden tag.
6
+ */ hidden?: boolean;
7
+ };
8
+ events: {
9
+ [evt: string]: CustomEvent<any>;
10
+ };
11
+ slots: {
12
+ default: {};
13
+ };
14
+ };
15
+ export declare type AriaHiddenProps = typeof __propDef.props;
16
+ export declare type AriaHiddenEvents = typeof __propDef.events;
17
+ export declare type AriaHiddenSlots = typeof __propDef.slots;
18
+ export default class AriaHidden extends SvelteComponentTyped<AriaHiddenProps, AriaHiddenEvents, AriaHiddenSlots> {
19
+ }
20
+ export {};
@@ -0,0 +1,64 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /**
6
+ * Width of the component within the text well.
7
+ * @type {string}
8
+ */ width?: ContainerWidth;
9
+ /**
10
+ * Add an id to the block tag to target it with custom CSS.
11
+ * @type {string}
12
+ */ id?: string;
13
+ /**
14
+ * Add extra classes to the block tag to target it with custom CSS.
15
+ * @type {string}
16
+ */ cls?: string;
17
+ /** Snap block to column widths, rather than fluidly resizing them. */ snap?: boolean;
18
+ /**
19
+ * ARIA [role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) for the block
20
+ * @type {string}
21
+ */ role?: string | null;
22
+ /**
23
+ * Notes to the graphic, passed in as a markdown string.
24
+ * @type {string}
25
+ */ notes?: string | null;
26
+ /**
27
+ * Set a different width for the text within the text well, for example,
28
+ * "normal" to keep the title, description and notes inline with the rest
29
+ * of the text well. Can't ever be wider than `width`.
30
+ * @type {string}
31
+ */ textWidth?: ContainerWidth | null;
32
+ /**
33
+ * Title of the graphic
34
+ * @type {string}
35
+ */ title?: string | null;
36
+ /**
37
+ * Description of the graphic, passed in as a markdown string.
38
+ * @type {string}
39
+ */ description?: string | null;
40
+ /**
41
+ * ARIA [label](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label) for the block
42
+ * @type {string}
43
+ */ ariaLabel?: string;
44
+ /**
45
+ * ARIA description, passed in as a markdown string.
46
+ * @type {string}
47
+ */ ariaDescription?: string | null;
48
+ };
49
+ events: {
50
+ [evt: string]: CustomEvent<any>;
51
+ };
52
+ slots: {
53
+ title: {};
54
+ default: {};
55
+ aria: {};
56
+ notes: {};
57
+ };
58
+ };
59
+ export declare type GraphicBlockProps = typeof __propDef.props;
60
+ export declare type GraphicBlockEvents = typeof __propDef.events;
61
+ export declare type GraphicBlockSlots = typeof __propDef.slots;
62
+ export default class GraphicBlock extends SvelteComponentTyped<GraphicBlockProps, GraphicBlockEvents, GraphicBlockSlots> {
63
+ }
64
+ export {};
@@ -0,0 +1,19 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ import type { ContainerWidth } from '../@types/global';
3
+ declare const __propDef: {
4
+ props: {
5
+ /** Width of the component within the text well. */ width?: ContainerWidth | null;
6
+ };
7
+ events: {
8
+ [evt: string]: CustomEvent<any>;
9
+ };
10
+ slots: {
11
+ default: {};
12
+ };
13
+ };
14
+ export declare type TextBlockProps = typeof __propDef.props;
15
+ export declare type TextBlockEvents = typeof __propDef.events;
16
+ export declare type TextBlockSlots = typeof __propDef.slots;
17
+ export default class TextBlock extends SvelteComponentTyped<TextBlockProps, TextBlockEvents, TextBlockSlots> {
18
+ }
19
+ export {};
@@ -0,0 +1,29 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * Headline
6
+ */ hed?: string;
7
+ /**
8
+ * Dek
9
+ */ dek?: string | null;
10
+ /**
11
+ * Section title
12
+ */ section?: string | null;
13
+ };
14
+ events: {
15
+ [evt: string]: CustomEvent<any>;
16
+ };
17
+ slots: {
18
+ crown: {};
19
+ hed: {};
20
+ byline: {};
21
+ dateline: {};
22
+ };
23
+ };
24
+ export declare type HeadlineProps = typeof __propDef.props;
25
+ export declare type HeadlineEvents = typeof __propDef.events;
26
+ export declare type HeadlineSlots = typeof __propDef.slots;
27
+ export default class Headline extends SvelteComponentTyped<HeadlineProps, HeadlineEvents, HeadlineSlots> {
28
+ }
29
+ export {};
@@ -0,0 +1,41 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * Headline
6
+ */ hed?: string;
7
+ /**
8
+ * Hedline colour
9
+ */ hedColour?: string;
10
+ /**
11
+ * Dek
12
+ */ dek?: string | null;
13
+ /**
14
+ * Section title
15
+ */ section?: string | null;
16
+ /**
17
+ * Section colour
18
+ */ sectionColour?: string;
19
+ imgSrc: string;
20
+ imgAltText: string;
21
+ overlay?: boolean | string;
22
+ top?: boolean;
23
+ bottom?: boolean;
24
+ left?: boolean;
25
+ right?: boolean;
26
+ };
27
+ events: {
28
+ [evt: string]: CustomEvent<any>;
29
+ };
30
+ slots: {
31
+ image: {};
32
+ hed: {};
33
+ dek: {};
34
+ };
35
+ };
36
+ export declare type HeroProps = typeof __propDef.props;
37
+ export declare type HeroEvents = typeof __propDef.events;
38
+ export declare type HeroSlots = typeof __propDef.slots;
39
+ export default class Hero extends SvelteComponentTyped<HeroProps, HeroEvents, HeroSlots> {
40
+ }
41
+ export {};
@@ -0,0 +1,20 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * A markdown text string.
6
+ * @type {string}
7
+ * @required
8
+ */ text: string;
9
+ };
10
+ events: {
11
+ [evt: string]: CustomEvent<any>;
12
+ };
13
+ slots: {};
14
+ };
15
+ export declare type NoteTextProps = typeof __propDef.props;
16
+ export declare type NoteTextEvents = typeof __propDef.events;
17
+ export declare type NoteTextSlots = typeof __propDef.slots;
18
+ export default class NoteText extends SvelteComponentTyped<NoteTextProps, NoteTextEvents, NoteTextSlots> {
19
+ }
20
+ export {};
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} IndexProps */
2
+ /** @typedef {typeof __propDef.events} IndexEvents */
3
+ /** @typedef {typeof __propDef.slots} IndexSlots */
4
+ export default class Index extends SvelteComponentTyped<{
5
+ width?: string;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type IndexProps = typeof __propDef.props;
13
+ export type IndexEvents = typeof __propDef.events;
14
+ export type IndexSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ width?: string;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ };
27
+ export {};
@@ -0,0 +1,50 @@
1
+ import { SvelteComponentTyped } from "svelte";
2
+ declare const __propDef: {
3
+ props: {
4
+ /**
5
+ * Array of image objects
6
+ * @required
7
+ */ images?: {
8
+ src: string;
9
+ altText: string;
10
+ caption?: string;
11
+ maxHeight?: number;
12
+ }[];
13
+ /**
14
+ * Array of layout objects
15
+ * @required
16
+ */ layouts?: {
17
+ breakpoint: number;
18
+ rows: number[];
19
+ }[];
20
+ /**
21
+ * Gap between images.
22
+ * @type {number}
23
+ */ gap?: number;
24
+ /**
25
+ * Add an ID to target with SCSS. Should be unique from all other elements.
26
+ * @type {string}
27
+ */ id?: string;
28
+ /**
29
+ * Add a class to target with SCSS.
30
+ * @type {string}
31
+ */ cls?: string;
32
+ /** Width of the component within the text well. */ width?: "normal" | "wide" | "wider" | "widest" | "fluid";
33
+ /**
34
+ * Set a different width for captions within the text well, for example,
35
+ * "normal" to keep captions inline with the rest of the text well.
36
+ * Can't ever be wider than `width`.
37
+ * @type {string}
38
+ */ captionWidth?: "normal" | "wide" | "wider" | "widest" | "fluid";
39
+ };
40
+ events: {
41
+ [evt: string]: CustomEvent<any>;
42
+ };
43
+ slots: {};
44
+ };
45
+ export declare type PhotoPackProps = typeof __propDef.props;
46
+ export declare type PhotoPackEvents = typeof __propDef.events;
47
+ export declare type PhotoPackSlots = typeof __propDef.slots;
48
+ export default class PhotoPack extends SvelteComponentTyped<PhotoPackProps, PhotoPackEvents, PhotoPackSlots> {
49
+ }
50
+ export {};