@reuters-graphics/graphics-components 0.1.2 → 0.1.4

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 (77) hide show
  1. package/dist/@types/components/@types/global.d.ts +2 -2
  2. package/dist/@types/components/Analytics/Analytics.svelte.d.ts +3 -3
  3. package/dist/@types/components/Article/Article.svelte.d.ts +3 -3
  4. package/dist/@types/components/BeforeAfter/BeforeAfter.svelte.d.ts +3 -3
  5. package/dist/@types/components/Block/Block.svelte.d.ts +3 -3
  6. package/dist/@types/components/BodyText/BodyText.svelte.d.ts +3 -3
  7. package/dist/@types/components/DatawrapperChart/DatawrapperChart.svelte.d.ts +3 -3
  8. package/dist/@types/components/DocumentCloud/DocumentCloud.svelte.d.ts +3 -3
  9. package/dist/@types/components/EmbedPreviewerLink/EmbedPreviewerLink.svelte.d.ts +3 -3
  10. package/dist/@types/components/FeaturePhoto/FeaturePhoto.svelte.d.ts +3 -3
  11. package/dist/@types/components/GraphicBlock/AriaHidden.svelte.d.ts +3 -3
  12. package/dist/@types/components/GraphicBlock/GraphicBlock.svelte.d.ts +3 -3
  13. package/dist/@types/components/GraphicBlock/TextBlock.svelte.d.ts +3 -3
  14. package/dist/@types/components/Headline/Headline.svelte.d.ts +3 -3
  15. package/dist/@types/components/Hero/Hero.svelte.d.ts +3 -3
  16. package/dist/@types/components/NoteText/NoteText.svelte.d.ts +3 -3
  17. package/dist/@types/components/PhotoCarousel/PhotoCarousel.svelte.d.ts +3 -3
  18. package/dist/@types/components/PhotoPack/PhotoPack.svelte.d.ts +3 -3
  19. package/dist/@types/components/PymChild/PymChild.svelte.d.ts +3 -3
  20. package/dist/@types/components/ReferralBlock/ReferralBlock.svelte.d.ts +3 -3
  21. package/dist/@types/components/ReutersGraphicsLogo/ReutersGraphicsLogo.svelte.d.ts +3 -3
  22. package/dist/@types/components/ReutersLogo/ReutersLogo.svelte.d.ts +3 -3
  23. package/dist/@types/components/SEO/SEO.svelte.d.ts +3 -3
  24. package/dist/@types/components/Scroller/Background.svelte.d.ts +3 -3
  25. package/dist/@types/components/Scroller/Embedded/Background.svelte.d.ts +3 -3
  26. package/dist/@types/components/Scroller/Embedded/Foreground.svelte.d.ts +3 -3
  27. package/dist/@types/components/Scroller/Embedded/index.svelte.d.ts +3 -3
  28. package/dist/@types/components/Scroller/Foreground.svelte.d.ts +3 -3
  29. package/dist/@types/components/Scroller/Scroller.svelte.d.ts +3 -3
  30. package/dist/@types/components/Scroller/docProps.d.ts +1 -1
  31. package/dist/@types/components/SearchInput/MagnifyingGlass.svelte.d.ts +6 -2
  32. package/dist/@types/components/SearchInput/SearchInput.svelte.d.ts +3 -3
  33. package/dist/@types/components/SearchInput/X.svelte.d.ts +6 -2
  34. package/dist/@types/components/Sharer/Sharer.svelte.d.ts +6 -2
  35. package/dist/@types/components/SimpleTimeline/SimpleTimeline.svelte.d.ts +3 -3
  36. package/dist/@types/components/SiteFooter/SiteFooter.svelte.d.ts +3 -3
  37. package/dist/@types/components/SiteFooter/svgs/Graphics.svelte.d.ts +6 -2
  38. package/dist/@types/components/SiteFooter/svgs/Pictures.svelte.d.ts +6 -2
  39. package/dist/@types/components/SiteFooter/svgs/Videos.svelte.d.ts +6 -2
  40. package/dist/@types/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte.d.ts +6 -2
  41. package/dist/@types/components/SiteHeader/SiteHeader.svelte.d.ts +4 -4
  42. package/dist/@types/components/SiteHeader/svgs/Close.svelte.d.ts +6 -2
  43. package/dist/@types/components/SiteHeadline/SiteHeadline.svelte.d.ts +3 -3
  44. package/dist/@types/components/Spinner/Spinner.svelte.d.ts +3 -3
  45. package/dist/@types/components/Table/LeftArrow.svelte.d.ts +6 -2
  46. package/dist/@types/components/Table/Pagination.svelte.d.ts +3 -3
  47. package/dist/@types/components/Table/RightArrow.svelte.d.ts +6 -2
  48. package/dist/@types/components/Table/Select.svelte.d.ts +3 -3
  49. package/dist/@types/components/Table/SortArrow.svelte.d.ts +3 -3
  50. package/dist/@types/components/Table/Table.svelte.d.ts +3 -3
  51. package/dist/@types/components/Theme/Theme.svelte.d.ts +3 -3
  52. package/dist/@types/components/Theme/themes/light.d.ts +2 -2
  53. package/dist/@types/components/ToolsHeader/ToolsHeader.svelte.d.ts +3 -3
  54. package/dist/@types/components/Video/Video.svelte.d.ts +3 -3
  55. package/dist/@types/components/Visible/Visible.svelte.d.ts +3 -3
  56. package/dist/components/@types/global.js +1 -0
  57. package/dist/components/Analytics/providers/chartbeat.js +3 -2
  58. package/dist/components/Analytics/providers/ga.js +2 -1
  59. package/dist/components/Analytics/providers/index.js +1 -0
  60. package/dist/components/BodyText/BodyText.svelte +4 -4
  61. package/dist/components/PhotoPack/docProps.js +1 -0
  62. package/dist/components/ReferralBlock/ReferralBlock.svelte +3 -3
  63. package/dist/components/SEO/SEO.svelte +1 -1
  64. package/dist/components/Scroller/Embedded/Foreground.svelte +4 -4
  65. package/dist/components/Scroller/docProps.js +1 -0
  66. package/dist/components/SearchInput/SearchInput.svelte +2 -2
  67. package/dist/components/SiteFooter/CompanyLinks.svelte +1 -1
  68. package/dist/components/SiteFooter/LegalLinks.svelte +3 -11
  69. package/dist/components/SiteHeader/MobileMenu/index.svelte +0 -1
  70. package/dist/components/SiteHeader/NavBar/NavDropdown/Spinner/index.svelte +2 -8
  71. package/dist/components/SiteHeader/NavBar/NavDropdown/index.svelte +1 -11
  72. package/dist/components/SiteHeader/SiteHeader.svelte +0 -1
  73. package/dist/components/Spinner/Spinner.svelte +2 -8
  74. package/dist/components/Table/Table.svelte +5 -5
  75. package/dist/components/Theme/@types/component.js +1 -0
  76. package/dist/components/ToolsHeader/ToolsHeader.svelte +0 -1
  77. package/package.json +50 -44
