@onsvisual/svelte-components 0.0.3 → 0.0.5
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 +5 -3
- package/dist/@types/datavis/Table/Table.svelte.d.ts +33 -0
- package/dist/@types/index.d.ts +27 -12
- package/dist/@types/js/docsPage.d.ts +25 -0
- package/dist/@types/js/withParams.d.ts +15 -0
- package/dist/@types/layout/Filler/Filler.svelte.d.ts +41 -0
- package/dist/@types/layout/Grid/Grid.svelte.d.ts +45 -0
- package/dist/@types/layout/Hero/Hero.svelte.d.ts +43 -0
- package/dist/@types/layout/List/List.svelte.d.ts +27 -0
- package/dist/@types/layout/NavSections/NavSection.svelte.d.ts +31 -0
- package/dist/@types/layout/NavSections/NavSections.svelte.d.ts +43 -0
- package/dist/@types/layout/NavSections/SectionBacklink.svelte.d.ts +23 -0
- package/dist/@types/layout/Scroller/Scroller.svelte.d.ts +51 -0
- package/dist/@types/layout/Scroller/ScrollerSection.svelte.d.ts +33 -0
- package/dist/@types/{components/layout → layout}/TitleBlock/Meta.svelte.d.ts +2 -2
- package/dist/@types/{components/layout → layout}/TitleBlock/TitleBlock.svelte.d.ts +24 -4
- package/dist/datavis/Table/Table.svelte +129 -0
- package/dist/{components/layout → decorators}/Divider/Divider.svelte +1 -1
- package/dist/index.js +31 -12
- package/dist/js/docsPage.js +13 -0
- package/dist/js/utils.js +3 -0
- package/dist/js/withParams.js +46 -0
- package/dist/{components/layout → layout}/Accordion/AccordionItem.svelte +1 -1
- package/dist/layout/Filler/Filler.svelte +66 -0
- package/dist/{components/layout → layout}/Footer/Footer.svelte +1 -1
- package/dist/layout/Grid/Grid.svelte +111 -0
- package/dist/{components/layout → layout}/Header/Header.svelte +1 -1
- package/dist/layout/Hero/Hero.svelte +74 -0
- package/dist/layout/List/List.svelte +32 -0
- package/dist/layout/NavSections/NavSection.svelte +51 -0
- package/dist/layout/NavSections/NavSections.svelte +92 -0
- package/dist/layout/NavSections/SectionBacklink.svelte +31 -0
- package/dist/layout/Scroller/Scroller.svelte +336 -0
- package/dist/layout/Scroller/ScrollerSection.svelte +61 -0
- package/dist/{components/layout → layout}/Section/Section.svelte +6 -6
- package/dist/layout/TitleBlock/Meta.svelte +26 -0
- package/dist/layout/TitleBlock/TitleBlock.svelte +97 -0
- package/dist/{components/wrappers → wrappers}/Embed/Embed.svelte +4 -2
- package/dist/{components/wrappers → wrappers}/Theme/Theme.svelte +1 -1
- package/package.json +37 -25
- package/dist/components/layout/TitleBlock/Meta.svelte +0 -0
- package/dist/components/layout/TitleBlock/TitleBlock.svelte +0 -0
- package/dist/@types/{components/decorators → decorators}/Blockquote/Blockquote.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → decorators}/Divider/Divider.svelte.d.ts +0 -0
- package/dist/@types/{components/decorators → decorators}/Em/Em.svelte.d.ts +0 -0
- package/dist/@types/{components/inputs → inputs}/Button/Button.svelte.d.ts +0 -0
- package/dist/@types/{components/inputs → inputs}/Button/Icon.svelte.d.ts +0 -0
- package/dist/@types/{components/inputs → inputs}/Dropdown/Dropdown.svelte.d.ts +6 -6
- package/dist/@types/{components/inputs → inputs}/Input/Input.svelte.d.ts +6 -6
- package/dist/@types/{components/inputs → inputs}/Select/Select.svelte.d.ts +8 -8
- package/dist/@types/{components/inputs → inputs}/Textarea/Textarea.svelte.d.ts +4 -4
- package/dist/@types/{components/layout → layout}/Accordion/Accordion.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → layout}/Accordion/AccordionItem.svelte.d.ts +2 -2
- package/dist/@types/{components/layout → layout}/Footer/Footer.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → layout}/Footer/ONSLogo.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → layout}/Header/Header.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → layout}/Header/ONSLogo.svelte.d.ts +0 -0
- package/dist/@types/{components/layout → layout}/Section/Section.svelte.d.ts +2 -2
- /package/dist/@types/{components/layout → layout}/Twisty/Twisty.svelte.d.ts +0 -0
- /package/dist/@types/{components/wrappers → wrappers}/Container/Container.svelte.d.ts +0 -0
- /package/dist/@types/{components/wrappers → wrappers}/Embed/Embed.svelte.d.ts +0 -0
- /package/dist/@types/{components/wrappers → wrappers}/Main/Main.svelte.d.ts +0 -0
- /package/dist/@types/{components/wrappers → wrappers}/Theme/Theme.svelte.d.ts +0 -0
- /package/dist/@types/{components/wrappers → wrappers}/Theme/themes.d.ts +0 -0
- /package/dist/{components/decorators → decorators}/Blockquote/Blockquote.svelte +0 -0
- /package/dist/{components/decorators → decorators}/Em/Em.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Button/Button.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Button/Icon.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Dropdown/Dropdown.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Input/Input.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Select/Select.svelte +0 -0
- /package/dist/{components/inputs → inputs}/Textarea/Textarea.svelte +0 -0
- /package/dist/{components/layout → layout}/Accordion/Accordion.svelte +0 -0
- /package/dist/{components/layout → layout}/Footer/ONSLogo.svelte +0 -0
- /package/dist/{components/layout → layout}/Header/ONSLogo.svelte +0 -0
- /package/dist/{components/layout → layout}/Twisty/Twisty.svelte +0 -0
- /package/dist/{components/wrappers → wrappers}/Container/Container.svelte +0 -0
- /package/dist/{components/wrappers → wrappers}/Main/Main.svelte +0 -0
- /package/dist/{components/wrappers → wrappers}/Theme/themes.js +0 -0
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} DropdownEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} DropdownSlots */
|
|
4
4
|
export default class Dropdown extends SvelteComponentTyped<{
|
|
5
|
-
label?: string;
|
|
6
|
-
value?: any;
|
|
7
|
-
options?: any[];
|
|
8
5
|
id?: string;
|
|
6
|
+
label?: string;
|
|
9
7
|
hideLabel?: boolean;
|
|
10
8
|
placeholder?: string;
|
|
9
|
+
value?: any;
|
|
10
|
+
options?: any[];
|
|
11
11
|
}, {
|
|
12
12
|
change: CustomEvent<any>;
|
|
13
13
|
} & {
|
|
@@ -20,12 +20,12 @@ export type DropdownSlots = typeof __propDef.slots;
|
|
|
20
20
|
import { SvelteComponentTyped } from "svelte";
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
|
-
label?: string;
|
|
24
|
-
value?: object;
|
|
25
|
-
options?: any[];
|
|
26
23
|
id?: string;
|
|
24
|
+
label?: string;
|
|
27
25
|
hideLabel?: boolean;
|
|
28
26
|
placeholder?: string;
|
|
27
|
+
value?: object;
|
|
28
|
+
options?: any[];
|
|
29
29
|
};
|
|
30
30
|
events: {
|
|
31
31
|
change: CustomEvent<any>;
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} InputSlots */
|
|
4
4
|
export default class Input extends SvelteComponentTyped<{
|
|
5
5
|
width?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
value?: string;
|
|
8
6
|
id?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
numeric?: boolean;
|
|
9
9
|
hideLabel?: boolean;
|
|
10
|
+
value?: string;
|
|
10
11
|
description?: string;
|
|
11
12
|
charLimit?: number;
|
|
12
13
|
prefix?: string;
|
|
13
14
|
suffix?: string;
|
|
14
15
|
unitLabel?: string;
|
|
15
16
|
pattern?: string;
|
|
16
|
-
numeric?: boolean;
|
|
17
17
|
error?: boolean;
|
|
18
18
|
}, {
|
|
19
19
|
change: CustomEvent<any>;
|
|
@@ -28,17 +28,17 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
28
28
|
declare const __propDef: {
|
|
29
29
|
props: {
|
|
30
30
|
width?: number;
|
|
31
|
-
label?: string;
|
|
32
|
-
value?: string;
|
|
33
31
|
id?: string;
|
|
32
|
+
label?: string;
|
|
33
|
+
numeric?: boolean;
|
|
34
34
|
hideLabel?: boolean;
|
|
35
|
+
value?: string;
|
|
35
36
|
description?: string;
|
|
36
37
|
charLimit?: number;
|
|
37
38
|
prefix?: string;
|
|
38
39
|
suffix?: string;
|
|
39
40
|
unitLabel?: string;
|
|
40
41
|
pattern?: string;
|
|
41
|
-
numeric?: boolean;
|
|
42
42
|
error?: boolean;
|
|
43
43
|
};
|
|
44
44
|
events: {
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} SelectSlots */
|
|
4
4
|
export default class Select extends SvelteComponentTyped<{
|
|
5
5
|
width?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
value?: any;
|
|
8
|
-
options?: any[];
|
|
9
6
|
id?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
mode?: "default" | "search";
|
|
10
9
|
hideLabel?: boolean;
|
|
11
10
|
placeholder?: string;
|
|
12
|
-
|
|
11
|
+
value?: any;
|
|
12
|
+
options?: any[];
|
|
13
13
|
multiple?: boolean;
|
|
14
14
|
maxSelected?: number;
|
|
15
15
|
clearable?: boolean;
|
|
@@ -36,13 +36,13 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
36
36
|
declare const __propDef: {
|
|
37
37
|
props: {
|
|
38
38
|
width?: number;
|
|
39
|
-
label?: string;
|
|
40
|
-
value?: object;
|
|
41
|
-
options?: any[];
|
|
42
39
|
id?: string;
|
|
40
|
+
label?: string;
|
|
41
|
+
mode?: "default" | "search";
|
|
43
42
|
hideLabel?: boolean;
|
|
44
43
|
placeholder?: string;
|
|
45
|
-
|
|
44
|
+
value?: object;
|
|
45
|
+
options?: any[];
|
|
46
46
|
multiple?: boolean;
|
|
47
47
|
maxSelected?: number;
|
|
48
48
|
clearable?: boolean;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TextareaSlots */
|
|
4
4
|
export default class Textarea extends SvelteComponentTyped<{
|
|
5
5
|
width?: number;
|
|
6
|
-
label?: string;
|
|
7
|
-
value?: string;
|
|
8
6
|
id?: string;
|
|
7
|
+
label?: string;
|
|
9
8
|
hideLabel?: boolean;
|
|
9
|
+
value?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
charLimit?: number;
|
|
12
12
|
rows?: number;
|
|
@@ -21,10 +21,10 @@ import { SvelteComponentTyped } from "svelte";
|
|
|
21
21
|
declare const __propDef: {
|
|
22
22
|
props: {
|
|
23
23
|
width?: number;
|
|
24
|
-
label?: string;
|
|
25
|
-
value?: string;
|
|
26
24
|
id?: string;
|
|
25
|
+
label?: string;
|
|
27
26
|
hideLabel?: boolean;
|
|
27
|
+
value?: string;
|
|
28
28
|
description?: string;
|
|
29
29
|
charLimit?: number;
|
|
30
30
|
rows?: number;
|
|
File without changes
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/** @typedef {typeof __propDef.events} AccordionItemEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} AccordionItemSlots */
|
|
4
4
|
export default class AccordionItem extends SvelteComponentTyped<{
|
|
5
|
+
id?: string;
|
|
5
6
|
title?: string;
|
|
6
7
|
open?: boolean;
|
|
7
|
-
id?: string;
|
|
8
8
|
}, {
|
|
9
9
|
[evt: string]: CustomEvent<any>;
|
|
10
10
|
}, {
|
|
@@ -17,9 +17,9 @@ export type AccordionItemSlots = typeof __propDef.slots;
|
|
|
17
17
|
import { SvelteComponentTyped } from "svelte";
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
|
+
id?: string;
|
|
20
21
|
title?: string;
|
|
21
22
|
open?: boolean;
|
|
22
|
-
id?: string;
|
|
23
23
|
};
|
|
24
24
|
events: {
|
|
25
25
|
[evt: string]: CustomEvent<any>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,8 +7,8 @@ export default class Section extends SvelteComponentTyped<{
|
|
|
7
7
|
marginTop?: boolean;
|
|
8
8
|
marginBottom?: boolean;
|
|
9
9
|
themeOverrides?: any;
|
|
10
|
-
title?: string;
|
|
11
10
|
id?: string;
|
|
11
|
+
title?: string;
|
|
12
12
|
hideTitle?: boolean;
|
|
13
13
|
}, {
|
|
14
14
|
[evt: string]: CustomEvent<any>;
|
|
@@ -27,8 +27,8 @@ declare const __propDef: {
|
|
|
27
27
|
marginTop?: boolean;
|
|
28
28
|
marginBottom?: boolean;
|
|
29
29
|
themeOverrides?: object;
|
|
30
|
-
title?: string;
|
|
31
30
|
id?: string;
|
|
31
|
+
title?: string;
|
|
32
32
|
hideTitle?: boolean;
|
|
33
33
|
};
|
|
34
34
|
events: {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|