@ntbjs/react-components 2.0.0-rc.3 → 2.0.0-rc.5
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/node_modules/@emotion/cache/dist/{emotion-cache.esm.js → emotion-cache.browser.esm.js} +3 -61
- package/cjs/node_modules/@emotion/react/dist/{emotion-element-d59e098f.esm.js → emotion-element-f0de968e.browser.esm.js} +12 -54
- package/cjs/node_modules/@emotion/react/dist/{emotion-react.esm.js → emotion-react.browser.esm.js} +7 -10
- package/cjs/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.esm.js → emotion-use-insertion-effect-with-fallbacks.browser.esm.js} +1 -3
- package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.esm.js → emotion-utils.browser.esm.js} +3 -12
- package/cjs/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/cjs/node_modules/prop-types/index.js +1 -1
- package/cjs/node_modules/{hoist-non-react-statics/node_modules/react-is → react-is}/cjs/react-is.development.js +81 -39
- package/cjs/node_modules/react-is/cjs/react-is.production.min.js +22 -0
- package/cjs/node_modules/{prop-types/node_modules/react-is → 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.esm.js → use-isomorphic-layout-effect.browser.esm.js} +1 -3
- package/esm/node_modules/@emotion/cache/dist/{emotion-cache.esm.js → emotion-cache.browser.esm.js} +3 -61
- package/esm/node_modules/@emotion/react/dist/{emotion-element-d59e098f.esm.js → emotion-element-f0de968e.browser.esm.js} +5 -47
- package/esm/node_modules/@emotion/react/dist/{emotion-react.esm.js → emotion-react.browser.esm.js} +3 -3
- package/esm/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/{emotion-use-insertion-effect-with-fallbacks.esm.js → emotion-use-insertion-effect-with-fallbacks.browser.esm.js} +1 -3
- package/esm/node_modules/@emotion/utils/dist/{emotion-utils.esm.js → emotion-utils.browser.esm.js} +3 -12
- package/esm/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +2 -2
- package/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
- package/esm/node_modules/prop-types/index.js +1 -1
- package/esm/node_modules/{hoist-non-react-statics/node_modules/react-is → react-is}/cjs/react-is.development.js +82 -40
- package/esm/node_modules/react-is/cjs/react-is.production.min.js +17 -0
- package/esm/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.browser.esm.js +6 -0
- package/package.json +1 -1
- package/cjs/_virtual/index5.js +0 -7
- package/cjs/_virtual/react-is.development2.js +0 -7
- package/cjs/_virtual/react-is.production.min2.js +0 -7
- package/cjs/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -20
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -13
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -186
- package/cjs/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -22
- package/esm/_virtual/index5.js +0 -3
- package/esm/_virtual/react-is.development2.js +0 -3
- package/esm/_virtual/react-is.production.min2.js +0 -3
- package/esm/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +0 -16
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -181
- package/esm/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -17
- package/esm/node_modules/prop-types/node_modules/react-is/index.js +0 -11
- package/esm/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js +0 -8
package/cjs/node_modules/@emotion/cache/dist/{emotion-cache.esm.js → emotion-cache.browser.esm.js}
RENAMED
|
@@ -3,8 +3,6 @@
|
|
|
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');
|
|
8
6
|
var Middleware = require('../../../stylis/src/Middleware.js');
|
|
9
7
|
var Enum = require('../../../stylis/src/Enum.js');
|
|
10
8
|
var Utility = require('../../../stylis/src/Utility.js');
|
|
@@ -12,8 +10,6 @@ var Serializer = require('../../../stylis/src/Serializer.js');
|
|
|
12
10
|
var Tokenizer = require('../../../stylis/src/Tokenizer.js');
|
|
13
11
|
var Parser = require('../../../stylis/src/Parser.js');
|
|
14
12
|
|
|
15
|
-
var isBrowser = typeof document !== 'undefined';
|
|
16
|
-
|
|
17
13
|
var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
|
|
18
14
|
var previous = 0;
|
|
19
15
|
var character = 0;
|
|
@@ -351,17 +347,12 @@ var prefixer = function prefixer(element, index, children, callback) {
|
|
|
351
347
|
}
|
|
352
348
|
};
|
|
353
349
|
|
|
354
|
-
var getServerStylisCache = isBrowser ? undefined : emotionWeakMemoize_esm["default"](function () {
|
|
355
|
-
return emotionMemoize_esm["default"](function () {
|
|
356
|
-
return {};
|
|
357
|
-
});
|
|
358
|
-
});
|
|
359
350
|
var defaultStylisPlugins = [prefixer];
|
|
360
351
|
|
|
361
352
|
var createCache = function createCache(options) {
|
|
362
353
|
var key = options.key;
|
|
363
354
|
|
|
364
|
-
if (
|
|
355
|
+
if (key === 'css') {
|
|
365
356
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
366
357
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
367
358
|
// note this very very intentionally targets all style elements regardless of the key to ensure
|
|
@@ -391,7 +382,7 @@ var createCache = function createCache(options) {
|
|
|
391
382
|
var container;
|
|
392
383
|
var nodesToHydrate = [];
|
|
393
384
|
|
|
394
|
-
|
|
385
|
+
{
|
|
395
386
|
container = options.container || document.head;
|
|
396
387
|
Array.prototype.forEach.call( // this means we will ignore elements which don't have a space in them which
|
|
397
388
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
@@ -410,7 +401,7 @@ var createCache = function createCache(options) {
|
|
|
410
401
|
|
|
411
402
|
var omnipresentPlugins = [compat, removeLabel];
|
|
412
403
|
|
|
413
|
-
|
|
404
|
+
{
|
|
414
405
|
var currentSheet;
|
|
415
406
|
var finalizingPlugins = [Serializer.stringify, Middleware.rulesheet(function (rule) {
|
|
416
407
|
currentSheet.insert(rule);
|
|
@@ -430,55 +421,6 @@ var createCache = function createCache(options) {
|
|
|
430
421
|
cache.inserted[serialized.name] = true;
|
|
431
422
|
}
|
|
432
423
|
};
|
|
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
|
-
};
|
|
482
424
|
}
|
|
483
425
|
|
|
484
426
|
var cache = {
|
|
@@ -3,29 +3,27 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('../../../react/index.js');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var emotionCache_browser_esm = require('../../cache/dist/emotion-cache.browser.esm.js');
|
|
7
|
+
var emotionUtils_browser_esm = require('../../utils/dist/emotion-utils.browser.esm.js');
|
|
8
8
|
var emotionSerialize_esm = require('../../serialize/dist/emotion-serialize.esm.js');
|
|
9
|
-
var
|
|
9
|
+
var emotionUseInsertionEffectWithFallbacks_browser_esm = require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.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
|
-
|
|
16
14
|
var EmotionCacheContext = /* #__PURE__ */index.react.exports.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
17
15
|
// because this module is primarily intended for the browser and node
|
|
18
16
|
// but it's also required in react native and similar environments sometimes
|
|
19
17
|
// and we could have a special build just for that
|
|
20
18
|
// but this is much easier and the native packages
|
|
21
19
|
// might use a different theme context in the future anyway
|
|
22
|
-
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */
|
|
20
|
+
typeof HTMLElement !== 'undefined' ? /* #__PURE__ */emotionCache_browser_esm["default"]({
|
|
23
21
|
key: 'css'
|
|
24
22
|
}) : null);
|
|
25
23
|
|
|
26
24
|
EmotionCacheContext.Provider;
|
|
27
25
|
|
|
28
|
-
|
|
26
|
+
var withEmotionCache = function withEmotionCache(func) {
|
|
29
27
|
return /*#__PURE__*/index.react.exports.forwardRef(function (props, ref) {
|
|
30
28
|
// the cache will never be null in the browser
|
|
31
29
|
var cache = index.react.exports.useContext(EmotionCacheContext);
|
|
@@ -33,30 +31,6 @@ exports.w = function withEmotionCache(func) {
|
|
|
33
31
|
});
|
|
34
32
|
};
|
|
35
33
|
|
|
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
|
-
|
|
60
34
|
var ThemeContext = /* #__PURE__ */index.react.exports.createContext({});
|
|
61
35
|
|
|
62
36
|
var hasOwn = {}.hasOwnProperty;
|
|
@@ -81,31 +55,15 @@ var Insertion = function Insertion(_ref) {
|
|
|
81
55
|
var cache = _ref.cache,
|
|
82
56
|
serialized = _ref.serialized,
|
|
83
57
|
isStringTag = _ref.isStringTag;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
return
|
|
58
|
+
emotionUtils_browser_esm.registerStyles(cache, serialized, isStringTag);
|
|
59
|
+
emotionUseInsertionEffectWithFallbacks_browser_esm.useInsertionEffectAlwaysWithSyncFallback(function () {
|
|
60
|
+
return emotionUtils_browser_esm.insertStyles(cache, serialized, isStringTag);
|
|
87
61
|
});
|
|
88
62
|
|
|
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
|
-
|
|
105
63
|
return null;
|
|
106
64
|
};
|
|
107
65
|
|
|
108
|
-
var Emotion = /* #__PURE__ */
|
|
66
|
+
var Emotion = /* #__PURE__ */withEmotionCache(function (props, cache, ref) {
|
|
109
67
|
var cssProp = props.css; // so that using `css` from `emotion` and passing the result to the css prop works
|
|
110
68
|
// not passing the registered cache to serializeStyles because it would
|
|
111
69
|
// make certain babel optimisations not possible
|
|
@@ -119,7 +77,7 @@ var Emotion = /* #__PURE__ */exports.w(function (props, cache, ref) {
|
|
|
119
77
|
var className = '';
|
|
120
78
|
|
|
121
79
|
if (typeof props.className === 'string') {
|
|
122
|
-
className =
|
|
80
|
+
className = emotionUtils_browser_esm.getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
123
81
|
} else if (props.className != null) {
|
|
124
82
|
className = props.className + " ";
|
|
125
83
|
}
|
|
@@ -152,7 +110,7 @@ var Emotion$1 = Emotion;
|
|
|
152
110
|
|
|
153
111
|
exports.E = Emotion$1;
|
|
154
112
|
exports.T = ThemeContext;
|
|
155
|
-
exports.a = isDevelopment;
|
|
156
113
|
exports.c = createEmotionProps;
|
|
157
114
|
exports.h = hasOwn;
|
|
158
|
-
exports.i =
|
|
115
|
+
exports.i = isDevelopment;
|
|
116
|
+
exports.w = withEmotionCache;
|
package/cjs/node_modules/@emotion/react/dist/{emotion-react.esm.js → emotion-react.browser.esm.js}
RENAMED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var emotionElementF0de968e_browser_esm = require('./emotion-element-f0de968e.browser.esm.js');
|
|
6
6
|
require('../../../react/index.js');
|
|
7
|
-
require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js');
|
|
7
|
+
require('../../use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.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 || !emotionElementF0de968e_browser_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] = emotionElementF0de968e_browser_esm.E;
|
|
23
|
+
createElementArgArray[1] = emotionElementF0de968e_browser_esm.c(type, props);
|
|
24
24
|
|
|
25
25
|
for (var i = 2; i < argsLength; i++) {
|
|
26
26
|
createElementArgArray[i] = args[i];
|
|
@@ -56,11 +56,8 @@ function keyframes() {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
exports.ThemeContext =
|
|
60
|
-
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () { return emotionElementD59e098f_esm.w; }
|
|
63
|
-
});
|
|
59
|
+
exports.ThemeContext = emotionElementF0de968e_browser_esm.T;
|
|
60
|
+
exports.withEmotionCache = emotionElementF0de968e_browser_esm.w;
|
|
64
61
|
exports.createElement = exports.jsx;
|
|
65
62
|
exports.css = css;
|
|
66
63
|
exports.keyframes = keyframes;
|
|
@@ -4,13 +4,11 @@ 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
|
-
|
|
9
7
|
var syncFallback = function syncFallback(create) {
|
|
10
8
|
return create();
|
|
11
9
|
};
|
|
12
10
|
|
|
13
11
|
var useInsertionEffect = index['useInsertion' + 'Effect'] ? index['useInsertion' + 'Effect'] : false;
|
|
14
|
-
var useInsertionEffectAlwaysWithSyncFallback =
|
|
12
|
+
var useInsertionEffectAlwaysWithSyncFallback = useInsertionEffect || syncFallback;
|
|
15
13
|
|
|
16
14
|
exports.useInsertionEffectAlwaysWithSyncFallback = useInsertionEffectAlwaysWithSyncFallback;
|
package/cjs/node_modules/@emotion/utils/dist/{emotion-utils.esm.js → emotion-utils.browser.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 = true;
|
|
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
|
|
30
|
+
isBrowser === false ) && cache.registered[className] === undefined) {
|
|
31
31
|
cache.registered[className] = serialized.styles;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -36,22 +36,13 @@ 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 = '';
|
|
40
39
|
var current = serialized;
|
|
41
40
|
|
|
42
41
|
do {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (!isBrowser && maybeStyles !== undefined) {
|
|
46
|
-
stylesForSSR += maybeStyles;
|
|
47
|
-
}
|
|
42
|
+
cache.insert(serialized === current ? "." + className : '', current, cache.sheet, true);
|
|
48
43
|
|
|
49
44
|
current = current.next;
|
|
50
45
|
} while (current !== undefined);
|
|
51
|
-
|
|
52
|
-
if (!isBrowser && stylesForSSR.length !== 0) {
|
|
53
|
-
return stylesForSSR;
|
|
54
|
-
}
|
|
55
46
|
}
|
|
56
47
|
};
|
|
57
48
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
require('
|
|
4
|
-
var index = require('../../../_virtual/
|
|
3
|
+
require('../../react-is/index.js');
|
|
4
|
+
var index = require('../../../_virtual/index3.js');
|
|
5
5
|
|
|
6
6
|
var reactIs = index.reactIs.exports;
|
|
7
7
|
var FORWARD_REF_STATICS = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
require('
|
|
5
|
+
require('../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('../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');
|
|
@@ -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.development.js');
|
|
6
6
|
|
|
7
|
-
/** @license React
|
|
7
|
+
/** @license React v17.0.2
|
|
8
8
|
* react-is.development.js
|
|
9
9
|
*
|
|
10
10
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -13,38 +13,77 @@ var reactIs_development = require('../../../../../_virtual/react-is.development2
|
|
|
13
13
|
* LICENSE file in the root directory of this source tree.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
16
|
if (process.env.NODE_ENV !== "production") {
|
|
19
17
|
(function() {
|
|
20
18
|
|
|
19
|
+
// ATTENTION
|
|
20
|
+
// When adding new symbols to this file,
|
|
21
|
+
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
21
22
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
22
23
|
// nor polyfill, then a plain number is used for performance.
|
|
23
|
-
var
|
|
24
|
-
var
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
var
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var
|
|
43
|
-
|
|
24
|
+
var REACT_ELEMENT_TYPE = 0xeac7;
|
|
25
|
+
var REACT_PORTAL_TYPE = 0xeaca;
|
|
26
|
+
var REACT_FRAGMENT_TYPE = 0xeacb;
|
|
27
|
+
var REACT_STRICT_MODE_TYPE = 0xeacc;
|
|
28
|
+
var REACT_PROFILER_TYPE = 0xead2;
|
|
29
|
+
var REACT_PROVIDER_TYPE = 0xeacd;
|
|
30
|
+
var REACT_CONTEXT_TYPE = 0xeace;
|
|
31
|
+
var REACT_FORWARD_REF_TYPE = 0xead0;
|
|
32
|
+
var REACT_SUSPENSE_TYPE = 0xead1;
|
|
33
|
+
var REACT_SUSPENSE_LIST_TYPE = 0xead8;
|
|
34
|
+
var REACT_MEMO_TYPE = 0xead3;
|
|
35
|
+
var REACT_LAZY_TYPE = 0xead4;
|
|
36
|
+
var REACT_BLOCK_TYPE = 0xead9;
|
|
37
|
+
var REACT_SERVER_BLOCK_TYPE = 0xeada;
|
|
38
|
+
var REACT_FUNDAMENTAL_TYPE = 0xead5;
|
|
39
|
+
var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
|
|
40
|
+
var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
|
|
41
|
+
|
|
42
|
+
if (typeof Symbol === 'function' && Symbol.for) {
|
|
43
|
+
var symbolFor = Symbol.for;
|
|
44
|
+
REACT_ELEMENT_TYPE = symbolFor('react.element');
|
|
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.
|
|
44
69
|
|
|
45
70
|
function isValidElementType(type) {
|
|
46
|
-
|
|
47
|
-
|
|
71
|
+
if (typeof type === 'string' || typeof type === 'function') {
|
|
72
|
+
return true;
|
|
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;
|
|
48
87
|
}
|
|
49
88
|
|
|
50
89
|
function typeOf(object) {
|
|
@@ -56,12 +95,11 @@ function typeOf(object) {
|
|
|
56
95
|
var type = object.type;
|
|
57
96
|
|
|
58
97
|
switch (type) {
|
|
59
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
60
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
61
98
|
case REACT_FRAGMENT_TYPE:
|
|
62
99
|
case REACT_PROFILER_TYPE:
|
|
63
100
|
case REACT_STRICT_MODE_TYPE:
|
|
64
101
|
case REACT_SUSPENSE_TYPE:
|
|
102
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
65
103
|
return type;
|
|
66
104
|
|
|
67
105
|
default:
|
|
@@ -87,10 +125,7 @@ function typeOf(object) {
|
|
|
87
125
|
}
|
|
88
126
|
|
|
89
127
|
return undefined;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
93
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
128
|
+
}
|
|
94
129
|
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
95
130
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
96
131
|
var Element = REACT_ELEMENT_TYPE;
|
|
@@ -102,21 +137,30 @@ var Portal = REACT_PORTAL_TYPE;
|
|
|
102
137
|
var Profiler = REACT_PROFILER_TYPE;
|
|
103
138
|
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
104
139
|
var Suspense = REACT_SUSPENSE_TYPE;
|
|
105
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
140
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
141
|
+
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
106
142
|
|
|
107
143
|
function isAsyncMode(object) {
|
|
108
144
|
{
|
|
109
145
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
110
146
|
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
111
147
|
|
|
112
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React
|
|
148
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
113
149
|
}
|
|
114
150
|
}
|
|
115
151
|
|
|
116
|
-
return
|
|
152
|
+
return false;
|
|
117
153
|
}
|
|
118
154
|
function isConcurrentMode(object) {
|
|
119
|
-
|
|
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;
|
|
120
164
|
}
|
|
121
165
|
function isContextConsumer(object) {
|
|
122
166
|
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
@@ -152,8 +196,6 @@ function isSuspense(object) {
|
|
|
152
196
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
153
197
|
}
|
|
154
198
|
|
|
155
|
-
reactIs_development.__exports.AsyncMode = AsyncMode;
|
|
156
|
-
reactIs_development.__exports.ConcurrentMode = ConcurrentMode;
|
|
157
199
|
reactIs_development.__exports.ContextConsumer = ContextConsumer;
|
|
158
200
|
reactIs_development.__exports.ContextProvider = ContextProvider;
|
|
159
201
|
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.min.js');
|
|
6
|
+
|
|
7
|
+
/** @license React v17.0.2
|
|
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=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;
|
|
16
|
+
if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden");}
|
|
17
|
+
function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;reactIs_production_min.__exports.ContextConsumer=h;reactIs_production_min.__exports.ContextProvider=z;reactIs_production_min.__exports.Element=A;reactIs_production_min.__exports.ForwardRef=B;reactIs_production_min.__exports.Fragment=C;reactIs_production_min.__exports.Lazy=D;reactIs_production_min.__exports.Memo=E;reactIs_production_min.__exports.Portal=F;reactIs_production_min.__exports.Profiler=G;reactIs_production_min.__exports.StrictMode=H;
|
|
18
|
+
reactIs_production_min.__exports.Suspense=I;reactIs_production_min.__exports.isAsyncMode=function(){return !1};reactIs_production_min.__exports.isConcurrentMode=function(){return !1};reactIs_production_min.__exports.isContextConsumer=function(a){return y(a)===h};reactIs_production_min.__exports.isContextProvider=function(a){return y(a)===g};reactIs_production_min.__exports.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.__exports.isForwardRef=function(a){return y(a)===k};reactIs_production_min.__exports.isFragment=function(a){return y(a)===d};reactIs_production_min.__exports.isLazy=function(a){return y(a)===p};reactIs_production_min.__exports.isMemo=function(a){return y(a)===n};
|
|
19
|
+
reactIs_production_min.__exports.isPortal=function(a){return y(a)===c};reactIs_production_min.__exports.isProfiler=function(a){return y(a)===f};reactIs_production_min.__exports.isStrictMode=function(a){return y(a)===e};reactIs_production_min.__exports.isSuspense=function(a){return y(a)===l};reactIs_production_min.__exports.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};
|
|
20
|
+
reactIs_production_min.__exports.typeOf=y;
|
|
21
|
+
|
|
22
|
+
exports["default"] = reactIs_production_min.__exports;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('
|
|
3
|
+
var index = require('../../_virtual/index3.js');
|
|
4
4
|
require('./cjs/react-is.production.min.js');
|
|
5
5
|
require('./cjs/react-is.development.js');
|
|
6
|
-
var reactIs_production_min = require('
|
|
7
|
-
var reactIs_development = require('
|
|
6
|
+
var reactIs_production_min = require('../../_virtual/react-is.production.min.js');
|
|
7
|
+
var reactIs_development = require('../../_virtual/react-is.development.js');
|
|
8
8
|
|
|
9
9
|
if (process.env.NODE_ENV === 'production') {
|
|
10
10
|
index.reactIs.exports = reactIs_production_min.__exports;
|