@@ -1,14 +1,14 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
- props: {};
3
+ props: Record<string, never>;
4
4
  events: {
5
5
  [evt: string]: CustomEvent<any>;
6
6
  };
7
7
  slots: {};
8
8
  };
9
- export declare type SiteHeaderProps = typeof __propDef.props;
10
- export declare type SiteHeaderEvents = typeof __propDef.events;
11
- export declare type SiteHeaderSlots = typeof __propDef.slots;
9
+ export type SiteHeaderProps = typeof __propDef.props;
10
+ export type SiteHeaderEvents = typeof __propDef.events;
11
+ export type SiteHeaderSlots = typeof __propDef.slots;
12
12
  /** `SiteHeader` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-SiteHeader--default) */
13
13
  export default class SiteHeader extends SvelteComponentTyped<SiteHeaderProps, SiteHeaderEvents, SiteHeaderSlots> {
14
14
  }
@@ -1,7 +1,9 @@
1
1
  /** @typedef {typeof __propDef.props} CloseProps */
2
2
  /** @typedef {typeof __propDef.events} CloseEvents */
3
3
  /** @typedef {typeof __propDef.slots} CloseSlots */
4
- export default class Close extends SvelteComponentTyped<{}, {
4
+ export default class Close extends SvelteComponentTyped<{
5
+ [x: string]: never;
6
+ }, {
5
7
  [evt: string]: CustomEvent<any>;
6
8
  }, {}> {
7
9
  }
@@ -10,7 +12,9 @@ export type CloseEvents = typeof __propDef.events;
10
12
  export type CloseSlots = typeof __propDef.slots;
11
13
  import { SvelteComponentTyped } from "svelte";
12
14
  declare const __propDef: {
13
- props: {};
15
+ props: {
16
+ [x: string]: never;
17
+ };
14
18
  events: {
15
19
  [evt: string]: CustomEvent<any>;
16
20
  };
@@ -39,9 +39,9 @@ declare const __propDef: {
39
39
  };
40
40
  slots: {};
41
41
  };
42
- export declare type SiteHeadlineProps = typeof __propDef.props;
43
- export declare type SiteHeadlineEvents = typeof __propDef.events;
44
- export declare type SiteHeadlineSlots = typeof __propDef.slots;
42
+ export type SiteHeadlineProps = typeof __propDef.props;
43
+ export type SiteHeadlineEvents = typeof __propDef.events;
44
+ export type SiteHeadlineSlots = typeof __propDef.slots;
45
45
  export default class SiteHeadline extends SvelteComponentTyped<SiteHeadlineProps, SiteHeadlineEvents, SiteHeadlineSlots> {
46
46
  }
47
47
  export {};
@@ -20,9 +20,9 @@ declare const __propDef: {
20
20
  };
21
21
  slots: {};
22
22
  };
