@superdispatch/ui-lab 0.48.0 → 0.49.0
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.
|
@@ -64,14 +64,9 @@ export var EmailAutocomplete = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
66
|
renderInput: params => /*#__PURE__*/_jsx(MultipleFieldText, _objectSpread(_objectSpread(_objectSpread({}, params), TextFieldProps), {}, {
|
|
67
|
-
multiline: true,
|
|
68
|
-
minRows: 2,
|
|
69
|
-
variant: "outlined",
|
|
70
|
-
fullWidth: true,
|
|
71
67
|
InputProps: _objectSpread(_objectSpread(_objectSpread({}, TextFieldProps === null || TextFieldProps === void 0 ? void 0 : TextFieldProps.InputProps), params.InputProps), {}, {
|
|
72
68
|
startAdornment: params.InputProps.startAdornment
|
|
73
69
|
}),
|
|
74
|
-
placeholder: "Enter individual emails on each line or separate them with comma (,)",
|
|
75
70
|
onChange: event => {
|
|
76
71
|
var text = event.target.value.replace(/,/g, '');
|
|
77
72
|
var hasCommaOrSpace = /,|\s/.test(event.target.value);
|
package/dist-types/index.d.ts
CHANGED
|
@@ -170,7 +170,7 @@ declare const DescriptionLineItem: ForwardRefExoticComponent<DescriptionLineItem
|
|
|
170
170
|
|
|
171
171
|
interface EmailAutocompleteProps extends Omit<AutocompleteProps<string, true, true, true>, 'onChange' | 'renderInput' | 'renderTags'> {
|
|
172
172
|
options: string[];
|
|
173
|
-
TextFieldProps?: StandardTextFieldProps
|
|
173
|
+
TextFieldProps?: Omit<StandardTextFieldProps, 'onChange'>;
|
|
174
174
|
onAdd?: (value: string) => void;
|
|
175
175
|
onRemove?: (value: string) => void;
|
|
176
176
|
onChange?: (value: string[] | undefined, reason: AutocompleteChangeReason) => void;
|
package/dist-web/index.js
CHANGED
|
@@ -930,14 +930,9 @@ var EmailAutocomplete = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
930
930
|
});
|
|
931
931
|
},
|
|
932
932
|
renderInput: params => /*#__PURE__*/jsx(MultipleFieldText, _objectSpread(_objectSpread(_objectSpread({}, params), TextFieldProps), {}, {
|
|
933
|
-
multiline: true,
|
|
934
|
-
minRows: 2,
|
|
935
|
-
variant: "outlined",
|
|
936
|
-
fullWidth: true,
|
|
937
933
|
InputProps: _objectSpread(_objectSpread(_objectSpread({}, TextFieldProps === null || TextFieldProps === void 0 ? void 0 : TextFieldProps.InputProps), params.InputProps), {}, {
|
|
938
934
|
startAdornment: params.InputProps.startAdornment
|
|
939
935
|
}),
|
|
940
|
-
placeholder: "Enter individual emails on each line or separate them with comma (,)",
|
|
941
936
|
onChange: event => {
|
|
942
937
|
var text = event.target.value.replace(/,/g, '');
|
|
943
938
|
var hasCommaOrSpace = /,|\s/.test(event.target.value);
|