feat: ui v2 - Date Range Component (#1537)
* feat: Date Range wrapper component * fix yarn issues * add calendar icon * date range css styles * date range fixes * fix propTypes warning * fix clear method, defaultProps & onChange method * update inline styles to use tailwind classes * date range documentation page * minor refactor
This commit is contained in:
1 parent
0ec277dd56
commit
b183e78f47
13 files changed
+407
-38
No files matched your search
@@ -20,6 +20,7 @@ const Input = ({
|
||||
type = 'text',
|
||||
value,
|
||||
onChange,
|
||||
onFocus,
|
||||
...otherProps
|
||||
}) => {
|
||||
return (
|
||||
@@ -34,6 +35,7 @@ const Input = ({
|
||||
type={type}
|
||||
value={value}
|
||||
onChange={onChange}
|
||||
onFocus={onFocus}
|
||||
{...otherProps}
|
||||
/>
|
||||
</div>
|
||||
@@ -49,6 +51,7 @@ Input.propTypes = {
|
||||
type: PropTypes.string,
|
||||
value: PropTypes.any,
|
||||
onChange: PropTypes.func,
|
||||
onFocus: PropTypes.func,
|
||||
};
|
||||
|
||||
export default Input;
|
||||
Reference in new issue
Block a user