'use strict';

var createReactClass = require('create-react-class');
var _React = React,
    PropTypes = _React.PropTypes;


var stylesheet = {};

/**
 * Component for displaying a container that resembles the original CSS environment for different themes
 */

var ComponentWrapper = createReactClass({
  propTypes: {
    /**
     * Theme to display
     */
    theme: PropTypes.string
  },

  getDefaultProps: function getDefaultProps() {
    return {
      theme: 'damask'
    };
  },
  render: function render() {
    return React.createElement(
      'div',
      { className: stylesheet[this.props.theme] },
      React.createElement(
        'div',
        { className: stylesheet.container },
        this.props.children
      )
    );
  }
});

module.exports = ComponentWrapper;
ComponentWrapper.__docgenInfo = {
  'description': 'Component for displaying a container that resembles the original CSS environment for different themes',
  'props': {
    'theme': {
      'type': {
        'name': 'custom',
        'raw': 'PropTypes.string'
      },
      'required': false,
      'description': 'Theme to display',
      'defaultValue': {
        'value': '\'damask\'',
        'computed': false
      }
    }
  }
};

if (typeof STORYBOOK_REACT_CLASSES !== 'undefined') {
  STORYBOOK_REACT_CLASSES['test/fixtures/createReactClass/actual.js'] = {
    name: 'ComponentWrapper',
    docgenInfo: ComponentWrapper.__docgenInfo,
    path: 'test/fixtures/createReactClass/actual.js'
  };
}
'use strict';

var createReactClass = require('create-react-class');
var _React = React,
    PropTypes = _React.PropTypes;


var stylesheet = {};

/**
 * Component for displaying a container that resembles the original CSS environment for different themes
 */

var ComponentWrapper = createReactClass({
  displayName: 'ComponentWrapper',

  propTypes: {
    /**
     * Theme to display
     */
    theme: PropTypes.string
  },

  getDefaultProps: function getDefaultProps() {
    return {
      theme: 'damask'
    };
  },
  render: function render() {
    return React.createElement(
      'div',
      { className: stylesheet[this.props.theme] },
      React.createElement(
        'div',
        { className: stylesheet.container },
        this.props.children
      )
    );
  }
});

module.exports = ComponentWrapper;
ComponentWrapper.__docgenInfo = {
  'description': 'Component for displaying a container that resembles the original CSS environment for different themes',
  'props': {
    'theme': {
      'type': {
        'name': 'custom',
        'raw': 'PropTypes.string'
      },
      'required': false,
      'description': 'Theme to display',
      'defaultValue': {
        'value': '\'damask\'',
        'computed': false
      }
    }
  }
};

if (typeof STORYBOOK_REACT_CLASSES !== 'undefined') {
  STORYBOOK_REACT_CLASSES['test/fixtures/createReactClass/actual.js'] = {
    name: 'ComponentWrapper',
    docgenInfo: ComponentWrapper.__docgenInfo,
    path: 'test/fixtures/createReactClass/actual.js'
  };
}

fix old failing test