@ntbjs/react-components 2.0.0-rc.6 → 2.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/_virtual/index5.js +7 -0
- package/cjs/_virtual/react-is.development2.js +7 -0
- package/cjs/_virtual/react-is.production.min2.js +7 -0
- package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +54 -12
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +10 -7
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +20 -0
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/cjs/node_modules/{react-is → hoist-non-react-statics/node_modules/react-is}/cjs/react-is.development.js +39 -81
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +13 -0
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/cjs/node_modules/prop-types/index.js +1 -1
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +186 -0
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/{react-is → prop-types/node_modules/react-is}/index.js +3 -3
- package/cjs/node_modules/react-select/dist/Select-aab027f3.esm.js +12 -12
- package/cjs/node_modules/react-select/dist/index-641ee5b8.esm.js +47 -47
- package/cjs/node_modules/use-isomorphic-layout-effect/dist/{use-isomorphic-layout-effect.browser.esm.js → use-isomorphic-layout-effect.esm.js} +3 -1
- package/esm/_virtual/index5.js +3 -0
- package/esm/_virtual/react-is.development2.js +3 -0
- package/esm/_virtual/react-is.production.min2.js +3 -0
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js} +61 -3
- package/esm/node_modules/@emotion/react/dist/{emotion-element-f0de968e.browser.esm.js → emotion-element-d59e098f.esm.js} +47 -5
- package/esm/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.browser.esm.js → emotion-use-insertion-effect-with-fallbacks.esm.js} +3 -1
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js} +12 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +16 -0
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/esm/node_modules/{react-is → hoist-non-react-statics/node_modules/react-is}/cjs/react-is.development.js +40 -82
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/esm/node_modules/prop-types/index.js +1 -1
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +181 -0
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +11 -0
- package/esm/node_modules/react-select/dist/Select-aab027f3.esm.js +1 -1
- package/esm/node_modules/react-select/dist/index-641ee5b8.esm.js +2 -2
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +8 -0
- package/package.json +2 -2
- package/cjs/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -6
package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.browser.esm.js → emotion-cache.esm.js}
RENAMED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var emotionSheet_esm = require('../../sheet/dist/emotion-sheet.esm.js');
|
|
6
|
+
var emotionWeakMemoize_esm = require('../../weak-memoize/dist/emotion-weak-memoize.esm.js');
|
|
7
|
+
var emotionMemoize_esm = require('../../memoize/dist/emotion-memoize.esm.js');
|
|
6
8
|
var Middleware = require('../../../stylis/src/Middleware.js');
|
|
7
9
|
var Enum = require('../../../stylis/src/Enum.js');
|
|
8
10
|
var Utility = require('../../../stylis/src/Utility.js');
|
|
@@ -10,6 +12,8 @@ var Serializer = require('../../../stylis/src/Serializer.js');
|
|
|
10
12
|
var Tokenizer = require('../../../stylis/src/Tokenizer.js');
|
|
11
13
|
var Parser = require('../../../stylis/src/Parser.js');
|
|
12
14
|
|
|
15
|
+
var isBrowser = typeof document !== 'undefined';
|
|
16
|
+
|
|
13
17
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
14
18
|
var previous = 0;
|
|
15
19
|
var character = 0;
|
|
@@ -347,12 +351,17 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
347
351
|
}
|
|
348
352
|
};
|
|
349
353
|
|
|
354
|
+
var getServerStylisCache = isBrowser ? undefined : emotionWeakMemoize_esm["default"](function () {
|
|
355
|
+
return emotionMemoize_esm["default"](function () {
|
|
356
|
+
return {};
|
|
357
|
+
});
|
|
358
|
+
});
|
|
350
359
|
var defaultStylisPlugins = [prefixer];
|
|
351
360
|
|
|
352
361
|
var createCache = function createCache(options) {
|
|
353
362
|
var key = options.key;
|
|
354
363
|
|
|
355
|
-
if (key === 'css') {
|
|
364
|
+
if (isBrowser && key === 'css') {
|
|
356
365
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
357
366
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
358
367
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
@@ -382,7 +391,7 @@ var createCache = function createCache(options) {
|
|
|
382
391
|
var container;
|
|
383
392
|
var nodesToHydrate = [];
|
|
384
393
|
|
|
385
|
-
{
|
|
394
|
+
if (isBrowser) {
|
|
386
395
|
container = options.container || document.head;
|
|
387
396
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
388
397
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -401,7 +410,7 @@ var createCache = function createCache(options) {
|
|
|
401
410
|
|
|
402
411
|
var omnipresentPlugins = [compat, removeLabel];
|
|
403
412
|
|
|
404
|
-
{
|
|
413
|
+
if (!getServerStylisCache) {
|
|
405
414
|
var currentSheet;
|
|
406
415
|
var finalizingPlugins = [Serializer.stringify, Middleware.rulesheet(function (rule) {
|
|
407
416
|
currentSheet.insert(rule);
|
|
@@ -421,6 +430,55 @@ var createCache = function createCache(options) {
|
|
|
421
430
|
cache.inserted[serialized.name] = true;
|
|
422
431
|
}
|
|
423
432
|
};
|
|
433
|
+
} else {
|
|
434
|
+
var _finalizingPlugins = [Serializer.stringify];
|
|
435
|
+
|
|
436
|
+
var _serializer = Middleware.middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
437
|
+
|
|
438
|
+
var _stylis = function _stylis(styles) {
|
|
439
|
+
return Serializer.serialize(Parser.compile(styles), _serializer);
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
443
|
+
|
|
444
|
+
var getRules = function getRules(selector, serialized) {
|
|
445
|
+
var name = serialized.name;
|
|
446
|
+
|
|
447
|
+
if (serverStylisCache[name] === undefined) {
|
|
448
|
+
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
return serverStylisCache[name];
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
_insert = function _insert(selector, serialized, sheet, shouldCache) {
|
|
455
|
+
var name = serialized.name;
|
|
456
|
+
var rules = getRules(selector, serialized);
|
|
457
|
+
|
|
458
|
+
if (cache.compat === undefined) {
|
|
459
|
+
// in regular mode, we don't set the styles on the inserted cache
|
|
460
|
+
// since we don't need to and that would be wasting memory
|
|
461
|
+
// we return them so that they are rendered in a style tag
|
|
462
|
+
if (shouldCache) {
|
|
463
|
+
cache.inserted[name] = true;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
return rules;
|
|
467
|
+
} else {
|
|
468
|
+
// in compat mode, we put the styles on the inserted cache so
|
|
469
|
+
// that emotion-server can pull out the styles
|
|
470
|
+
// except when we don't want to cache it which was in Global but now
|
|
471
|
+
// is nowhere but we don't want to do a major right now
|
|
472
|
+
// and just in case we're going to leave the case here
|
|
473
|
+
// it's also not affecting client side bundle size
|
|
474
|
+
// so it's really not a big deal
|
|
475
|
+
if (shouldCache) {
|
|
476
|
+
cache.inserted[name] = rules;
|
|
477
|
+
} else {
|
|
478
|
+
return rules;
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
};
|
|
424
482
|
}
|
|
425
483
|
|
|
426
484
|
var cache = {
|
|
@@ -3,27 +3,29 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../../react/index.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var emotionCache_esm = require('../../cache/dist/emotion-cache.esm.js');
|
|
7
|
+
var emotionUtils_esm = require('../../utils/dist/emotion-utils.esm.js');
|
|
8
8
|
var emotionSerialize_esm = require('../../serialize/dist/emotion-serialize.esm.js');
|
|
9
|
-
var
|
|
9
|
+
var emotionUseInsertionEffectWithFallbacks_esm = require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js');
|
|
10
10
|
var index = require('../../../../_virtual/index.js');
|
|
11
11
|
|
|
12
12
|
var isDevelopment = false;
|
|
13
13
|
|
|
14
|
+
var isBrowser = typeof document !== 'undefined';
|
|
15
|
+
|
|
14
16
|
var EmotionCacheContext = /* #__PURE__ */index.react.exports.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
15
17
|
// because this module is primarily intended for the browser and node
|
|
16
18
|
// but it's also required in react native and similar environments sometimes
|
|
17
19
|
// and we could have a special build just for that
|
|
18
20
|
// but this is much easier and the native packages
|
|
19
21
|
// might use a different theme context in the future anyway
|
|
20
|
-
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */
|
|
22
|
+
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */emotionCache_esm["default"]({
|
|
21
23
|
key: 'css'
|
|
22
24
|
}) : null);
|
|
23
25
|
|
|
24
26
|
EmotionCacheContext.Provider;
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
exports.w = function withEmotionCache(func) {
|
|
27
29
|
return /*#__PURE__*/index.react.exports.forwardRef(function (props, ref) {
|
|
28
30
|
// the cache will never be null in the browser
|
|
29
31
|
var cache = index.react.exports.useContext(EmotionCacheContext);
|
|
@@ -31,6 +33,30 @@ var withEmotionCache = function withEmotionCache(func) {
|
|
|
31
33
|
});
|
|
32
34
|
};
|
|
33
35
|
|
|
36
|
+
if (!isBrowser) {
|
|
37
|
+
exports.w = function withEmotionCache(func) {
|
|
38
|
+
return function (props) {
|
|
39
|
+
var cache = index.react.exports.useContext(EmotionCacheContext);
|
|
40
|
+
|
|
41
|
+
if (cache === null) {
|
|
42
|
+
// yes, we're potentially creating this on every render
|
|
43
|
+
// it doesn't actually matter though since it's only on the server
|
|
44
|
+
// so there will only every be a single render
|
|
45
|
+
// that could change in the future because of suspense and etc. but for now,
|
|
46
|
+
// this works and i don't want to optimise for a future thing that we aren't sure about
|
|
47
|
+
cache = emotionCache_esm["default"]({
|
|
48
|
+
key: 'css'
|
|
49
|
+
});
|
|
50
|
+
return /*#__PURE__*/index.react.exports.createElement(EmotionCacheContext.Provider, {
|
|
51
|
+
value: cache
|
|
52
|
+
}, func(props, cache));
|
|
53
|
+
} else {
|
|
54
|
+
return func(props, cache);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
34
60
|
var ThemeContext = /* #__PURE__ */index.react.exports.createContext({});
|
|
35
61
|
|
|
36
62
|
var hasOwn = {}.hasOwnProperty;
|
|
@@ -55,15 +81,31 @@ var Insertion = function Insertion(_ref) {
|
|
|
55
81
|
var cache = _ref.cache,
|
|
56
82
|
serialized = _ref.serialized,
|
|
57
83
|
isStringTag = _ref.isStringTag;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return
|
|
84
|
+
emotionUtils_esm.registerStyles(cache, serialized, isStringTag);
|
|
85
|
+
var rules = emotionUseInsertionEffectWithFallbacks_esm.useInsertionEffectAlwaysWithSyncFallback(function () {
|
|
86
|
+
return emotionUtils_esm.insertStyles(cache, serialized, isStringTag);
|
|
61
87
|
});
|
|
62
88
|
|
|
89
|
+
if (!isBrowser && rules !== undefined) {
|
|
90
|
+
var _ref2;
|
|
91
|
+
|
|
92
|
+
var serializedNames = serialized.name;
|
|
93
|
+
var next = serialized.next;
|
|
94
|
+
|
|
95
|
+
while (next !== undefined) {
|
|
96
|
+
serializedNames += ' ' + next.name;
|
|
97
|
+
next = next.next;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return /*#__PURE__*/index.react.exports.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
101
|
+
__html: rules
|
|
102
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
103
|
+
}
|
|
104
|
+
|
|
63
105
|
return null;
|
|
64
106
|
};
|
|
65
107
|
|
|
66
|
-
var Emotion = /* #__PURE__ */
|
|
108
|
+
var Emotion = /* #__PURE__ */exports.w(function (props, cache, ref) {
|
|
67
109
|
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
68
110
|
// not passing the registered cache to serializeStyles because it would
|
|
69
111
|
// make certain babel optimisations not possible
|
|
@@ -77,7 +119,7 @@ var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
|
77
119
|
var className = '';
|
|
78
120
|
|
|
79
121
|
if (typeof props.className === 'string') {
|
|
80
|
-
className =
|
|
122
|
+
className = emotionUtils_esm.getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
81
123
|
} else if (props.className != null) {
|
|
82
124
|
className = props.className + " ";
|
|
83
125
|
}
|
|
@@ -110,7 +152,7 @@ var Emotion$1 = Emotion;
|
|
|
110
152
|
|
|
111
153
|
exports.E = Emotion$1;
|
|
112
154
|
exports.T = ThemeContext;
|
|
155
|
+
exports.a = isDevelopment;
|
|
113
156
|
exports.c = createEmotionProps;
|
|
114
157
|
exports.h = hasOwn;
|
|
115
|
-
exports.i =
|
|
116
|
-
exports.w = withEmotionCache;
|
|
158
|
+
exports.i = isBrowser;
|
package/cjs/node_modules/@emotion/react/dist/{emotion-react.browser.esm.js → emotion-react.esm.js}
RENAMED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var emotionElementD59e098f_esm = require('./emotion-element-d59e098f.esm.js');
|
|
6
6
|
require('../../../react/index.js');
|
|
7
|
-
require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.
|
|
7
|
+
require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js');
|
|
8
8
|
var emotionSerialize_esm = require('../../serialize/dist/emotion-serialize.esm.js');
|
|
9
9
|
require('../../../hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js');
|
|
10
10
|
var index = require('../../../../_virtual/index.js');
|
|
@@ -13,14 +13,14 @@ exports.jsx = function jsx(type, props) {
|
|
|
13
13
|
// eslint-disable-next-line prefer-rest-params
|
|
14
14
|
var args = arguments;
|
|
15
15
|
|
|
16
|
-
if (props == null || !
|
|
16
|
+
if (props == null || !emotionElementD59e098f_esm.h.call(props, 'css')) {
|
|
17
17
|
return index.react.exports.createElement.apply(undefined, args);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
var argsLength = args.length;
|
|
21
21
|
var createElementArgArray = new Array(argsLength);
|
|
22
|
-
createElementArgArray[0] =
|
|
23
|
-
createElementArgArray[1] =
|
|
22
|
+
createElementArgArray[0] = emotionElementD59e098f_esm.E;
|
|
23
|
+
createElementArgArray[1] = emotionElementD59e098f_esm.c(type, props);
|
|
24
24
|
|
|
25
25
|
for (var i = 2; i < argsLength; i++) {
|
|
26
26
|
createElementArgArray[i] = args[i];
|
|
@@ -56,8 +56,11 @@ function keyframes() {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
exports.ThemeContext =
|
|
60
|
-
exports
|
|
59
|
+
exports.ThemeContext = emotionElementD59e098f_esm.T;
|
|
60
|
+
Object.defineProperty(exports, 'withEmotionCache', {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function () { return emotionElementD59e098f_esm.w; }
|
|
63
|
+
});
|
|
61
64
|
exports.createElement = exports.jsx;
|
|
62
65
|
exports.css = css;
|
|
63
66
|
exports.keyframes = keyframes;
|
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var index = require('../../../react/index.js');
|
|
6
6
|
|
|
7
|
+
var isBrowser = typeof document !== 'undefined';
|
|
8
|
+
|
|
7
9
|
var syncFallback = function syncFallback(create) {
|
|
8
10
|
return create();
|
|
9
11
|
};
|
|
10
12
|
|
|
11
13
|
var useInsertionEffect = index['useInsertion' + 'Effect'] ? index['useInsertion' + 'Effect'] : false;
|
|
12
|
-
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
|
14
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser ? syncFallback : useInsertionEffect || syncFallback;
|
|
13
15
|
|
|
14
16
|
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback;
|
package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.browser.esm.js → emotion-utils.esm.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var isBrowser =
|
|
5
|
+
var isBrowser = typeof document !== 'undefined';
|
|
6
6
|
|
|
7
7
|
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
8
8
|
var rawClassName = '';
|
|
@@ -27,7 +27,7 @@ var registerStyles = function registerStyles(cache, serialized, isStringTag) {
|
|
|
27
27
|
// in node since emotion-server relies on whether a style is in
|
|
28
28
|
// the registered cache to know whether a style is global or not
|
|
29
29
|
// also, note that this check will be dead code eliminated in the browser
|
|
30
|
-
isBrowser === false ) && cache.registered[className] === undefined) {
|
|
30
|
+
isBrowser === false && cache.compat !== undefined) && cache.registered[className] === undefined) {
|
|
31
31
|
cache.registered[className] = serialized.styles;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -36,13 +36,22 @@ var insertStyles = function insertStyles(cache, serialized, isStringTag) {
|
|
|
36
36
|
var className = cache.key + "-" + serialized.name;
|
|
37
37
|
|
|
38
38
|
if (cache.inserted[serialized.name] === undefined) {
|
|
39
|
+
var stylesForSSR = '';
|
|
39
40
|
var current = serialized;
|
|
40
41
|
|
|
41
42
|
do {
|
|
42
|
-
cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
43
|
+
var maybeStyles = cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
44
|
+
|
|
45
|
+
if (!isBrowser && maybeStyles !== undefined) {
|
|
46
|
+
stylesForSSR += maybeStyles;
|
|
47
|
+
}
|
|
43
48
|
|
|
44
49
|
current = current.next;
|
|
45
50
|
} while (current !== undefined);
|
|
51
|
+
|
|
52
|
+
if (!isBrowser && stylesForSSR.length !== 0) {
|
|
53
|
+
return stylesForSSR;
|
|
54
|
+
}
|
|
46
55
|
}
|
|
47
56
|
};
|
|
48
57
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var weakMemoize = function weakMemoize(func) {
|
|
6
|
+
var cache = new WeakMap();
|
|
7
|
+
return function (arg) {
|
|
8
|
+
if (cache.has(arg)) {
|
|
9
|
+
// Use non-null assertion because we just checked that the cache `has` it
|
|
10
|
+
// This allows us to remove `undefined` from the return value
|
|
11
|
+
return cache.get(arg);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var ret = func(arg);
|
|
15
|
+
cache.set(arg, ret);
|
|
16
|
+
return ret;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
exports["default"] = weakMemoize;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
4
|
-
var index = require('../../../_virtual/
|
|
3
|
+
require('../node_modules/react-is/index.js');
|
|
4
|
+
var index = require('../../../_virtual/index5.js');
|
|
5
5
|
|
|
6
6
|
var reactIs = index.reactIs.exports;
|
|
7
7
|
var FORWARD_REF_STATICS = {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var reactIs_development = require('
|
|
5
|
+
var reactIs_development = require('../../../../../_virtual/react-is.development2.js');
|
|
6
6
|
|
|
7
|
-
/** @license React
|
|
7
|
+
/** @license React v16.13.1
|
|
8
8
|
* react-is.development.js
|
|
9
9
|
*
|
|
10
10
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -13,77 +13,38 @@ var reactIs_development = require('../../../_virtual/react-is.development.js');
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
|
|
16
18
|
if (process.env.NODE_ENV !== "production") {
|
|
17
19
|
(function() {
|
|
18
20
|
|
|
19
|
-
// ATTENTION
|
|
20
|
-
// When adding new symbols to this file,
|
|
21
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
22
21
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
23
22
|
// nor polyfill, then a plain number is used for performance.
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
var
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
REACT_PORTAL_TYPE = symbolFor('react.portal');
|
|
46
|
-
REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
|
|
47
|
-
REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
|
|
48
|
-
REACT_PROFILER_TYPE = symbolFor('react.profiler');
|
|
49
|
-
REACT_PROVIDER_TYPE = symbolFor('react.provider');
|
|
50
|
-
REACT_CONTEXT_TYPE = symbolFor('react.context');
|
|
51
|
-
REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
|
|
52
|
-
REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
|
|
53
|
-
REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
|
|
54
|
-
REACT_MEMO_TYPE = symbolFor('react.memo');
|
|
55
|
-
REACT_LAZY_TYPE = symbolFor('react.lazy');
|
|
56
|
-
REACT_BLOCK_TYPE = symbolFor('react.block');
|
|
57
|
-
REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
|
|
58
|
-
REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
|
|
59
|
-
symbolFor('react.scope');
|
|
60
|
-
symbolFor('react.opaque.id');
|
|
61
|
-
REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
|
|
62
|
-
symbolFor('react.offscreen');
|
|
63
|
-
REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
|
|
67
|
-
|
|
68
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
23
|
+
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
24
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
|
|
25
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
|
|
26
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
|
|
27
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
|
|
28
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
29
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
30
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
|
|
31
|
+
// (unstable) APIs that have been removed. Can we remove the symbols?
|
|
32
|
+
|
|
33
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
|
|
34
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
35
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
36
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
37
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
38
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
39
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
40
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
41
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
42
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
43
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
69
44
|
|
|
70
45
|
function isValidElementType(type) {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
|
|
77
|
-
return true;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (typeof type === 'object' && type !== null) {
|
|
81
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
return false;
|
|
46
|
+
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
47
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
87
48
|
}
|
|
88
49
|
|
|
89
50
|
function typeOf(object) {
|
|
@@ -95,11 +56,12 @@ function typeOf(object) {
|
|
|
95
56
|
var type = object.type;
|
|
96
57
|
|
|
97
58
|
switch (type) {
|
|
59
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
60
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
98
61
|
case REACT_FRAGMENT_TYPE:
|
|
99
62
|
case REACT_PROFILER_TYPE:
|
|
100
63
|
case REACT_STRICT_MODE_TYPE:
|
|
101
64
|
case REACT_SUSPENSE_TYPE:
|
|
102
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
103
65
|
return type;
|
|
104
66
|
|
|
105
67
|
default:
|
|
@@ -125,7 +87,10 @@ function typeOf(object) {
|
|
|
125
87
|
}
|
|
126
88
|
|
|
127
89
|
return undefined;
|
|
128
|
-
}
|
|
90
|
+
} // AsyncMode is deprecated along with isAsyncMode
|
|
91
|
+
|
|
92
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
93
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
129
94
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
130
95
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
131
96
|
var Element = REACT_ELEMENT_TYPE;
|
|
@@ -137,30 +102,21 @@ var Portal = REACT_PORTAL_TYPE;
|
|
|
137
102
|
var Profiler = REACT_PROFILER_TYPE;
|
|
138
103
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
139
104
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
140
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
141
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
105
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
|
|
142
106
|
|
|
143
107
|
function isAsyncMode(object) {
|
|
144
108
|
{
|
|
145
109
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
146
110
|
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
147
111
|
|
|
148
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React
|
|
112
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
149
113
|
}
|
|
150
114
|
}
|
|
151
115
|
|
|
152
|
-
return
|
|
116
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
153
117
|
}
|
|
154
118
|
function isConcurrentMode(object) {
|
|
155
|
-
|
|
156
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
157
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
158
|
-
|
|
159
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
return false;
|
|
119
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
164
120
|
}
|
|
165
121
|
function isContextConsumer(object) {
|
|
166
122
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
@@ -196,6 +152,8 @@ function isSuspense(object) {
|
|
|
196
152
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
197
153
|
}
|
|
198
154
|
|
|
155
|
+
reactIs_development.__exports.AsyncMode = AsyncMode;
|
|
156
|
+
reactIs_development.__exports.ConcurrentMode = ConcurrentMode;
|
|
199
157
|
reactIs_development.__exports.ContextConsumer = ContextConsumer;
|
|
200
158
|
reactIs_development.__exports.ContextProvider = ContextProvider;
|
|
201
159
|
reactIs_development.__exports.Element = Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var reactIs_production_min = require('../../../../../_virtual/react-is.production.min2.js');
|
|
6
|
+
|
|
7
|
+
/** @license React v16.13.1
|
|
8
|
+
* react-is.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
16
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
17
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.__exports.AsyncMode=l;reactIs_production_min.__exports.ConcurrentMode=m;reactIs_production_min.__exports.ContextConsumer=k;reactIs_production_min.__exports.ContextProvider=h;reactIs_production_min.__exports.Element=c;reactIs_production_min.__exports.ForwardRef=n;reactIs_production_min.__exports.Fragment=e;reactIs_production_min.__exports.Lazy=t;reactIs_production_min.__exports.Memo=r;reactIs_production_min.__exports.Portal=d;
|
|
18
|
+
reactIs_production_min.__exports.Profiler=g;reactIs_production_min.__exports.StrictMode=f;reactIs_production_min.__exports.Suspense=p;reactIs_production_min.__exports.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.__exports.isConcurrentMode=A;reactIs_production_min.__exports.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.__exports.isContextProvider=function(a){return z(a)===h};reactIs_production_min.__exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.__exports.isForwardRef=function(a){return z(a)===n};reactIs_production_min.__exports.isFragment=function(a){return z(a)===e};reactIs_production_min.__exports.isLazy=function(a){return z(a)===t};
|
|
19
|
+
reactIs_production_min.__exports.isMemo=function(a){return z(a)===r};reactIs_production_min.__exports.isPortal=function(a){return z(a)===d};reactIs_production_min.__exports.isProfiler=function(a){return z(a)===g};reactIs_production_min.__exports.isStrictMode=function(a){return z(a)===f};reactIs_production_min.__exports.isSuspense=function(a){return z(a)===p};
|
|
20
|
+
reactIs_production_min.__exports.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.__exports.typeOf=z;
|
|
21
|
+
|
|
22
|
+
exports["default"] = reactIs_production_min.__exports;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('../../../../_virtual/index5.js');
|
|
4
|
+
require('./cjs/react-is.production.min.js');
|
|
5
|
+
require('./cjs/react-is.development.js');
|
|
6
|
+
var reactIs_production_min = require('../../../../_virtual/react-is.production.min2.js');
|
|
7
|
+
var reactIs_development = require('../../../../_virtual/react-is.development2.js');
|
|
8
|
+
|
|
9
|
+
if (process.env.NODE_ENV === 'production') {
|
|
10
|
+
index.reactIs.exports = reactIs_production_min.__exports;
|
|
11
|
+
} else {
|
|
12
|
+
index.reactIs.exports = reactIs_development.__exports;
|
|
13
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
5
|
+
require('./node_modules/react-is/index.js');
|
|
6
6
|
var index$1 = require('../object-assign/index.js');
|
|
7
7
|
var ReactPropTypesSecret$1 = require('./lib/ReactPropTypesSecret.js');
|
|
8
8
|
var has$1 = require('./lib/has.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var index = require('../../_virtual/index2.js');
|
|
6
|
-
require('
|
|
6
|
+
require('./node_modules/react-is/index.js');
|
|
7
7
|
var factoryWithTypeCheckers = require('./factoryWithTypeCheckers.js');
|
|
8
8
|
var factoryWithThrowingShims = require('./factoryWithThrowingShims.js');
|
|
9
9
|
var index$1 = require('../../_virtual/index3.js');
|