@cleartrip/ct-design-ct-react-day-picker 2.5.0-beta.0 → 2.6.0
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/dist/index.esm.js +0 -19
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +0 -19
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -1300,7 +1300,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
|
-
var didWarnAboutKeySpread = {};
|
|
1304
1303
|
function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
|
|
1305
1304
|
{
|
|
1306
1305
|
var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
|
|
@@ -1371,24 +1370,6 @@ function requireReactJsxRuntime_development () {
|
|
|
1371
1370
|
}
|
|
1372
1371
|
}
|
|
1373
1372
|
|
|
1374
|
-
{
|
|
1375
|
-
if (hasOwnProperty.call(props, 'key')) {
|
|
1376
|
-
var componentName = getComponentNameFromType(type);
|
|
1377
|
-
var keys = Object.keys(props).filter(function (k) {
|
|
1378
|
-
return k !== 'key';
|
|
1379
|
-
});
|
|
1380
|
-
var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
|
|
1381
|
-
|
|
1382
|
-
if (!didWarnAboutKeySpread[componentName + beforeExample]) {
|
|
1383
|
-
var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
|
|
1384
|
-
|
|
1385
|
-
error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
|
|
1386
|
-
|
|
1387
|
-
didWarnAboutKeySpread[componentName + beforeExample] = true;
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
1373
|
if (type === REACT_FRAGMENT_TYPE) {
|
|
1393
1374
|
validateFragmentProps(element);
|
|
1394
1375
|
} else {
|