wix-style-react
Version:
wix-style-react
44 lines (31 loc) • 3.69 kB
JavaScript
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _class, _temp;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './ScrollBar.scss';
var bigContent = '\n Lorem ipsum dolor sit amet, consectetur adipiscing elit,\n sed do eiusmod tempor incididunt ut labore et dolore\n magna aliqua.\n Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris\n nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.\n Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia\n deserunt mollit anim id est laborum.\n Id diam maecenas ultricies mi eget mauris.\n Massa enim nec dui nunc mattis.\n Posuere lorem ipsum dolor sit amet consectetur adipiscing.\n At lectus urna duis convallis. Nunc sed blandit libero volutpat\n sed cras ornare arcu.\n Tristique sollicitudin nibh sit amet commodo nulla.\n Metus dictum at tempor commodo ullamcorper a.\n Viverra maecenas accumsan lacus vel facilisis volutpat est.\n Tellus molestie nunc non blandit massa enim nec dui.\n Accumsan in nisl nisi scelerisque eu ultrices.\n Risus in hendrerit gravida rutrum quisque.\n Sed lectus vestibulum mattis ullamcorper.\n Facilisis leo vel fringilla est ullamcorper.\n Odio euismod lacinia at quis. Est lorem ipsum dolor sit amet consectetur.\n Sed arcu non odio euismod lacinia at quis risus sed.\n Massa tempor nec feugiat nisl.\n Imperdiet nulla malesuada pellentesque elit eget. Tellus at urna condimentum mattis.\n';
var ExampleStandard = (_temp = _class = function (_Component) {
_inherits(ExampleStandard, _Component);
function ExampleStandard() {
_classCallCheck(this, ExampleStandard);
return _possibleConstructorReturn(this, (ExampleStandard.__proto__ || Object.getPrototypeOf(ExampleStandard)).apply(this, arguments));
}
_createClass(ExampleStandard, [{
key: 'render',
value: function render() {
return React.createElement(
'div',
{ className: styles.root },
bigContent
);
}
}]);
return ExampleStandard;
}(Component), _class.propTypes = {
onChange: PropTypes.func,
theme: PropTypes.string
}, _temp);
export default ExampleStandard;