-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathstory.js
68 lines (66 loc) · 1.47 KB
/
story.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { html } from 'lit';
import { args, argTypes } from './story.args';
import changelog from './CHANGELOG.md';
import readme from './README.md';
import './index';
export default {
title: 'Components/Datepicker',
parameters: {
readme,
usage: {
propsPureHTML: 'locale="de-CH" year="2020" month="1" day="20"',
propsReact: 'locale="de-CH" year={2020} month={1} day={1}',
},
changelog,
},
args,
argTypes,
};
export const Datepicker = ({
inputfield,
locale,
year,
month,
day,
allowedyears,
disabled,
autofocus,
checkMark,
label,
monthtitle,
yeartitle,
invaliddatetext,
invalid,
placeholder,
marginTop,
width,
}) => html`
<div
style="background-color: lightgrey;margin-top: ${marginTop}px; width: 500px"
>
<axa-datepicker
id="datepicker-react"
locale="${locale}"
style="width:${width}"
?inputfield="${inputfield}"
?autofocus="${autofocus}"
?checkMark="${checkMark}"
?disabled="${disabled}"
.allowedyears="${allowedyears}"
year="${year}"
month="${month}"
day="${day}"
placeholder="${placeholder}"
?invalid="${invalid}"
invaliddatetext="${invaliddatetext}"
label="${label}"
monthtitle="${monthtitle}"
yeartitle="${yeartitle}"
data-test-id="datepicker"
></axa-datepicker>
<span
>This is a simple text next to datepicker element. You can check
datapickers width with me.</span
>
</div>
`;