@terraware/web-components 3.3.0 → 3.3.1
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.
@@ -1,5 +1,5 @@
|
|
1
|
-
/// <reference types="react" />
|
2
1
|
import { SxProps, TooltipProps } from '@mui/material';
|
2
|
+
import React from 'react';
|
3
3
|
import { DropdownItem as Option } from '../types';
|
4
4
|
import '../Select/styles.scss';
|
5
5
|
import './styles.scss';
|
@@ -20,6 +20,7 @@ export interface Props {
|
|
20
20
|
tooltipTitle?: TooltipProps['title'];
|
21
21
|
required?: boolean;
|
22
22
|
sx?: SxProps;
|
23
|
+
renderOption?: (props: React.HTMLAttributes<HTMLLIElement>, option: ValueType) => React.ReactNode;
|
23
24
|
}
|
24
|
-
export default function Autocomplete({ id, label, options, onChange, selected, freeSolo, disabled, className, hideClearIcon, isEqual, placeholder, errorText, tooltipTitle, required, sx, }: Props): JSX.Element;
|
25
|
+
export default function Autocomplete({ id, label, options, onChange, selected, freeSolo, disabled, className, hideClearIcon, isEqual, placeholder, errorText, tooltipTitle, required, sx, renderOption, }: Props): JSX.Element;
|
25
26
|
//# sourceMappingURL=Autocomplete.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwC,OAAO,EAAa,YAAY,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,YAAY,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,uBAAuB,CAAC;AAC/B,OAAO,eAAe,CAAC;AAEvB,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC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|
33
34
|
const onChangeHandler = (event, value) => {
|
34
35
|
if (event) {
|
@@ -110,5 +111,7 @@ function Autocomplete(_ref) {
|
|
110
111
|
display: 'none'
|
111
112
|
}
|
112
113
|
}
|
113
|
-
}, optionalArgs
|
114
|
+
}, optionalArgs, {
|
115
|
+
renderOption: renderOption
|
116
|
+
}));
|
114
117
|
}
|