Repository URL to install this package:
|
Version:
0.9.5 ▾
|
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const _styled_1 = require("./_styled");
/**
* @todo nowrap!!!
* @todo convert SelectWrap to be withComponent(clickBoundary)
*/
class SelectBoundary extends react_1.default.PureComponent {
render() {
const { onClickOutside, isDisabled, isVisible, className, children, } = this.props;
return (react_1.default.createElement(_styled_1.StyledClickBoundary
// @note - undefined means the prop does not get added
, { "aria-disabled": isDisabled, "aria-expanded": isVisible, className: className, onClickOutside: onClickOutside }, children));
}
}
exports.SelectBoundary = SelectBoundary;
exports.default = SelectBoundary;
//# sourceMappingURL=SelectBoundary.js.map