jobiqo-cl
Version:
[](https://circleci.com/gh/jobiqo/jobiqo-cl)
30 lines (24 loc) • 958 B
JavaScript
import React__default from 'react';
import _objectWithoutPropertiesLoose from '../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js';
import _extends from '../../../@babel/runtime/helpers/esm/extends.js';
import FocusLockUI from './Lock.js';
import FocusTrap from './Trap.js';
/* that would be a BREAKING CHANGE!
// delaying sidecar execution till the first usage
const RequireSideCar = (props) => {
// eslint-disable-next-line global-require
const SideCar = require('./Trap').default;
return <SideCar {...props} />;
};
*/
var FocusLockCombination = React__default.forwardRef(function (props, ref) {
return React__default.createElement(FocusLockUI, _extends({
sideCar: FocusTrap,
ref: ref
}, props));
});
var _ref = FocusLockUI.propTypes || {},
sideCar = _ref.sideCar,
propTypes = _objectWithoutPropertiesLoose(_ref, ["sideCar"]);
FocusLockCombination.propTypes = propTypes;
export default FocusLockCombination;