@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
package/lib/Table/Table.js
CHANGED
@@ -1,522 +1,20 @@
|
|
1
1
|
import {
|
2
|
-
|
3
|
-
} from "../../chunk-
|
2
|
+
require_prop_types
|
3
|
+
} from "../../chunk-3XAMXSCG.js";
|
4
|
+
import "../../chunk-XYFEP7P7.js";
|
4
5
|
import {
|
5
6
|
_extends,
|
6
7
|
useTheme
|
7
|
-
} from "../../chunk-
|
8
|
-
import
|
9
|
-
|
10
|
-
} from "../../chunk-KAXHKCBQ.js";
|
8
|
+
} from "../../chunk-NHLP3WU5.js";
|
9
|
+
import "../../chunk-ZBFNXEOS.js";
|
10
|
+
import "../../chunk-CGG5PA2W.js";
|
11
11
|
import "../../chunk-QFKGGJAB.js";
|
12
12
|
import {
|
13
13
|
React,
|
14
|
-
__commonJS,
|
15
14
|
__toModule,
|
16
15
|
init_react_shim
|
17
16
|
} from "../../chunk-IPJCOOHW.js";
|
18
17
|
|
19
|
-
// node_modules/prop-types/lib/ReactPropTypesSecret.js
|
20
|
-
var require_ReactPropTypesSecret = __commonJS({
|
21
|
-
"node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
|
22
|
-
init_react_shim();
|
23
|
-
"use strict";
|
24
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
25
|
-
module.exports = ReactPropTypesSecret;
|
26
|
-
}
|
27
|
-
});
|
28
|
-
|
29
|
-
// node_modules/prop-types/checkPropTypes.js
|
30
|
-
var require_checkPropTypes = __commonJS({
|
31
|
-
"node_modules/prop-types/checkPropTypes.js"(exports, module) {
|
32
|
-
init_react_shim();
|
33
|
-
"use strict";
|
34
|
-
var printWarning = function() {
|
35
|
-
};
|
36
|
-
if (true) {
|
37
|
-
ReactPropTypesSecret = require_ReactPropTypesSecret();
|
38
|
-
loggedTypeFailures = {};
|
39
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
40
|
-
printWarning = function(text) {
|
41
|
-
var message = "Warning: " + text;
|
42
|
-
if (typeof console !== "undefined") {
|
43
|
-
console.error(message);
|
44
|
-
}
|
45
|
-
try {
|
46
|
-
throw new Error(message);
|
47
|
-
} catch (x) {
|
48
|
-
}
|
49
|
-
};
|
50
|
-
}
|
51
|
-
var ReactPropTypesSecret;
|
52
|
-
var loggedTypeFailures;
|
53
|
-
var has;
|
54
|
-
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
55
|
-
if (true) {
|
56
|
-
for (var typeSpecName in typeSpecs) {
|
57
|
-
if (has(typeSpecs, typeSpecName)) {
|
58
|
-
var error;
|
59
|
-
try {
|
60
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
61
|
-
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] + "`.");
|
62
|
-
err.name = "Invariant Violation";
|
63
|
-
throw err;
|
64
|
-
}
|
65
|
-
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
66
|
-
} catch (ex) {
|
67
|
-
error = ex;
|
68
|
-
}
|
69
|
-
if (error && !(error instanceof Error)) {
|
70
|
-
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).");
|
71
|
-
}
|
72
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
73
|
-
loggedTypeFailures[error.message] = true;
|
74
|
-
var stack = getStack ? getStack() : "";
|
75
|
-
printWarning("Failed " + location + " type: " + error.message + (stack != null ? stack : ""));
|
76
|
-
}
|
77
|
-
}
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
checkPropTypes.resetWarningCache = function() {
|
82
|
-
if (true) {
|
83
|
-
loggedTypeFailures = {};
|
84
|
-
}
|
85
|
-
};
|
86
|
-
module.exports = checkPropTypes;
|
87
|
-
}
|
88
|
-
});
|
89
|
-
|
90
|
-
// node_modules/prop-types/factoryWithTypeCheckers.js
|
91
|
-
var require_factoryWithTypeCheckers = __commonJS({
|
92
|
-
"node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) {
|
93
|
-
init_react_shim();
|
94
|
-
"use strict";
|
95
|
-
var ReactIs = require_react_is();
|
96
|
-
var assign = require_object_assign();
|
97
|
-
var ReactPropTypesSecret = require_ReactPropTypesSecret();
|
98
|
-
var checkPropTypes = require_checkPropTypes();
|
99
|
-
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
100
|
-
var printWarning = function() {
|
101
|
-
};
|
102
|
-
if (true) {
|
103
|
-
printWarning = function(text) {
|
104
|
-
var message = "Warning: " + text;
|
105
|
-
if (typeof console !== "undefined") {
|
106
|
-
console.error(message);
|
107
|
-
}
|
108
|
-
try {
|
109
|
-
throw new Error(message);
|
110
|
-
} catch (x) {
|
111
|
-
}
|
112
|
-
};
|
113
|
-
}
|
114
|
-
function emptyFunctionThatReturnsNull() {
|
115
|
-
return null;
|
116
|
-
}
|
117
|
-
module.exports = function(isValidElement2, throwOnDirectAccess) {
|
118
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
119
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
120
|
-
function getIteratorFn(maybeIterable) {
|
121
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
122
|
-
if (typeof iteratorFn === "function") {
|
123
|
-
return iteratorFn;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
var ANONYMOUS = "<<anonymous>>";
|
127
|
-
var ReactPropTypes = {
|
128
|
-
array: createPrimitiveTypeChecker("array"),
|
129
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
130
|
-
func: createPrimitiveTypeChecker("function"),
|
131
|
-
number: createPrimitiveTypeChecker("number"),
|
132
|
-
object: createPrimitiveTypeChecker("object"),
|
133
|
-
string: createPrimitiveTypeChecker("string"),
|
134
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
135
|
-
any: createAnyTypeChecker(),
|
136
|
-
arrayOf: createArrayOfTypeChecker,
|
137
|
-
element: createElementTypeChecker(),
|
138
|
-
elementType: createElementTypeTypeChecker(),
|
139
|
-
instanceOf: createInstanceTypeChecker,
|
140
|
-
node: createNodeChecker(),
|
141
|
-
objectOf: createObjectOfTypeChecker,
|
142
|
-
oneOf: createEnumTypeChecker,
|
143
|
-
oneOfType: createUnionTypeChecker,
|
144
|
-
shape: createShapeTypeChecker,
|
145
|
-
exact: createStrictShapeTypeChecker
|
146
|
-
};
|
147
|
-
function is(x, y) {
|
148
|
-
if (x === y) {
|
149
|
-
return x !== 0 || 1 / x === 1 / y;
|
150
|
-
} else {
|
151
|
-
return x !== x && y !== y;
|
152
|
-
}
|
153
|
-
}
|
154
|
-
function PropTypeError(message) {
|
155
|
-
this.message = message;
|
156
|
-
this.stack = "";
|
157
|
-
}
|
158
|
-
PropTypeError.prototype = Error.prototype;
|
159
|
-
function createChainableTypeChecker(validate) {
|
160
|
-
if (true) {
|
161
|
-
var manualPropTypeCallCache = {};
|
162
|
-
var manualPropTypeWarningCount = 0;
|
163
|
-
}
|
164
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
165
|
-
componentName = componentName || ANONYMOUS;
|
166
|
-
propFullName = propFullName || propName;
|
167
|
-
if (secret !== ReactPropTypesSecret) {
|
168
|
-
if (throwOnDirectAccess) {
|
169
|
-
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");
|
170
|
-
err.name = "Invariant Violation";
|
171
|
-
throw err;
|
172
|
-
} else if (typeof console !== "undefined") {
|
173
|
-
var cacheKey = componentName + ":" + propName;
|
174
|
-
if (!manualPropTypeCallCache[cacheKey] && manualPropTypeWarningCount < 3) {
|
175
|
-
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.");
|
176
|
-
manualPropTypeCallCache[cacheKey] = true;
|
177
|
-
manualPropTypeWarningCount++;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
if (props[propName] == null) {
|
182
|
-
if (isRequired) {
|
183
|
-
if (props[propName] === null) {
|
184
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
185
|
-
}
|
186
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
187
|
-
}
|
188
|
-
return null;
|
189
|
-
} else {
|
190
|
-
return validate(props, propName, componentName, location, propFullName);
|
191
|
-
}
|
192
|
-
}
|
193
|
-
var chainedCheckType = checkType.bind(null, false);
|
194
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
195
|
-
return chainedCheckType;
|
196
|
-
}
|
197
|
-
function createPrimitiveTypeChecker(expectedType) {
|
198
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
199
|
-
var propValue = props[propName];
|
200
|
-
var propType = getPropType(propValue);
|
201
|
-
if (propType !== expectedType) {
|
202
|
-
var preciseType = getPreciseType(propValue);
|
203
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."));
|
204
|
-
}
|
205
|
-
return null;
|
206
|
-
}
|
207
|
-
return createChainableTypeChecker(validate);
|
208
|
-
}
|
209
|
-
function createAnyTypeChecker() {
|
210
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
211
|
-
}
|
212
|
-
function createArrayOfTypeChecker(typeChecker) {
|
213
|
-
function validate(props, propName, componentName, location, propFullName) {
|
214
|
-
if (typeof typeChecker !== "function") {
|
215
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
216
|
-
}
|
217
|
-
var propValue = props[propName];
|
218
|
-
if (!Array.isArray(propValue)) {
|
219
|
-
var propType = getPropType(propValue);
|
220
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
221
|
-
}
|
222
|
-
for (var i = 0; i < propValue.length; i++) {
|
223
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
224
|
-
if (error instanceof Error) {
|
225
|
-
return error;
|
226
|
-
}
|
227
|
-
}
|
228
|
-
return null;
|
229
|
-
}
|
230
|
-
return createChainableTypeChecker(validate);
|
231
|
-
}
|
232
|
-
function createElementTypeChecker() {
|
233
|
-
function validate(props, propName, componentName, location, propFullName) {
|
234
|
-
var propValue = props[propName];
|
235
|
-
if (!isValidElement2(propValue)) {
|
236
|
-
var propType = getPropType(propValue);
|
237
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
238
|
-
}
|
239
|
-
return null;
|
240
|
-
}
|
241
|
-
return createChainableTypeChecker(validate);
|
242
|
-
}
|
243
|
-
function createElementTypeTypeChecker() {
|
244
|
-
function validate(props, propName, componentName, location, propFullName) {
|
245
|
-
var propValue = props[propName];
|
246
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
247
|
-
var propType = getPropType(propValue);
|
248
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
249
|
-
}
|
250
|
-
return null;
|
251
|
-
}
|
252
|
-
return createChainableTypeChecker(validate);
|
253
|
-
}
|
254
|
-
function createInstanceTypeChecker(expectedClass) {
|
255
|
-
function validate(props, propName, componentName, location, propFullName) {
|
256
|
-
if (!(props[propName] instanceof expectedClass)) {
|
257
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
258
|
-
var actualClassName = getClassName(props[propName]);
|
259
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
260
|
-
}
|
261
|
-
return null;
|
262
|
-
}
|
263
|
-
return createChainableTypeChecker(validate);
|
264
|
-
}
|
265
|
-
function createEnumTypeChecker(expectedValues) {
|
266
|
-
if (!Array.isArray(expectedValues)) {
|
267
|
-
if (true) {
|
268
|
-
if (arguments.length > 1) {
|
269
|
-
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]).");
|
270
|
-
} else {
|
271
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
272
|
-
}
|
273
|
-
}
|
274
|
-
return emptyFunctionThatReturnsNull;
|
275
|
-
}
|
276
|
-
function validate(props, propName, componentName, location, propFullName) {
|
277
|
-
var propValue = props[propName];
|
278
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
279
|
-
if (is(propValue, expectedValues[i])) {
|
280
|
-
return null;
|
281
|
-
}
|
282
|
-
}
|
283
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
284
|
-
var type = getPreciseType(value);
|
285
|
-
if (type === "symbol") {
|
286
|
-
return String(value);
|
287
|
-
}
|
288
|
-
return value;
|
289
|
-
});
|
290
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
291
|
-
}
|
292
|
-
return createChainableTypeChecker(validate);
|
293
|
-
}
|
294
|
-
function createObjectOfTypeChecker(typeChecker) {
|
295
|
-
function validate(props, propName, componentName, location, propFullName) {
|
296
|
-
if (typeof typeChecker !== "function") {
|
297
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
298
|
-
}
|
299
|
-
var propValue = props[propName];
|
300
|
-
var propType = getPropType(propValue);
|
301
|
-
if (propType !== "object") {
|
302
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
303
|
-
}
|
304
|
-
for (var key in propValue) {
|
305
|
-
if (has(propValue, key)) {
|
306
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
307
|
-
if (error instanceof Error) {
|
308
|
-
return error;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
return null;
|
313
|
-
}
|
314
|
-
return createChainableTypeChecker(validate);
|
315
|
-
}
|
316
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
317
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
318
|
-
true ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
319
|
-
return emptyFunctionThatReturnsNull;
|
320
|
-
}
|
321
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
322
|
-
var checker = arrayOfTypeCheckers[i];
|
323
|
-
if (typeof checker !== "function") {
|
324
|
-
printWarning("Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + ".");
|
325
|
-
return emptyFunctionThatReturnsNull;
|
326
|
-
}
|
327
|
-
}
|
328
|
-
function validate(props, propName, componentName, location, propFullName) {
|
329
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
330
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
331
|
-
if (checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
332
|
-
return null;
|
333
|
-
}
|
334
|
-
}
|
335
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`."));
|
336
|
-
}
|
337
|
-
return createChainableTypeChecker(validate);
|
338
|
-
}
|
339
|
-
function createNodeChecker() {
|
340
|
-
function validate(props, propName, componentName, location, propFullName) {
|
341
|
-
if (!isNode(props[propName])) {
|
342
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
343
|
-
}
|
344
|
-
return null;
|
345
|
-
}
|
346
|
-
return createChainableTypeChecker(validate);
|
347
|
-
}
|
348
|
-
function createShapeTypeChecker(shapeTypes) {
|
349
|
-
function validate(props, propName, componentName, location, propFullName) {
|
350
|
-
var propValue = props[propName];
|
351
|
-
var propType = getPropType(propValue);
|
352
|
-
if (propType !== "object") {
|
353
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
354
|
-
}
|
355
|
-
for (var key in shapeTypes) {
|
356
|
-
var checker = shapeTypes[key];
|
357
|
-
if (!checker) {
|
358
|
-
continue;
|
359
|
-
}
|
360
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
361
|
-
if (error) {
|
362
|
-
return error;
|
363
|
-
}
|
364
|
-
}
|
365
|
-
return null;
|
366
|
-
}
|
367
|
-
return createChainableTypeChecker(validate);
|
368
|
-
}
|
369
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
370
|
-
function validate(props, propName, componentName, location, propFullName) {
|
371
|
-
var propValue = props[propName];
|
372
|
-
var propType = getPropType(propValue);
|
373
|
-
if (propType !== "object") {
|
374
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
375
|
-
}
|
376
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
377
|
-
for (var key in allKeys) {
|
378
|
-
var checker = shapeTypes[key];
|
379
|
-
if (!checker) {
|
380
|
-
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, " "));
|
381
|
-
}
|
382
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
383
|
-
if (error) {
|
384
|
-
return error;
|
385
|
-
}
|
386
|
-
}
|
387
|
-
return null;
|
388
|
-
}
|
389
|
-
return createChainableTypeChecker(validate);
|
390
|
-
}
|
391
|
-
function isNode(propValue) {
|
392
|
-
switch (typeof propValue) {
|
393
|
-
case "number":
|
394
|
-
case "string":
|
395
|
-
case "undefined":
|
396
|
-
return true;
|
397
|
-
case "boolean":
|
398
|
-
return !propValue;
|
399
|
-
case "object":
|
400
|
-
if (Array.isArray(propValue)) {
|
401
|
-
return propValue.every(isNode);
|
402
|
-
}
|
403
|
-
if (propValue === null || isValidElement2(propValue)) {
|
404
|
-
return true;
|
405
|
-
}
|
406
|
-
var iteratorFn = getIteratorFn(propValue);
|
407
|
-
if (iteratorFn) {
|
408
|
-
var iterator = iteratorFn.call(propValue);
|
409
|
-
var step;
|
410
|
-
if (iteratorFn !== propValue.entries) {
|
411
|
-
while (!(step = iterator.next()).done) {
|
412
|
-
if (!isNode(step.value)) {
|
413
|
-
return false;
|
414
|
-
}
|
415
|
-
}
|
416
|
-
} else {
|
417
|
-
while (!(step = iterator.next()).done) {
|
418
|
-
var entry = step.value;
|
419
|
-
if (entry) {
|
420
|
-
if (!isNode(entry[1])) {
|
421
|
-
return false;
|
422
|
-
}
|
423
|
-
}
|
424
|
-
}
|
425
|
-
}
|
426
|
-
} else {
|
427
|
-
return false;
|
428
|
-
}
|
429
|
-
return true;
|
430
|
-
default:
|
431
|
-
return false;
|
432
|
-
}
|
433
|
-
}
|
434
|
-
function isSymbol(propType, propValue) {
|
435
|
-
if (propType === "symbol") {
|
436
|
-
return true;
|
437
|
-
}
|
438
|
-
if (!propValue) {
|
439
|
-
return false;
|
440
|
-
}
|
441
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
442
|
-
return true;
|
443
|
-
}
|
444
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
445
|
-
return true;
|
446
|
-
}
|
447
|
-
return false;
|
448
|
-
}
|
449
|
-
function getPropType(propValue) {
|
450
|
-
var propType = typeof propValue;
|
451
|
-
if (Array.isArray(propValue)) {
|
452
|
-
return "array";
|
453
|
-
}
|
454
|
-
if (propValue instanceof RegExp) {
|
455
|
-
return "object";
|
456
|
-
}
|
457
|
-
if (isSymbol(propType, propValue)) {
|
458
|
-
return "symbol";
|
459
|
-
}
|
460
|
-
return propType;
|
461
|
-
}
|
462
|
-
function getPreciseType(propValue) {
|
463
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
464
|
-
return "" + propValue;
|
465
|
-
}
|
466
|
-
var propType = getPropType(propValue);
|
467
|
-
if (propType === "object") {
|
468
|
-
if (propValue instanceof Date) {
|
469
|
-
return "date";
|
470
|
-
} else if (propValue instanceof RegExp) {
|
471
|
-
return "regexp";
|
472
|
-
}
|
473
|
-
}
|
474
|
-
return propType;
|
475
|
-
}
|
476
|
-
function getPostfixForTypeWarning(value) {
|
477
|
-
var type = getPreciseType(value);
|
478
|
-
switch (type) {
|
479
|
-
case "array":
|
480
|
-
case "object":
|
481
|
-
return "an " + type;
|
482
|
-
case "boolean":
|
483
|
-
case "date":
|
484
|
-
case "regexp":
|
485
|
-
return "a " + type;
|
486
|
-
default:
|
487
|
-
return type;
|
488
|
-
}
|
489
|
-
}
|
490
|
-
function getClassName(propValue) {
|
491
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
492
|
-
return ANONYMOUS;
|
493
|
-
}
|
494
|
-
return propValue.constructor.name;
|
495
|
-
}
|
496
|
-
ReactPropTypes.checkPropTypes = checkPropTypes;
|
497
|
-
ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
|
498
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
499
|
-
return ReactPropTypes;
|
500
|
-
};
|
501
|
-
}
|
502
|
-
});
|
503
|
-
|
504
|
-
// node_modules/prop-types/index.js
|
505
|
-
var require_prop_types = __commonJS({
|
506
|
-
"node_modules/prop-types/index.js"(exports, module) {
|
507
|
-
init_react_shim();
|
508
|
-
if (true) {
|
509
|
-
ReactIs = require_react_is();
|
510
|
-
throwOnDirectAccess = true;
|
511
|
-
module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
512
|
-
} else {
|
513
|
-
module.exports = null();
|
514
|
-
}
|
515
|
-
var ReactIs;
|
516
|
-
var throwOnDirectAccess;
|
517
|
-
}
|
518
|
-
});
|
519
|
-
|
520
18
|
// libs/shared/ui-system/src/lib/Table/Table.tsx
|
521
19
|
init_react_shim();
|
522
20
|
import { Children as Children2, isValidElement } from "react";
|