diff --git a/src/index.js b/src/index.js index ae6077a6f2..4ac89226c2 100644 --- a/src/index.js +++ b/src/index.js @@ -67,4 +67,17 @@ export Collapse from './Collapse'; export Fade from './Collapse'; export * as FormControls from './FormControls'; -export * as utils from './utils'; + +import childrenValueInputValidation from './utils/childrenValueInputValidation'; +import createChainedFunction from './utils/createChainedFunction'; +import domUtils from './utils/domUtils'; +import ValidComponentChildren from './utils/ValidComponentChildren'; +import CustomPropTypes from './utils/CustomPropTypes'; + +export const utils = { + childrenValueInputValidation, + createChainedFunction, + domUtils, + ValidComponentChildren, + CustomPropTypes +}; diff --git a/src/utils/index.js b/src/utils/index.js index f024432a7b..e0048ad683 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -1,5 +1,10 @@ +import deprecationWarning from './deprecationWarning'; + export childrenValueInputValidation from './childrenValueInputValidation'; export createChainedFunction from './createChainedFunction'; -export CustomPropTypes from './CustomPropTypes'; export domUtils from './domUtils'; export ValidComponentChildren from './ValidComponentChildren'; + +deprecationWarning('utils/CustomPropTypes', 'npm install react-prop-types', + 'https://github.com/react-bootstrap/react-bootstrap/issues/937'); +export CustomPropTypes from './CustomPropTypes';