"use strict";

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var React = _interopRequireWildcard(require("react"));
var _ResizeDetect = require("./ResizeDetect");
var _styles = require("@material-ui/core/styles");
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
var styles = {
  test: {
    transition: 'all 0.3s',
    width: '20%',
    minWidth: 180,
    background: 'green',
    color: 'white',
    padding: '5%',
    height: 50,
    '&:hover': {
      width: '90%',
      height: 500
    }
  }
};
var RenderPropVersion = (0, _ResizeDetect.withResizeDetect)((0, _styles.withStyles)(styles, {
  name: 'ResizeDetect'
})(function (_ref) {
  var containerRef = _ref.containerRef,
    size = _ref.size,
    classes = _ref.classes;
  return /*#__PURE__*/React.createElement("div", {
    className: classes.test,
    ref: containerRef
  }, "Hover me to test! ", size.width, "x", size.height);
}));
var WrapperVersion = (0, _ResizeDetect.withResizeDetectWrapper)(function (_ref2) {
  var size = _ref2.size;
  return /*#__PURE__*/React.createElement("div", null, "Hover me to test! ", size.width, "x", size.height);
});

// eslint-disable-next-line no-unused-vars
var StyledWrapper = (0, _styles.withStyles)(styles)(function (_ref3) {
  var classes = _ref3.classes;
  return /*#__PURE__*/React.createElement(WrapperVersion, {
    className: classes.test
  });
});
var _default = exports["default"] = RenderPropVersion;