@coyalabs/bts-style 1.1.8 → 1.1.10
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.
|
@@ -52,6 +52,11 @@
|
|
|
52
52
|
* @type {string}
|
|
53
53
|
*/
|
|
54
54
|
export let borderRadiusBottomRight = '25px';
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
*/
|
|
59
|
+
export let autofocus = false;
|
|
55
60
|
</script>
|
|
56
61
|
|
|
57
62
|
<div class="input-wrapper">
|
|
@@ -64,6 +69,7 @@
|
|
|
64
69
|
{type}
|
|
65
70
|
{placeholder}
|
|
66
71
|
bind:value
|
|
72
|
+
autofocus={autofocus}
|
|
67
73
|
on:input
|
|
68
74
|
on:change
|
|
69
75
|
on:focus
|
|
@@ -10,6 +10,7 @@ type InputBox = SvelteComponent<{
|
|
|
10
10
|
value?: string | undefined;
|
|
11
11
|
placeholder?: string | undefined;
|
|
12
12
|
type?: string | undefined;
|
|
13
|
+
autofocus?: boolean | undefined;
|
|
13
14
|
}, {
|
|
14
15
|
input: Event;
|
|
15
16
|
change: Event;
|
|
@@ -32,6 +33,7 @@ declare const InputBox: $$__sveltets_2_IsomorphicComponent<{
|
|
|
32
33
|
value?: string | undefined;
|
|
33
34
|
placeholder?: string | undefined;
|
|
34
35
|
type?: string | undefined;
|
|
36
|
+
autofocus?: boolean | undefined;
|
|
35
37
|
}, {
|
|
36
38
|
input: Event;
|
|
37
39
|
change: Event;
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
{#if label}
|
|
41
41
|
<BaseText variant="content">{label}</BaseText>
|
|
42
42
|
{/if}
|
|
43
|
-
<InputBox bind:value {placeholder} />
|
|
43
|
+
<InputBox bind:value {placeholder} autofocus={true} />
|
|
44
44
|
<div class="buttons">
|
|
45
45
|
<Button theme="primary" actionIcon={icons.check} on:click={handleSubmit}>{submitText}</Button>
|
|
46
46
|
<Button theme="secondary" actionIcon={icons.crossb} on:click={handleCancel}>{cancelText}</Button>
|