UNPKG

react-custom-properties

Version:

A React component for applying CSS Variables (Custom Properties)

42 lines (37 loc) 1.03 kB
(function (global, factory) { if (typeof define === "function" && define.amd) { define(['exports', 'warning'], factory); } else if (typeof exports !== "undefined") { factory(exports, require('warning')); } else { var mod = { exports: {} }; factory(mod.exports, global.warning); global.warning = mod.exports; } })(this, function (exports, _warning) { 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _warning2 = _interopRequireDefault(_warning); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * Wraps the 'warning' library and always forces the warning. * This is mainly for testing purposes so that we have * something to spy on. * * @param {string} message - what to print to the console * * @return {void} */ var warning = function warning(message) { return (0, _warning2.default)(true, message); }; exports.default = warning; });