@unicef/material-ui 0.12.1 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/prod.js CHANGED
@@ -28334,7 +28334,12 @@ function InputComponent(_ref) {
28334
28334
  var inputRef = _ref.inputRef,
28335
28335
  props = objectWithoutProperties(_ref, ['inputRef']);
28336
28336
 
28337
- return React__default.createElement('div', _extends$1({ ref: inputRef }, props));
28337
+ return React__default.createElement('div', _extends$1({
28338
+ ref: inputRef
28339
+ }, props, {
28340
+ required: undefined // Remove required from div element
28341
+ , 'aria-invalid': undefined // Remove aria-invalid from div element
28342
+ }));
28338
28343
  }
28339
28344
 
28340
28345
  InputComponent.propTypes = {
@@ -30159,7 +30164,10 @@ function Input$3(props) {
30159
30164
  describedBy = describedBy || customDescribedBy ? '' + (describedBy ? describedBy : '') + (customDescribedBy ? ' ' + customDescribedBy : '') : undefined;
30160
30165
  }
30161
30166
 
30162
- return React__default.createElement(components.Input, _extends$1({}, props, { 'aria-describedby': describedBy }));
30167
+ return React__default.createElement(components.Input, _extends$1({}, props, {
30168
+ 'aria-describedby': describedBy,
30169
+ required: props && props.selectProps && props.selectProps.required || undefined
30170
+ }));
30163
30171
  }
30164
30172
 
