1
1
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
2
'use strict';
3
3
var _extends = Object.assign || function (target) {
4
- for (var i = 1; i < arguments.length; i++) {
5
- var source = arguments[i];for (var key in source) {
4
+ for (var source, i = 1; i < arguments.length; i++) {
5
+ for ( var key in source = arguments[i], source) {
6
6
Object.prototype.hasOwnProperty.call(source, key) && (target[key] = source[key]);
7
7
}
8
8
}return target;
@@ -15,12 +15,12 @@ var _extends = Object.assign || function (target) {
15
15
return function (b, c, d) {
16
16
return _extends({}, d, { value: function value() {
17
17
var e = void 0,
18
- f = d.value.apply(function (j ) {
19
- return e = j .props, j ;
18
+ g = d.value.apply(function f(l ) {
19
+ return e = l .props, l ;
20
20
}(this), arguments),
21
- g = fillProps(a, e),
22
- h = insertRules(g ),
23
- i = _extends({}, e, { className: h });return _react2.default.cloneElement(f, i, f .props.children);
21
+ h = fillProps(a, e),
22
+ j = insertRules(h ),
23
+ k = _extends({}, e, { className: j });return _react2.default.cloneElement(g, k, g .props.children);
24
24
} });
25
25
};
26
26
},
@@ -32,7 +32,11 @@ var _extends = Object.assign || function (target) {
32
32
_iteratorError = void 0;try {
33
33
for (var _step, _iterator = d[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
34
34
var e = _step.value,
35
- f = e;f = f.replace('{this.props.', ''), f = f.substring(0, f.length - 1), f = f.trim(), a = a.replace(e, b[f]);
35
+ f = e,
36
+ g = void 0,
37
+ h = void 0;f = f.replace('{this.props.', ''), f = f.substring(0, f.length - 1), f = f.trim(), g = b, h = f.split('.');for (var j = 0; j < h.length; j++) {
38
+ g = g[h[j]];
39
+ }a = a.replace(e, g);
36
40
}
37
41
} catch (err) {
38
42
_didIteratorError = !0, _iteratorError = err;
@@ -51,7 +55,7 @@ var _extends = Object.assign || function (target) {
51
55
d = (0, _stylis2.default)('.' + c, a);return b.innerHTML += d, c;
52
56
},
53
57
getHash = function getHash() {
54
- var a = Math.random().toString(36).substring(22);return 'c' + a ;
58
+ var b = Math.random().toString(36).substring(22);return 'c' + b ;
55
59
},
56
60
getStyleElement = function getStyleElement() {
57
61
var a = document.querySelector('[title=css-constructor]');return a || (a = document.createElement('style'), a.setAttribute('title', 'css-constructor'), document.head.appendChild(a)), a;
@@ -79,7 +83,11 @@ var _hello2 = _interopRequireDefault(_hello);
79
83
80
84
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
81
85
82
- _reactDom2.default.render(_react2.default.createElement(_hello2.default, { color: 'papayawhip' }), document.getElementById('container'));
86
+ var color = {
87
+ sampleColor: 'papayawhip'
88
+ };
89
+
90
+ _reactDom2.default.render(_react2.default.createElement(_hello2.default, { color: color }), document.getElementById('container'));
83
91
84
92
},{"./hello":3,"react":180,"react-dom":29}],3:[function(require,module,exports){
85
93
'use strict';
@@ -95,7 +103,7 @@ var _dec, _desc, _value, _class;
95
103
//import css from 'css-constructor'; // production - use this!
96
104
97
105
98
- var _templateObject = _taggedTemplateLiteral(['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n '], ['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n ']);
106
+ var _templateObject = _taggedTemplateLiteral(['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color.sampleColor};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n '], ['\n font-size: 16px;\n text-align: center;\n\n /* Use props in your CSS */\n color: {this.props.color.sampleColor};\n\n /* Pseudo selectors */\n &:hover {\n color: #FFF;\n }\n\n /* Nested elements */\n img {\n border-radius: 50%;\n }\n #handle {\n margin-top: 20px;\n }\n\n /* Media queries */\n @media (max-width: 600px) {\n & {font-size: 18px;}\n }\n ']);
99
107
100
108
var _react = require('react');
101
109
@@ -739,15 +747,19 @@ module.exports = focusNode;
739
747
*
740
748
* The activeElement will be null only if the document or document body is not
741
749
* yet defined.
750
+ *
751
+ * @param {?DOMDocument} doc Defaults to current document.
752
+ * @return {?DOMElement}
742
753
*/
743
- function getActiveElement() /*?DOMElement*/{
744
- if (typeof document === 'undefined') {
754
+ function getActiveElement(doc) /*?DOMElement*/{
755
+ doc = doc || (typeof document !== 'undefined' ? document : undefined);
756
+ if (typeof doc === 'undefined') {
745
757
return null;
746
758
}
747
759
try {
748
- return document .activeElement || document .body;
760
+ return doc .activeElement || doc .body;
749
761
} catch (e) {
750
- return document .body;
762
+ return doc .body;
751
763
}
752
764
}
753
765
@@ -875,10 +887,10 @@ module.exports = getMarkupWrap;
875
887
*/
876
888
877
889
function getUnboundedScrollPosition(scrollable) {
878
- if (scrollable === window ) {
890
+ if (scrollable.Window && scrollable instanceof scrollable.Window ) {
879
891
return {
880
- x: window .pageXOffset || document.documentElement.scrollLeft,
881
- y: window .pageYOffset || document.documentElement.scrollTop
892
+ x: scrollable .pageXOffset || scrollable. document.documentElement.scrollLeft,
893
+ y: scrollable .pageYOffset || scrollable. document.documentElement.scrollTop
882
894
};
883
895
}
884
896
return {
@@ -985,12 +997,18 @@ module.exports = hyphenateStyleName;
985
997
* will remain to ensure logic does not differ in production.
986
998
*/
987
999
988
- function invariant(condition, format, a, b, c, d, e, f) {
989
- if (process.env.NODE_ENV !== 'production') {
1000
+ var validateFormat = function validateFormat(format) {};
1001
+
1002
+ if (process.env.NODE_ENV !== 'production') {
1003
+ validateFormat = function validateFormat(format) {
990
1004
if (format === undefined) {
991
1005
throw new Error('invariant requires an error message argument');
992
1006
}
993
- }
1007
+ };
1008
+ }
1009
+
1010
+ function invariant(condition, format, a, b, c, d, e, f) {
1011
+ validateFormat(format);
994
1012
995
1013
if (!condition) {
996
1014
var error;
@@ -1031,7 +1049,9 @@ module.exports = invariant;
1031
1049
* @return {boolean} Whether or not the object is a DOM node.
1032
1050
*/
1033
1051
function isNode(object) {
1034
- return !!(object && (typeof Node === 'function' ? object instanceof Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
1052
+ var doc = object ? object.ownerDocument || object : document;
1053
+ var defaultView = doc.defaultView || window;
1054
+ return !!(object && (typeof defaultView.Node === 'function' ? object instanceof defaultView.Node : typeof object === 'object' && typeof object.nodeType === 'number' && typeof object.nodeName === 'string'));
1035
1055
}
1036
1056
1037
1057
module.exports = isNode;
@@ -1285,8 +1305,15 @@ if (process.env.NODE_ENV !== 'production') {
1285
1305
module.exports = warning;
1286
1306
}).call(this,require('_process'))
1287
1307
},{"./emptyFunction":11,"_process":28}],27:[function(require,module,exports){
1308
+ /*
1309
+ object-assign
1310
+ (c) Sindre Sorhus
1311
+ @license MIT
1312
+ */
1313
+
1288
1314
'use strict';
1289
1315
/* eslint-disable no-unused-vars */
1316
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
1290
1317
var hasOwnProperty = Object.prototype.hasOwnProperty;
1291
1318
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
1292
1319
@@ -1307,7 +1334,7 @@ function shouldUseNative() {
1307
1334
// Detect buggy property enumeration order in older V8 versions.
1308
1335
1309
1336
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
1310
- var test1 = new String('abc'); // eslint-disable-line
1337
+ var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
1311
1338
test1[5] = 'de';
1312
1339
if (Object.getOwnPropertyNames(test1)[0] === '5') {
1313
1340
return false;
@@ -1336,7 +1363,7 @@ function shouldUseNative() {
1336
1363
}
1337
1364
1338
1365
return true;
1339
- } catch (e ) {
1366
+ } catch (err ) {
1340
1367
// We don't expect any of the above to throw, but better to be safe.
1341
1368
return false;
1342
1369
}
@@ -1356,8 +1383,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
1356
1383
}
1357
1384
}
1358
1385
1359
- if (Object. getOwnPropertySymbols) {
1360
- symbols = Object. getOwnPropertySymbols(from);
1386
+ if (getOwnPropertySymbols) {
1387
+ symbols = getOwnPropertySymbols(from);
1361
1388
for (var i = 0; i < symbols.length; i++) {
1362
1389
if (propIsEnumerable.call(from, symbols[i])) {
1363
1390
to[symbols[i]] = from[symbols[i]];
@@ -1540,6 +1567,10 @@ process.off = noop;
1540
1567
process.removeListener = noop;
1541
1568
process.removeAllListeners = noop;
1542
1569
process.emit = noop;
1570
+ process.prependListener = noop;
1571
+ process.prependOnceListener = noop;
1572
+
1573
+ process.listeners = function (name) { return [] }
1543
1574
1544
1575
process.binding = function (name) {
1545
1576
throw new Error('process.binding is not supported');
0 commit comments