@majoo-ui/react 1.61.16-rc.3 → 1.61.16-rc.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.
|
@@ -33,6 +33,7 @@ export interface InputResourceListProps {
|
|
|
33
33
|
renderSelectAll?: JSX.Element;
|
|
34
34
|
customHeader?: JSX.Element;
|
|
35
35
|
expandable?: boolean;
|
|
36
|
+
searchable?: boolean;
|
|
36
37
|
}
|
|
37
|
-
declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, customHeader, expandable,
|
|
38
|
+
declare function InputResourceList({ data: dataProp, disabled, onChange, searchPlaceholder, counterFooter, counterFooterText, isLoading, disabledItems, emptyDataMessage, value, fetchData, onQueryChange, css, wrapperCss, defaultSort, title, hideSelectAll, renderSelectAll, customHeader, expandable, searchable, }: InputResourceListProps): JSX.Element;
|
|
38
39
|
export default InputResourceList;
|
package/index.esm.js
CHANGED
|
@@ -15865,9 +15865,10 @@ function InputResourceList({
|
|
|
15865
15865
|
defaultSort,
|
|
15866
15866
|
title,
|
|
15867
15867
|
hideSelectAll,
|
|
15868
|
+
renderSelectAll,
|
|
15868
15869
|
customHeader,
|
|
15869
15870
|
expandable,
|
|
15870
|
-
|
|
15871
|
+
searchable
|
|
15871
15872
|
}) {
|
|
15872
15873
|
const {
|
|
15873
15874
|
t
|
|
@@ -16067,7 +16068,7 @@ function InputResourceList({
|
|
|
16067
16068
|
position: 'relative'
|
|
16068
16069
|
}, css)
|
|
16069
16070
|
}, {
|
|
16070
|
-
children: [customHeader, onQueryChange && jsx(InputSearchbox, Object.assign({
|
|
16071
|
+
children: [customHeader, (searchable || !!onQueryChange) && jsx(InputSearchbox, Object.assign({
|
|
16071
16072
|
size: "lg",
|
|
16072
16073
|
placeholder: searchPlaceholder || t('placeholder.search', 'Cari ...'),
|
|
16073
16074
|
onChange: debounce(query => {
|