23
- export declare type SpinnerProps = typeof __propDef.props;
24
- export declare type SpinnerEvents = typeof __propDef.events;
25
- export declare type SpinnerSlots = typeof __propDef.slots;
23
+ export type SpinnerProps = typeof __propDef.props;
24
+ export type SpinnerEvents = typeof __propDef.events;
25
+ export type SpinnerSlots = typeof __propDef.slots;
26
26
  /** `Spinner` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Spinner--default) */
27
27
  export default class Spinner extends SvelteComponentTyped<SpinnerProps, SpinnerEvents, SpinnerSlots> {
28
28
  }
@@ -1,7 +1,9 @@
1
1
  /** @typedef {typeof __propDef.props} LeftArrowProps */
2
2
  /** @typedef {typeof __propDef.events} LeftArrowEvents */
3
3
  /** @typedef {typeof __propDef.slots} LeftArrowSlots */
4
- export default class LeftArrow extends SvelteComponentTyped<{}, {
4
+ export default class LeftArrow extends SvelteComponentTyped<{
5
+ [x: string]: never;
6
+ }, {
5
7
  [evt: string]: CustomEvent<any>;
6
8
  }, {}> {
7
9
  }
@@ -10,7 +12,9 @@ export type LeftArrowEvents = typeof __propDef.events;
10
12
  export type LeftArrowSlots = typeof __propDef.slots;
11
13
  import { SvelteComponentTyped } from "svelte";
12
14
  declare const __propDef: {
13
- props: {};
15
+ props: {
16
+ [x: string]: never;
17
+ };
14
18
  events: {
15
19
  [evt: string]: CustomEvent<any>;
16
20
  };
@@ -23,9 +23,9 @@ declare const __propDef: {
23
23
  };
24
24
  slots: {};
25
25
  };
26
- export declare type PaginationProps = typeof __propDef.props;
27
- export declare type PaginationEvents = typeof __propDef.events;
28
- export declare type PaginationSlots = typeof __propDef.slots;
26
+ export type PaginationProps = typeof __propDef.props;
27
+ export type PaginationEvents = typeof __propDef.events;
28
+ export type PaginationSlots = typeof __propDef.slots;
29
29
  export default class Pagination extends SvelteComponentTyped<PaginationProps, PaginationEvents, PaginationSlots> {
30
30
  }
31
31
  export {};
@@ -1,7 +1,9 @@
1
1
  /** @typedef {typeof __propDef.props} RightArrowProps */
2
2
  /** @typedef {typeof __propDef.events} RightArrowEvents */
3
3
  /** @typedef {typeof __propDef.slots} RightArrowSlots */
4
- export default class RightArrow extends SvelteComponentTyped<{}, {
4
+ export default class RightArrow extends SvelteComponentTyped<{
5
+ [x: string]: never;
6
+ }, {
5
7
  [evt: string]: CustomEvent<any>;
6
8
  }, {}> {
7
9
  }
@@ -10,7 +12,9 @@ export type RightArrowEvents = typeof __propDef.events;
10
12
  export type RightArrowSlots = typeof __propDef.slots;
11
13
  import { SvelteComponentTyped } from "svelte";
12
14
  declare const __propDef: {
13
- props: {};
15
+ props: {
16
+ [x: string]: never;
17
+ };
14
18
  events: {
15
19
  [evt: string]: CustomEvent<any>;
16
20
  };
@@ -18,9 +18,9 @@ declare const __propDef: {
18
18
  };
19
19
  slots: {};
20
20
  };
21
- export declare type SelectProps = typeof __propDef.props;
22
- export declare type SelectEvents = typeof __propDef.events;
23
- export declare type SelectSlots = typeof __propDef.slots;
21
+ export type SelectProps = typeof __propDef.props;
22
+ export type SelectEvents = typeof __propDef.events;
23
+ export type SelectSlots = typeof __propDef.slots;
24
24
  export default class Select extends SvelteComponentTyped<SelectProps, SelectEvents, SelectSlots> {
25
25
  }
26
26
  export {};
@@ -12,9 +12,9 @@ declare const __propDef: {
12
12
  };
13
13
  slots: {};
14
14
  };
15
- export declare type SortArrowProps = typeof __propDef.props;
16
- export declare type SortArrowEvents = typeof __propDef.events;
17
- export declare type SortArrowSlots = typeof __propDef.slots;
15
+ export type SortArrowProps = typeof __propDef.props;
16
+ export type SortArrowEvents = typeof __propDef.events;
17
+ export type SortArrowSlots = typeof __propDef.slots;
18
18
  export default class SortArrow extends SvelteComponentTyped<SortArrowProps, SortArrowEvents, SortArrowSlots> {
19
19
  }
20
20
  export {};
@@ -84,9 +84,9 @@ declare const __propDef: {
84
84
  };
85
85
  slots: {};
86
86
  };
