@onsvisual/svelte-components 0.1.94-component.toolbar → 0.1.95-component.toolbar
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.
|
@@ -11,6 +11,7 @@ export default class Button extends SvelteComponentTyped<{
|
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
hideLabel?: boolean;
|
|
13
13
|
arialabel?: string;
|
|
14
|
+
download?: string;
|
|
14
15
|
}, {
|
|
15
16
|
click: CustomEvent<any>;
|
|
16
17
|
} & {
|
|
@@ -35,6 +36,7 @@ declare const __propDef: {
|
|
|
35
36
|
disabled?: boolean;
|
|
36
37
|
hideLabel?: boolean;
|
|
37
38
|
arialabel?: string;
|
|
39
|
+
download?: string | null;
|
|
38
40
|
};
|
|
39
41
|
events: {
|
|
40
42
|
click: CustomEvent<any>;
|
|
@@ -5,6 +5,7 @@ export default class Titleblock extends SvelteComponentTyped<{
|
|
|
5
5
|
theme?: "light" | "dark" | "lightblue";
|
|
6
6
|
background?: string;
|
|
7
7
|
allowClientOverrides?: boolean;
|
|
8
|
+
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
8
9
|
themeOverrides?: any;
|
|
9
10
|
title?: string;
|
|
10
11
|
meta?: any[];
|
|
@@ -31,6 +32,7 @@ declare const __propDef: {
|
|
|
31
32
|
theme?: "light" | "dark" | "lightblue";
|
|
32
33
|
background?: string;
|
|
33
34
|
allowClientOverrides?: boolean;
|
|
35
|
+
width?: "narrow" | "medium" | "wide" | "wider" | "full";
|
|
34
36
|
themeOverrides?: object;
|
|
35
37
|
title?: string;
|
|
36
38
|
meta?: any[];
|
|
@@ -49,12 +49,18 @@
|
|
|
49
49
|
* @type {string}
|
|
50
50
|
*/
|
|
51
51
|
export let arialabel = "";
|
|
52
|
+
/**
|
|
53
|
+
* filename if link is used for a file download
|
|
54
|
+
* @type {string|null}
|
|
55
|
+
*/
|
|
56
|
+
export let download = null;
|
|
52
57
|
</script>
|
|
53
58
|
|
|
54
59
|
{#if href}
|
|
55
60
|
<a
|
|
56
61
|
href="{!disabled ? href : null}"
|
|
57
62
|
role="button"
|
|
63
|
+
download="{download}"
|
|
58
64
|
class="ons-btn ons-btn--link ons-js-submit-btn"
|
|
59
65
|
class:ons-btn--small="{small}"
|
|
60
66
|
class:ons-btn--secondary="{variant === 'secondary'}"
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
* @type {string}
|
|
59
59
|
*/
|
|
60
60
|
export let titleBadgeColor = "#003C57";
|
|
61
|
+
/**
|
|
62
|
+
* Set a width for the container
|
|
63
|
+
* @type {"narrow"|"medium"|"wide"|"wider"|"full"}
|
|
64
|
+
*/
|
|
65
|
+
export let width = "wide";
|
|
61
66
|
|
|
62
67
|
$: titleBadgeTextColor = contrastColor(titleBadgeColor);
|
|
63
68
|
</script>
|
|
@@ -67,6 +72,7 @@
|
|
|
67
72
|
themeOverrides="{themeOverrides}"
|
|
68
73
|
allowClientOverrides="{allowClientOverrides}"
|
|
69
74
|
background="{background}"
|
|
75
|
+
width="{width}"
|
|
70
76
|
>
|
|
71
77
|
<section class="ons-u-mb-xl">
|
|
72
78
|
<slot name="before" />
|