@onsvisual/svelte-components 1.0.20 → 1.0.22
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.stories.svelte +3 -1
- package/dist/inputs/Select/Select.svelte +32 -16
- 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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} AccordionItemSlots */
|
|
4
4
|
export default class AccordionItem extends SvelteComponentTyped<{
|
|
5
5
|
id?: string | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
6
|
+
title?: string | null | undefined;
|
|
7
7
|
headingTag?: "h2" | "h3" | undefined;
|
|
8
8
|
}, {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
@@ -18,7 +18,7 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
20
|
id?: string | undefined;
|
|
21
|
-
title?: string | undefined;
|
|
21
|
+
title?: string | null | undefined;
|
|
22
22
|
headingTag?: "h2" | "h3" | undefined;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export let href = "#top";
|
|
7
7
|
/**
|
|
8
8
|
* Optional: Add a CSS class to the link
|
|
9
|
-
* @type {string}
|
|
9
|
+
* @type {string|null}
|
|
10
10
|
*/
|
|
11
|
-
export let cls =
|
|
11
|
+
export let cls = null;
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<div class="ons-back-to-top ons-js-back-to-top ons-back-to-top__enabled ons-u-mb-l {cls || ''}">
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} BackLinkEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} BackLinkSlots */
|
|
4
4
|
export default class BackLink extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
href?: string | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -14,7 +14,7 @@ export type BackLinkSlots = typeof __propDef.slots;
|
|
|
14
14
|
import { SvelteComponentTyped } from "svelte";
|
|
15
15
|
declare const __propDef: {
|
|
16
16
|
props: {
|
|
17
|
-
cls?: string | undefined;
|
|
17
|
+
cls?: string | null | undefined;
|
|
18
18
|
href?: string | undefined;
|
|
19
19
|
};
|
|
20
20
|
events: {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
export let links = [];
|
|
9
9
|
/**
|
|
10
10
|
* Optional: Link href if component is used for a single back-link
|
|
11
|
-
* @type {string}
|
|
11
|
+
* @type {string|null}
|
|
12
12
|
*/
|
|
13
|
-
export let backHref =
|
|
13
|
+
export let backHref = null;
|
|
14
14
|
/**
|
|
15
15
|
* Sets the width of the container
|
|
16
16
|
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
export let width = "wide";
|
|
19
19
|
/**
|
|
20
20
|
* Optional: Set an additional CSS class for the component
|
|
21
|
-
* @type {string}
|
|
21
|
+
* @type {string|null}
|
|
22
22
|
*/
|
|
23
|
-
export let cls =
|
|
23
|
+
export let cls = null;
|
|
24
24
|
/**
|
|
25
25
|
* Optional: Sets a base theme ("light", "dark", null etc)
|
|
26
26
|
* @type {"light"|"dark"|"paleblue"|"blue"|"navyblue"|"grey"|null}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
export default class Breadcrumb extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
6
6
|
background?: string | null | undefined;
|
|
7
|
-
cls?: string | undefined;
|
|
7
|
+
cls?: string | null | undefined;
|
|
8
8
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
9
9
|
themeOverrides?: object | undefined;
|
|
10
10
|
links?: object[] | undefined;
|
|
11
|
-
backHref?: string | undefined;
|
|
11
|
+
backHref?: string | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {}> {
|
|
@@ -21,11 +21,11 @@ declare const __propDef: {
|
|
|
21
21
|
props: {
|
|
22
22
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
23
23
|
background?: string | null | undefined;
|
|
24
|
-
cls?: string | undefined;
|
|
24
|
+
cls?: string | null | undefined;
|
|
25
25
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
26
26
|
themeOverrides?: object | undefined;
|
|
27
27
|
links?: object[] | undefined;
|
|
28
|
-
backHref?: string | undefined;
|
|
28
|
+
backHref?: string | null | undefined;
|
|
29
29
|
};
|
|
30
30
|
events: {
|
|
31
31
|
[evt: string]: CustomEvent<any>;
|
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Sets the unique ID of the section
|
|
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 section
|
|
11
|
-
* @type {string}
|
|
11
|
+
* @type {string|null}
|
|
12
12
|
*/
|
|
13
|
-
export let cls =
|
|
13
|
+
export let cls = null;
|
|
14
14
|
/**
|
|
15
15
|
* Sets the title of the card
|
|
16
|
-
* @type {string}
|
|
16
|
+
* @type {string|null}
|
|
17
17
|
*/
|
|
18
|
-
export let title =
|
|
18
|
+
export let title = null;
|
|
19
19
|
/**
|
|
20
20
|
* Allows the h2 title tag for the card to be visually hidden
|
|
21
21
|
* @type {boolean}
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
export let baseline = false;
|
|
39
39
|
/**
|
|
40
40
|
* Optional: URL for title/image link
|
|
41
|
-
* @type {string}
|
|
41
|
+
* @type {string|null}
|
|
42
42
|
*/
|
|
43
|
-
export let href =
|
|
43
|
+
export let href = null;
|
|
44
44
|
/**
|
|
45
45
|
* Optional: URL for image
|
|
46
|
-
* @type {string}
|
|
46
|
+
* @type {string|null}
|
|
47
47
|
*/
|
|
48
|
-
export let image =
|
|
48
|
+
export let image = null;
|
|
49
49
|
/**
|
|
50
50
|
* Optional: Alt text for image
|
|
51
|
-
* @type {string}
|
|
51
|
+
* @type {string|null}
|
|
52
52
|
*/
|
|
53
|
-
export let imageAlt =
|
|
53
|
+
export let imageAlt = null;
|
|
54
54
|
/**
|
|
55
55
|
* (If used in grid) How many columns the card should span across
|
|
56
56
|
* @type {number}
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} CardEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} CardSlots */
|
|
4
4
|
export default class Card extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
id?: string | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
8
|
-
image?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
id?: string | null | undefined;
|
|
7
|
+
title?: string | null | undefined;
|
|
8
|
+
image?: string | null | undefined;
|
|
9
9
|
headingTag?: "h2" | "h3" | undefined;
|
|
10
|
-
href?: string | undefined;
|
|
10
|
+
href?: string | null | undefined;
|
|
11
11
|
colspan?: number | undefined;
|
|
12
12
|
hideTitle?: boolean | undefined;
|
|
13
13
|
mode?: "default" | "featured" | undefined;
|
|
14
14
|
baseline?: boolean | undefined;
|
|
15
|
-
imageAlt?: string | undefined;
|
|
15
|
+
imageAlt?: string | null | undefined;
|
|
16
16
|
}, {
|
|
17
17
|
[evt: string]: CustomEvent<any>;
|
|
18
18
|
}, {
|
|
@@ -27,17 +27,17 @@ export type CardSlots = typeof __propDef.slots;
|
|
|
27
27
|
import { SvelteComponentTyped } from "svelte";
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
|
-
cls?: string | undefined;
|
|
31
|
-
id?: string | undefined;
|
|
32
|
-
title?: string | undefined;
|
|
33
|
-
image?: string | undefined;
|
|
30
|
+
cls?: string | null | undefined;
|
|
31
|
+
id?: string | null | undefined;
|
|
32
|
+
title?: string | null | undefined;
|
|
33
|
+
image?: string | null | undefined;
|
|
34
34
|
headingTag?: "h2" | "h3" | undefined;
|
|
35
|
-
href?: string | undefined;
|
|
35
|
+
href?: string | null | undefined;
|
|
36
36
|
colspan?: number | undefined;
|
|
37
37
|
hideTitle?: boolean | undefined;
|
|
38
38
|
mode?: "default" | "featured" | undefined;
|
|
39
39
|
baseline?: boolean | undefined;
|
|
40
|
-
imageAlt?: string | undefined;
|
|
40
|
+
imageAlt?: string | null | undefined;
|
|
41
41
|
};
|
|
42
42
|
events: {
|
|
43
43
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
export let links = [];
|
|
17
17
|
/**
|
|
18
18
|
* An anchor link URL to the main content of the page (to skip contents)
|
|
19
|
-
* @type {string}
|
|
19
|
+
* @type {string|null}
|
|
20
20
|
*/
|
|
21
|
-
export let skipHref =
|
|
21
|
+
export let skipHref = null;
|
|
22
22
|
/**
|
|
23
23
|
* Optional: Set an additional CSS class for the component
|
|
24
|
-
* @type {string}
|
|
24
|
+
* @type {string|null}
|
|
25
25
|
*/
|
|
26
|
-
export let cls =
|
|
26
|
+
export let cls = null;
|
|
27
27
|
</script>
|
|
28
28
|
|
|
29
29
|
<aside class="ons-table-of-contents-container {cls}" role="complementary">
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} ContentsEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} ContentsSlots */
|
|
4
4
|
export default class Contents extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
title?: string | undefined;
|
|
7
7
|
links?: object[] | undefined;
|
|
8
8
|
hideTitle?: boolean | undefined;
|
|
9
|
-
skipHref?: string | undefined;
|
|
9
|
+
skipHref?: string | null | undefined;
|
|
10
10
|
}, {
|
|
11
11
|
[evt: string]: CustomEvent<any>;
|
|
12
12
|
}, {}> {
|
|
@@ -17,11 +17,11 @@ export type ContentsSlots = 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
|
title?: string | undefined;
|
|
22
22
|
links?: object[] | undefined;
|
|
23
23
|
hideTitle?: boolean | undefined;
|
|
24
|
-
skipHref?: string | undefined;
|
|
24
|
+
skipHref?: string | null | undefined;
|
|
25
25
|
};
|
|
26
26
|
events: {
|
|
27
27
|
[evt: string]: CustomEvent<any>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/**
|
|
3
3
|
* Sets the title of the list (for screen readers)
|
|
4
|
-
* @type {string}
|
|
4
|
+
* @type {string|null}
|
|
5
5
|
*/
|
|
6
|
-
export let title =
|
|
6
|
+
export let title = null;
|
|
7
7
|
/**
|
|
8
8
|
* Array of items in format {key, value} where "value" may be an array of multiple values
|
|
9
9
|
* @type {object[]}
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
export let mode = "default";
|
|
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
|
<dl
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DescriptionListEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DescriptionListSlots */
|
|
4
4
|
export default class DescriptionList extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
|
+
title?: string | null | undefined;
|
|
7
7
|
mode?: "default" | "inline" | undefined;
|
|
8
8
|
items?: object[] | undefined;
|
|
9
9
|
}, {
|
|
@@ -16,8 +16,8 @@ export type DescriptionListSlots = typeof __propDef.slots;
|
|
|
16
16
|
import { SvelteComponentTyped } from "svelte";
|
|
17
17
|
declare const __propDef: {
|
|
18
18
|
props: {
|
|
19
|
-
cls?: string | undefined;
|
|
20
|
-
title?: string | undefined;
|
|
19
|
+
cls?: string | null | undefined;
|
|
20
|
+
title?: string | null | undefined;
|
|
21
21
|
mode?: "default" | "inline" | undefined;
|
|
22
22
|
items?: object[] | undefined;
|
|
23
23
|
};
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
export let open = false;
|
|
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 doToggle(e) {
|
|
28
28
|
dispatch("toggle", { open: e.newState === "open", e });
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DetailsEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DetailsSlots */
|
|
4
4
|
export default class Details extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
title?: string | undefined;
|
|
7
7
|
open?: boolean | undefined;
|
|
8
8
|
headingTag?: "h2" | "h3" | undefined;
|
|
@@ -20,7 +20,7 @@ export type DetailsSlots = 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
|
title?: string | undefined;
|
|
25
25
|
open?: boolean | undefined;
|
|
26
26
|
headingTag?: "h2" | "h3" | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
/**
|
|
3
3
|
* The title of the document
|
|
4
|
-
* @type {string}
|
|
4
|
+
* @type {string|null}
|
|
5
5
|
*/
|
|
6
|
-
export let title =
|
|
6
|
+
export let title = null;
|
|
7
7
|
/**
|
|
8
8
|
* Set the heading level for the title
|
|
9
9
|
* @type {"h2"|"h3"}
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
export let headingTag = "h2";
|
|
12
12
|
/**
|
|
13
13
|
* The URL of the document
|
|
14
|
-
* @type {string}
|
|
14
|
+
* @type {string|null}
|
|
15
15
|
*/
|
|
16
|
-
export let href =
|
|
16
|
+
export let href = null;
|
|
17
17
|
/**
|
|
18
18
|
* A description of the document
|
|
19
|
-
* @type {string}
|
|
19
|
+
* @type {string|null}
|
|
20
20
|
*/
|
|
21
|
-
export let description =
|
|
21
|
+
export let description = null;
|
|
22
22
|
/**
|
|
23
23
|
* Optional: URL of image to represent the document (use "true" for a placeholder)
|
|
24
24
|
* @type {string|boolean}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
export let featured = false;
|
|
32
32
|
/**
|
|
33
33
|
* Metadata about the type of document linked to (can include HTML)
|
|
34
|
-
* @type {string}
|
|
34
|
+
* @type {string|null}
|
|
35
35
|
*/
|
|
36
|
-
export let meta =
|
|
36
|
+
export let meta = null;
|
|
37
37
|
</script>
|
|
38
38
|
|
|
39
39
|
<li class="ons-document-list__item" class:ons-document-list__item--featured={featured}>
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DocumentEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DocumentSlots */
|
|
4
4
|
export default class Document extends SvelteComponentTyped<{
|
|
5
|
-
meta?: string | undefined;
|
|
6
|
-
title?: string | undefined;
|
|
5
|
+
meta?: string | null | undefined;
|
|
6
|
+
title?: string | null | undefined;
|
|
7
7
|
image?: string | boolean | undefined;
|
|
8
8
|
headingTag?: "h2" | "h3" | undefined;
|
|
9
|
-
href?: string | undefined;
|
|
9
|
+
href?: string | null | undefined;
|
|
10
10
|
featured?: boolean | undefined;
|
|
11
|
-
description?: string | undefined;
|
|
11
|
+
description?: string | null | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
14
14
|
}, {
|
|
@@ -21,13 +21,13 @@ export type DocumentSlots = typeof __propDef.slots;
|
|
|
21
21
|
import { SvelteComponentTyped } from "svelte";
|
|
22
22
|
declare const __propDef: {
|
|
23
23
|
props: {
|
|
24
|
-
meta?: string | undefined;
|
|
25
|
-
title?: string | undefined;
|
|
24
|
+
meta?: string | null | undefined;
|
|
25
|
+
title?: string | null | undefined;
|
|
26
26
|
image?: string | boolean | undefined;
|
|
27
27
|
headingTag?: "h2" | "h3" | undefined;
|
|
28
|
-
href?: string | undefined;
|
|
28
|
+
href?: string | null | undefined;
|
|
29
29
|
featured?: boolean | undefined;
|
|
30
|
-
description?: string | undefined;
|
|
30
|
+
description?: string | null | undefined;
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
33
33
|
[evt: string]: CustomEvent<any>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DocumentListEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DocumentListSlots */
|
|
4
4
|
export default class DocumentList extends SvelteComponentTyped<{
|
|
5
|
-
cls?: string | undefined;
|
|
5
|
+
cls?: string | null | undefined;
|
|
6
6
|
items?: object[] | null | undefined;
|
|
7
7
|
}, {
|
|
8
8
|
[evt: string]: CustomEvent<any>;
|
|
@@ -16,7 +16,7 @@ export type DocumentListSlots = 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
|
items?: object[] | null | undefined;
|
|
21
21
|
};
|
|
22
22
|
events: {
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Optional: 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 component
|
|
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 section
|
|
17
17
|
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
export let width = "wide";
|
|
20
20
|
/**
|
|
21
21
|
* Sets the title of the section
|
|
22
|
-
* @type {string}
|
|
22
|
+
* @type {string|null}
|
|
23
23
|
*/
|
|
24
|
-
export let title =
|
|
24
|
+
export let title = null;
|
|
25
25
|
/**
|
|
26
26
|
* Allows the h2 title tag for the section to be visually hidden
|
|
27
27
|
* @type {boolean}
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
export let hideTitle = false;
|
|
30
30
|
/**
|
|
31
31
|
* Optional: Caption for the grid (if used as a media container, eg. for an image)
|
|
32
|
-
* @type {string}
|
|
32
|
+
* @type {string|null}
|
|
33
33
|
*/
|
|
34
|
-
export let caption =
|
|
34
|
+
export let caption = null;
|
|
35
35
|
/**
|
|
36
36
|
* Adds margin above section
|
|
37
37
|
* @type {boolean}
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} GridEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} GridSlots */
|
|
4
4
|
export default class Grid 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
|
marginTop?: boolean | undefined;
|
|
9
9
|
marginBottom?: boolean | undefined;
|
|
10
|
-
caption?: string | undefined;
|
|
11
|
-
title?: string | undefined;
|
|
10
|
+
caption?: string | null | undefined;
|
|
11
|
+
title?: string | null | undefined;
|
|
12
12
|
colWidth?: "narrow" | "medium" | "wide" | "full" | undefined;
|
|
13
13
|
rowHeight?: string | number | null | undefined;
|
|
14
14
|
hideTitle?: boolean | undefined;
|
|
@@ -26,13 +26,13 @@ export type GridSlots = typeof __propDef.slots;
|
|
|
26
26
|
import { SvelteComponentTyped } from "svelte";
|
|
27
27
|
declare const __propDef: {
|
|
28
28
|
props: {
|
|
29
|
-
cls?: string | undefined;
|
|
30
|
-
id?: string | undefined;
|
|
29
|
+
cls?: string | null | undefined;
|
|
30
|
+
id?: string | null | undefined;
|
|
31
31
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
32
32
|
marginTop?: boolean | undefined;
|
|
33
33
|
marginBottom?: boolean | undefined;
|
|
34
|
-
caption?: string | undefined;
|
|
35
|
-
title?: string | undefined;
|
|
34
|
+
caption?: string | null | undefined;
|
|
35
|
+
title?: string | null | undefined;
|
|
36
36
|
colWidth?: "narrow" | "medium" | "wide" | "full" | undefined;
|
|
37
37
|
rowHeight?: string | number | null | undefined;
|
|
38
38
|
hideTitle?: boolean | undefined;
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
export let compact = false;
|
|
13
13
|
/**
|
|
14
14
|
* Optional product title
|
|
15
|
-
* @type {string}
|
|
15
|
+
* @type {string|null}
|
|
16
16
|
*/
|
|
17
|
-
export let title =
|
|
17
|
+
export let title = null;
|
|
18
18
|
/**
|
|
19
19
|
* Optional link for product title
|
|
20
|
-
* @type {string}
|
|
20
|
+
* @type {string|null}
|
|
21
21
|
*/
|
|
22
|
-
export let titleHref =
|
|
22
|
+
export let titleHref = null;
|
|
23
23
|
/**
|
|
24
24
|
* Sets a predefined theme
|
|
25
25
|
* @type {"light"|"dark"|"paleblue"|"blue"|"navyblue"|"grey"|null}
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
export default class Header extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
6
6
|
themeOverrides?: object | undefined;
|
|
7
|
-
title?: string | undefined;
|
|
7
|
+
title?: string | null | undefined;
|
|
8
8
|
compact?: boolean | undefined;
|
|
9
9
|
skipHref?: string | undefined;
|
|
10
|
-
titleHref?: string | undefined;
|
|
10
|
+
titleHref?: string | null | undefined;
|
|
11
11
|
bilingual?: boolean | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
[evt: string]: CustomEvent<any>;
|
|
@@ -23,10 +23,10 @@ declare const __propDef: {
|
|
|
23
23
|
props: {
|
|
24
24
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
25
25
|
themeOverrides?: object | undefined;
|
|
26
|
-
title?: string | undefined;
|
|
26
|
+
title?: string | null | undefined;
|
|
27
27
|
compact?: boolean | undefined;
|
|
28
28
|
skipHref?: string | undefined;
|
|
29
|
-
titleHref?: string | undefined;
|
|
29
|
+
titleHref?: string | null | undefined;
|
|
30
30
|
bilingual?: boolean | undefined;
|
|
31
31
|
};
|
|
32
32
|
events: {
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
export let title = "Page title";
|
|
13
13
|
/**
|
|
14
14
|
* Optional: Page type to sit above title
|
|
15
|
-
* @type {string}
|
|
15
|
+
* @type {string|null}
|
|
16
16
|
*/
|
|
17
|
-
export let pageType =
|
|
17
|
+
export let pageType = null;
|
|
18
18
|
/**
|
|
19
19
|
* Descriptive text for page to sit below title
|
|
20
|
-
* @type {string}
|
|
20
|
+
* @type {string|null}
|
|
21
21
|
*/
|
|
22
|
-
export let lede =
|
|
22
|
+
export let lede = null;
|
|
23
23
|
/**
|
|
24
24
|
* Optional: Badge to appear next to the page title in format {label, color}
|
|
25
25
|
* @type {object|null}
|
|
@@ -57,9 +57,9 @@
|
|
|
57
57
|
export let height = null;
|
|
58
58
|
/**
|
|
59
59
|
* Optional: Set an additional CSS class for the component
|
|
60
|
-
* @type {string}
|
|
60
|
+
* @type {string|null}
|
|
61
61
|
*/
|
|
62
|
-
export let cls =
|
|
62
|
+
export let cls = null;
|
|
63
63
|
/**
|
|
64
64
|
* Sets a predefined theme
|
|
65
65
|
* @type {"light"|"dark"|"blue"|"paleblue"|"navyblue"|"grey"|null}
|
|
@@ -103,8 +103,11 @@
|
|
|
103
103
|
<h1 class="ons-hero__title ons-u-fs-3xl">
|
|
104
104
|
{title}
|
|
105
105
|
{#if titleBadge}
|
|
106
|
-
<Em
|
|
107
|
-
|
|
106
|
+
<Em
|
|
107
|
+
mode="badge"
|
|
108
|
+
color={titleBadge.color}
|
|
109
|
+
ariaLabel={titleBadge.ariaLabel}
|
|
110
|
+
fontSize="1.125rem">{titleBadge.label}</Em
|
|
108
111
|
>
|
|
109
112
|
{/if}
|
|
110
113
|
</h1>
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
export default class Hero extends SvelteComponentTyped<{
|
|
5
5
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
6
6
|
background?: string | null | undefined;
|
|
7
|
-
cls?: string | undefined;
|
|
7
|
+
cls?: string | null | undefined;
|
|
8
8
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
9
9
|
height?: string | number | null | undefined;
|
|
10
10
|
themeOverrides?: object | undefined;
|
|
11
11
|
meta?: object[] | null | undefined;
|
|
12
12
|
title?: string | undefined;
|
|
13
|
-
pageType?: string | undefined;
|
|
14
|
-
lede?: string | undefined;
|
|
13
|
+
pageType?: string | null | undefined;
|
|
14
|
+
lede?: string | null | undefined;
|
|
15
15
|
titleBadge?: object | null | undefined;
|
|
16
16
|
actionButton?: object | null | undefined;
|
|
17
17
|
natStatBadge?: boolean | undefined;
|
|
@@ -32,14 +32,14 @@ declare const __propDef: {
|
|
|
32
32
|
props: {
|
|
33
33
|
theme?: "light" | "dark" | "paleblue" | "blue" | "navyblue" | "grey" | null | undefined;
|
|
34
34
|
background?: string | null | undefined;
|
|
35
|
-
cls?: string | undefined;
|
|
35
|
+
cls?: string | null | undefined;
|
|
36
36
|
width?: "narrow" | "medium" | "wide" | "wider" | "full" | undefined;
|
|
37
37
|
height?: string | number | null | undefined;
|
|
38
38
|
themeOverrides?: object | undefined;
|
|
39
39
|
meta?: object[] | null | undefined;
|
|
40
40
|
title?: string | undefined;
|
|
41
|
-
pageType?: string | undefined;
|
|
42
|
-
lede?: string | undefined;
|
|
41
|
+
pageType?: string | null | undefined;
|
|
42
|
+
lede?: string | null | undefined;
|
|
43
43
|
titleBadge?: object | null | undefined;
|
|
44
44
|
actionButton?: object | null | undefined;
|
|
45
45
|
natStatBadge?: boolean | undefined;
|