87
- export declare type TableProps = typeof __propDef.props;
88
- export declare type TableEvents = typeof __propDef.events;
89
- export declare type TableSlots = typeof __propDef.slots;
87
+ export type TableProps = typeof __propDef.props;
88
+ export type TableEvents = typeof __propDef.events;
89
+ export type TableSlots = typeof __propDef.slots;
90
90
  /** `Table` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Table--default) */
91
91
  export default class Table extends SvelteComponentTyped<TableProps, TableEvents, TableSlots> {
92
92
  }
@@ -46,9 +46,9 @@ declare const __propDef: {
46
46
  default: {};
47
47
  };
48
48
  };
49
- export declare type ThemeProps = typeof __propDef.props;
50
- export declare type ThemeEvents = typeof __propDef.events;
51
- export declare type ThemeSlots = typeof __propDef.slots;
49
+ export type ThemeProps = typeof __propDef.props;
50
+ export type ThemeEvents = typeof __propDef.events;
51
+ export type ThemeSlots = typeof __propDef.slots;
52
52
  /** `Theme` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/theming-Theme--default) */
53
53
  export default class Theme extends SvelteComponentTyped<ThemeProps, ThemeEvents, ThemeSlots> {
54
54
  }
@@ -1,5 +1,5 @@
1
1
  declare namespace _default {
2
- const colour: {
2
+ let colour: {
3
3
  background: string;
4
4
  'text-primary': string;
5
5
  'text-secondary': string;
@@ -8,7 +8,7 @@ declare namespace _default {
8
8
  'brand-rules': string;
9
9
  'brand-shadow': string;
10
10
  };
11
- const font: {
11
+ let font: {
12
12
  'size-base': string;
13
13
  'family-serif': string;
14
14
  'family-sans-serif': string;
@@ -30,9 +30,9 @@ declare const __propDef: {
30
30
  default: {};
31
31
  };
32
32
  };
33
- export declare type ToolsHeaderProps = typeof __propDef.props;
34
- export declare type ToolsHeaderEvents = typeof __propDef.events;
35
- export declare type ToolsHeaderSlots = typeof __propDef.slots;
33
+ export type ToolsHeaderProps = typeof __propDef.props;
34
+ export type ToolsHeaderEvents = typeof __propDef.events;
35
+ export type ToolsHeaderSlots = typeof __propDef.slots;
36
36
  /** `ToolsHeader` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-ToolsHeader--default) */
37
37
  export default class ToolsHeader extends SvelteComponentTyped<ToolsHeaderProps, ToolsHeaderEvents, ToolsHeaderSlots> {
38
38
  }
@@ -38,9 +38,9 @@ declare const __propDef: {
38
38
  };
39
39
  slots: {};
40
40
  };
41
- export declare type VideoProps = typeof __propDef.props;
42
- export declare type VideoEvents = typeof __propDef.events;
43
- export declare type VideoSlots = typeof __propDef.slots;
41
+ export type VideoProps = typeof __propDef.props;
42
+ export type VideoEvents = typeof __propDef.events;
43
+ export type VideoSlots = typeof __propDef.slots;
44
44
  /** `Video` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Video--default) */
45
45
  export default class Video extends SvelteComponentTyped<VideoProps, VideoEvents, VideoSlots> {
46
46
  }
@@ -21,9 +21,9 @@ declare const __propDef: {
21
21
  };
22
22
  };
23
23
  };
24
- export declare type VisibleProps = typeof __propDef.props;
25
- export declare type VisibleEvents = typeof __propDef.events;
26
- export declare type VisibleSlots = typeof __propDef.slots;
24
+ export type VisibleProps = typeof __propDef.props;
25
+ export type VisibleEvents = typeof __propDef.events;
26
+ export type VisibleSlots = typeof __propDef.slots;
27
27
  /** `Visible` [Read the docs.](https://reuters-graphics.github.io/graphics-components/?path=/docs/components-Visible--default) */
28
28
  export default class Visible extends SvelteComponentTyped<VisibleProps, VisibleEvents, VisibleSlots> {
29
29
  }
@@ -1 +1,2 @@
1
1
  export {};
2
+ //# sourceMappingURL=global.js.map
@@ -21,7 +21,7 @@ export default (authors) => {
21
21
  useCanonical: true,
22
22
  useCanonicalDomain: true,
23
23
  sections: 'Graphics',
24
- authors: authors.map((a) => (a === null || a === void 0 ? void 0 : a.name) || '').join(','),
24
+ authors: authors.map((a) => a?.name || '').join(','),
25
25
  ...(window._sf_async_config || {}),
26
26
  };
27
27
  try {
@@ -36,6 +36,7 @@ export const registerPageview = () => {
36
36
  return;
37
37
  window.pSUPERFLY({
38
38
  path: window.location.pathname,
39
- title: document === null || document === void 0 ? void 0 : document.title,
39
+ title: document?.title,
40
40
  });
41
41
  };
42
+ //# sourceMappingURL=chartbeat.js.map
@@ -39,6 +39,7 @@ export const registerPageview = () => {
39
39
  return;
40
40
  window.gtag('event', 'page_view', {
41
41
  page_location: window.location.origin + window.location.pathname,
42
- page_title: document === null || document === void 0 ? void 0 : document.title,
42
+ page_title: document?.title,
43
43
  });
44
44
  };
45
+ //# sourceMappingURL=ga.js.map
@@ -1,2 +1,3 @@
1
1
  export { default as ga } from './ga';
2
2
  export { default as chartbeat } from './chartbeat';
3
+ //# sourceMappingURL=index.js.map
@@ -129,10 +129,10 @@ import Block from '../Block/Block.svelte';
129
129
  }
130
130
  @media (max-width: 540px) {
131
131
  :global(div.article-block.body-text) :global(p) :global(a),
132
- :global(div.article-block.body-text) :global(ul) :global(li) :global(a),
133
- :global(div.article-block.body-text) :global(ul) :global(li) :global(p) :global(a),
134
- :global(div.article-block.body-text) :global(ol) :global(li) :global(a),
135
- :global(div.article-block.body-text) :global(ol) :global(li) :global(p) :global(a) {
132
+ :global(div.article-block.body-text) :global(ul) :global(li) :global(a),
133
+ :global(div.article-block.body-text) :global(ul) :global(li) :global(p) :global(a),
134
+ :global(div.article-block.body-text) :global(ol) :global(li) :global(a),
135
+ :global(div.article-block.body-text) :global(ol) :global(li) :global(p) :global(a) {
136
136
  background-position: 0 1.1rem;
137
137
  }
138
138
  }
@@ -18,3 +18,4 @@ export const getPhotoPackPropsFromDoc = (docBlock, assetsPath = '') => {
18
18
  })),
