blob: b079d2e0405fea0fbebd4ad57907c1eadb473a60 (
plain)
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
|
import React from 'react';
import { Helmet } from 'react-helmet';
import brand from 'ba-api/brand';
import { withStyles } from '@material-ui/core/styles';
import { SourceReader, PapperBlock } from 'ba-components';
import { DateInput, TimeInput, DateTimeInput } from './demos';
const styles = ({
root: {
flexGrow: 1,
}
});
class DateTime extends React.Component {
render() {
const title = brand.name + ' - Form';
const description = brand.desc;
const docSrc = 'containers/Forms/demos/';
return (
<div>
<Helmet>
<title>{title}</title>
<meta name="description" content={description} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={description} />
</Helmet>
<PapperBlock title="Date Picker" desc="Date pickers use a dialog window to select a single date. The selected day is indicated by a filled circle. The current day is indicated by a different color and type weight.">
<div>
<DateInput />
<SourceReader componentName={docSrc + 'DateInput.js'} />
</div>
</PapperBlock>
<PapperBlock title="Time Picker" desc="Time pickers use a dialog to select a single time (in the hours:minutes format). The selected time is indicated by the filled circle at the end of the clock hand.">
<div>
<TimeInput />
<SourceReader componentName={docSrc + 'TimeInput.js'} />
</div>
</PapperBlock>
<PapperBlock title="Date & Time Picker" desc="Its a combination of date & time picker and allows that uses the modal to select both date and time with one control.">
<div>
<DateTimeInput />
<SourceReader componentName={docSrc + 'DateTimeInput.js'} />
</div>
</PapperBlock>
</div>
);
}
}
export default withStyles(styles)(DateTime);
|