30165
30173
  Input$3.propTypes = {
@@ -45566,7 +45574,8 @@ function ActiveKeyboardDatePicker(props) {
45566
45574
  showLabelHelp = props.showLabelHelp,
45567
45575
  InputLabelHelpProps = props.InputLabelHelpProps,
45568
45576
  label = props.label,
45569
- others = objectWithoutProperties(props, ['autoOk', 'variant', 'inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label']);
45577
+ KeyboardButtonProps = props.KeyboardButtonProps,
45578
+ others = objectWithoutProperties(props, ['autoOk', 'variant', 'inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label', 'KeyboardButtonProps']);
45570
45579
 
45571
45580
  var _React$useState = React__default.useState(classes.icon),
45572
45581
  _React$useState2 = slicedToArray(_React$useState, 2),
@@ -45607,11 +45616,11 @@ function ActiveKeyboardDatePicker(props) {
45607
45616
  disabled: Boolean(readOnly)
45608
45617
  }, inputProps),
45609
45618
  readOnly: readOnly,
45610
- KeyboardButtonProps: {
45619
+ KeyboardButtonProps: _extends$1({}, KeyboardButtonProps, {
45611
45620
  classes: {
45612
45621
  root: '' + (!interactiveMode && !readOnly ? '' : hideIcon)
45613
45622
  }
45614
- },
45623
+ }),
45615
45624
  InputProps: _extends$1({
45616
45625
  classes: {
45617
45626
  root: classes.input + ' ' + (readOnly && classes.inputHover),
@@ -45653,14 +45662,17 @@ ActiveKeyboardDatePicker.propTypes = {
45653
45662
  /** Show label help */
45654
45663
  showLabelHelp: PropTypes__default.bool,
45655
45664
  /** 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}} */
45656
- InputLabelHelpProps: PropTypes__default.object
45665
+ InputLabelHelpProps: PropTypes__default.object,
45666
+ /** Keyboard button props */
45667
+ KeyboardButtonProps: PropTypes__default.object
45657
45668
  };
45658
45669
 
45659
45670
  ActiveKeyboardDatePicker.defaultProps = {
45660
45671
  inputVariant: 'outlined',
45661
45672
  autoOk: true,
45662
45673
  variant: 'inline',
45663
- format: 'dd/MM/yyyy'
45674
+ format: 'dd/MM/yyyy',
45675
+ KeyboardButtonProps: {}
45664
45676
  };
45665
45677
 
45666
45678
  var styles$17 = {
@@ -45983,7 +45995,8 @@ function ActiveKeyboardTimePicker(props) {
45983
45995
  showLabelHelp = props.showLabelHelp,
45984
45996
  InputLabelHelpProps = props.InputLabelHelpProps,
45985
45997
  label = props.label,
45986
- others = objectWithoutProperties(props, ['inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label']);
45998
+ KeyboardButtonProps = props.KeyboardButtonProps,
45999
+ others = objectWithoutProperties(props, ['inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label', 'KeyboardButtonProps']);
45987
46000
 
45988
46001
  var _React$useState = React__default.useState(classes.icon),
45989
46002
  _React$useState2 = slicedToArray(_React$useState, 2),
@@ -46022,11 +46035,11 @@ function ActiveKeyboardTimePicker(props) {
46022
46035
  disabled: Boolean(readOnly)
46023
46036
  }, inputProps),
46024
46037
  readOnly: readOnly,
46025
- KeyboardButtonProps: {
46038
+ KeyboardButtonProps: _extends$1({}, KeyboardButtonProps, {
46026
46039
  classes: {
46027
46040
  root: '' + (!interactiveMode && !readOnly ? '' : hideIcon)
46028
46041
  }
46029
- },
46042
+ }),
46030
46043
  InputProps: _extends$1({
46031
46044
  classes: {
46032
46045
  root: classes.input + ' ' + (readOnly && classes.inputHover),
@@ -46064,13 +46077,16 @@ ActiveKeyboardTimePicker.propTypes = {
46064
46077
  /** Show label help */
46065
46078
  showLabelHelp: PropTypes__default.bool,
46066
46079
  /** 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}} */
46067
- InputLabelHelpProps: PropTypes__default.object
46080
+ InputLabelHelpProps: PropTypes__default.object,
46081
+ /** Keyboard button props */
46082
+ KeyboardButtonProps: PropTypes__default.object
46068
46083
  };
46069
46084
 
46070
46085
  ActiveKeyboardTimePicker.defaultProps = {
46071
46086
  inputVariant: 'outlined',
46072
46087
  autoOk: true,
46073
- variant: 'inline'
46088
+ variant: 'inline',
46089
+ KeyboardButtonProps: {}
46074
46090
  };
46075
46091
 
46076
46092
  var filter$1 = createFilterOptions();
@@ -46356,7 +46372,8 @@ function ActiveKeyboardDateTimePicker(props) {
46356
46372
  showLabelHelp = props.showLabelHelp,
46357
46373
  InputLabelHelpProps = props.InputLabelHelpProps,
46358
46374
  label = props.label,
46359
- others = objectWithoutProperties(props, ['autoOk', 'variant', 'inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label']);
46375
+ KeyboardButtonProps = props.KeyboardButtonProps,
46376
+ others = objectWithoutProperties(props, ['autoOk', 'variant', 'inputVariant', 'readOnly', 'interactiveMode', 'InputLabelProps', 'className', 'inputProps', 'InputProps', 'placeholder', 'showLabelHelp', 'InputLabelHelpProps', 'label', 'KeyboardButtonProps']);
46360
46377
 
46361
46378
  var _React$useState = React__default.useState(classes.icon),
46362
46379
  _React$useState2 = slicedToArray(_React$useState, 2),
@@ -46397,11 +46414,11 @@ function ActiveKeyboardDateTimePicker(props) {
46397
46414
  disabled: Boolean(readOnly)
46398
46415
  }, inputProps),
46399
46416
  readOnly: readOnly,
46400
- KeyboardButtonProps: {
46417
+ KeyboardButtonProps: _extends$1({}, KeyboardButtonProps, {
46401
46418
  classes: {
46402
46419
  root: '' + (!interactiveMode && !readOnly ? '' : hideIcon)
46403
46420
  }
46404
- },
46421
+ }),
46405
46422
  InputProps: _extends$1({
46406
46423
  classes: {
46407
46424
  root: classes.input + ' ' + (readOnly && classes.inputHover),
@@ -46443,14 +46460,17 @@ ActiveKeyboardDateTimePicker.propTypes = {
46443
46460
  /** Show label help */
46444
46461
  showLabelHelp: PropTypes__default.bool,
46445
46462
  /** 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}} */
46446
- InputLabelHelpProps: PropTypes__default.object
46463
+ InputLabelHelpProps: PropTypes__default.object,
46464
+ /** Keyboard button props */
46465
+ KeyboardButtonProps: PropTypes__default.object
46447
46466
  };
46448
46467
 
46449
46468
  ActiveKeyboardDateTimePicker.defaultProps = {
46450
46469
  inputVariant: 'outlined',
46451
46470
  autoOk: true,
46452
46471
  variant: 'inline',
46453
- format: 'dd/MM/yyyy hh:mm a'
46472
+ format: 'dd/MM/yyyy hh:mm a',
46473
+ KeyboardButtonProps: {}
46454
46474
  };
46455
46475
 
46456
46476
  exports.ActiveAutoComplete = ActiveAutoComplete;