@groupeactual/ui-kit 1.0.2 → 1.0.4

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.
@@ -52,7 +52,8 @@ const AutocompleteMultipleSelect = <T,>({
52
52
  width = 256,
53
53
  color,
54
54
  helperText,
55
- error
55
+ error,
56
+ ...props
56
57
  }: AutocompleteMultipleSelectProps<T>) => {
57
58
  const theme = useTheme();
58
59
  const StyledAutoCompleteForm = useMemo(
@@ -123,6 +124,7 @@ const AutocompleteMultipleSelect = <T,>({
123
124
  className={addFormControlClassName}
124
125
  >
125
126
  <Autocomplete
127
+ {...props}
126
128
  placeholder={value.length || label === placeholder ? '' : placeholder}
127
129
  disableCloseOnSelect
128
130
  multiple
@@ -47,7 +47,8 @@ const AutoCompleteSingle = <T extends {}>({
47
47
  width = 200,
48
48
  color,
49
49
  helperText,
50
- error
50
+ error,
51
+ ...props
51
52
  }: Props<T>) => {
52
53
  const theme = useTheme();
53
54
  const StyledAutoCompleteForm = useMemo(
@@ -58,7 +59,7 @@ const AutoCompleteSingle = <T extends {}>({
58
59
  const [value, setValue] = useState<T | null>(defaultValue);
59
60
 
60
61
  const handleValueChange = (
61
- event: React.SyntheticEvent<Element, Event>,
62
+ _event: React.SyntheticEvent<Element, Event>,
62
63
  newValue: T | null
63
64
  ) => {
64
65
  if (onChange) {
@@ -106,6 +107,7 @@ const AutoCompleteSingle = <T extends {}>({
106
107
  className={getFormControlClassName}
107
108
  >
108
109
  <Autocomplete
110
+ {...props}
109
111
  placeholder={label === placeholder ? '' : placeholder}
110
112
  value={value}
111
113
  disabled={disabled}