@r2digisolutions/components 0.14.10 → 0.14.11
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.
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import Input from '../../atoms/Input/Input.svelte';
|
|
3
3
|
|
|
4
4
|
interface NumberInputProps {
|
|
5
|
+
name?: string;
|
|
5
6
|
value?: number;
|
|
6
7
|
min?: number;
|
|
7
8
|
max?: number;
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
let {
|
|
22
|
+
name,
|
|
21
23
|
value = $bindable(0),
|
|
22
24
|
min,
|
|
23
25
|
max,
|
|
@@ -97,6 +99,7 @@
|
|
|
97
99
|
<div class={['number-input w-full', className]}>
|
|
98
100
|
{#if controls === 'sides'}
|
|
99
101
|
<Input
|
|
102
|
+
{name}
|
|
100
103
|
{label}
|
|
101
104
|
{helperText}
|
|
102
105
|
{disabled}
|
|
@@ -142,6 +145,7 @@
|
|
|
142
145
|
</Input>
|
|
143
146
|
{:else if controls === 'stacked'}
|
|
144
147
|
<Input
|
|
148
|
+
{name}
|
|
145
149
|
{label}
|
|
146
150
|
{helperText}
|
|
147
151
|
{disabled}
|
|
@@ -183,6 +187,7 @@
|
|
|
183
187
|
</Input>
|
|
184
188
|
{:else}
|
|
185
189
|
<Input
|
|
190
|
+
{name}
|
|
186
191
|
{label}
|
|
187
192
|
{helperText}
|
|
188
193
|
{disabled}
|