Skip to content

Commit ea56e2e

Browse files
committed
Add a prop to customize the input component of TimeInput. Update dev dependencies.
Closes #11
1 parent 3a2fe20 commit ea56e2e

8 files changed

+8822
-2830
lines changed

.babelrc

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
{
2-
"presets": [
3-
"es2015",
4-
"react",
5-
"stage-2"
6-
]
7-
}
2+
"presets": ["@babel/preset-react", "@babel/preset-env"],
3+
"plugins": [["@babel/plugin-proposal-class-properties", { "loose": true }]]
4+
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2018 Team Wertarbyte and contributors
3+
Copyright (c) 2017-2019 Team Wertarbyte and contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ For detailed documentation, take a look into the [styleguide][]. The source code
4141
|cancelLabel|`string`|`'Cancel'`|Override the label of the cancel button.|
4242
|defaultValue|`Date`||The default value of the input and picker.|
4343
|initialTime|`Date`||The initial value of the time picker.|
44+
|inputComponent|`elementType`|`Input`|The component used for the input. Either a string to use a DOM element or a component.|
4445
|placeholder|`string`||The initial value of the actual input before a value is selected.|
4546
|mode|`enum: '12h' '24h'`|`'12h'`|Sets the clock mode, 12-hour or 24-hour clocks are supported.|
4647
|okLabel|`string`|`'Ok'`|Override the label of the ok button.|

0 commit comments

Comments
 (0)