Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/ui / dist / components / molecules / SelectDropDown / Select / SelectBoundary.js
Size: Mime:
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});

const tslib_1 = require("tslib");

const react_1 = tslib_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,
      "data-qa": this.props['data-qa']
    }, children);
  }

}

exports.SelectBoundary = SelectBoundary;
exports.default = SelectBoundary; //# sourceMappingURL=SelectBoundary.js.map