|
1 | 1 | <script> |
2 | | -/** |
3 | | - * @component DateInput |
4 | | - * @description Date input with custom styling |
5 | | - */ |
6 | | -
|
7 | | -/** |
8 | | - * @prop {string} |
9 | | - * @description sets color of input text |
10 | | - */ |
| 2 | +/** @type {string} sets color of input text */ |
11 | 3 | export let color = 'black' |
12 | | -
|
13 | | -/** |
14 | | - * @prop {string} |
15 | | - * @description sets color of input border |
16 | | - */ |
| 4 | +/** @type {string} sets color of input border */ |
17 | 5 | export let borderColor = 'black' |
18 | | -
|
19 | | -/** |
20 | | - * @prop {string} |
21 | | - * @description sets color of input text after blur when required and empty |
22 | | - */ |
| 6 | +/** @type {string} sets color of input text after blur when required and empty */ |
23 | 7 | export let errorColor = 'red' |
24 | | -
|
25 | | -/** |
26 | | - * @prop {string} |
27 | | - * @description sets padding of input |
28 | | - */ |
| 8 | +/** @type {string} sets padding of input */ |
29 | 9 | export let padding = '12px' |
30 | | -
|
31 | | -/** |
32 | | - * @prop {string} |
33 | | - * @description sets width of input |
34 | | - */ |
| 10 | +/** @type {string} sets width of input */ |
35 | 11 | export let width = '220px' |
36 | | -
|
37 | | -/** |
38 | | - * @prop {string} |
39 | | - * @description sets font size input text |
40 | | - */ |
| 12 | +/** @type {string} sets font size input text */ |
41 | 13 | export let fontSize = '14px' |
42 | | -
|
43 | | -/** |
44 | | - * @prop {string} |
45 | | - * @description sets name of input |
46 | | - */ |
| 14 | +/** @type {string} sets name of input */ |
47 | 15 | export let name = '' |
48 | | -
|
49 | | -/** |
50 | | - * @prop {string} date in locale with no time data |
51 | | - * @description sets initial date of input |
52 | | - */ |
| 16 | +/** @type {string} sets initial date of input in locale with no time data */ |
53 | 17 | export let value = '' |
54 | | -
|
55 | | -/** |
56 | | - * @prop {boolean} |
57 | | - * @description sets whether input is disabled |
58 | | - */ |
| 18 | +/** @type {boolean} sets whether input is disabled */ |
59 | 19 | export let disabled = false |
60 | | -
|
61 | | -/** |
62 | | - * @prop {boolean} |
63 | | - * @description sets whether input is focused on load |
64 | | - */ |
| 20 | +/** @type {boolean} sets whether input is focused on load */ |
65 | 21 | export let autofocus = false |
66 | | -
|
67 | | -/** |
68 | | - * @prop {boolean} |
69 | | - * @description sets whether input is required and has error color when empty after blur |
70 | | - */ |
| 22 | +/** @type {boolean} sets whether input is required and has error color when empty after blur */ |
71 | 23 | export let required = false |
72 | 24 |
|
73 | 25 | const onBlur = (e) => { |
|
0 commit comments