@onsvisual/svelte-components 1.0.29 → 1.0.30
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.
|
@@ -20,6 +20,16 @@
|
|
|
20
20
|
* @type {string|null}
|
|
21
21
|
*/
|
|
22
22
|
export let href = null;
|
|
23
|
+
/**
|
|
24
|
+
* File name if link is used for a file download (only if href is also specified)
|
|
25
|
+
* @type {string|null}
|
|
26
|
+
*/
|
|
27
|
+
export let download = null;
|
|
28
|
+
/**
|
|
29
|
+
* Don't scroll when link is followed (only if href is also specified)
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
*/
|
|
32
|
+
export let noScroll = false;
|
|
23
33
|
/**
|
|
24
34
|
* Make button smaller
|
|
25
35
|
* @type {boolean}
|
|
@@ -46,15 +56,10 @@
|
|
|
46
56
|
*/
|
|
47
57
|
export let hideLabel = false;
|
|
48
58
|
/**
|
|
49
|
-
*
|
|
59
|
+
* Aria label for button
|
|
50
60
|
* @type {string|null}
|
|
51
61
|
*/
|
|
52
62
|
export let arialabel = null;
|
|
53
|
-
/**
|
|
54
|
-
* filename if link is used for a file download
|
|
55
|
-
* @type {string|null}
|
|
56
|
-
*/
|
|
57
|
-
export let download = null;
|
|
58
63
|
/**
|
|
59
64
|
* Set a colour for the button
|
|
60
65
|
* @type {string|null}
|
|
@@ -79,6 +84,7 @@
|
|
|
79
84
|
class:ons-btn--disabled={disabled}
|
|
80
85
|
on:click={(e) => dispatch("click", e)}
|
|
81
86
|
aria-label={arialabel}
|
|
87
|
+
data-sveltekit-noscroll={noScroll}
|
|
82
88
|
>
|
|
83
89
|
<span
|
|
84
90
|
class="ons-btn__inner"
|
|
@@ -9,6 +9,7 @@ export default class Button extends SvelteComponentTyped<{
|
|
|
9
9
|
download?: string | null | undefined;
|
|
10
10
|
type?: "button" | "reset" | "sumbit" | undefined;
|
|
11
11
|
variant?: "secondary" | "primary" | "ghost" | undefined;
|
|
12
|
+
noScroll?: boolean | undefined;
|
|
12
13
|
icon?: "search" | "arrow" | "external" | "signout" | "print" | "download" | "tick" | null | undefined;
|
|
13
14
|
iconPosition?: "before" | "after" | undefined;
|
|
14
15
|
disabled?: boolean | undefined;
|
|
@@ -36,6 +37,7 @@ declare const __propDef: {
|
|
|
36
37
|
download?: string | null | undefined;
|
|
37
38
|
type?: "button" | "reset" | "sumbit" | undefined;
|
|
38
39
|
variant?: "secondary" | "primary" | "ghost" | undefined;
|
|
40
|
+
noScroll?: boolean | undefined;
|
|
39
41
|
icon?: "search" | "arrow" | "external" | "signout" | "print" | "download" | "tick" | null | undefined;
|
|
40
42
|
iconPosition?: "before" | "after" | undefined;
|
|
41
43
|
disabled?: boolean | undefined;
|