@onsvisual/svelte-components 1.0.20 → 1.0.21
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 +1 -1
- package/dist/datavis/DataCard/DataCard.svelte +14 -14
- package/dist/datavis/DataCard/DataCard.svelte.d.ts +14 -14
- package/dist/datavis/Table/Table.svelte +4 -4
- package/dist/datavis/Table/Table.svelte.d.ts +4 -4
- package/dist/decorators/Blockquote/Blockquote.svelte +2 -2
- package/dist/decorators/Blockquote/Blockquote.svelte.d.ts +2 -2
- package/dist/decorators/Divider/Divider.svelte +2 -2
- package/dist/decorators/Divider/Divider.svelte.d.ts +2 -2
- package/dist/decorators/Em/Em.svelte +2 -2
- package/dist/decorators/Em/Em.svelte.d.ts +2 -2
- package/dist/inputs/Button/Button.svelte +117 -117
- package/dist/inputs/Button/Button.svelte.d.ts +6 -6
- package/dist/inputs/Checkbox/Checkbox.svelte +6 -6
- package/dist/inputs/Checkbox/Checkbox.svelte.d.ts +6 -6
- package/dist/inputs/Checkboxes/Checkboxes.svelte +6 -6
- package/dist/inputs/Checkboxes/Checkboxes.svelte.d.ts +6 -6
- package/dist/inputs/Dropdown/Dropdown.svelte +6 -6
- package/dist/inputs/Dropdown/Dropdown.svelte.d.ts +6 -6
- package/dist/inputs/ErrorPanel/ErrorPanel.svelte +4 -4
- package/dist/inputs/ErrorPanel/ErrorPanel.svelte.d.ts +4 -4
- package/dist/inputs/ErrorSummary/ErrorSummary.svelte +4 -4
- package/dist/inputs/ErrorSummary/ErrorSummary.svelte.d.ts +4 -4
- package/dist/inputs/Input/Input.svelte +14 -14
- package/dist/inputs/Input/Input.svelte.d.ts +14 -14
- package/dist/inputs/Radios/Radio.svelte +6 -6
- package/dist/inputs/Radios/Radio.svelte.d.ts +6 -6
- package/dist/inputs/Radios/Radios.svelte +6 -6
- package/dist/inputs/Radios/Radios.svelte.d.ts +6 -6
- package/dist/inputs/Select/Select.svelte +4 -4
- package/dist/inputs/Select/Select.svelte.d.ts +4 -4
- package/dist/inputs/Textarea/Textarea.svelte +8 -8
- package/dist/inputs/Textarea/Textarea.svelte.d.ts +8 -8
- package/dist/layout/Accordion/Accordion.svelte +2 -2
- package/dist/layout/Accordion/Accordion.svelte.d.ts +2 -2
- package/dist/layout/Accordion/AccordionItem.svelte +2 -2
- package/dist/layout/Accordion/AccordionItem.svelte.d.ts +2 -2
- package/dist/layout/BackLink/BackLink.svelte +2 -2
- package/dist/layout/BackLink/BackLink.svelte.d.ts +2 -2
- package/dist/layout/Breadcrumb/Breadcrumb.svelte +4 -4
- package/dist/layout/Breadcrumb/Breadcrumb.svelte.d.ts +4 -4
- package/dist/layout/Card/Card.svelte +12 -12
- package/dist/layout/Card/Card.svelte.d.ts +12 -12
- package/dist/layout/Contents/Contents.svelte +4 -4
- package/dist/layout/Contents/Contents.svelte.d.ts +4 -4
- package/dist/layout/DescriptionList/DescriptionList.svelte +4 -4
- package/dist/layout/DescriptionList/DescriptionList.svelte.d.ts +4 -4
- package/dist/layout/Details/Details.svelte +2 -2
- package/dist/layout/Details/Details.svelte.d.ts +2 -2
- package/dist/layout/DocumentList/Document.svelte +8 -8
- package/dist/layout/DocumentList/Document.svelte.d.ts +8 -8
- package/dist/layout/DocumentList/DocumentList.svelte +2 -2
- package/dist/layout/DocumentList/DocumentList.svelte.d.ts +2 -2
- package/dist/layout/Grid/Grid.svelte +8 -8
- package/dist/layout/Grid/Grid.svelte.d.ts +8 -8
- package/dist/layout/Header/Header.svelte +4 -4
- package/dist/layout/Header/Header.svelte.d.ts +4 -4
- package/dist/layout/Hero/Hero.svelte +11 -8
- package/dist/layout/Hero/Hero.svelte.d.ts +6 -6
- package/dist/layout/Highlight/Highlight.svelte +4 -4
- package/dist/layout/Highlight/Highlight.svelte.d.ts +4 -4
- package/dist/layout/Image/Image.svelte +8 -8
- package/dist/layout/Image/Image.svelte.d.ts +8 -8
- package/dist/layout/List/List.svelte +2 -2
- package/dist/layout/List/List.svelte.d.ts +2 -2
- package/dist/layout/NavSections/NavSection.svelte +2 -2
- package/dist/layout/NavSections/NavSection.svelte.d.ts +2 -2
- package/dist/layout/NavSections/NavSections.svelte +2 -2
- package/dist/layout/NavSections/NavSections.svelte.d.ts +2 -2
- package/dist/layout/Notice/Notice.svelte +2 -2
- package/dist/layout/Notice/Notice.svelte.d.ts +2 -2
- package/dist/layout/PhaseBanner/PhaseBanner.svelte +2 -2
- package/dist/layout/PhaseBanner/PhaseBanner.svelte.d.ts +2 -2
- package/dist/layout/RelatedContent/RelatedContent.svelte +2 -2
- package/dist/layout/RelatedContent/RelatedContent.svelte.d.ts +2 -2
- package/dist/layout/Scroller/Scroller.svelte +2 -2
- package/dist/layout/Scroller/Scroller.svelte.d.ts +2 -2
- package/dist/layout/Scroller/ScrollerSection.svelte +6 -6
- package/dist/layout/Scroller/ScrollerSection.svelte.d.ts +6 -6
- package/dist/layout/Section/Section.svelte +6 -6
- package/dist/layout/Section/Section.svelte.d.ts +6 -6
- package/dist/layout/ShareButtons/ShareButtons.svelte +2 -2
- package/dist/layout/ShareButtons/ShareButtons.svelte.d.ts +2 -2
- package/dist/layout/Summary/Summary.svelte +6 -6
- package/dist/layout/Summary/Summary.svelte.d.ts +6 -6
- package/dist/layout/Tabs/Tabs.svelte +2 -2
- package/dist/layout/Tabs/Tabs.svelte.d.ts +2 -2
- package/dist/layout/Timeline/TimelineItem.svelte +2 -2
- package/dist/layout/Timeline/TimelineItem.svelte.d.ts +2 -2
- package/dist/wrappers/Container/Container.svelte +4 -4
- package/dist/wrappers/Container/Container.svelte.d.ts +4 -4
- package/dist/wrappers/Theme/Theme.svelte +2 -2
- package/dist/wrappers/Theme/Theme.svelte.d.ts +2 -2
- package/package.json +4 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/**
|
|
3
3
|
* The URL of the image
|
|
4
|
-
* @type {string}
|
|
4
|
+
* @type {string|null}
|
|
5
5
|
*/
|
|
6
|
-
export let src =
|
|
6
|
+
export let src = null;
|
|
7
7
|
/**
|
|
8
8
|
* An alternative text for the image
|
|
9
|
-
* @type {string}
|
|
9
|
+
* @type {string|null}
|
|
10
10
|
*/
|
|
11
|
-
export let alt =
|
|
11
|
+
export let alt = null;
|
|
12
12
|
/**
|
|
13
13
|
* A visible caption for the image
|
|
14
|
-
* @type {string}
|
|
14
|
+
* @type {string|null}
|
|
15
15
|
*/
|
|
16
|
-
export let caption =
|
|
16
|
+
export let caption = null;
|
|
17
17
|
/**
|
|
18
18
|
* Optional: Set an additional CSS class for the component
|
|
19
|
-
* @type {string}
|
|
19
|
+
* @type {string|null}
|
|
20
20
|
*/
|
|
21
|
-
export let cls =
|
|
21
|
+
export let cls = null;
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<figure class="ons-image {cls}">
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ImageEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ImageSlots */
|
|
4
4
|
export default class Image extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
caption?: string | undefined;
|
|
7
|
-
src?: string | undefined;
|
|
8
|
-
alt?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
caption?: string | null | undefined;
|
|
7
|
+
src?: string | null | undefined;
|
|
8
|
+
alt?: string | null | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
11
11
|
}, {}> {
|
|
@@ -16,10 +16,10 @@ export type ImageSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
cls?: string | undefined;
|
|
20
|
-
caption?: string | undefined;
|
|
21
|
-
src?: string | undefined;
|
|
22
|
-
alt?: string | undefined;
|
|
19
|
+
cls?: string | null | undefined;
|
|
20
|
+
caption?: string | null | undefined;
|
|
21
|
+
src?: string | null | undefined;
|
|
22
|
+
alt?: string | null | undefined;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
|
25
25
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ListEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ListSlots */
|
|
4
4
|
export default class List extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
mode?: "number" | "inline" | "bullet" | "dash" | "bare" | undefined;
|
|
7
7
|
items?: string[] | null | undefined;
|
|
8
8
|
}, {
|
|
@@ -17,7 +17,7 @@ export type ListSlots = typeof __propDef.slots;
|
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
|
-
cls?: string | undefined;
|
|
20
|
+
cls?: string | null | undefined;
|
|
21
21
|
mode?: "number" | "inline" | "bullet" | "dash" | "bare" | undefined;
|
|
22
22
|
items?: string[] | null | undefined;
|
|
23
23
|
};
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
export let id = slugify(title);
|
|
16
16
|
/**
|
|
17
17
|
* Optional: Set an additional CSS class for the section
|
|
18
|
-
* @type {string}
|
|
18
|
+
* @type {string|null}
|
|
19
19
|
*/
|
|
20
|
-
export let cls =
|
|
20
|
+
export let cls = null;
|
|
21
21
|
/**
|
|
22
22
|
* Allows the h2 title tag for the section to be visually hidden
|
|
23
23
|
* @type {boolean}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} NavSectionEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} NavSectionSlots */
|
|
4
4
|
export default class NavSection extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
title?: string | undefined;
|
|
8
8
|
hideTitle?: boolean | undefined;
|
|
@@ -19,7 +19,7 @@ export type NavSectionSlots = typeof __propDef.slots;
|
|
|
19
19
|
import { SvelteComponentTyped } from "svelte";
|
|
20
20
|
declare const __propDef: {
|
|
21
21
|
props: {
|
|
22
|
-
cls?: string | undefined;
|
|
22
|
+
cls?: string | null | undefined;
|
|
23
23
|
id?: string | undefined;
|
|
24
24
|
title?: string | undefined;
|
|
25
25
|
hideTitle?: boolean | undefined;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
export let id = "toc";
|
|
11
11
|
/**
|
|
12
12
|
* Optional: Set an additional CSS class for the section
|
|
13
|
-
* @type {string}
|
|
13
|
+
* @type {string|null}
|
|
14
14
|
*/
|
|
15
|
-
export let cls =
|
|
15
|
+
export let cls = null;
|
|
16
16
|
/**
|
|
17
17
|
* Sets the width of the container
|
|
18
18
|
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} NavSectionsEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} NavSectionsSlots */
|
|
4
4
|
export default class NavSections extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
8
8
|
marginTop?: boolean | undefined;
|
|
@@ -26,7 +26,7 @@ export type NavSectionsSlots = typeof __propDef.slots;
|
|
|
26
26
|
import { SvelteComponentTyped } from "svelte";
|
|
27
27
|
declare const __propDef: {
|
|
28
28
|
props: {
|
|
29
|
-
cls?: string | undefined;
|
|
29
|
+
cls?: string | null | undefined;
|
|
30
30
|
id?: string | undefined;
|
|
31
31
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
32
32
|
marginTop?: boolean | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} NoticeEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} NoticeSlots */
|
|
4
4
|
export default class Notice extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
mode?: "error" | "info" | "success" | "warning" | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,7 +16,7 @@ export type NoticeSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
cls?: string | undefined;
|
|
19
|
+
cls?: string | null | undefined;
|
|
20
20
|
mode?: "error" | "info" | "success" | "warning" | undefined;
|
|
21
21
|
};
|
|
22
22
|
events: {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
export let href = "https://www.ons.gov.uk/feedback";
|
|
12
12
|
/**
|
|
13
13
|
* Optional: Set an additional CSS class for the component
|
|
14
|
-
* @type {string}
|
|
14
|
+
* @type {string|null}
|
|
15
15
|
*/
|
|
16
|
-
export let cls =
|
|
16
|
+
export let cls = null;
|
|
17
17
|
</script>
|
|
18
18
|
|
|
19
19
|
<div class="ons-phase-banner {cls}">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} PhaseBannerEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} PhaseBannerSlots */
|
|
4
4
|
export default class PhaseBanner extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
href?: string | undefined;
|
|
7
7
|
phase?: string | undefined;
|
|
8
8
|
}, {
|
|
@@ -15,7 +15,7 @@ export type PhaseBannerSlots = typeof __propDef.slots;
|
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
|
16
16
|
declare const __propDef: {
|
|
17
17
|
props: {
|
|
18
|
-
cls?: string | undefined;
|
|
18
|
+
cls?: string | null | undefined;
|
|
19
19
|
href?: string | undefined;
|
|
20
20
|
phase?: string | undefined;
|
|
21
21
|
};
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
export let related = [{ title, links }];
|
|
17
17
|
/**
|
|
18
18
|
* Optional: Set an additional CSS class for the component
|
|
19
|
-
* @type {string}
|
|
19
|
+
* @type {string|null}
|
|
20
20
|
*/
|
|
21
|
-
export let cls =
|
|
21
|
+
export let cls = null;
|
|
22
22
|
</script>
|
|
23
23
|
|
|
24
24
|
<aside class="ons-related-content {cls}" aria-label="Related content">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} RelatedContentEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} RelatedContentSlots */
|
|
4
4
|
export default class RelatedContent extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
title?: string | undefined;
|
|
7
7
|
links?: object | object[] | undefined;
|
|
8
8
|
related?: object[] | undefined;
|
|
@@ -18,7 +18,7 @@ export type RelatedContentSlots = typeof __propDef.slots;
|
|
|
18
18
|
import { SvelteComponentTyped } from "svelte";
|
|
19
19
|
declare const __propDef: {
|
|
20
20
|
props: {
|
|
21
|
-
cls?: string | undefined;
|
|
21
|
+
cls?: string | null | undefined;
|
|
22
22
|
title?: string | undefined;
|
|
23
23
|
links?: object | object[] | undefined;
|
|
24
24
|
related?: object[] | undefined;
|
|
@@ -138,9 +138,9 @@
|
|
|
138
138
|
export let visible = false;
|
|
139
139
|
/**
|
|
140
140
|
* Optional: Set an additional CSS class for the component
|
|
141
|
-
* @type {string}
|
|
141
|
+
* @type {string|null}
|
|
142
142
|
*/
|
|
143
|
-
export let cls =
|
|
143
|
+
export let cls = null;
|
|
144
144
|
|
|
145
145
|
const sections = writable([]);
|
|
146
146
|
setContext("sections", sections);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ScrollerEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ScrollerSlots */
|
|
4
4
|
export default class Scroller extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
id?: string | undefined;
|
|
7
7
|
marginTop?: boolean | undefined;
|
|
8
8
|
marginBottom?: boolean | undefined;
|
|
@@ -31,7 +31,7 @@ export type ScrollerSlots = typeof __propDef.slots;
|
|
|
31
31
|
import { SvelteComponentTyped } from "svelte";
|
|
32
32
|
declare const __propDef: {
|
|
33
33
|
props: {
|
|
34
|
-
cls?: string | undefined;
|
|
34
|
+
cls?: string | null | undefined;
|
|
35
35
|
id?: string | undefined;
|
|
36
36
|
marginTop?: boolean | undefined;
|
|
37
37
|
marginBottom?: boolean | undefined;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Sets the unique ID of the section (identifiable in associated scroll events)
|
|
7
|
-
* @type {string}
|
|
7
|
+
* @type {string|null}
|
|
8
8
|
*/
|
|
9
|
-
export let id =
|
|
9
|
+
export let id = null;
|
|
10
10
|
/**
|
|
11
11
|
* Optional: Sets the title of the section
|
|
12
|
-
* @type {string}
|
|
12
|
+
* @type {string|null}
|
|
13
13
|
*/
|
|
14
|
-
export let title =
|
|
14
|
+
export let title = null;
|
|
15
15
|
/**
|
|
16
16
|
* Allows the h2 title tag for the section to be visually hidden
|
|
17
17
|
* @type {boolean}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
export let hideTitle = false;
|
|
20
20
|
/**
|
|
21
21
|
* Optional: Set an additional CSS class for the component
|
|
22
|
-
* @type {string}
|
|
22
|
+
* @type {string|null}
|
|
23
23
|
*/
|
|
24
|
-
export let cls =
|
|
24
|
+
export let cls = null;
|
|
25
25
|
|
|
26
26
|
let section;
|
|
27
27
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ScrollerSectionEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ScrollerSectionSlots */
|
|
4
4
|
export default class ScrollerSection extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
id?: string | null | undefined;
|
|
7
|
+
title?: string | null | undefined;
|
|
8
8
|
hideTitle?: boolean | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
[evt: string]: CustomEvent<any>;
|
|
@@ -18,9 +18,9 @@ export type ScrollerSectionSlots = typeof __propDef.slots;
|
|
|
18
18
|
import { SvelteComponentTyped } from "svelte";
|
|
19
19
|
declare const __propDef: {
|
|
20
20
|
props: {
|
|
21
|
-
cls?: string | undefined;
|
|
22
|
-
id?: string | undefined;
|
|
23
|
-
title?: string | undefined;
|
|
21
|
+
cls?: string | null | undefined;
|
|
22
|
+
id?: string | null | undefined;
|
|
23
|
+
title?: string | null | undefined;
|
|
24
24
|
hideTitle?: boolean | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Sets the unique ID of the section
|
|
7
|
-
* @type {string}
|
|
7
|
+
* @type {string|null}
|
|
8
8
|
*/
|
|
9
|
-
export let id =
|
|
9
|
+
export let id = null;
|
|
10
10
|
/**
|
|
11
11
|
* Optional: Set an additional CSS class for the section
|
|
12
|
-
* @type {string}
|
|
12
|
+
* @type {string|null}
|
|
13
13
|
*/
|
|
14
|
-
export let cls =
|
|
14
|
+
export let cls = null;
|
|
15
15
|
/**
|
|
16
16
|
* Sets the width of the container
|
|
17
17
|
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
export let height = null;
|
|
25
25
|
/**
|
|
26
26
|
* Sets the title of the section
|
|
27
|
-
* @type {string}
|
|
27
|
+
* @type {string|null}
|
|
28
28
|
*/
|
|
29
|
-
export let title =
|
|
29
|
+
export let title = null;
|
|
30
30
|
/**
|
|
31
31
|
* Allows the h2 title tag for the section to be visually hidden
|
|
32
32
|
* @type {boolean}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} SectionEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} SectionSlots */
|
|
4
4
|
export default class Section extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
id?: string | null | undefined;
|
|
7
7
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
8
8
|
height?: string | number | null | undefined;
|
|
9
9
|
marginTop?: boolean | undefined;
|
|
10
10
|
marginBottom?: boolean | undefined;
|
|
11
|
-
title?: string | undefined;
|
|
11
|
+
title?: string | null | undefined;
|
|
12
12
|
hideTitle?: boolean | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -22,13 +22,13 @@ export type SectionSlots = typeof __propDef.slots;
|
|
|
22
22
|
import { SvelteComponentTyped } from "svelte";
|
|
23
23
|
declare const __propDef: {
|
|
24
24
|
props: {
|
|
25
|
-
cls?: string | undefined;
|
|
26
|
-
id?: string | undefined;
|
|
25
|
+
cls?: string | null | undefined;
|
|
26
|
+
id?: string | null | undefined;
|
|
27
27
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
28
28
|
height?: string | number | null | undefined;
|
|
29
29
|
marginTop?: boolean | undefined;
|
|
30
30
|
marginBottom?: boolean | undefined;
|
|
31
|
-
title?: string | undefined;
|
|
31
|
+
title?: string | null | undefined;
|
|
32
32
|
hideTitle?: boolean | undefined;
|
|
33
33
|
};
|
|
34
34
|
events: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ShareButtonsEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ShareButtonsSlots */
|
|
4
4
|
export default class ShareButtons extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
marginTop?: boolean | undefined;
|
|
7
7
|
marginBottom?: boolean | undefined;
|
|
8
8
|
title?: string | undefined;
|
|
@@ -16,7 +16,7 @@ export type ShareButtonsSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
cls?: string | undefined;
|
|
19
|
+
cls?: string | null | undefined;
|
|
20
20
|
marginTop?: boolean | undefined;
|
|
21
21
|
marginBottom?: boolean | undefined;
|
|
22
22
|
title?: string | undefined;
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A unique ID for the summary table
|
|
8
|
-
* @type {string}
|
|
8
|
+
* @type {string|null}
|
|
9
9
|
*/
|
|
10
|
-
export let id =
|
|
10
|
+
export let id = null;
|
|
11
11
|
/**
|
|
12
12
|
* Title for summary table
|
|
13
|
-
* @type {string}
|
|
13
|
+
* @type {string|null}
|
|
14
14
|
*/
|
|
15
|
-
export let title =
|
|
15
|
+
export let title = null;
|
|
16
16
|
/**
|
|
17
17
|
* Array of items in format {key, value, href?}
|
|
18
18
|
* @type {object[]}
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
export let items = [];
|
|
21
21
|
/**
|
|
22
22
|
* Optional: Set an additional CSS class for the component
|
|
23
|
-
* @type {string}
|
|
23
|
+
* @type {string|null}
|
|
24
24
|
*/
|
|
25
|
-
export let cls =
|
|
25
|
+
export let cls = null;
|
|
26
26
|
|
|
27
27
|
function handleChange(item) {
|
|
28
28
|
dispatch("change", { item });
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} SummaryEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} SummarySlots */
|
|
4
4
|
export default class Summary extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
id?: string | null | undefined;
|
|
7
|
+
title?: string | null | undefined;
|
|
8
8
|
items?: object[] | undefined;
|
|
9
9
|
}, {
|
|
10
10
|
change: CustomEvent<any>;
|
|
@@ -18,9 +18,9 @@ export type SummarySlots = typeof __propDef.slots;
|
|
|
18
18
|
import { SvelteComponentTyped } from "svelte";
|
|
19
19
|
declare const __propDef: {
|
|
20
20
|
props: {
|
|
21
|
-
cls?: string | undefined;
|
|
22
|
-
id?: string | undefined;
|
|
23
|
-
title?: string | undefined;
|
|
21
|
+
cls?: string | null | undefined;
|
|
22
|
+
id?: string | null | undefined;
|
|
23
|
+
title?: string | null | undefined;
|
|
24
24
|
items?: object[] | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} TabsEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TabsSlots */
|
|
4
4
|
export default class Tabs extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
compact?: boolean | undefined;
|
|
7
7
|
border?: boolean | undefined;
|
|
8
8
|
selected?: string | null | undefined;
|
|
@@ -20,7 +20,7 @@ export type TabsSlots = typeof __propDef.slots;
|
|
|
20
20
|
import { SvelteComponentTyped } from "svelte";
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
|
-
cls?: string | undefined;
|
|
23
|
+
cls?: string | null | undefined;
|
|
24
24
|
compact?: boolean | undefined;
|
|
25
25
|
border?: boolean | undefined;
|
|
26
26
|
selected?: string | null | undefined;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} TimelineItemEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TimelineItemSlots */
|
|
4
4
|
export default class TimelineItem extends SvelteComponentTyped<{
|
|
5
|
-
title?: string | undefined;
|
|
5
|
+
title?: string | null | undefined;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
8
8
|
}, {
|
|
@@ -15,7 +15,7 @@ export type TimelineItemSlots = typeof __propDef.slots;
|
|
|
15
15
|
import { SvelteComponentTyped } from "svelte";
|
|
16
16
|
declare const __propDef: {
|
|
17
17
|
props: {
|
|
18
|
-
title?: string | undefined;
|
|
18
|
+
title?: string | null | undefined;
|
|
19
19
|
};
|
|
20
20
|
events: {
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Optional: Set the unique ID of the container
|
|
6
|
-
* @type {string}
|
|
6
|
+
* @type {string|null}
|
|
7
7
|
*/
|
|
8
|
-
export let id =
|
|
8
|
+
export let id = null;
|
|
9
9
|
/**
|
|
10
10
|
* Optional: Set an additional CSS class for the container
|
|
11
|
-
* @type {string}
|
|
11
|
+
* @type {string|null}
|
|
12
12
|
*/
|
|
13
|
-
export let cls =
|
|
13
|
+
export let cls = null;
|
|
14
14
|
/**
|
|
15
15
|
* Sets the width of the container
|
|
16
16
|
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
export default class Container extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
6
6
|
background?: string | null | undefined;
|
|
7
|
-
cls?: string | undefined;
|
|
8
|
-
id?: string | undefined;
|
|
7
|
+
cls?: string | null | undefined;
|
|
8
|
+
id?: string | null | undefined;
|
|
9
9
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
10
10
|
height?: string | number | null | undefined;
|
|
11
11
|
marginTop?: boolean | undefined;
|
|
@@ -25,8 +25,8 @@ declare const __propDef: {
|
|
|
25
25
|
props: {
|
|
26
26
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
27
27
|
background?: string | null | undefined;
|
|
28
|
-
cls?: string | undefined;
|
|
29
|
-
id?: string | undefined;
|
|
28
|
+
cls?: string | null | undefined;
|
|
29
|
+
id?: string | null | undefined;
|
|
30
30
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
31
31
|
height?: string | number | null | undefined;
|
|
32
32
|
marginTop?: boolean | undefined;
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
export let allowClientOverrides = false;
|
|
29
29
|
/**
|
|
30
30
|
* Optional: Set an additional CSS class for the theme container
|
|
31
|
-
* @type {string}
|
|
31
|
+
* @type {string|null}
|
|
32
32
|
*/
|
|
33
|
-
export let cls =
|
|
33
|
+
export let cls = null;
|
|
34
34
|
|
|
35
35
|
function makeStyle(theme, overrides) {
|
|
36
36
|
if (theme) {
|
|
@@ -7,7 +7,7 @@ export default class Theme extends SvelteComponentTyped<{
|
|
|
7
7
|
background?: string | null | undefined;
|
|
8
8
|
global?: boolean | undefined;
|
|
9
9
|
allowClientOverrides?: boolean | undefined;
|
|
10
|
-
cls?: string | undefined;
|
|
10
|
+
cls?: string | null | undefined;
|
|
11
11
|
}, {
|
|
12
12
|
[evt: string]: CustomEvent<any>;
|
|
13
13
|
}, {
|
|
@@ -25,7 +25,7 @@ declare const __propDef: {
|
|
|
25
25
|
background?: string | null | undefined;
|
|
26
26
|
global?: boolean | undefined;
|
|
27
27
|
allowClientOverrides?: boolean | undefined;
|
|
28
|
-
cls?: string | undefined;
|
|
28
|
+
cls?: string | null | undefined;
|
|
29
29
|
};
|
|
30
30
|
events: {
|
|
31
31
|
[evt: string]: CustomEvent<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onsvisual/svelte-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite dev",
|
|
6
6
|
"build": "npm run build:package && npm run build:docs",
|
|
@@ -80,6 +80,9 @@
|
|
|
80
80
|
"vite": "^6.2.6",
|
|
81
81
|
"vitest": "^3.2.3"
|
|
82
82
|
},
|
|
83
|
+
"optionalDependencies": {
|
|
84
|
+
"@rollup/rollup-linux-x64-gnu": "^4.52.4"
|
|
85
|
+
},
|
|
83
86
|
"keywords": [
|
|
84
87
|
"svelte"
|
|
85
88
|
]
|