@nualang/nualang-ui-components 0.1.1166 → 0.1.1167
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.
|
@@ -520,20 +520,20 @@ class CustomChipInput extends _react.default.Component {
|
|
|
520
520
|
};
|
|
521
521
|
render() {
|
|
522
522
|
const {
|
|
523
|
-
allowDuplicates
|
|
523
|
+
allowDuplicates,
|
|
524
524
|
alwaysShowPlaceholder,
|
|
525
|
-
blurBehavior
|
|
525
|
+
blurBehavior,
|
|
526
526
|
children,
|
|
527
527
|
chipRenderer = defaultChipRenderer,
|
|
528
528
|
classes,
|
|
529
529
|
className,
|
|
530
|
-
clearInputValueOnChange
|
|
530
|
+
clearInputValueOnChange,
|
|
531
531
|
dataSource,
|
|
532
532
|
dataSourceConfig,
|
|
533
533
|
defaultValue,
|
|
534
|
-
delayBeforeAdd
|
|
534
|
+
delayBeforeAdd,
|
|
535
535
|
disabled,
|
|
536
|
-
disableUnderline
|
|
536
|
+
disableUnderline,
|
|
537
537
|
error,
|
|
538
538
|
filter,
|
|
539
539
|
FormHelperTextProps,
|
|
@@ -546,8 +546,8 @@ class CustomChipInput extends _react.default.Component {
|
|
|
546
546
|
InputLabelProps = {},
|
|
547
547
|
inputValue,
|
|
548
548
|
label,
|
|
549
|
-
newChipKeyCodes
|
|
550
|
-
newChipKeys
|
|
549
|
+
newChipKeyCodes,
|
|
550
|
+
newChipKeys,
|
|
551
551
|
onBeforeAdd,
|
|
552
552
|
onAdd,
|
|
553
553
|
onBlur,
|
|
@@ -563,7 +563,7 @@ class CustomChipInput extends _react.default.Component {
|
|
|
563
563
|
required,
|
|
564
564
|
rootRef,
|
|
565
565
|
value,
|
|
566
|
-
variant
|
|
566
|
+
variant,
|
|
567
567
|
t,
|
|
568
568
|
...other
|
|
569
569
|
} = this.props;
|
|
@@ -708,6 +708,16 @@ CustomChipInput.propTypes = {
|
|
|
708
708
|
/** The variant of the Input component */
|
|
709
709
|
variant: _propTypes.default.oneOf(["outlined", "standard", "filled"])
|
|
710
710
|
};
|
|
711
|
+
CustomChipInput.defaultProps = {
|
|
712
|
+
allowDuplicates: false,
|
|
713
|
+
blurBehavior: "clear",
|
|
714
|
+
clearInputValueOnChange: false,
|
|
715
|
+
delayBeforeAdd: false,
|
|
716
|
+
disableUnderline: false,
|
|
717
|
+
newChipKeyCodes: [13],
|
|
718
|
+
newChipKeys: ["Enter"],
|
|
719
|
+
variant: "standard"
|
|
720
|
+
};
|
|
711
721
|
var _default = exports.default = (0, _mui.withStyles)(CustomChipInput, styles, {
|
|
712
722
|
name: "WAMuiChipInput"
|
|
713
723
|
});
|