UNPKG

@arche-mc2/arche-controls

Version:

We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get

29 lines 940 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var _1 = require("./"); var PropTypes = require("prop-types"); var ThemeProvider = (function (_super) { tslib_1.__extends(ThemeProvider, _super); function ThemeProvider(props, context) { return _super.call(this, props, context) || this; } ; ThemeProvider.prototype.getChildContext = function () { return { theme: this.props.theme }; }; ; ThemeProvider.prototype.render = function () { return React.Children.only(this.props.children); }; ThemeProvider.childContextTypes = { theme: PropTypes.object, }; ThemeProvider.defaultProps = { theme: _1.default, }; return ThemeProvider; }(React.Component)); exports.ThemeProvider = ThemeProvider; //# sourceMappingURL=ThemeProvider.js.map