How to use the babel-runtime/helpers/possibleConstructorReturn function in babel-runtime

To help you get started, we’ve selected a few babel-runtime examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github rakannimer / react-orchestra / web / es / components / NoteFactory.js View on Github external
function NoteFactory() {
    _classCallCheck(this, NoteFactory);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }
github axa-ch / patterns-library / lib / components / a-vertical-rhythm / index.js View on Github external
function AXAVerticalRhythm() {
    _classCallCheck(this, AXAVerticalRhythm);

    return _possibleConstructorReturn(this, (AXAVerticalRhythm.__proto__ || _Object$getPrototypeOf(AXAVerticalRhythm)).call(this, { styles: styles, template: template }));
  }
github axa-ch / patterns-library / lib / components / m-header-burger / index.js View on Github external
function AXAHeaderBurger() {
    _classCallCheck(this, AXAHeaderBurger);

    var _this = _possibleConstructorReturn(this, (AXAHeaderBurger.__proto__ || _Object$getPrototypeOf(AXAHeaderBurger)).call(this, { styles: styles, template: template }));

    _this.consumeContext('axa-header');
    return _this;
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-slider / es / createSliderWithTooltip.js View on Github external
function ComponentWrapper(props) {
      _classCallCheck(this, ComponentWrapper);

      var _this = _possibleConstructorReturn(this, (ComponentWrapper.__proto__ || Object.getPrototypeOf(ComponentWrapper)).call(this, props));

      _this.handleTooltipVisibleChange = function (index, visible) {
        _this.setState(function (prevState) {
          return {
            visibles: _extends({}, prevState.visibles, _defineProperty({}, index, visible))
          };
        });
      };

      _this.handleWithTooltip = function (_ref) {
        var value = _ref.value,
            dragging = _ref.dragging,
            index = _ref.index,
            disabled = _ref.disabled,
            restProps = _objectWithoutProperties(_ref, ['value', 'dragging', 'index', 'disabled']);
github forestturner / PokerHandRangeCalc / node_modules / react-bootstrap / es / ResponsiveEmbed.js View on Github external
function ResponsiveEmbed() {
    _classCallCheck(this, ResponsiveEmbed);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }
github TeamScheire / bicycleLight / SmartLight / app / platforms / android / app / src / main / assets / www / lib / OnsenUI / esm / elements / ons-alert-dialog / animator.js View on Github external
function IOSAlertDialogAnimator() {
    var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
        _ref3$timing = _ref3.timing,
        timing = _ref3$timing === undefined ? 'cubic-bezier(.1, .7, .4, 1)' : _ref3$timing,
        _ref3$duration = _ref3.duration,
        duration = _ref3$duration === undefined ? 0.2 : _ref3$duration,
        _ref3$delay = _ref3.delay,
        delay = _ref3$delay === undefined ? 0 : _ref3$delay;

    _classCallCheck(this, IOSAlertDialogAnimator);

    return _possibleConstructorReturn(this, (IOSAlertDialogAnimator.__proto__ || _Object$getPrototypeOf(IOSAlertDialogAnimator)).call(this, { duration: duration, timing: timing, delay: delay }));
  }
github forestturner / PokerHandRangeCalc / node_modules / react-bootstrap / es / Table.js View on Github external
function Table() {
    _classCallCheck(this, Table);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }
github godaner / vm-engine / vm-backend / src / main / resources / static / node_modules / rc-time-picker / es / Select.js View on Github external
function Select() {
    var _ref;

    var _temp, _this, _ret;

    _classCallCheck(this, Select);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Select.__proto__ || Object.getPrototypeOf(Select)).call.apply(_ref, [this].concat(args))), _this), _this.state = {
      active: false
    }, _this.onSelect = function (value) {
      var _this$props = _this.props,
          onSelect = _this$props.onSelect,
          type = _this$props.type;

      onSelect(type, value);
    }, _this.handleMouseEnter = function (e) {
      _this.setState({ active: true });
      _this.props.onMouseEnter(e);
    }, _this.handleMouseLeave = function () {
      _this.setState({ active: false });
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }
github forestturner / PokerHandRangeCalc / node_modules / react-bootstrap / es / ControlLabel.js View on Github external
function ControlLabel() {
    _classCallCheck(this, ControlLabel);

    return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
  }
github ziaochina / mk-demo / node_modules / antd / es / input / TextArea.js View on Github external
function TextArea() {
        _classCallCheck(this, TextArea);

        var _this = _possibleConstructorReturn(this, (TextArea.__proto__ || Object.getPrototypeOf(TextArea)).apply(this, arguments));

        _this.state = {
            textareaStyles: null
        };
        _this.resizeTextarea = function () {
            var autosize = _this.props.autosize;

            if (!autosize || !_this.textAreaRef) {
                return;
            }
            var minRows = autosize ? autosize.minRows : null;
            var maxRows = autosize ? autosize.maxRows : null;
            var textareaStyles = calculateNodeHeight(_this.textAreaRef, false, minRows, maxRows);
            _this.setState({ textareaStyles: textareaStyles });
        };
        _this.handleTextareaChange = function (e) {