- Updated all component headers and documentation
- Changed navbar and footer branding
- Updated homepage hero badge
- Modified page title in index.html
- Simplified footer text to 'Built with ❤️'
- Consistent V2 capitalization across all references
21 lines
856 B
JavaScript
21 lines
856 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import { FOCUS_AUTO } from 'focus-lock/constants';
|
|
import { inlineProp } from './util';
|
|
var AutoFocusInside = function AutoFocusInside(_ref) {
|
|
var _ref$disabled = _ref.disabled,
|
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
children = _ref.children,
|
|
_ref$className = _ref.className,
|
|
className = _ref$className === void 0 ? undefined : _ref$className;
|
|
return /*#__PURE__*/React.createElement("div", _extends({}, inlineProp(FOCUS_AUTO, !disabled), {
|
|
className: className
|
|
}), children);
|
|
};
|
|
AutoFocusInside.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
children: PropTypes.node.isRequired,
|
|
disabled: PropTypes.bool,
|
|
className: PropTypes.string
|
|
} : {};
|
|
export default AutoFocusInside; |