19
19
  };
20
20
  };
21
+ //# sourceMappingURL=docProps.js.map
@@ -45,9 +45,9 @@ onMount(async () => {
45
45
  }),
46
46
  }));
47
47
  const articles = (await response.json()).result.articles
48
- .filter((a) => { var _a; return (_a = a === null || a === void 0 ? void 0 : a.kicker) === null || _a === void 0 ? void 0 : _a.name; })
49
- .filter((a) => { var _a, _b, _c; return (_c = (_b = (_a = a === null || a === void 0 ? void 0 : a.thumbnail) === null || _a === void 0 ? void 0 : _a.renditions) === null || _b === void 0 ? void 0 : _b.landscape) === null || _c === void 0 ? void 0 : _c['240w']; })
50
- .filter((a) => { var _a; return !((_a = a === null || a === void 0 ? void 0 : a.content) === null || _a === void 0 ? void 0 : _a.third_party); })
48
+ .filter((a) => a?.kicker?.name)
49
+ .filter((a) => a?.thumbnail?.renditions?.landscape?.['240w'])
50
+ .filter((a) => !a?.content?.third_party)
51
51
  .slice(0, number);
52
52
  referrals.set(articles);
53
53
  }
@@ -74,7 +74,7 @@ const getOrigin = (baseUrl) => {
74
74
  }
