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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  # ⚙️ graphics-components
4
4
 
5
+ [![npm version](https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components.svg)](https://badge.fury.io/js/@reuters-graphics%2Fgraphics-components)
6
+
5
7
  Svelte components, SCSS and more for Reuters Graphics pages.
6
8
 
7
9
  [Read the docs.](https://reuters-graphics.github.io/graphics-components/)
@@ -3,7 +3,7 @@ declare const __propDef: {
3
3
  props: {
4
4
  /** Set to true for embeddables. */ embedded?: boolean;
5
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;
6
+ /** ARIA role of the article */ role?: string | null;
7
7
  /** Set custom widths for the normal, wide and wider column dimensions */ columnWidths?: {
8
8
  /** Narrower column width */
9
9
  narrower: number;
@@ -0,0 +1,27 @@
1
+ /** @typedef {typeof __propDef.props} PaddingResetProps */
2
+ /** @typedef {typeof __propDef.events} PaddingResetEvents */
3
+ /** @typedef {typeof __propDef.slots} PaddingResetSlots */
4
+ export default class PaddingReset extends SvelteComponentTyped<{
5
+ containerIsFluid?: boolean;
6
+ }, {
7
+ [evt: string]: CustomEvent<any>;
8
+ }, {
9
+ default: {};
10
+ }> {
11
+ }
12
+ export type PaddingResetProps = typeof __propDef.props;
13
+ export type PaddingResetEvents = typeof __propDef.events;
14
+ export type PaddingResetSlots = typeof __propDef.slots;
15
+ import { SvelteComponentTyped } from "svelte";
16
+ declare const __propDef: {
17
+ props: {
18
+ containerIsFluid?: boolean;
19
+ };
20
+ events: {
21
+ [evt: string]: CustomEvent<any>;
22
+ };
23
+ slots: {
24
+ default: {};
25
+ };
26
+ };
27
+ export {};
@@ -1,6 +1,11 @@
1
1
  import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ /**
5
+ * [URL origin](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin) for the page.
6
+ * @required
7
+ * @type {string}
8
+ */ origin?: string;
4
9
  /**
5
10
  * [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL) object for the page.
6
11
  * @required
@@ -10,6 +10,8 @@ export { default as GraphicBlock } from "./components/GraphicBlock/GraphicBlock.
10
10
  export { default as Headline } from "./components/Headline/Headline.svelte";
11
11
  export { default as Hero } from "./components/Hero/Hero.svelte";
12
12
  export { default as NoteText } from "./components/NoteText/NoteText.svelte";
13
+ export { default as PaddingReset } from "./components/PaddingReset/PaddingReset.svelte";
14
+ export { default as PhotoPack } from "./components/PhotoPack/PhotoPack.svelte";
13
15
  export { default as PymChild } from "./components/PymChild/PymChild.svelte";
14
16
  export { default as ReutersLogo } from "./components/ReutersLogo/ReutersLogo.svelte";
15
17
  export { default as Scroller } from "./components/Scroller/Scroller.svelte";
@@ -20,5 +22,5 @@ export { default as SiteHeader } from "./components/SiteHeader/SiteHeader.svelte
20
22
  export { default as Spinner } from "./components/Spinner/Spinner.svelte";
21
23
  export { default as Video } from "./components/Video/Video.svelte";
22
24
  export { default as Visible } from "./components/Visible/Visible.svelte";
23
- export { getPhotoPackPropsFromDoc } from "./components/PhotoPack/docProps";
25
+ export { getPhotoPackPropsFromDoc } from "./components/PhotoPack/docProps.js";
24
26
  export { default as Theme, themes } from "./components/Theme/Theme.svelte";
@@ -2,7 +2,7 @@
2
2
  export let embedded = false;
3
3
  /** Add an id to the article tag to target it with custom CSS. */
4
4
  export let id = null;
5
- /** ARIA role of the article. */
5
+ /** ARIA role of the article */
6
6
  export let role = null;
7
7
  /** Set custom widths for the normal, wide and wider column dimensions */
8
8
  export let columnWidths = {
@@ -12,7 +12,7 @@ export let columnWidths = {
12
12
  wide: 930,
13
13
  wider: 1200,
14
14
  };
15
- import cssVariables from '$lib/actions/cssVariables/index.js';
15
+ import cssVariables from '../../actions/cssVariables/index.js';
16
16
  $: columnWidthVars = {
17
17
  'narrower-column-width': columnWidths.narrower + 'px',
18
18
  'narrow-column-width': columnWidths.narrow + 'px',
@@ -1,6 +1,7 @@
1
1
  <script>import { throttle } from 'lodash-es';
2
2
  import { onMount } from 'svelte';
3
3
  import Block from '../Block/Block.svelte';
4
+ import PaddingReset from '../PaddingReset/PaddingReset.svelte';
4
5
  /** Width of the chart within the text well. */
5
6
  export let width = 'normal'; // options: wide, wider, widest, fluid
6
7
  /** Height of the component */
@@ -205,10 +206,12 @@ onMount(() => {
205
206
  </figure>
206
207
  </div>
207
208
  {#if $$slots.caption}
208
- <aside class="before-after-caption" id="{`${id}-caption`}">
209
- <!-- Caption for image credits -->
210
- <slot name="caption" />
211
- </aside>
209
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
210
+ <aside class="before-after-caption" id="{`${id}-caption`}">
211
+ <!-- Caption for image credits -->
212
+ <slot name="caption" />
213
+ </aside>
214
+ </PaddingReset>
212
215
  {/if}
213
216
  </Block>
214
217
  {/if}
@@ -1,5 +1,6 @@
1
1
  <script>import { onMount } from 'svelte';
2
2
  import Block from '../Block/Block.svelte';
3
+ import PaddingReset from '../PaddingReset/PaddingReset.svelte';
3
4
  /**
4
5
  * Photo src
5
6
  * @type {string}
@@ -60,18 +61,16 @@ onMount(() => {
60
61
  </script>
61
62
 
62
63
  <Block width="{width}" cls="photo">
63
- <figure
64
- bind:this="{container}"
65
- aria-label="media"
66
- class:fluid="{width === 'fluid'}"
67
- >
64
+ <figure bind:this="{container}" aria-label="media">
68
65
  {#if !lazy || (intersectable && intersecting)}
69
66
  <img src="{src}" alt="{altText}" />
70
67
  {:else}
71
68
  <div class="placeholder" height="{`${height}px`}"></div>
72
69
  {/if}
73
70
  {#if caption}
74
- <figcaption>{caption}</figcaption>
71
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
72
+ <figcaption>{caption}</figcaption>
73
+ </PaddingReset>
75
74
  {/if}
76
75
  {#if !altText}
77
76
  <div class="alt-warning">altText</div>
@@ -107,7 +106,4 @@ figure figcaption {
107
106
  font-size: 0.8rem;
108
107
  font-family: var(--theme-font-family-note, "Knowledge", "Source Sans Pro", Arial, sans-serif);
109
108
  color: var(--theme-colour-text-secondary, #666666);
110
- }
111
- figure.fluid figcaption {
112
- padding-left: 15px;
113
109
  }</style>
@@ -55,7 +55,7 @@ export let ariaDescription = null;
55
55
  import AriaHidden from './AriaHidden.svelte';
56
56
  import TextBlock from './TextBlock.svelte';
57
57
  import Block from '../Block/Block.svelte';
58
- import PaddingReset from '../PaddingReset/index.svelte';
58
+ import PaddingReset from '../PaddingReset/PaddingReset.svelte';
59
59
  import { marked } from 'marked';
60
60
  </script>
61
61
 
@@ -69,14 +69,14 @@ import { marked } from 'marked';
69
69
  >
70
70
  <div>
71
71
  {#if $$slots.title}
72
- <PaddingReset width="{width}">
72
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
73
73
  <TextBlock width="{textWidth}">
74
74
  <!-- Custom title content -->
75
75
  <slot name="title" />
76
76
  </TextBlock>
77
77
  </PaddingReset>
78
78
  {:else if title}
79
- <PaddingReset width="{width}">
79
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
80
80
  <TextBlock width="{textWidth}">
81
81
  <h3>{title}</h3>
82
82
  {#if description}
@@ -100,14 +100,14 @@ import { marked } from 'marked';
100
100
  </div>
101
101
  {/if}
102
102
  {#if $$slots.notes}
103
- <PaddingReset width="{width}">
103
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
104
104
  <TextBlock width="{textWidth}">
105
105
  <!-- Custom notes content -->
106
106
  <slot name="notes" />
107
107
  </TextBlock>
108
108
  </PaddingReset>
109
109
  {:else if notes}
110
- <PaddingReset width="{width}">
110
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
111
111
  <TextBlock width="{textWidth}">
112
112
  <aside>
113
113
  {@html marked(notes)}
@@ -8,7 +8,7 @@ import { marked } from 'marked';
8
8
  import Block from '../Block/Block.svelte';
9
9
  </script>
10
10
 
11
- <Block cls="notes">
11
+ <Block cls="notes mb-4">
12
12
  {#if text}
13
13
  {@html marked.parse(text)}
14
14
  {/if}
@@ -0,0 +1,22 @@
1
+ <script>
2
+ /**
3
+ * If parent container is fluid, which resets the padding around contained elements.
4
+ */
5
+ export let containerIsFluid = true;
6
+ </script>
7
+
8
+ {#if containerIsFluid}
9
+ <div>
10
+ <!-- Padded content -->
11
+ <slot />
12
+ </div>
13
+ {:else}
14
+ <!-- Padded content -->
15
+ <slot />
16
+ {/if}
17
+
18
+ <style>
19
+ div {
20
+ width: 100%;
21
+ padding: 0 15px;
22
+ }</style>
@@ -36,7 +36,7 @@ export let width = 'normal';
36
36
  */
37
37
  export let captionWidth = 'normal';
38
38
  import Block from '../Block/Block.svelte';
39
- import PaddingReset from '../PaddingReset/index.svelte';
39
+ import PaddingReset from '../PaddingReset/PaddingReset.svelte';
40
40
  import { marked } from 'marked';
41
41
  let containerWidth;
42
42
  const groupRows = (images, layout) => {
@@ -89,7 +89,7 @@ $: rows = groupRows(images, layout);
89
89
  </div>
90
90
  {/each}
91
91
  </div>
92
- <PaddingReset width="{width}">
92
+ <PaddingReset containerIsFluid="{width === 'fluid'}">
93
93
  <Block width="{captionWidth}">
94
94
  <div class="captions-container">
95
95
  {#each rows as row, ri}
@@ -1,5 +1,11 @@
1
1
  <script>import analytics from './analytics';
2
2
  import publisherTags from './publisherTags';
3
+ /**
4
+ * [URL origin](https://developer.mozilla.org/en-US/docs/Web/API/URL/origin) for the page.
5
+ * @required
6
+ * @type {string}
7
+ */
8
+ export let origin = '';
3
9
  /**
4
10
  * [URL](https://developer.mozilla.org/en-US/docs/Web/API/URL) object for the page.
5
11
  * @required
@@ -59,9 +65,10 @@ export let authors = [];
59
65
  * Whether to inject Google Analytics code for this page.
60
66
  */
61
67
  export let includeAnalytics = false;
68
+ $: canonicalUrl = origin + url.pathname;
62
69
  // Only fire analytics on prod sites
63
70
  if (typeof window !== 'undefined' && includeAnalytics) {
64
- analytics(url, seoTitle);
71
+ analytics(canonicalUrl, seoTitle);
65
72
  publisherTags();
66
73
  }
67
74
  const orgLdJson = {
@@ -81,10 +88,10 @@ const articleLdJson = {
81
88
  '@context': 'http://schema.org',
82
89
  '@type': 'NewsArticle',
83
90
  headline: seoTitle,
84
- url: url.href,
91
+ url: canonicalUrl,
85
92
  mainEntityOfPage: {
86
93
  '@type': 'WebPage',
87
- '@id': url.href,
94
+ '@id': canonicalUrl,
88
95
  },
89
96
  thumbnailUrl: shareImgPath,
90
97
  image: [
@@ -117,7 +124,7 @@ const articleLdJson = {
117
124
  <html lang="{lang}"></html>
118
125
  <title>{seoTitle}</title>
119
126
  <meta name="description" content="{seoDescription}" />
120
- <link rel="canonical" href="{url.href}" />
127
+ <link rel="canonical" href="{canonicalUrl}" />
121
128
  <link
122
129
  rel="shortcut icon"
123
130
  type="image/x-icon"
@@ -142,7 +149,7 @@ const articleLdJson = {
142
149
  sizes="96x96"
143
150
  />
144
151
 
145
- <meta property="og:url" content="{url.href}" />
152
+ <meta property="og:url" content="{canonicalUrl}" />
146
153
  <meta property="og:type" content="article" />
147
154
  <meta property="og:title" content="{shareTitle}" itemprop="name" />
148
155
  <meta
@@ -150,17 +157,13 @@ const articleLdJson = {
150
157
  content="{shareDescription}"
151
158
  itemprop="description"
152
159
  />
153
- <meta
154
- property="og:image"
155
- content="{shareImgPath}"
156
- itemprop="image"
157
- />
160
+ <meta property="og:image" content="{shareImgPath}" itemprop="image" />
158
161
  <meta property="og:site_name" content="Reuters" />
159
162
 
160
163
  <meta name="twitter:card" content="summary_large_image" />
161
164
  <meta name="twitter:site" content="@ReutersGraphics" />
162
165
  <meta name="twitter:creator" content="@ReutersGraphics" />
163
- <meta name="twitter:domain" content="{url.origin}" />
166
+ <meta name="twitter:domain" content="{origin}" />
164
167
  <meta name="twitter:title" content="{shareTitle}" />
165
168
  <meta name="twitter:description" content="{shareDescription}" />
166
169
  <meta name="twitter:image:src" content="{shareImgPath}" />
@@ -10,6 +10,7 @@ export let referrals = [];
10
10
  </script>
11
11
 
12
12
  <footer
13
+ class="my-0"
13
14
  style="{`
14
15
  --nav-background: var(--theme-colour-background, #fff);
15
16
  --nav-primary: var(--theme-colour-text-primary, #404040);
@@ -26,7 +27,7 @@ export let referrals = [];
26
27
 
27
28
  <!-- svelte-ignore css-unused-selector -->
28
29
  <style>footer {
29
- margin-top: 4rem;
30
+ margin-top: 0;
30
31
  background-color: var(--nav-background, #fff);
31
32
  }
32
33
  footer div {
@@ -1,5 +1,5 @@
1
1
  <script>
2
- import { ReutersLogo } from '../../../index.js';
2
+ import ReutersLogo from '../../ReutersLogo/ReutersLogo.svelte';
3
3
  import CloseIcon from '../svgs/Close.svelte';
4
4
  import { normalizeUrl } from '../NavBar/utils/index.js';
5
5
 
@@ -1,4 +1,4 @@
1
- <script>import { ReutersLogo } from '../../index.js';
1
+ <script>import ReutersLogo from '../ReutersLogo/ReutersLogo.svelte';
2
2
  import NavBar from './NavBar/index.svelte';
3
3
  import data from './data.json';
4
4
  import { setContext } from 'svelte';
@@ -17,18 +17,16 @@ export let theme = {};
17
17
  * explicitly set.
18
18
  */
19
19
  export let base = 'light';
20
- import cssVariables from '../../actions/cssVariables';
21
20
  import flatten from './utils/flatten';
22
21
  import mergeThemes from './utils/merge';
23
22
  /** @type {Theme} */
24
23
  $: mergedTheme = mergeThemes({}, themes[base] || themes.light, theme);
24
+ $: cssVariables = Object.entries(flatten({ theme: mergedTheme }))
25
+ .map(([key, value]) => `--${key}: ${value};`)
26
+ .join(' ');
25
27
  </script>
26
28
 
27
- <div
28
- class="theme"
29
- style="display: contents;"
30
- use:cssVariables="{flatten({ theme: mergedTheme })}"
31
- >
29
+ <div class="theme" style="{cssVariables}" style:display="contents">
32
30
  <!-- Clients can override the theme above by attaching custom properties to this element. -->
33
31
  <div class="theme-client-override" style="display: contents;">
34
32
  <!-- Themed content -->
package/dist/index.js CHANGED
@@ -11,6 +11,8 @@ export { default as GraphicBlock } from './components/GraphicBlock/GraphicBlock.
11
11
  export { default as Headline } from './components/Headline/Headline.svelte';
12
12
  export { default as Hero } from './components/Hero/Hero.svelte';
13
13
  export { default as NoteText } from './components/NoteText/NoteText.svelte';
14
+ export { default as PaddingReset } from './components/PaddingReset/PaddingReset.svelte';
15
+ export { default as PhotoPack } from './components/PhotoPack/PhotoPack.svelte';
14
16
  export { default as PymChild } from './components/PymChild/PymChild.svelte';
15
17
  export { default as ReutersLogo } from './components/ReutersLogo/ReutersLogo.svelte';
16
18
  export { default as Scroller } from './components/Scroller/Scroller.svelte';
@@ -28,4 +30,4 @@ export { default as Video } from './components/Video/Video.svelte';
28
30
  export { default as Visible } from './components/Visible/Visible.svelte';
29
31
 
30
32
  // Utilities
31
- export { getPhotoPackPropsFromDoc } from './components/PhotoPack/docProps';
33
+ export { getPhotoPackPropsFromDoc } from './components/PhotoPack/docProps.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reuters-graphics/graphics-components",
3
- "version": "0.0.1-beta.1",
3
+ "version": "0.0.1-beta.12",
4
4
  "type": "module",
5
5
  "private": false,
6
6
  "homepage": "https://reuters-graphics.github.io/graphics-components",
@@ -11,7 +11,8 @@
11
11
  "build:package": "node ./bin/buildPackage/index.js",
12
12
  "build:docs": "build-storybook -o docs && touch ./docs/.nojekyll",
13
13
  "build": "npm-run-all build:package build:docs",
14
- "prepublishOnly": "npm run build:package"
14
+ "prepublishOnly": "npm run build:package",
15
+ "postversion": "git push origin && git push origin --tags"
15
16
  },
16
17
  "license": "MIT",
17
18
  "types": "dist/@types/index.d.ts",
@@ -112,7 +113,7 @@
112
113
  "./components/Headline/Headline.svelte": "./dist/components/Headline/Headline.svelte",
113
114
  "./components/Hero/Hero.svelte": "./dist/components/Hero/Hero.svelte",
114
115
  "./components/NoteText/NoteText.svelte": "./dist/components/NoteText/NoteText.svelte",
115
- "./components/PaddingReset/index.svelte": "./dist/components/PaddingReset/index.svelte",
116
+ "./components/PaddingReset/PaddingReset.svelte": "./dist/components/PaddingReset/PaddingReset.svelte",
116
117
  "./components/PhotoPack/PhotoPack.svelte": "./dist/components/PhotoPack/PhotoPack.svelte",
117
118
  "./components/PhotoPack/docProps.ts": "./dist/components/PhotoPack/docProps.ts",
118
119
  "./components/PymChild/PymChild.svelte": "./dist/components/PymChild/PymChild.svelte",
@@ -160,11 +161,11 @@
160
161
  "./components/SiteHeader/NavBar/utils": "./dist/components/SiteHeader/NavBar/utils/index.js",
161
162
  "./components/SiteHeader/SiteHeader.svelte": "./dist/components/SiteHeader/SiteHeader.svelte",
162
163
  "./components/SiteHeader/data.json": "./dist/components/SiteHeader/data.json",
163
- "./components/SiteHeader/scss/_breakpoints.scss": "./dist/components/SiteHeader/scss/_breakpoints.scss",
164
- "./components/SiteHeader/scss/_colors.scss": "./dist/components/SiteHeader/scss/_colors.scss",
165
- "./components/SiteHeader/scss/_eases.scss": "./dist/components/SiteHeader/scss/_eases.scss",
166
- "./components/SiteHeader/scss/_grids.scss": "./dist/components/SiteHeader/scss/_grids.scss",
167
- "./components/SiteHeader/scss/_z-indexes.scss": "./dist/components/SiteHeader/scss/_z-indexes.scss",
164
+ "./components/SiteHeader/scss/breakpoints": "./dist/components/SiteHeader/scss/_breakpoints.scss",
165
+ "./components/SiteHeader/scss/colors": "./dist/components/SiteHeader/scss/_colors.scss",
166
+ "./components/SiteHeader/scss/eases": "./dist/components/SiteHeader/scss/_eases.scss",
167
+ "./components/SiteHeader/scss/grids": "./dist/components/SiteHeader/scss/_grids.scss",
168
+ "./components/SiteHeader/scss/z-indexes": "./dist/components/SiteHeader/scss/_z-indexes.scss",
168
169
  "./components/SiteHeader/svgs/Close.svelte": "./dist/components/SiteHeader/svgs/Close.svelte",
169
170
  "./components/SiteHeader/svgs/Menu.svelte": "./dist/components/SiteHeader/svgs/Menu.svelte",
170
171
  "./components/Spinner/Spinner.svelte": "./dist/components/Spinner/Spinner.svelte",
@@ -177,34 +178,35 @@
177
178
  "./components/Video/Controls.svelte": "./dist/components/Video/Controls.svelte",
178
179
  "./components/Video/Video.svelte": "./dist/components/Video/Video.svelte",
179
180
  "./components/Visible/Visible.svelte": "./dist/components/Visible/Visible.svelte",
180
- "./scss/_mixins.scss": "./dist/scss/_mixins.scss",
181
- "./scss/_variables.scss": "./dist/scss/_variables.scss",
182
- "./scss/bootstrap/_main.scss": "./dist/scss/bootstrap/_main.scss",
183
- "./scss/bootstrap/_variables.scss": "./dist/scss/bootstrap/_variables.scss",
184
- "./scss/colours/thematic/_nord.scss": "./dist/scss/colours/thematic/_nord.scss",
185
- "./scss/colours/thematic/_tr.scss": "./dist/scss/colours/thematic/_tr.scss",
186
- "./scss/components/_hero-title.scss": "./dist/scss/components/_hero-title.scss",
187
- "./scss/fonts/_font-faces.scss": "./dist/scss/fonts/_font-faces.scss",
188
- "./scss/fonts/_mixins.scss": "./dist/scss/fonts/_mixins.scss",
189
- "./scss/fonts/_rules.scss": "./dist/scss/fonts/_rules.scss",
190
- "./scss/fonts/_variables.scss": "./dist/scss/fonts/_variables.scss",
191
- "./scss/main.scss": "./dist/scss/main.scss",
192
- "./scss/mixins/_block.scss": "./dist/scss/mixins/_block.scss",
193
- "./scss/mixins/_body-text.scss": "./dist/scss/mixins/_body-text.scss",
194
- "./scss/mixins/_graphic.scss": "./dist/scss/mixins/_graphic.scss",
195
- "./scss/mixins/_note-text.scss": "./dist/scss/mixins/_note-text.scss",
196
- "./scss/mixins/_visually-hidden.scss": "./dist/scss/mixins/_visually-hidden.scss",
197
- "./scss/spacers/_rules.scss": "./dist/scss/spacers/_rules.scss",
198
- "./scss/spacers/_variables.scss": "./dist/scss/spacers/_variables.scss",
199
- "./scss/typography/_box-shadow.scss": "./dist/scss/typography/_box-shadow.scss",
200
- "./scss/typography/_font-size.scss": "./dist/scss/typography/_font-size.scss",
201
- "./scss/typography/_letter-spacing.scss": "./dist/scss/typography/_letter-spacing.scss",
202
- "./scss/typography/_main.scss": "./dist/scss/typography/_main.scss",
203
- "./scss/typography/_mixins.scss": "./dist/scss/typography/_mixins.scss",
204
- "./scss/typography/_rules.scss": "./dist/scss/typography/_rules.scss",
205
- "./scss/typography/_text-shadow.scss": "./dist/scss/typography/_text-shadow.scss",
206
- "./scss/typography/_transform.scss": "./dist/scss/typography/_transform.scss",
207
- "./scss/typography/_variables.scss": "./dist/scss/typography/_variables.scss",
181
+ "./scss/mixins": "./dist/scss/_mixins.scss",
182
+ "./scss/variables": "./dist/scss/_variables.scss",
183
+ "./scss/bootstrap/main": "./dist/scss/bootstrap/_main.scss",
184
+ "./scss/bootstrap/variables": "./dist/scss/bootstrap/_variables.scss",
185
+ "./scss/colours/thematic/nord": "./dist/scss/colours/thematic/_nord.scss",
186
+ "./scss/colours/thematic/tr": "./dist/scss/colours/thematic/_tr.scss",
187
+ "./scss/components/hero-title": "./dist/scss/components/_hero-title.scss",
188
+ "./scss/fonts/font-faces": "./dist/scss/fonts/_font-faces.scss",
189
+ "./scss/fonts/mixins": "./dist/scss/fonts/_mixins.scss",
190
+ "./scss/fonts/rules": "./dist/scss/fonts/_rules.scss",
191
+ "./scss/fonts/variables": "./dist/scss/fonts/_variables.scss",
192
+ "./scss/main": "./dist/scss/main.scss",
193
+ "./scss/mixins/block": "./dist/scss/mixins/_block.scss",
194
+ "./scss/mixins/body-text": "./dist/scss/mixins/_body-text.scss",
195
+ "./scss/mixins/graphic": "./dist/scss/mixins/_graphic.scss",
196
+ "./scss/mixins/note-text": "./dist/scss/mixins/_note-text.scss",
197
+ "./scss/mixins/visually-hidden": "./dist/scss/mixins/_visually-hidden.scss",
198
+ "./scss/spacers/rules": "./dist/scss/spacers/_rules.scss",
199
+ "./scss/spacers/variables": "./dist/scss/spacers/_variables.scss",
200
+ "./scss/typography/box-shadow": "./dist/scss/typography/_box-shadow.scss",
201
+ "./scss/typography/font-size": "./dist/scss/typography/_font-size.scss",
202
+ "./scss/typography/letter-spacing": "./dist/scss/typography/_letter-spacing.scss",
203
+ "./scss/typography/main": "./dist/scss/typography/_main.scss",
204
+ "./scss/typography/mixins": "./dist/scss/typography/_mixins.scss",
205
+ "./scss/typography/rules": "./dist/scss/typography/_rules.scss",
206
+ "./scss/typography/text-shadow": "./dist/scss/typography/_text-shadow.scss",
207
+ "./scss/typography/transform": "./dist/scss/typography/_transform.scss",
208
+ "./scss/typography/variables": "./dist/scss/typography/_variables.scss",
208
209
  ".": "./dist/index.js"
209
- }
210
+ },
211
+ "svelte": "./dist/index.js"
210
212
  }
@@ -1,27 +0,0 @@
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 {};
@@ -1,17 +0,0 @@
1
- <script>
2
- export let width = 'normal';
3
- </script>
4
-
5
- {#if width === 'fluid'}
6
- <div>
7
- <slot />
8
- </div>
9
- {:else}
10
- <slot />
11
- {/if}
12
-
13
- <style>
14
- div {
15
- width: 100%;
16
- padding: 0 15px;
17
- }</style>