UNPKG

jobiqo-cl

Version:

[![CircleCI](https://circleci.com/gh/jobiqo/jobiqo-cl.svg?style=svg&circle-token=5a24efa5b8bbc4879276123e77d0d3f35ca7144c)](https://circleci.com/gh/jobiqo/jobiqo-cl)

30 lines (24 loc) 958 B
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;