75
75
  };
76
76
  $: origin = getOrigin(baseUrl);
77
- $: canonicalUrl = origin + pageUrl.pathname;
77
+ $: canonicalUrl = (origin + pageUrl.pathname).replace(/index\.html\/$/, '');
78
78
  const orgLdJson = {
79
79
  '@context': 'http://schema.org',
80
80
  '@type': 'NewsMediaOrganization',
@@ -147,10 +147,10 @@ div.embedded-foreground :global(ol) :global(li) :global(p) :global(a) {
147
147
  }
148
148
  @media (max-width: 540px) {
149
149
  div.embedded-foreground :global(p) :global(a),
150
- div.embedded-foreground :global(ul) :global(li) :global(a),
151
- div.embedded-foreground :global(ul) :global(li) :global(p) :global(a),
152
- div.embedded-foreground :global(ol) :global(li) :global(a),
153
- div.embedded-foreground :global(ol) :global(li) :global(p) :global(a) {
150
+ div.embedded-foreground :global(ul) :global(li) :global(a),
151
+ div.embedded-foreground :global(ul) :global(li) :global(p) :global(a),
152
+ div.embedded-foreground :global(ol) :global(li) :global(a),
153
+ div.embedded-foreground :global(ol) :global(li) :global(p) :global(a) {
154
154
  background-position: 0 1.1rem;
155
155
  }
156
156
  }
@@ -13,3 +13,4 @@ export const getScrollerPropsFromDoc = (docBlock, aiCharts, assetsPath = '') =>
13
13
  })),
