@talend/react-components
Version:
Set of react components.
31 lines • 942 B
JavaScript
import { getTheme } from '../theme';
import ResourceList from '../ResourceList';
import { SORT_OPTIONS, ORDERS, STATE_FILTERS } from '../ResourceList/Toolbar';
import cssModule from './ResourcePicker.module.scss';
import ResourceListPropTypes from '../ResourceList/ResourceList.propTypes';
import { jsx as _jsx } from "react/jsx-runtime";
const theme = getTheme(cssModule);
function ResourcePicker(props) {
return /*#__PURE__*/_jsx("div", {
className: theme('tc-resource-picker'),
children: /*#__PURE__*/_jsx(ResourceList, {
...props,
rowHeight: 60,
className: theme('tc-resource-picker-list'),
toolbar: {
...props.toolbar,
nameFilerAsInput: true
}
})
});
}
ResourcePicker.propTypes = {
...ResourceListPropTypes
};
ResourcePicker.TOOLBAR_OPTIONS = {
ORDERS,
SORT_OPTIONS,
STATE_FILTERS
};
export default ResourcePicker;
//# sourceMappingURL=ResourcePicker.component.js.map