@class101/cdn-ui-system 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- package/chunk-3XAMXSCG.js +515 -0
- package/{chunk-KAXHKCBQ.js → chunk-CGG5PA2W.js} +1 -143
- package/{chunk-IANUYI35.js → chunk-NHLP3WU5.js} +1 -1
- package/{chunk-7BBOJQDQ.js → chunk-ULWCFEWA.js} +1 -1
- package/chunk-ZBFNXEOS.js +152 -0
- package/contexts/UiSystemProvider.js +3 -2
- package/core/variants/makeStyled/makeStyled.js +4 -3
- package/core/variants/system/system.js +3 -2
- package/hooks/useResponsiveValue/useResponsiveValue.js +3 -2
- package/lib/Animation/FadeAnimation/FadeAnimation.js +3 -2
- package/lib/Animation/RotateAnimation/RotateAnimation.js +3 -2
- package/lib/Animation/SlideAnimation/SlideAnimation.js +3 -2
- package/lib/BreadCrumb/BreadCrumb.js +4 -3
- package/lib/Chip/InputChip/InputChip.js +4 -2
- package/lib/ContentArea/ContentArea.js +3 -2
- package/lib/Elevation/Elevation.js +4 -3
- package/lib/Form/Select/Select.js +4 -3
- package/lib/GlobalStyle/GlobalStyle.js +3 -2
- package/lib/GridList/GridList.js +3 -2
- package/lib/HtmlContentStyle/HtmlContentStyle.js +4 -3
- package/lib/LinearGradient/LinearGradient.js +3 -2
- package/lib/Media/Image/useActualSizes.js +3 -2
- package/lib/Pagination/Pagination.js +4 -3
- package/lib/Portal/Portal.js +3 -2
- package/lib/Slider/Slider.js +4 -3
- package/lib/SliderSection/SliderSection.js +4 -3
- package/lib/Table/Table.js +6 -508
- package/lib/VirtualizedList/VirtualizedList.js +7809 -8
- package/lib/deprecated/Swiper/Swiper.js +4 -3
- package/package.json +1 -1
- package/private/Box/Box.js +4 -3
- package/private/ForwardStyle/StyledChildren.js +4 -3
@@ -0,0 +1,515 @@
|
|
1
|
+
import {
|
2
|
+
require_object_assign
|
3
|
+
} from "./chunk-XYFEP7P7.js";
|
4
|
+
import {
|
5
|
+
require_react_is
|
6
|
+
} from "./chunk-CGG5PA2W.js";
|
7
|
+
import {
|
8
|
+
__commonJS,
|
9
|
+
init_react_shim
|
10
|
+
} from "./chunk-IPJCOOHW.js";
|
11
|
+
|
12
|
+
// node_modules/prop-types/lib/ReactPropTypesSecret.js
|
13
|
+
var require_ReactPropTypesSecret = __commonJS({
|
14
|
+
"node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
|
15
|
+
init_react_shim();
|
16
|
+
"use strict";
|
17
|
+
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
18
|
+
module.exports = ReactPropTypesSecret;
|
19
|
+
}
|
20
|
+
});
|
21
|
+
|
22
|
+
// node_modules/prop-types/checkPropTypes.js
|
23
|
+
var require_checkPropTypes = __commonJS({
|
24
|
+
"node_modules/prop-types/checkPropTypes.js"(exports, module) {
|
25
|
+
init_react_shim();
|
26
|
+
"use strict";
|
27
|
+
var printWarning = function() {
|
28
|
+
};
|
29
|
+
if (true) {
|
30
|
+
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
31
|
+
loggedTypeFailures = {};
|
32
|
+
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
33
|
+
printWarning = function(text) {
|
34
|
+
var message = "Warning: " + text;
|
35
|
+
if (typeof console !== "undefined") {
|
36
|
+
console.error(message);
|
37
|
+
}
|
38
|
+
try {
|
39
|
+
throw new Error(message);
|
40
|
+
} catch (x) {
|
41
|
+
}
|
42
|
+
};
|
43
|
+
}
|
44
|
+
var ReactPropTypesSecret;
|
45
|
+
var loggedTypeFailures;
|
46
|
+
var has;
|
47
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
48
|
+
if (true) {
|
49
|
+
for (var typeSpecName in typeSpecs) {
|
50
|
+
if (has(typeSpecs, typeSpecName)) {
|
51
|
+
var error;
|
52
|
+
try {
|
53
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
54
|
+
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.");
|
55
|
+
err.name = "Invariant Violation";
|
56
|
+
throw err;
|
57
|
+
}
|
58
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
59
|
+
} catch (ex) {
|
60
|
+
error = ex;
|
61
|
+
}
|
62
|
+
if (error && !(error instanceof Error)) {
|
63
|
+
printWarning((componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).");
|
64
|
+
}
|
65
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
66
|
+
loggedTypeFailures[error.message] = true;
|
67
|
+
var stack = getStack ? getStack() : "";
|
68
|
+
printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
checkPropTypes.resetWarningCache = function() {
|
75
|
+
if (true) {
|
76
|
+
loggedTypeFailures = {};
|
77
|
+
}
|
78
|
+
};
|
79
|
+
module.exports = checkPropTypes;
|
80
|
+
}
|
81
|
+
});
|
82
|
+
|
83
|
+
// node_modules/prop-types/factoryWithTypeCheckers.js
|
84
|
+
var require_factoryWithTypeCheckers = __commonJS({
|
85
|
+
"node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) {
|
86
|
+
init_react_shim();
|
87
|
+
"use strict";
|
88
|
+
var ReactIs = require_react_is();
|
89
|
+
var assign = require_object_assign();
|
90
|
+
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
91
|
+
var checkPropTypes = require_checkPropTypes();
|
92
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
93
|
+
var printWarning = function() {
|
94
|
+
};
|
95
|
+
if (true) {
|
96
|
+
printWarning = function(text) {
|
97
|
+
var message = "Warning: " + text;
|
98
|
+
if (typeof console !== "undefined") {
|
99
|
+
console.error(message);
|
100
|
+
}
|
101
|
+
try {
|
102
|
+
throw new Error(message);
|
103
|
+
} catch (x) {
|
104
|
+
}
|
105
|
+
};
|
106
|
+
}
|
107
|
+
function emptyFunctionThatReturnsNull() {
|
108
|
+
return null;
|
109
|
+
}
|
110
|
+
module.exports = function(isValidElement, throwOnDirectAccess) {
|
111
|
+
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
112
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
113
|
+
function getIteratorFn(maybeIterable) {
|
114
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
115
|
+
if (typeof iteratorFn === "function") {
|
116
|
+
return iteratorFn;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
var ANONYMOUS = "<<anonymous>>";
|
120
|
+
var ReactPropTypes = {
|
121
|
+
array: createPrimitiveTypeChecker("array"),
|
122
|
+
bool: createPrimitiveTypeChecker("boolean"),
|
123
|
+
func: createPrimitiveTypeChecker("function"),
|
124
|
+
number: createPrimitiveTypeChecker("number"),
|
125
|
+
object: createPrimitiveTypeChecker("object"),
|
126
|
+
string: createPrimitiveTypeChecker("string"),
|
127
|
+
symbol: createPrimitiveTypeChecker("symbol"),
|
128
|
+
any: createAnyTypeChecker(),
|
129
|
+
arrayOf: createArrayOfTypeChecker,
|
130
|
+
element: createElementTypeChecker(),
|
131
|
+
elementType: createElementTypeTypeChecker(),
|
132
|
+
instanceOf: createInstanceTypeChecker,
|
133
|
+
node: createNodeChecker(),
|
134
|
+
objectOf: createObjectOfTypeChecker,
|
135
|
+
oneOf: createEnumTypeChecker,
|
136
|
+
oneOfType: createUnionTypeChecker,
|
137
|
+
shape: createShapeTypeChecker,
|
138
|
+
exact: createStrictShapeTypeChecker
|
139
|
+
};
|
140
|
+
function is(x, y) {
|
141
|
+
if (x === y) {
|
142
|
+
return x !== 0 || 1 / x === 1 / y;
|
143
|
+
} else {
|
144
|
+
return x !== x && y !== y;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
function PropTypeError(message) {
|
148
|
+
this.message = message;
|
149
|
+
this.stack = "";
|
150
|
+
}
|
151
|
+
PropTypeError.prototype = Error.prototype;
|
152
|
+
function createChainableTypeChecker(validate) {
|
153
|
+
if (true) {
|
154
|
+
var manualPropTypeCallCache = {};
|
155
|
+
var manualPropTypeWarningCount = 0;
|
156
|
+
}
|
157
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
158
|
+
componentName = componentName || ANONYMOUS;
|
159
|
+
propFullName = propFullName || propName;
|
160
|
+
if (secret !== ReactPropTypesSecret) {
|
161
|
+
if (throwOnDirectAccess) {
|
162
|
+
var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");
|
163
|
+
err.name = "Invariant Violation";
|
164
|
+
throw err;
|
165
|
+
} else if (typeof console !== "undefined") {
|
166
|
+
var cacheKey = componentName + ":" + propName;
|
167
|
+
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
168
|
+
printWarning("You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.");
|
169
|
+
manualPropTypeCallCache[cacheKey] = true;
|
170
|
+
manualPropTypeWarningCount++;
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
if (props[propName] == null) {
|
175
|
+
if (isRequired) {
|
176
|
+
if (props[propName] === null) {
|
177
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
178
|
+
}
|
179
|
+
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
180
|
+
}
|
181
|
+
return null;
|
182
|
+
} else {
|
183
|
+
return validate(props, propName, componentName, location, propFullName);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
var chainedCheckType = checkType.bind(null, false);
|
187
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
188
|
+
return chainedCheckType;
|
189
|
+
}
|
190
|
+
function createPrimitiveTypeChecker(expectedType) {
|
191
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
192
|
+
var propValue = props[propName];
|
193
|
+
var propType = getPropType(propValue);
|
194
|
+
if (propType !== expectedType) {
|
195
|
+
var preciseType = getPreciseType(propValue);
|
196
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."));
|
197
|
+
}
|
198
|
+
return null;
|
199
|
+
}
|
200
|
+
return createChainableTypeChecker(validate);
|
201
|
+
}
|
202
|
+
function createAnyTypeChecker() {
|
203
|
+
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
204
|
+
}
|
205
|
+
function createArrayOfTypeChecker(typeChecker) {
|
206
|
+
function validate(props, propName, componentName, location, propFullName) {
|
207
|
+
if (typeof typeChecker !== "function") {
|
208
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
209
|
+
}
|
210
|
+
var propValue = props[propName];
|
211
|
+
if (!Array.isArray(propValue)) {
|
212
|
+
var propType = getPropType(propValue);
|
213
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
214
|
+
}
|
215
|
+
for (var i = 0; i < propValue.length; i++) {
|
216
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
217
|
+
if (error instanceof Error) {
|
218
|
+
return error;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
return null;
|
222
|
+
}
|
223
|
+
return createChainableTypeChecker(validate);
|
224
|
+
}
|
225
|
+
function createElementTypeChecker() {
|
226
|
+
function validate(props, propName, componentName, location, propFullName) {
|
227
|
+
var propValue = props[propName];
|
228
|
+
if (!isValidElement(propValue)) {
|
229
|
+
var propType = getPropType(propValue);
|
230
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
231
|
+
}
|
232
|
+
return null;
|
233
|
+
}
|
234
|
+
return createChainableTypeChecker(validate);
|
235
|
+
}
|
236
|
+
function createElementTypeTypeChecker() {
|
237
|
+
function validate(props, propName, componentName, location, propFullName) {
|
238
|
+
var propValue = props[propName];
|
239
|
+
if (!ReactIs.isValidElementType(propValue)) {
|
240
|
+
var propType = getPropType(propValue);
|
241
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
242
|
+
}
|
243
|
+
return null;
|
244
|
+
}
|
245
|
+
return createChainableTypeChecker(validate);
|
246
|
+
}
|
247
|
+
function createInstanceTypeChecker(expectedClass) {
|
248
|
+
function validate(props, propName, componentName, location, propFullName) {
|
249
|
+
if (!(props[propName] instanceof expectedClass)) {
|
250
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
251
|
+
var actualClassName = getClassName(props[propName]);
|
252
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
253
|
+
}
|
254
|
+
return null;
|
255
|
+
}
|
256
|
+
return createChainableTypeChecker(validate);
|
257
|
+
}
|
258
|
+
function createEnumTypeChecker(expectedValues) {
|
259
|
+
if (!Array.isArray(expectedValues)) {
|
260
|
+
if (true) {
|
261
|
+
if (arguments.length > 1) {
|
262
|
+
printWarning("Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).");
|
263
|
+
} else {
|
264
|
+
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
265
|
+
}
|
266
|
+
}
|
267
|
+
return emptyFunctionThatReturnsNull;
|
268
|
+
}
|
269
|
+
function validate(props, propName, componentName, location, propFullName) {
|
270
|
+
var propValue = props[propName];
|
271
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
272
|
+
if (is(propValue, expectedValues[i])) {
|
273
|
+
return null;
|
274
|
+
}
|
275
|
+
}
|
276
|
+
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
277
|
+
var type = getPreciseType(value);
|
278
|
+
if (type === "symbol") {
|
279
|
+
return String(value);
|
280
|
+
}
|
281
|
+
return value;
|
282
|
+
});
|
283
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
284
|
+
}
|
285
|
+
return createChainableTypeChecker(validate);
|
286
|
+
}
|
287
|
+
function createObjectOfTypeChecker(typeChecker) {
|
288
|
+
function validate(props, propName, componentName, location, propFullName) {
|
289
|
+
if (typeof typeChecker !== "function") {
|
290
|
+
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
291
|
+
}
|
292
|
+
var propValue = props[propName];
|
293
|
+
var propType = getPropType(propValue);
|
294
|
+
if (propType !== "object") {
|
295
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
296
|
+
}
|
297
|
+
for (var key in propValue) {
|
298
|
+
if (has(propValue, key)) {
|
299
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
300
|
+
if (error instanceof Error) {
|
301
|
+
return error;
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}
|
305
|
+
return null;
|
306
|
+
}
|
307
|
+
return createChainableTypeChecker(validate);
|
308
|
+
}
|
309
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
310
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
311
|
+
true ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
312
|
+
return emptyFunctionThatReturnsNull;
|
313
|
+
}
|
314
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
315
|
+
var checker = arrayOfTypeCheckers[i];
|
316
|
+
if (typeof checker !== "function") {
|
317
|
+
printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
|
318
|
+
return emptyFunctionThatReturnsNull;
|
319
|
+
}
|
320
|
+
}
|
321
|
+
function validate(props, propName, componentName, location, propFullName) {
|
322
|
+
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
323
|
+
var checker2 = arrayOfTypeCheckers[i2];
|
324
|
+
if (checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
325
|
+
return null;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`."));
|
329
|
+
}
|
330
|
+
return createChainableTypeChecker(validate);
|
331
|
+
}
|
332
|
+
function createNodeChecker() {
|
333
|
+
function validate(props, propName, componentName, location, propFullName) {
|
334
|
+
if (!isNode(props[propName])) {
|
335
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
336
|
+
}
|
337
|
+
return null;
|
338
|
+
}
|
339
|
+
return createChainableTypeChecker(validate);
|
340
|
+
}
|
341
|
+
function createShapeTypeChecker(shapeTypes) {
|
342
|
+
function validate(props, propName, componentName, location, propFullName) {
|
343
|
+
var propValue = props[propName];
|
344
|
+
var propType = getPropType(propValue);
|
345
|
+
if (propType !== "object") {
|
346
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
347
|
+
}
|
348
|
+
for (var key in shapeTypes) {
|
349
|
+
var checker = shapeTypes[key];
|
350
|
+
if (!checker) {
|
351
|
+
continue;
|
352
|
+
}
|
353
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
354
|
+
if (error) {
|
355
|
+
return error;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
return null;
|
359
|
+
}
|
360
|
+
return createChainableTypeChecker(validate);
|
361
|
+
}
|
362
|
+
function createStrictShapeTypeChecker(shapeTypes) {
|
363
|
+
function validate(props, propName, componentName, location, propFullName) {
|
364
|
+
var propValue = props[propName];
|
365
|
+
var propType = getPropType(propValue);
|
366
|
+
if (propType !== "object") {
|
367
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
368
|
+
}
|
369
|
+
var allKeys = assign({}, props[propName], shapeTypes);
|
370
|
+
for (var key in allKeys) {
|
371
|
+
var checker = shapeTypes[key];
|
372
|
+
if (!checker) {
|
373
|
+
return new PropTypeError("Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " "));
|
374
|
+
}
|
375
|
+
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
376
|
+
if (error) {
|
377
|
+
return error;
|
378
|
+
}
|
379
|
+
}
|
380
|
+
return null;
|
381
|
+
}
|
382
|
+
return createChainableTypeChecker(validate);
|
383
|
+
}
|
384
|
+
function isNode(propValue) {
|
385
|
+
switch (typeof propValue) {
|
386
|
+
case "number":
|
387
|
+
case "string":
|
388
|
+
case "undefined":
|
389
|
+
return true;
|
390
|
+
case "boolean":
|
391
|
+
return !propValue;
|
392
|
+
case "object":
|
393
|
+
if (Array.isArray(propValue)) {
|
394
|
+
return propValue.every(isNode);
|
395
|
+
}
|
396
|
+
if (propValue === null || isValidElement(propValue)) {
|
397
|
+
return true;
|
398
|
+
}
|
399
|
+
var iteratorFn = getIteratorFn(propValue);
|
400
|
+
if (iteratorFn) {
|
401
|
+
var iterator = iteratorFn.call(propValue);
|
402
|
+
var step;
|
403
|
+
if (iteratorFn !== propValue.entries) {
|
404
|
+
while (!(step = iterator.next()).done) {
|
405
|
+
if (!isNode(step.value)) {
|
406
|
+
return false;
|
407
|
+
}
|
408
|
+
}
|
409
|
+
} else {
|
410
|
+
while (!(step = iterator.next()).done) {
|
411
|
+
var entry = step.value;
|
412
|
+
if (entry) {
|
413
|
+
if (!isNode(entry[1])) {
|
414
|
+
return false;
|
415
|
+
}
|
416
|
+
}
|
417
|
+
}
|
418
|
+
}
|
419
|
+
} else {
|
420
|
+
return false;
|
421
|
+
}
|
422
|
+
return true;
|
423
|
+
default:
|
424
|
+
return false;
|
425
|
+
}
|
426
|
+
}
|
427
|
+
function isSymbol(propType, propValue) {
|
428
|
+
if (propType === "symbol") {
|
429
|
+
return true;
|
430
|
+
}
|
431
|
+
if (!propValue) {
|
432
|
+
return false;
|
433
|
+
}
|
434
|
+
if (propValue["@@toStringTag"] === "Symbol") {
|
435
|
+
return true;
|
436
|
+
}
|
437
|
+
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
438
|
+
return true;
|
439
|
+
}
|
440
|
+
return false;
|
441
|
+
}
|
442
|
+
function getPropType(propValue) {
|
443
|
+
var propType = typeof propValue;
|
444
|
+
if (Array.isArray(propValue)) {
|
445
|
+
return "array";
|
446
|
+
}
|
447
|
+
if (propValue instanceof RegExp) {
|
448
|
+
return "object";
|
449
|
+
}
|
450
|
+
if (isSymbol(propType, propValue)) {
|
451
|
+
return "symbol";
|
452
|
+
}
|
453
|
+
return propType;
|
454
|
+
}
|
455
|
+
function getPreciseType(propValue) {
|
456
|
+
if (typeof propValue === "undefined" || propValue === null) {
|
457
|
+
return "" + propValue;
|
458
|
+
}
|
459
|
+
var propType = getPropType(propValue);
|
460
|
+
if (propType === "object") {
|
461
|
+
if (propValue instanceof Date) {
|
462
|
+
return "date";
|
463
|
+
} else if (propValue instanceof RegExp) {
|
464
|
+
return "regexp";
|
465
|
+
}
|
466
|
+
}
|
467
|
+
return propType;
|
468
|
+
}
|
469
|
+
function getPostfixForTypeWarning(value) {
|
470
|
+
var type = getPreciseType(value);
|
471
|
+
switch (type) {
|
472
|
+
case "array":
|
473
|
+
case "object":
|
474
|
+
return "an " + type;
|
475
|
+
case "boolean":
|
476
|
+
case "date":
|
477
|
+
case "regexp":
|
478
|
+
return "a " + type;
|
479
|
+
default:
|
480
|
+
return type;
|
481
|
+
}
|
482
|
+
}
|
483
|
+
function getClassName(propValue) {
|
484
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
485
|
+
return ANONYMOUS;
|
486
|
+
}
|
487
|
+
return propValue.constructor.name;
|
488
|
+
}
|
489
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
490
|
+
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
491
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
492
|
+
return ReactPropTypes;
|
493
|
+
};
|
494
|
+
}
|
495
|
+
});
|
496
|
+
|
497
|
+
// node_modules/prop-types/index.js
|
498
|
+
var require_prop_types = __commonJS({
|
499
|
+
"node_modules/prop-types/index.js"(exports, module) {
|
500
|
+
init_react_shim();
|
501
|
+
if (true) {
|
502
|
+
ReactIs = require_react_is();
|
503
|
+
throwOnDirectAccess = true;
|
504
|
+
module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
505
|
+
} else {
|
506
|
+
module.exports = null();
|
507
|
+
}
|
508
|
+
var ReactIs;
|
509
|
+
var throwOnDirectAccess;
|
510
|
+
}
|
511
|
+
});
|
512
|
+
|
513
|
+
export {
|
514
|
+
require_prop_types
|
515
|
+
};
|
@@ -171,150 +171,8 @@ var require_react_is = __commonJS({
|
|
171
171
|
}
|
172
172
|
});
|
173
173
|
|
174
|
-
// node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
175
|
-
var require_hoist_non_react_statics_cjs = __commonJS({
|
176
|
-
"node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports, module) {
|
177
|
-
init_react_shim();
|
178
|
-
"use strict";
|
179
|
-
var reactIs = require_react_is();
|
180
|
-
var REACT_STATICS = {
|
181
|
-
childContextTypes: true,
|
182
|
-
contextType: true,
|
183
|
-
contextTypes: true,
|
184
|
-
defaultProps: true,
|
185
|
-
displayName: true,
|
186
|
-
getDefaultProps: true,
|
187
|
-
getDerivedStateFromError: true,
|
188
|
-
getDerivedStateFromProps: true,
|
189
|
-
mixins: true,
|
190
|
-
propTypes: true,
|
191
|
-
type: true
|
192
|
-
};
|
193
|
-
var KNOWN_STATICS = {
|
194
|
-
name: true,
|
195
|
-
length: true,
|
196
|
-
prototype: true,
|
197
|
-
caller: true,
|
198
|
-
callee: true,
|
199
|
-
arguments: true,
|
200
|
-
arity: true
|
201
|
-
};
|
202
|
-
var FORWARD_REF_STATICS = {
|
203
|
-
"$$typeof": true,
|
204
|
-
render: true,
|
205
|
-
defaultProps: true,
|
206
|
-
displayName: true,
|
207
|
-
propTypes: true
|
208
|
-
};
|
209
|
-
var MEMO_STATICS = {
|
210
|
-
"$$typeof": true,
|
211
|
-
compare: true,
|
212
|
-
defaultProps: true,
|
213
|
-
displayName: true,
|
214
|
-
propTypes: true,
|
215
|
-
type: true
|
216
|
-
};
|
217
|
-
var TYPE_STATICS = {};
|
218
|
-
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
219
|
-
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
220
|
-
function getStatics(component) {
|
221
|
-
if (reactIs.isMemo(component)) {
|
222
|
-
return MEMO_STATICS;
|
223
|
-
}
|
224
|
-
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
225
|
-
}
|
226
|
-
var defineProperty = Object.defineProperty;
|
227
|
-
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
228
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
229
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
230
|
-
var getPrototypeOf = Object.getPrototypeOf;
|
231
|
-
var objectPrototype = Object.prototype;
|
232
|
-
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
233
|
-
if (typeof sourceComponent !== "string") {
|
234
|
-
if (objectPrototype) {
|
235
|
-
var inheritedComponent = getPrototypeOf(sourceComponent);
|
236
|
-
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
237
|
-
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
238
|
-
}
|
239
|
-
}
|
240
|
-
var keys = getOwnPropertyNames(sourceComponent);
|
241
|
-
if (getOwnPropertySymbols) {
|
242
|
-
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
243
|
-
}
|
244
|
-
var targetStatics = getStatics(targetComponent);
|
245
|
-
var sourceStatics = getStatics(sourceComponent);
|
246
|
-
for (var i = 0; i < keys.length; ++i) {
|
247
|
-
var key = keys[i];
|
248
|
-
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
249
|
-
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
250
|
-
try {
|
251
|
-
defineProperty(targetComponent, key, descriptor);
|
252
|
-
} catch (e) {
|
253
|
-
}
|
254
|
-
}
|
255
|
-
}
|
256
|
-
}
|
257
|
-
return targetComponent;
|
258
|
-
}
|
259
|
-
module.exports = hoistNonReactStatics;
|
260
|
-
}
|
261
|
-
});
|
262
|
-
|
263
|
-
// node_modules/@emotion/unitless/dist/unitless.browser.esm.js
|
264
|
-
init_react_shim();
|
265
|
-
var unitlessKeys = {
|
266
|
-
animationIterationCount: 1,
|
267
|
-
borderImageOutset: 1,
|
268
|
-
borderImageSlice: 1,
|
269
|
-
borderImageWidth: 1,
|
270
|
-
boxFlex: 1,
|
271
|
-
boxFlexGroup: 1,
|
272
|
-
boxOrdinalGroup: 1,
|
273
|
-
columnCount: 1,
|
274
|
-
columns: 1,
|
275
|
-
flex: 1,
|
276
|
-
flexGrow: 1,
|
277
|
-
flexPositive: 1,
|
278
|
-
flexShrink: 1,
|
279
|
-
flexNegative: 1,
|
280
|
-
flexOrder: 1,
|
281
|
-
gridRow: 1,
|
282
|
-
gridRowEnd: 1,
|
283
|
-
gridRowSpan: 1,
|
284
|
-
gridRowStart: 1,
|
285
|
-
gridColumn: 1,
|
286
|
-
gridColumnEnd: 1,
|
287
|
-
gridColumnSpan: 1,
|
288
|
-
gridColumnStart: 1,
|
289
|
-
msGridRow: 1,
|
290
|
-
msGridRowSpan: 1,
|
291
|
-
msGridColumn: 1,
|
292
|
-
msGridColumnSpan: 1,
|
293
|
-
fontWeight: 1,
|
294
|
-
lineHeight: 1,
|
295
|
-
opacity: 1,
|
296
|
-
order: 1,
|
297
|
-
orphans: 1,
|
298
|
-
tabSize: 1,
|
299
|
-
widows: 1,
|
300
|
-
zIndex: 1,
|
301
|
-
zoom: 1,
|
302
|
-
WebkitLineClamp: 1,
|
303
|
-
fillOpacity: 1,
|
304
|
-
floodOpacity: 1,
|
305
|
-
stopOpacity: 1,
|
306
|
-
strokeDasharray: 1,
|
307
|
-
strokeDashoffset: 1,
|
308
|
-
strokeMiterlimit: 1,
|
309
|
-
strokeOpacity: 1,
|
310
|
-
strokeWidth: 1
|
311
|
-
};
|
312
|
-
var unitless_browser_esm_default = unitlessKeys;
|
313
|
-
|
314
174
|
export {
|
315
|
-
require_react_is
|
316
|
-
require_hoist_non_react_statics_cjs,
|
317
|
-
unitless_browser_esm_default
|
175
|
+
require_react_is
|
318
176
|
};
|
319
177
|
/** @license React v16.13.1
|
320
178
|
* react-is.development.js
|