Skip to content

Commit

Permalink
KeyboardButtonProps updated
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu.ganesan committed Jan 12, 2024
1 parent b356d25 commit 77ef633
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ export default function ActiveKeyboardDatePicker(props) {
showLabelHelp,
InputLabelHelpProps,
label,
KeyboardButtonProps,
...others
} = props

Expand Down Expand Up @@ -113,6 +114,7 @@ export default function ActiveKeyboardDatePicker(props) {
}}
readOnly={readOnly}
KeyboardButtonProps={{
...KeyboardButtonProps,
classes: {
root: `${!interactiveMode && !readOnly ? '' : hideIcon}`,
},
Expand Down Expand Up @@ -170,11 +172,14 @@ ActiveKeyboardDatePicker.propTypes = {
showLabelHelp: PropTypes.bool,
/** Props applied to the input label help element. E.g InputLabelHelpProps={{type:'link', label:'Help', link:'unicef.github.io', icon, tooltipTitle: 'Tooltip title', tooltipPlacement: 'bottom}} */
InputLabelHelpProps: PropTypes.object,
/** Keyboard button props */
KeyboardButtonProps: PropTypes.object,
}

ActiveKeyboardDatePicker.defaultProps = {
inputVariant: 'outlined',
autoOk: true,
variant: 'inline',
format: 'dd/MM/yyyy',
KeyboardButtonProps: {},
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function ActiveKeyboardDateTimePicker(props) {
showLabelHelp,
InputLabelHelpProps,
label,
KeyboardButtonProps,
...others
} = props

Expand Down Expand Up @@ -112,6 +113,7 @@ export default function ActiveKeyboardDateTimePicker(props) {
}}
readOnly={readOnly}
KeyboardButtonProps={{
...KeyboardButtonProps,
classes: {
root: `${!interactiveMode && !readOnly ? '' : hideIcon}`,
},
Expand Down Expand Up @@ -169,11 +171,14 @@ ActiveKeyboardDateTimePicker.propTypes = {
showLabelHelp: PropTypes.bool,
/** Props applied to the input label help element. E.g InputLabelHelpProps={{type:'link', label:'Help', link:'unicef.github.io', icon, tooltipTitle: 'Tooltip title', tooltipPlacement: 'bottom}} */
InputLabelHelpProps: PropTypes.object,
/** Keyboard button props */
KeyboardButtonProps: PropTypes.object,
}

ActiveKeyboardDateTimePicker.defaultProps = {
inputVariant: 'outlined',
autoOk: true,
variant: 'inline',
format: 'dd/MM/yyyy hh:mm a',
KeyboardButtonProps: {},
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export default function ActiveKeyboardTimePicker(props) {
showLabelHelp,
InputLabelHelpProps,
label,
KeyboardButtonProps,
...others
} = props

Expand Down Expand Up @@ -109,6 +110,7 @@ export default function ActiveKeyboardTimePicker(props) {
}}
readOnly={readOnly}
KeyboardButtonProps={{
...KeyboardButtonProps,
classes: {
root: `${!interactiveMode && !readOnly ? '' : hideIcon}`,
},
Expand Down Expand Up @@ -162,10 +164,13 @@ ActiveKeyboardTimePicker.propTypes = {
showLabelHelp: PropTypes.bool,
/** Props applied to the input label help element. E.g InputLabelHelpProps={{type:'link', label:'Help', link:'unicef.github.io', icon, tooltipTitle: 'Tooltip title', tooltipPlacement: 'bottom}} */
InputLabelHelpProps: PropTypes.object,
/** Keyboard button props */
KeyboardButtonProps: PropTypes.object,
}

ActiveKeyboardTimePicker.defaultProps = {
inputVariant: 'outlined',
autoOk: true,
variant: 'inline',
KeyboardButtonProps: {},
}

0 comments on commit 77ef633

Please sign in to comment.