Skip to content

Commit

Permalink
feat: create date range picker field
Browse files Browse the repository at this point in the history
  • Loading branch information
brunomous committed Dec 18, 2024
1 parent bcc5ac1 commit 38b41a3
Show file tree
Hide file tree
Showing 11 changed files with 415 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added packages/.DS_Store
Binary file not shown.
Binary file added packages/react-material-ui/.DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions packages/react-material-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@rjsf/mui": "^5.0.0-beta.13",
"@rjsf/utils": "^5.0.0-beta.13",
"@rjsf/validator-ajv6": "^5.0.0-beta.13",
"date-fns": "^4.1.0",
"lodash": "^4.17.21"
},
"devDependencies": {
Expand Down
Binary file added packages/react-material-ui/src/.DS_Store
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { styled } from '@mui/material/styles';

export const CustomInput = styled('input')(({}) => ({
border: 'none',
textAlign: 'center',
textTransform: 'uppercase',
outline: 'none',
fontFamily: 'inherit',
fontSize: '1rem',
width: '112px',
'&::-webkit-calendar-picker-indicator': {
display: 'none',
},
'&::-moz-calendar-picker-indicator': {
display: 'none',
},
}));
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React, { InputHTMLAttributes, forwardRef } from 'react';
import { CustomInput } from './Styles';

type Props = InputHTMLAttributes<HTMLInputElement>;

const DateInput = forwardRef((props: Props, ref: any) => {
return <CustomInput ref={ref} type="date" {...props} />;
});

export default DateInput;
Loading

0 comments on commit 38b41a3

Please sign in to comment.