From a40c94804752a33caa506a2f0211ba12951c635c Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 12 Dec 2017 09:51:49 +0100 Subject: [PATCH 1/2] Fix scrollbar thumb size when the list is in a flexboxed container --- react-list.es6 | 2 +- react-list.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-list.es6 b/react-list.es6 index 7e68f85..f403cca 100644 --- a/react-list.es6 +++ b/react-list.es6 @@ -10,7 +10,7 @@ const OFFSET_START_KEYS = {x: 'offsetLeft', y: 'offsetTop'}; const OVERFLOW_KEYS = {x: 'overflowX', y: 'overflowY'}; const SCROLL_SIZE_KEYS = {x: 'scrollWidth', y: 'scrollHeight'}; const SCROLL_START_KEYS = {x: 'scrollLeft', y: 'scrollTop'}; -const SIZE_KEYS = {x: 'width', y: 'height'}; +const SIZE_KEYS = {x: 'minWidth', y: 'minHeight'}; const NOOP = () => {}; diff --git a/react-list.js b/react-list.js index 7eff7c1..d0fd128 100644 --- a/react-list.js +++ b/react-list.js @@ -83,7 +83,7 @@ var OVERFLOW_KEYS = { x: 'overflowX', y: 'overflowY' }; var SCROLL_SIZE_KEYS = { x: 'scrollWidth', y: 'scrollHeight' }; var SCROLL_START_KEYS = { x: 'scrollLeft', y: 'scrollTop' }; - var SIZE_KEYS = { x: 'width', y: 'height' }; + var SIZE_KEYS = { x: 'minWidth', y: 'minHeight' }; var NOOP = function NOOP() {}; From 853b6d8061a343efb43995e772e72dc9ebc5a312 Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Tue, 12 Dec 2017 09:53:52 +0100 Subject: [PATCH 2/2] Update docs according to the previous commit --- docs/index.js | 255 +++++++++++++++++++++----------------------------- 1 file changed, 105 insertions(+), 150 deletions(-) diff --git a/docs/index.js b/docs/index.js index 7a53c1e..89772af 100644 --- a/docs/index.js +++ b/docs/index.js @@ -213,11 +213,9 @@ Cogs.define("node_modules/fbjs/lib/emptyFunction.js", ["node_modules"], ["node_m /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ @@ -251,12 +249,10 @@ module.exports = emptyFunction; }); Cogs.define("node_modules/fbjs/lib/warning.js", ["node_modules"], ["node_modules/fbjs/lib/warning"], {"./emptyFunction":"node_modules/fbjs/lib/emptyFunction.js"}, function (require, exports, module) { /** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2014-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -444,11 +440,9 @@ module.exports = canDefineProperty; Cogs.define("node_modules/fbjs/lib/emptyObject.js", ["node_modules"], ["node_modules/fbjs/lib/emptyObject"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -466,11 +460,9 @@ module.exports = emptyObject; Cogs.define("node_modules/fbjs/lib/invariant.js", ["node_modules"], ["node_modules/fbjs/lib/invariant"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -2675,12 +2667,10 @@ module.exports = ReactDOMFactories; }); Cogs.define("node_modules/prop-types/lib/ReactPropTypesSecret.js", ["node_modules"], ["node_modules/prop-types/lib/ReactPropTypesSecret"], {}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -2692,12 +2682,10 @@ module.exports = ReactPropTypesSecret; }); Cogs.define("node_modules/prop-types/checkPropTypes.js", ["node_modules"], ["node_modules/prop-types/checkPropTypes"], {"fbjs/lib/invariant":"node_modules/fbjs/lib/invariant.js","fbjs/lib/warning":"node_modules/fbjs/lib/warning.js","./lib/ReactPropTypesSecret":"node_modules/prop-types/lib/ReactPropTypesSecret.js"}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -2733,7 +2721,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) { try { // This is intentionally an invariant that gets caught. It's the same // behavior as without this statement except with a better message. - invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName); + invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'the `prop-types` package, but received `%s`.', componentName || 'React class', location, typeSpecName, _typeof(typeSpecs[typeSpecName])); error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret); } catch (ex) { error = ex; @@ -2756,14 +2744,12 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) { module.exports = checkPropTypes; }); -Cogs.define("node_modules/prop-types/factoryWithTypeCheckers.js", ["node_modules"], ["node_modules/prop-types/factoryWithTypeCheckers"], {"fbjs/lib/emptyFunction":"node_modules/fbjs/lib/emptyFunction.js","fbjs/lib/invariant":"node_modules/fbjs/lib/invariant.js","fbjs/lib/warning":"node_modules/fbjs/lib/warning.js","./lib/ReactPropTypesSecret":"node_modules/prop-types/lib/ReactPropTypesSecret.js","./checkPropTypes":"node_modules/prop-types/checkPropTypes.js"}, function (require, exports, module) { +Cogs.define("node_modules/prop-types/factoryWithTypeCheckers.js", ["node_modules"], ["node_modules/prop-types/factoryWithTypeCheckers"], {"fbjs/lib/emptyFunction":"node_modules/fbjs/lib/emptyFunction.js","fbjs/lib/invariant":"node_modules/fbjs/lib/invariant.js","fbjs/lib/warning":"node_modules/fbjs/lib/warning.js","object-assign":"node_modules/object-assign/index.js","./lib/ReactPropTypesSecret":"node_modules/prop-types/lib/ReactPropTypesSecret.js","./checkPropTypes":"node_modules/prop-types/checkPropTypes.js"}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -2773,6 +2759,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var emptyFunction = require('fbjs/lib/emptyFunction'); var invariant = require('fbjs/lib/invariant'); var warning = require('fbjs/lib/warning'); +var assign = require('object-assign'); var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret'); var checkPropTypes = require('./checkPropTypes'); @@ -2871,7 +2858,8 @@ module.exports = function (isValidElement, throwOnDirectAccess) { objectOf: createObjectOfTypeChecker, oneOf: createEnumTypeChecker, oneOfType: createUnionTypeChecker, - shape: createShapeTypeChecker + shape: createShapeTypeChecker, + exact: createStrictShapeTypeChecker }; /** @@ -3068,7 +3056,7 @@ module.exports = function (isValidElement, throwOnDirectAccess) { for (var i = 0; i < arrayOfTypeCheckers.length; i++) { var checker = arrayOfTypeCheckers[i]; if (typeof checker !== 'function') { - warning(false, 'Invalid argument supplid to oneOfType. Expected an array of check functions, but ' + 'received %s at index %s.', getPostfixForTypeWarning(checker), i); + warning(false, 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' + 'received %s at index %s.', getPostfixForTypeWarning(checker), i); return emptyFunction.thatReturnsNull; } } @@ -3118,6 +3106,32 @@ module.exports = function (isValidElement, throwOnDirectAccess) { return createChainableTypeChecker(validate); } + function createStrictShapeTypeChecker(shapeTypes) { + function validate(props, propName, componentName, location, propFullName) { + var propValue = props[propName]; + var propType = getPropType(propValue); + if (propType !== 'object') { + return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.')); + } + // We need to check all keys in case some are required but missing from + // props. + var allKeys = assign({}, props[propName], shapeTypes); + for (var key in allKeys) { + var checker = shapeTypes[key]; + if (!checker) { + 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, ' ')); + } + var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret); + if (error) { + return error; + } + } + return null; + } + + return createChainableTypeChecker(validate); + } + function isNode(propValue) { switch (typeof propValue === 'undefined' ? 'undefined' : _typeof(propValue)) { case 'number': @@ -3253,12 +3267,10 @@ module.exports = function (isValidElement, throwOnDirectAccess) { }); Cogs.define("node_modules/prop-types/factory.js", ["node_modules"], ["node_modules/prop-types/factory"], {"./factoryWithTypeCheckers":"node_modules/prop-types/factoryWithTypeCheckers.js"}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -3315,12 +3327,10 @@ module.exports = '15.6.1'; }); Cogs.define("node_modules/create-react-class/factory.js", ["node_modules"], ["node_modules/create-react-class/factory"], {"object-assign":"node_modules/object-assign/index.js","fbjs/lib/emptyObject":"node_modules/fbjs/lib/emptyObject.js","fbjs/lib/invariant":"node_modules/fbjs/lib/invariant.js","fbjs/lib/warning":"node_modules/fbjs/lib/warning.js"}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -5871,11 +5881,9 @@ module.exports = EventPropagators; Cogs.define("node_modules/fbjs/lib/ExecutionEnvironment.js", ["node_modules"], ["node_modules/fbjs/lib/ExecutionEnvironment"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -7296,11 +7304,9 @@ module.exports = ReactHostOperationHistoryHook; Cogs.define("node_modules/fbjs/lib/performance.js", ["node_modules"], ["node_modules/fbjs/lib/performance"], {"./ExecutionEnvironment":"node_modules/fbjs/lib/ExecutionEnvironment.js"}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -7323,11 +7329,9 @@ Cogs.define("node_modules/fbjs/lib/performanceNow.js", ["node_modules"], ["node_ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -10018,11 +10022,9 @@ Cogs.define("node_modules/fbjs/lib/createArrayFromMixed.js", ["node_modules"], [ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -10149,11 +10151,9 @@ Cogs.define("node_modules/fbjs/lib/getMarkupWrap.js", ["node_modules"], ["node_m /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -10246,11 +10246,9 @@ Cogs.define("node_modules/fbjs/lib/createNodesFromMarkup.js", ["node_modules"], /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -10671,11 +10669,9 @@ module.exports = ReactComponentBrowserEnvironment; Cogs.define("node_modules/fbjs/lib/focusNode.js", ["node_modules"], ["node_modules/fbjs/lib/focusNode"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * */ @@ -10884,11 +10880,9 @@ Cogs.define("node_modules/fbjs/lib/camelize.js", ["node_modules"], ["node_module /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -10916,11 +10910,9 @@ module.exports = camelize; Cogs.define("node_modules/fbjs/lib/camelizeStyleName.js", ["node_modules"], ["node_modules/fbjs/lib/camelizeStyleName"], {"./camelize":"node_modules/fbjs/lib/camelize.js"}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -11041,11 +11033,9 @@ Cogs.define("node_modules/fbjs/lib/hyphenate.js", ["node_modules"], ["node_modul /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -11074,11 +11064,9 @@ module.exports = hyphenate; Cogs.define("node_modules/fbjs/lib/hyphenateStyleName.js", ["node_modules"], ["node_modules/fbjs/lib/hyphenateStyleName"], {"./hyphenate":"node_modules/fbjs/lib/hyphenate.js"}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -11115,11 +11103,9 @@ module.exports = hyphenateStyleName; Cogs.define("node_modules/fbjs/lib/memoizeStringOnly.js", ["node_modules"], ["node_modules/fbjs/lib/memoizeStringOnly"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * * @typechecks static-only @@ -13282,11 +13268,9 @@ module.exports = checkReactTypeSpec; Cogs.define("node_modules/fbjs/lib/shallowEqual.js", ["node_modules"], ["node_modules/fbjs/lib/shallowEqual"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks * @@ -17844,11 +17828,9 @@ Cogs.define("node_modules/fbjs/lib/EventListener.js", ["node_modules"], ["node_m /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -17921,11 +17903,9 @@ module.exports = EventListener; Cogs.define("node_modules/fbjs/lib/getUnboundedScrollPosition.js", ["node_modules"], ["node_modules/fbjs/lib/getUnboundedScrollPosition"], {}, function (require, exports, module) { /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -18447,11 +18427,9 @@ Cogs.define("node_modules/fbjs/lib/isNode.js", ["node_modules"], ["node_modules/ /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -18477,11 +18455,9 @@ Cogs.define("node_modules/fbjs/lib/isTextNode.js", ["node_modules"], ["node_modu /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -18504,11 +18480,9 @@ Cogs.define("node_modules/fbjs/lib/containsNode.js", ["node_modules"], ["node_mo /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * */ @@ -18546,11 +18520,9 @@ Cogs.define("node_modules/fbjs/lib/getActiveElement.js", ["node_modules"], ["nod /** * Copyright (c) 2013-present, Facebook, Inc. - * All rights reserved. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. * * @typechecks */ @@ -21445,12 +21417,10 @@ module.exports = require('./lib/ReactDOM'); }); Cogs.define("node_modules/prop-types/factoryWithThrowingShims.js", ["node_modules"], ["node_modules/prop-types/factoryWithThrowingShims"], {"fbjs/lib/emptyFunction":"node_modules/fbjs/lib/emptyFunction.js","fbjs/lib/invariant":"node_modules/fbjs/lib/invariant.js","./lib/ReactPropTypesSecret":"node_modules/prop-types/lib/ReactPropTypesSecret.js"}, function (require, exports, module) { /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ 'use strict'; @@ -21490,7 +21460,8 @@ module.exports = function () { objectOf: getShim, oneOf: getShim, oneOfType: getShim, - shape: getShim + shape: getShim, + exact: getShim }; ReactPropTypes.checkPropTypes = emptyFunction; @@ -21506,12 +21477,10 @@ Cogs.define("node_modules/prop-types/index.js", ["node_modules"], ["node_modules var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /** - * Copyright 2013-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. */ if ('development' !== 'production') { @@ -21564,20 +21533,6 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol }; } - var _extends = Object.assign || function (target) { - for (var i = 1; i < arguments.length; i++) { - var source = arguments[i]; - - for (var key in source) { - if (Object.prototype.hasOwnProperty.call(source, key)) { - target[key] = source[key]; - } - } - } - - return target; - }; - function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); @@ -21636,7 +21591,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol var OVERFLOW_KEYS = { x: 'overflowX', y: 'overflowY' }; var SCROLL_SIZE_KEYS = { x: 'scrollWidth', y: 'scrollHeight' }; var SCROLL_START_KEYS = { x: 'scrollLeft', y: 'scrollTop' }; - var SIZE_KEYS = { x: 'width', y: 'height' }; + var SIZE_KEYS = { x: 'minWidth', y: 'minHeight' }; var NOOP = function NOOP() {}; @@ -22182,9 +22137,9 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol WebkitTransform: transform, transform: transform }; - return _react2.default.createElement('div', _extends({ style: style }, { ref: function ref(c) { + return _react2.default.createElement('div', { style: style, ref: function ref(c) { return _this4.el = c; - } }), _react2.default.createElement('div', { style: listStyle }, items)); + } }, _react2.default.createElement('div', { style: listStyle }, items)); } }]);