14
14
  };
15
15
  };
16
+ //# sourceMappingURL=docProps.js.map
@@ -20,7 +20,7 @@ function clear() {
20
20
  }
21
21
  </script>
22
22
 
23
- <div class="search" class:active>
23
+ <div class="search" class:active="{active}">
24
24
  <div class="search--icon">
25
25
  <MagnifyingGlass />
26
26
  </div>
@@ -30,7 +30,7 @@ function clear() {
30
30
  type="text"
31
31
  placeholder="{searchPlaceholder}"
32
32
  on:input="{input}"
33
- bind:value
33
+ bind:value="{value}"
34
34
  />
35
35
  <div class="search--x" class:invisible="{!active}" on:click="{clear}">
36
36
  <X />
@@ -110,7 +110,7 @@
110
110
  }
111
111
  @media (max-width: 1023px) {
112
112
  .company .content-container .company-info,
113
- .company .content-container .social {
113
+ .company .content-container .social {
114
114
  grid-column: 1/span 4;
115
115
  grid-row: auto;
116
116
  }
@@ -139,29 +139,21 @@
139
139
  }
140
140
  @media (max-width: 1023px) {
141
141
  .legal .content-container .ad-links,
142
- .legal .content-container .misc-links,
143
- .legal .content-container .disclaimer,
144
- .legal .content-container .copyright {
142
+ .legal .content-container .misc-links,
143
+ .legal .content-container .disclaimer,
144
+ .legal .content-container .copyright {
145
145
  grid-column: 1/span 4;
146
146
  justify-self: start;
147
147
  }
148
- }
149
- @media (max-width: 1023px) {
150
148
  .legal .content-container .ad-links {
151
149
  grid-row: 1;
152
150
  }
153
- }
154
- @media (max-width: 1023px) {
155
151
  .legal .content-container .disclaimer {
156
152
  grid-row: 2;
157
153
  }
158
- }
159
- @media (max-width: 1023px) {
160
154
  .legal .content-container .misc-links {
161
155
  grid-row: 3;
162
156
  }
163
- }
164
- @media (max-width: 1023px) {
165
157
  .legal .content-container .copyright {
166
158
  grid-row: 4;
167
159
  }
@@ -75,7 +75,6 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
75
75
  }
76
76
 
77
77
  .header {
78
- position: -webkit-sticky;
79
78
  position: sticky;
80
79
  top: 0;
81
80
  z-index: 1;
@@ -4,12 +4,7 @@
4
4
  </div>
5
5
  </div>
6
6
 
7
- <style>@-webkit-keyframes spinner {
8
- to {
9
- transform: rotate(360deg);
10
- }
11
- }
12
- @keyframes spinner {
7
+ <style>@keyframes spinner {
13
8
  to {
14
9
  transform: rotate(360deg);
15
10
  }
@@ -30,8 +25,7 @@
30
25
  border-radius: 50%;
31
26
  border: 4px solid transparent;
32
27
  border-top-color: currentColor;
33
- -webkit-animation: spinner 0.6s linear infinite;
34
- animation: spinner 0.6s linear infinite;
28
+ animation: spinner 0.6s linear infinite;
35
29
  box-sizing: border-box;
36
30
  }
37
31
  .spinner::before {
@@ -223,8 +223,7 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
223
223
 
224
224
  .story-item {
225
225
  padding-bottom: 20px;
226
- -webkit-animation: fadein 0.5s both cubic-bezier(0.19, 1, 0.22, 1);
227
- animation: fadein 0.5s both cubic-bezier(0.19, 1, 0.22, 1);
226
+ animation: fadein 0.5s both cubic-bezier(0.19, 1, 0.22, 1);
228
227
  }
229
228
  .story-item:nth-child(1), .story-item:nth-child(2) {
230
229
  border-bottom: 1px solid var(--nav-rules, #d0d0d0);
@@ -249,15 +248,6 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
249
248
  left: 50%;
250
249
  }
251
250
 
252
- @-webkit-keyframes fadein {
253
- from {
254
- opacity: 0;
255
- }
256
- to {
257
- opacity: 1;
258
- }
259
- }
260
-
261
251
  @keyframes fadein {
262
252
  from {
263
253
  opacity: 0;
@@ -116,7 +116,6 @@ To handle overlapping borders within components (e.g., buttons and inputs in inp
116
116
  pointer-events: none;
117
117
  }
118
118
  .scroll-container .inner {
119
- position: -webkit-sticky;
120
119
  position: sticky;
121
120
  top: 0;
122
121
  background: var(--nav-background, #fff);
@@ -41,12 +41,7 @@ export let containerPadding = 10;
41
41
  </div>
42
42
  </div>
43
43
 
44
- <style>@-webkit-keyframes spinner {
45
- to {
46
- transform: rotate(360deg);
47
- }
48
- }
49
- @keyframes spinner {
44
+ <style>@keyframes spinner {
50
45
  to {
51
46
  transform: rotate(360deg);
52
47
  }
@@ -73,8 +68,7 @@ export let containerPadding = 10;
73
68
  border-radius: 50%;
74
69
  border: var(--spinner-ring-width, 6px) solid transparent;
75
70
  border-top-color: currentColor;
76
- -webkit-animation: spinner var(--spinner-speed, 0.8s) linear infinite;
77
- animation: spinner var(--spinner-speed, 0.8s) linear infinite;
71
+ animation: spinner var(--spinner-speed, 0.8s) linear infinite;
78
72
  box-sizing: border-box;
79
73
  }
80
74
  .spinner::before {
@@ -199,7 +199,7 @@ onMount(() => {
199
199
  {#if searchable}
200
200
  <div class="table--header--search">
201
201
  <SearchInput
202
- bind:searchPlaceholder
202
+ bind:searchPlaceholder="{searchPlaceholder}"
203
203
  on:search="{handleSearchInput}"
204
204
  />
205
205
  </div>
@@ -210,7 +210,7 @@ onMount(() => {
210
210
  {/if}
211
211
  <section class="table">
212
212
  <table
213
- class:paginated
213
+ class:paginated="{paginated}"
214
214
  class:truncated="{truncated &&
215
215
  !showAll &&
216
216
  data.length > truncateLength}"
@@ -235,7 +235,7 @@ onMount(() => {
235
235
  {#if sortable && sortableFields.includes(field)}
236
236
  <div class="table--thead--sortarrow avoid-clicks">
237
237
  <SortArrow
238
- bind:sortDirection
238
+ bind:sortDirection="{sortDirection}"
239
239
  active="{sortField === field}"
240
240
  />
241
241
  </div>
@@ -292,8 +292,8 @@ onMount(() => {
292
292
  {/if}
293
293
  {#if paginated}
294
294
  <Pagination
295
- bind:pageNumber
296
- bind:pageSize
295
+ bind:pageNumber="{pageNumber}"
296
+ bind:pageSize="{pageSize}"
297
297
  bind:pageLength="{currentPageData.length}"
298
298
  bind:n="{sortedData.length}"
299
299
  />{/if}
@@ -1,3 +1,4 @@
1
1
  ;
2
2
  ;
3
3
  export {};
4
+ //# sourceMappingURL=component.js.map
@@ -50,7 +50,6 @@ import ReutersGraphicsLogo from '../ReutersGraphicsLogo/ReutersGraphicsLogo.svel
50
50
  gap: 15px;
51
51
  }
52
52
  header.sticky {
53
- position: -webkit-sticky;
54
53
  position: sticky;
55
54
  top: 0;
56
55
  }