@esvndev/es-react-config-setting 1.0.28 → 1.0.30

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.mjs CHANGED
@@ -372,7 +372,7 @@ domCss.exports.get = function (element, properties) {
372
372
  }
373
373
  };
374
374
 
375
- var propTypes$6 = {exports: {}};
375
+ var propTypes$9 = {exports: {}};
376
376
 
377
377
  var reactIs = {exports: {}};
378
378
 
@@ -1468,14 +1468,14 @@ if (process.env.NODE_ENV !== 'production') {
1468
1468
  // By explicitly using `prop-types` you are opting into new development behavior.
1469
1469
  // http://fb.me/prop-types-in-prod
1470
1470
  var throwOnDirectAccess = true;
1471
- propTypes$6.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1471
+ propTypes$9.exports = factoryWithTypeCheckers(ReactIs.isElement, throwOnDirectAccess);
1472
1472
  } else {
1473
1473
  // By explicitly using `prop-types` you are opting into new production behavior.
1474
1474
  // http://fb.me/prop-types-in-prod
1475
- propTypes$6.exports = factoryWithThrowingShims();
1475
+ propTypes$9.exports = factoryWithThrowingShims();
1476
1476
  }
1477
1477
 
1478
- var PropTypes = propTypes$6.exports;
1478
+ var PropTypes = propTypes$9.exports;
1479
1479
 
1480
1480
  var isString$1 = {};
1481
1481
 
@@ -1661,7 +1661,7 @@ Object.defineProperty(defaultRenderElements, "__esModule", {
1661
1661
  value: true
1662
1662
  });
1663
1663
 
1664
- var _extends$5 = 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; };
1664
+ var _extends$8 = 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; };
1665
1665
 
1666
1666
  defaultRenderElements.renderViewDefault = renderViewDefault;
1667
1667
  defaultRenderElements.renderTrackHorizontalDefault = renderTrackHorizontalDefault;
@@ -1675,7 +1675,7 @@ var _react2 = _interopRequireDefault(_react);
1675
1675
 
1676
1676
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
1677
1677
 
1678
- function _objectWithoutProperties$4(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
1678
+ function _objectWithoutProperties$7(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
1679
1679
 
1680
1680
  /* eslint-disable react/prop-types */
1681
1681
 
@@ -1685,52 +1685,52 @@ function renderViewDefault(props) {
1685
1685
 
1686
1686
  function renderTrackHorizontalDefault(_ref) {
1687
1687
  var style = _ref.style,
1688
- props = _objectWithoutProperties$4(_ref, ['style']);
1688
+ props = _objectWithoutProperties$7(_ref, ['style']);
1689
1689
 
1690
- var finalStyle = _extends$5({}, style, {
1690
+ var finalStyle = _extends$8({}, style, {
1691
1691
  right: 2,
1692
1692
  bottom: 2,
1693
1693
  left: 2,
1694
1694
  borderRadius: 3
1695
1695
  });
1696
- return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
1696
+ return _react2["default"].createElement('div', _extends$8({ style: finalStyle }, props));
1697
1697
  }
1698
1698
 
1699
1699
  function renderTrackVerticalDefault(_ref2) {
1700
1700
  var style = _ref2.style,
1701
- props = _objectWithoutProperties$4(_ref2, ['style']);
1701
+ props = _objectWithoutProperties$7(_ref2, ['style']);
1702
1702
 
1703
- var finalStyle = _extends$5({}, style, {
1703
+ var finalStyle = _extends$8({}, style, {
1704
1704
  right: 2,
1705
1705
  bottom: 2,
1706
1706
  top: 2,
1707
1707
  borderRadius: 3
1708
1708
  });
1709
- return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
1709
+ return _react2["default"].createElement('div', _extends$8({ style: finalStyle }, props));
1710
1710
  }
1711
1711
 
1712
1712
  function renderThumbHorizontalDefault(_ref3) {
1713
1713
  var style = _ref3.style,
1714
- props = _objectWithoutProperties$4(_ref3, ['style']);
1714
+ props = _objectWithoutProperties$7(_ref3, ['style']);
1715
1715
 
1716
- var finalStyle = _extends$5({}, style, {
1716
+ var finalStyle = _extends$8({}, style, {
1717
1717
  cursor: 'pointer',
1718
1718
  borderRadius: 'inherit',
1719
1719
  backgroundColor: 'rgba(0,0,0,.2)'
1720
1720
  });
1721
- return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
1721
+ return _react2["default"].createElement('div', _extends$8({ style: finalStyle }, props));
1722
1722
  }
1723
1723
 
1724
1724
  function renderThumbVerticalDefault(_ref4) {
1725
1725
  var style = _ref4.style,
1726
- props = _objectWithoutProperties$4(_ref4, ['style']);
1726
+ props = _objectWithoutProperties$7(_ref4, ['style']);
1727
1727
 
1728
- var finalStyle = _extends$5({}, style, {
1728
+ var finalStyle = _extends$8({}, style, {
1729
1729
  cursor: 'pointer',
1730
1730
  borderRadius: 'inherit',
1731
1731
  backgroundColor: 'rgba(0,0,0,.2)'
1732
1732
  });
1733
- return _react2["default"].createElement('div', _extends$5({ style: finalStyle }, props));
1733
+ return _react2["default"].createElement('div', _extends$8({ style: finalStyle }, props));
1734
1734
  }
1735
1735
 
1736
1736
  (function (exports) {
@@ -1753,7 +1753,7 @@ var _domCss2 = _interopRequireDefault(_domCss);
1753
1753
 
1754
1754
  var _react = React__default;
1755
1755
 
1756
- var _propTypes = propTypes$6.exports;
1756
+ var _propTypes = propTypes$9.exports;
1757
1757
 
1758
1758
  var _propTypes2 = _interopRequireDefault(_propTypes);
1759
1759
 
@@ -9688,9 +9688,9 @@ const ModalHeader = (props) => {
9688
9688
  };
9689
9689
 
9690
9690
  function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
9691
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$3(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9692
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9693
- function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$3(obj); }
9691
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty$4(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9692
+ function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9693
+ function _typeof$4(obj) { "@babel/helpers - typeof"; return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$4(obj); }
9694
9694
 
9695
9695
  // https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L436-L443
9696
9696
  function getScrollbarWidth() {
@@ -9787,7 +9787,7 @@ function deprecated(propType, explanation) {
9787
9787
  }
9788
9788
 
9789
9789
  // Shim Element if needed (e.g. in Node environment)
9790
- var Element$1 = (typeof window === "undefined" ? "undefined" : _typeof$3(window)) === 'object' && window.Element || function () {};
9790
+ var Element$1 = (typeof window === "undefined" ? "undefined" : _typeof$4(window)) === 'object' && window.Element || function () {};
9791
9791
  function DOMElement(props, propName, componentName) {
9792
9792
  if (!(props[propName] instanceof Element$1)) {
9793
9793
  return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`. Expected prop to be an instance of Element. Validation failed.');
@@ -9836,7 +9836,7 @@ var keyCodes = {
9836
9836
  };
9837
9837
  var canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
9838
9838
  function isReactRefObj(target) {
9839
- if (target && _typeof$3(target) === 'object') {
9839
+ if (target && _typeof$4(target) === 'object') {
9840
9840
  return 'current' in target;
9841
9841
  }
9842
9842
  return false;
@@ -9848,7 +9848,7 @@ function getTag(value) {
9848
9848
  return Object.prototype.toString.call(value);
9849
9849
  }
9850
9850
  function isObject(value) {
9851
- var type = _typeof$3(value);
9851
+ var type = _typeof$4(value);
9852
9852
  return value != null && (type === 'object' || type === 'function');
9853
9853
  }
9854
9854
  function isFunction(value) {
@@ -9907,20 +9907,20 @@ function addDefaultProps(defaultProps, props) {
9907
9907
  if (result[key] === undefined) {
9908
9908
  result[key] = defaultProps[key];
9909
9909
  }
9910
- if (Object.keys(defaultProps[key] || {}).length > 0 && _typeof$3(defaultProps[key]) === 'object') {
9910
+ if (Object.keys(defaultProps[key] || {}).length > 0 && _typeof$4(defaultProps[key]) === 'object') {
9911
9911
  addDefaultProps(defaultProps[key], result);
9912
9912
  }
9913
9913
  });
9914
9914
  return result;
9915
9915
  }
9916
9916
 
9917
- var _excluded$3 = ["className", "cssModule", "noGutters", "tag", "widths"];
9918
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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; }; return _extends$4.apply(this, arguments); }
9919
- function _objectWithoutProperties$3(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$4(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9920
- function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9917
+ var _excluded$6 = ["className", "cssModule", "noGutters", "tag", "widths"];
9918
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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; }; return _extends$7.apply(this, arguments); }
9919
+ function _objectWithoutProperties$6(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$7(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9920
+ function _objectWithoutPropertiesLoose$7(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9921
9921
  var rowColWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
9922
9922
  var rowColsPropType = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
9923
- var propTypes$5 = {
9923
+ var propTypes$8 = {
9924
9924
  tag: tagPropType,
9925
9925
  noGutters: deprecated(PropTypes.bool, 'Please use Bootstrap 5 gutter utility classes. https://getbootstrap.com/docs/5.0/layout/gutters/'),
9926
9926
  className: PropTypes.string,
@@ -9941,7 +9941,7 @@ function Row(props) {
9941
9941
  Tag = _props$tag === void 0 ? 'div' : _props$tag,
9942
9942
  _props$widths = props.widths,
9943
9943
  widths = _props$widths === void 0 ? rowColWidths : _props$widths,
9944
- attributes = _objectWithoutProperties$3(props, _excluded$3);
9944
+ attributes = _objectWithoutProperties$6(props, _excluded$6);
9945
9945
  var colClasses = [];
9946
9946
  widths.forEach(function (colWidth, i) {
9947
9947
  var colSize = props[colWidth];
@@ -9953,37 +9953,37 @@ function Row(props) {
9953
9953
  colClasses.push(isXs ? "row-cols-".concat(colSize) : "row-cols-".concat(colWidth, "-").concat(colSize));
9954
9954
  });
9955
9955
  var classes = mapToCssModules(classNames(className, noGutters ? 'gx-0' : null, 'row', colClasses), cssModule);
9956
- return /*#__PURE__*/React__default.createElement(Tag, _extends$4({}, attributes, {
9956
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$7({}, attributes, {
9957
9957
  className: classes
9958
9958
  }));
9959
9959
  }
9960
- Row.propTypes = propTypes$5;
9960
+ Row.propTypes = propTypes$8;
9961
9961
 
9962
- var _excluded$2 = ["className", "cssModule", "widths", "tag"];
9963
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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; }; return _extends$3.apply(this, arguments); }
9964
- function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9965
- function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9966
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9967
- var colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
9968
- var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
9969
- var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.shape({
9962
+ var _excluded$5 = ["className", "cssModule", "widths", "tag"];
9963
+ function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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; }; return _extends$6.apply(this, arguments); }
9964
+ function _objectWithoutProperties$5(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$6(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9965
+ function _objectWithoutPropertiesLoose$6(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
9966
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
9967
+ var colWidths$1 = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
9968
+ var stringOrNumberProp$1 = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
9969
+ var columnProps$1 = PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.shape({
9970
9970
  size: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]),
9971
- order: stringOrNumberProp,
9972
- offset: stringOrNumberProp
9971
+ order: stringOrNumberProp$1,
9972
+ offset: stringOrNumberProp$1
9973
9973
  })]);
9974
- var propTypes$4 = {
9974
+ var propTypes$7 = {
9975
9975
  tag: tagPropType,
9976
- xs: columnProps,
9977
- sm: columnProps,
9978
- md: columnProps,
9979
- lg: columnProps,
9980
- xl: columnProps,
9981
- xxl: columnProps,
9976
+ xs: columnProps$1,
9977
+ sm: columnProps$1,
9978
+ md: columnProps$1,
9979
+ lg: columnProps$1,
9980
+ xl: columnProps$1,
9981
+ xxl: columnProps$1,
9982
9982
  className: PropTypes.string,
9983
9983
  cssModule: PropTypes.object,
9984
9984
  widths: PropTypes.array
9985
9985
  };
9986
- var getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {
9986
+ var getColumnSizeClass$1 = function getColumnSizeClass(isXs, colWidth, colSize) {
9987
9987
  if (colSize === true || colSize === '') {
9988
9988
  return isXs ? 'col' : "col-".concat(colWidth);
9989
9989
  }
@@ -9993,7 +9993,7 @@ var getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {
9993
9993
  return isXs ? "col-".concat(colSize) : "col-".concat(colWidth, "-").concat(colSize);
9994
9994
  };
9995
9995
  var getColumnClasses = function getColumnClasses(attributes, cssModule) {
9996
- var widths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : colWidths;
9996
+ var widths = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : colWidths$1;
9997
9997
  var modifiedAttributes = attributes;
9998
9998
  var colClasses = [];
9999
9999
  widths.forEach(function (colWidth, i) {
@@ -10006,10 +10006,10 @@ var getColumnClasses = function getColumnClasses(attributes, cssModule) {
10006
10006
  if (isObject(columnProp)) {
10007
10007
  var _classNames;
10008
10008
  var colSizeInterfix = isXs ? '-' : "-".concat(colWidth, "-");
10009
- var colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
10010
- colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty$2(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty$2(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty$2(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames)), cssModule));
10009
+ var colClass = getColumnSizeClass$1(isXs, colWidth, columnProp.size);
10010
+ colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty$3(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty$3(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty$3(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames)), cssModule));
10011
10011
  } else {
10012
- var _colClass = getColumnSizeClass(isXs, colWidth, columnProp);
10012
+ var _colClass = getColumnSizeClass$1(isXs, colWidth, columnProp);
10013
10013
  colClasses.push(_colClass);
10014
10014
  }
10015
10015
  });
@@ -10022,10 +10022,10 @@ function Col(props) {
10022
10022
  var className = props.className,
10023
10023
  cssModule = props.cssModule,
10024
10024
  _props$widths = props.widths,
10025
- widths = _props$widths === void 0 ? colWidths : _props$widths,
10025
+ widths = _props$widths === void 0 ? colWidths$1 : _props$widths,
10026
10026
  _props$tag = props.tag,
10027
10027
  Tag = _props$tag === void 0 ? 'div' : _props$tag,
10028
- attributes = _objectWithoutProperties$2(props, _excluded$2);
10028
+ attributes = _objectWithoutProperties$5(props, _excluded$5);
10029
10029
  var _getColumnClasses = getColumnClasses(attributes, cssModule, widths),
10030
10030
  modifiedAttributes = _getColumnClasses.modifiedAttributes,
10031
10031
  colClasses = _getColumnClasses.colClasses;
@@ -10033,13 +10033,13 @@ function Col(props) {
10033
10033
  colClasses.push('col');
10034
10034
  }
10035
10035
  var classes = mapToCssModules(classNames(className, colClasses), cssModule);
10036
- return /*#__PURE__*/React__default.createElement(Tag, _extends$3({}, modifiedAttributes, {
10036
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$6({}, modifiedAttributes, {
10037
10037
  className: classes
10038
10038
  }));
10039
10039
  }
10040
- Col.propTypes = propTypes$4;
10040
+ Col.propTypes = propTypes$7;
10041
10041
 
10042
- function _objectWithoutPropertiesLoose$2(r, e) {
10042
+ function _objectWithoutPropertiesLoose$5(r, e) {
10043
10043
  if (null == r) return {};
10044
10044
  var t = {};
10045
10045
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
@@ -10049,14 +10049,14 @@ function _objectWithoutPropertiesLoose$2(r, e) {
10049
10049
  return t;
10050
10050
  }
10051
10051
 
10052
- function _setPrototypeOf$3(t, e) {
10053
- return _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
10052
+ function _setPrototypeOf$4(t, e) {
10053
+ return _setPrototypeOf$4 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
10054
10054
  return t.__proto__ = e, t;
10055
- }, _setPrototypeOf$3(t, e);
10055
+ }, _setPrototypeOf$4(t, e);
10056
10056
  }
10057
10057
 
10058
10058
  function _inheritsLoose(t, o) {
10059
- t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$3(t, o);
10059
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf$4(t, o);
10060
10060
  }
10061
10061
 
10062
10062
  var config = {
@@ -10478,7 +10478,7 @@ var Transition = /*#__PURE__*/function (_React$Component) {
10478
10478
  _this$props.onExiting;
10479
10479
  _this$props.onExited;
10480
10480
  _this$props.nodeRef;
10481
- var childProps = _objectWithoutPropertiesLoose$2(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
10481
+ var childProps = _objectWithoutPropertiesLoose$5(_this$props, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
10482
10482
 
10483
10483
  return (
10484
10484
  /*#__PURE__*/
@@ -10704,14 +10704,14 @@ Transition.ENTERED = ENTERED;
10704
10704
  Transition.EXITING = EXITING;
10705
10705
  var Transition$1 = Transition;
10706
10706
 
10707
- var _excluded$1 = ["tag", "baseClass", "baseClassActive", "className", "cssModule", "children", "innerRef"];
10708
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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; }; return _extends$2.apply(this, arguments); }
10709
- function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10710
- function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10707
+ var _excluded$4 = ["tag", "baseClass", "baseClassActive", "className", "cssModule", "children", "innerRef"];
10708
+ function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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; }; return _extends$5.apply(this, arguments); }
10709
+ function _objectWithoutProperties$4(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$4(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
10710
+ function _objectWithoutPropertiesLoose$4(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10711
10711
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10712
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10713
- function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10714
- var propTypes$3 = _objectSpread$1(_objectSpread$1({}, Transition$1.propTypes), {}, {
10712
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty$2(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10713
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10714
+ var propTypes$6 = _objectSpread$1(_objectSpread$1({}, Transition$1.propTypes), {}, {
10715
10715
  children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),
10716
10716
  tag: tagPropType,
10717
10717
  baseClass: PropTypes.string,
@@ -10741,48 +10741,48 @@ function Fade(props) {
10741
10741
  children = _addDefaultProps.children,
10742
10742
  _addDefaultProps$inne = _addDefaultProps.innerRef,
10743
10743
  innerRef = _addDefaultProps$inne === void 0 ? ref : _addDefaultProps$inne,
10744
- otherProps = _objectWithoutProperties$1(_addDefaultProps, _excluded$1);
10744
+ otherProps = _objectWithoutProperties$4(_addDefaultProps, _excluded$4);
10745
10745
  var transitionProps = pick(_objectSpread$1({
10746
10746
  defaultProps: defaultProps$1
10747
10747
  }, otherProps), TransitionPropTypeKeys);
10748
10748
  var childProps = omit(otherProps, TransitionPropTypeKeys);
10749
- return /*#__PURE__*/React__default.createElement(Transition$1, _extends$2({
10749
+ return /*#__PURE__*/React__default.createElement(Transition$1, _extends$5({
10750
10750
  nodeRef: innerRef
10751
10751
  }, transitionProps), function (status) {
10752
10752
  var isActive = status === 'entered';
10753
10753
  var classes = mapToCssModules(classNames(className, baseClass, isActive && baseClassActive), cssModule);
10754
- return /*#__PURE__*/React__default.createElement(Tag, _extends$2({
10754
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$5({
10755
10755
  className: classes
10756
10756
  }, childProps, {
10757
10757
  ref: innerRef
10758
10758
  }), children);
10759
10759
  });
10760
10760
  }
10761
- Fade.propTypes = propTypes$3;
10761
+ Fade.propTypes = propTypes$6;
10762
10762
 
10763
- function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
10764
- function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10765
- function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
10766
- function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10767
- function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
10768
- function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
10769
- function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
10770
- function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$2(self); }
10771
- function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10772
- function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10773
- function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
10774
- var propTypes$2 = {
10763
+ function _typeof$3(obj) { "@babel/helpers - typeof"; return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$3(obj); }
10764
+ function _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10765
+ function _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
10766
+ function _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10767
+ function _inherits$3(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$3(subClass, superClass); }
10768
+ function _setPrototypeOf$3(o, p) { _setPrototypeOf$3 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$3(o, p); }
10769
+ function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf$3(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$3(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$3(this, result); }; }
10770
+ function _possibleConstructorReturn$3(self, call) { if (call && (_typeof$3(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$3(self); }
10771
+ function _assertThisInitialized$3(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10772
+ function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10773
+ function _getPrototypeOf$3(o) { _getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$3(o); }
10774
+ var propTypes$5 = {
10775
10775
  children: PropTypes.node.isRequired,
10776
10776
  node: PropTypes.any
10777
10777
  };
10778
10778
  var Portal = /*#__PURE__*/function (_React$Component) {
10779
- _inherits$2(Portal, _React$Component);
10780
- var _super = _createSuper$2(Portal);
10779
+ _inherits$3(Portal, _React$Component);
10780
+ var _super = _createSuper$3(Portal);
10781
10781
  function Portal() {
10782
- _classCallCheck$2(this, Portal);
10782
+ _classCallCheck$3(this, Portal);
10783
10783
  return _super.apply(this, arguments);
10784
10784
  }
10785
- _createClass$2(Portal, [{
10785
+ _createClass$3(Portal, [{
10786
10786
  key: "componentWillUnmount",
10787
10787
  value: function componentWillUnmount() {
10788
10788
  if (this.defaultNode) {
@@ -10805,27 +10805,27 @@ var Portal = /*#__PURE__*/function (_React$Component) {
10805
10805
  }]);
10806
10806
  return Portal;
10807
10807
  }(React__default.Component);
10808
- Portal.propTypes = propTypes$2;
10808
+ Portal.propTypes = propTypes$5;
10809
10809
  var Portal$1 = Portal;
10810
10810
 
10811
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
10811
+ function _typeof$2(obj) { "@babel/helpers - typeof"; return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$2(obj); }
10812
10812
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10813
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10814
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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; }; return _extends$1.apply(this, arguments); }
10815
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10816
- function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10817
- function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
10818
- function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10819
- function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
10820
- function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
10821
- function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
10822
- function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$1(self); }
10823
- function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10824
- function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10825
- function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
10813
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty$1(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10814
+ function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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; }; return _extends$4.apply(this, arguments); }
10815
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10816
+ function _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10817
+ function _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
10818
+ function _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
10819
+ function _inherits$2(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$2(subClass, superClass); }
10820
+ function _setPrototypeOf$2(o, p) { _setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$2(o, p); }
10821
+ function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf$2(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$2(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$2(this, result); }; }
10822
+ function _possibleConstructorReturn$2(self, call) { if (call && (_typeof$2(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$2(self); }
10823
+ function _assertThisInitialized$2(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
10824
+ function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
10825
+ function _getPrototypeOf$2(o) { _getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$2(o); }
10826
10826
  function noop() {}
10827
10827
  var FadePropTypes = PropTypes.shape(Fade.propTypes);
10828
- var propTypes$1 = {
10828
+ var propTypes$4 = {
10829
10829
  /** */
10830
10830
  autoFocus: PropTypes.bool,
10831
10831
  /** Add backdrop to modal */
@@ -10880,7 +10880,7 @@ var propTypes$1 = {
10880
10880
  wrapClassName: PropTypes.string,
10881
10881
  zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
10882
10882
  };
10883
- var propsToOmit = Object.keys(propTypes$1);
10883
+ var propsToOmit = Object.keys(propTypes$4);
10884
10884
  var defaultProps = {
10885
10885
  isOpen: false,
10886
10886
  autoFocus: true,
@@ -10907,32 +10907,32 @@ var defaultProps = {
10907
10907
  trapFocus: false
10908
10908
  };
10909
10909
  var Modal = /*#__PURE__*/function (_React$Component) {
10910
- _inherits$1(Modal, _React$Component);
10911
- var _super = _createSuper$1(Modal);
10910
+ _inherits$2(Modal, _React$Component);
10911
+ var _super = _createSuper$2(Modal);
10912
10912
  function Modal(props) {
10913
10913
  var _this;
10914
- _classCallCheck$1(this, Modal);
10914
+ _classCallCheck$2(this, Modal);
10915
10915
  _this = _super.call(this, props);
10916
10916
  _this._element = null;
10917
10917
  _this._originalBodyPadding = null;
10918
- _this.getFocusableChildren = _this.getFocusableChildren.bind(_assertThisInitialized$1(_this));
10919
- _this.handleBackdropClick = _this.handleBackdropClick.bind(_assertThisInitialized$1(_this));
10920
- _this.handleBackdropMouseDown = _this.handleBackdropMouseDown.bind(_assertThisInitialized$1(_this));
10921
- _this.handleEscape = _this.handleEscape.bind(_assertThisInitialized$1(_this));
10922
- _this.handleStaticBackdropAnimation = _this.handleStaticBackdropAnimation.bind(_assertThisInitialized$1(_this));
10923
- _this.handleTab = _this.handleTab.bind(_assertThisInitialized$1(_this));
10924
- _this.onOpened = _this.onOpened.bind(_assertThisInitialized$1(_this));
10925
- _this.onClosed = _this.onClosed.bind(_assertThisInitialized$1(_this));
10926
- _this.manageFocusAfterClose = _this.manageFocusAfterClose.bind(_assertThisInitialized$1(_this));
10927
- _this.clearBackdropAnimationTimeout = _this.clearBackdropAnimationTimeout.bind(_assertThisInitialized$1(_this));
10928
- _this.trapFocus = _this.trapFocus.bind(_assertThisInitialized$1(_this));
10918
+ _this.getFocusableChildren = _this.getFocusableChildren.bind(_assertThisInitialized$2(_this));
10919
+ _this.handleBackdropClick = _this.handleBackdropClick.bind(_assertThisInitialized$2(_this));
10920
+ _this.handleBackdropMouseDown = _this.handleBackdropMouseDown.bind(_assertThisInitialized$2(_this));
10921
+ _this.handleEscape = _this.handleEscape.bind(_assertThisInitialized$2(_this));
10922
+ _this.handleStaticBackdropAnimation = _this.handleStaticBackdropAnimation.bind(_assertThisInitialized$2(_this));
10923
+ _this.handleTab = _this.handleTab.bind(_assertThisInitialized$2(_this));
10924
+ _this.onOpened = _this.onOpened.bind(_assertThisInitialized$2(_this));
10925
+ _this.onClosed = _this.onClosed.bind(_assertThisInitialized$2(_this));
10926
+ _this.manageFocusAfterClose = _this.manageFocusAfterClose.bind(_assertThisInitialized$2(_this));
10927
+ _this.clearBackdropAnimationTimeout = _this.clearBackdropAnimationTimeout.bind(_assertThisInitialized$2(_this));
10928
+ _this.trapFocus = _this.trapFocus.bind(_assertThisInitialized$2(_this));
10929
10929
  _this.state = {
10930
10930
  isOpen: false,
10931
10931
  showStaticBackdropAnimation: false
10932
10932
  };
10933
10933
  return _this;
10934
10934
  }
10935
- _createClass$1(Modal, [{
10935
+ _createClass$2(Modal, [{
10936
10936
  key: "componentDidMount",
10937
10937
  value: function componentDidMount() {
10938
10938
  var _this$props = this.props,
@@ -11220,8 +11220,8 @@ var Modal = /*#__PURE__*/function (_React$Component) {
11220
11220
  _this3 = this;
11221
11221
  var attributes = omit(this.props, propsToOmit);
11222
11222
  var dialogBaseClass = 'modal-dialog';
11223
- return /*#__PURE__*/React__default.createElement("div", _extends$1({}, attributes, {
11224
- className: mapToCssModules(classNames(dialogBaseClass, this.props.className, (_classNames = {}, _defineProperty(_classNames, "modal-".concat(this.props.size), this.props.size), _defineProperty(_classNames, "".concat(dialogBaseClass, "-centered"), this.props.centered), _defineProperty(_classNames, "".concat(dialogBaseClass, "-scrollable"), this.props.scrollable), _defineProperty(_classNames, 'modal-fullscreen', this.props.fullscreen === true), _defineProperty(_classNames, "modal-fullscreen-".concat(this.props.fullscreen, "-down"), typeof this.props.fullscreen === 'string'), _classNames)), this.props.cssModule),
11223
+ return /*#__PURE__*/React__default.createElement("div", _extends$4({}, attributes, {
11224
+ className: mapToCssModules(classNames(dialogBaseClass, this.props.className, (_classNames = {}, _defineProperty$1(_classNames, "modal-".concat(this.props.size), this.props.size), _defineProperty$1(_classNames, "".concat(dialogBaseClass, "-centered"), this.props.centered), _defineProperty$1(_classNames, "".concat(dialogBaseClass, "-scrollable"), this.props.scrollable), _defineProperty$1(_classNames, 'modal-fullscreen', this.props.fullscreen === true), _defineProperty$1(_classNames, "modal-fullscreen-".concat(this.props.fullscreen, "-down"), typeof this.props.fullscreen === 'string'), _classNames)), this.props.cssModule),
11225
11225
  role: "document",
11226
11226
  ref: function ref(c) {
11227
11227
  _this3._dialog = c;
@@ -11270,7 +11270,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
11270
11270
  baseClass: hasTransition ? this.props.backdropTransition.baseClass : '',
11271
11271
  timeout: hasTransition ? this.props.backdropTransition.timeout : 0
11272
11272
  });
11273
- var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default.createElement(Fade, _extends$1({}, backdropTransition, {
11273
+ var Backdrop = backdrop && (hasTransition ? /*#__PURE__*/React__default.createElement(Fade, _extends$4({}, backdropTransition, {
11274
11274
  "in": isOpen && !!backdrop,
11275
11275
  cssModule: cssModule,
11276
11276
  className: mapToCssModules(classNames('modal-backdrop', backdropClassName), cssModule)
@@ -11281,7 +11281,7 @@ var Modal = /*#__PURE__*/function (_React$Component) {
11281
11281
  node: this._element
11282
11282
  }, /*#__PURE__*/React__default.createElement("div", {
11283
11283
  className: mapToCssModules(wrapClassName)
11284
- }, /*#__PURE__*/React__default.createElement(Fade, _extends$1({}, modalAttributes, modalTransition, {
11284
+ }, /*#__PURE__*/React__default.createElement(Fade, _extends$4({}, modalAttributes, modalTransition, {
11285
11285
  "in": isOpen,
11286
11286
  onEntered: this.onOpened,
11287
11287
  onExited: this.onClosed,
@@ -11295,28 +11295,28 @@ var Modal = /*#__PURE__*/function (_React$Component) {
11295
11295
  }]);
11296
11296
  return Modal;
11297
11297
  }(React__default.Component);
11298
- Modal.propTypes = propTypes$1;
11298
+ Modal.propTypes = propTypes$4;
11299
11299
  Modal.defaultProps = defaultProps;
11300
11300
  Modal.openCount = 0;
11301
11301
  Modal.originalBodyOverflow = null;
11302
11302
  var Modal$1 = Modal;
11303
11303
 
11304
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11305
- var _excluded = ["className", "cssModule", "tag", "innerRef"];
11306
- function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
11307
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11308
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11309
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11310
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11311
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11312
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11313
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11314
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11315
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11316
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11317
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11318
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11319
- var propTypes = {
11304
+ function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
11305
+ var _excluded$3 = ["className", "cssModule", "tag", "innerRef"];
11306
+ function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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; }; return _extends$3.apply(this, arguments); }
11307
+ function _objectWithoutProperties$3(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$3(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11308
+ function _objectWithoutPropertiesLoose$3(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11309
+ function _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11310
+ function _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11311
+ function _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11312
+ function _inherits$1(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf$1(subClass, superClass); }
11313
+ function _setPrototypeOf$1(o, p) { _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf$1(o, p); }
11314
+ function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf$1(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf$1(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn$1(this, result); }; }
11315
+ function _possibleConstructorReturn$1(self, call) { if (call && (_typeof$1(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized$1(self); }
11316
+ function _assertThisInitialized$1(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11317
+ function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11318
+ function _getPrototypeOf$1(o) { _getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf$1(o); }
11319
+ var propTypes$3 = {
11320
11320
  children: PropTypes.node,
11321
11321
  tag: tagPropType,
11322
11322
  innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
@@ -11324,17 +11324,17 @@ var propTypes = {
11324
11324
  cssModule: PropTypes.object
11325
11325
  };
11326
11326
  var Form = /*#__PURE__*/function (_Component) {
11327
- _inherits(Form, _Component);
11328
- var _super = _createSuper(Form);
11327
+ _inherits$1(Form, _Component);
11328
+ var _super = _createSuper$1(Form);
11329
11329
  function Form(props) {
11330
11330
  var _this;
11331
- _classCallCheck(this, Form);
11331
+ _classCallCheck$1(this, Form);
11332
11332
  _this = _super.call(this, props);
11333
- _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
11334
- _this.submit = _this.submit.bind(_assertThisInitialized(_this));
11333
+ _this.getRef = _this.getRef.bind(_assertThisInitialized$1(_this));
11334
+ _this.submit = _this.submit.bind(_assertThisInitialized$1(_this));
11335
11335
  return _this;
11336
11336
  }
11337
- _createClass(Form, [{
11337
+ _createClass$1(Form, [{
11338
11338
  key: "getRef",
11339
11339
  value: function getRef(ref) {
11340
11340
  if (this.props.innerRef) {
@@ -11358,9 +11358,9 @@ var Form = /*#__PURE__*/function (_Component) {
11358
11358
  _this$props$tag = _this$props.tag,
11359
11359
  Tag = _this$props$tag === void 0 ? 'form' : _this$props$tag,
11360
11360
  innerRef = _this$props.innerRef,
11361
- attributes = _objectWithoutProperties(_this$props, _excluded);
11361
+ attributes = _objectWithoutProperties$3(_this$props, _excluded$3);
11362
11362
  var classes = mapToCssModules(className, cssModule);
11363
- return /*#__PURE__*/React__default.createElement(Tag, _extends({}, attributes, {
11363
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$3({}, attributes, {
11364
11364
  ref: innerRef,
11365
11365
  className: classes
11366
11366
  }));
@@ -11368,9 +11368,247 @@ var Form = /*#__PURE__*/function (_Component) {
11368
11368
  }]);
11369
11369
  return Form;
11370
11370
  }(Component);
11371
- Form.propTypes = propTypes;
11371
+ Form.propTypes = propTypes$3;
11372
11372
  var Form$1 = Form;
11373
11373
 
11374
+ var _excluded$2 = ["className", "cssModule", "row", "disabled", "check", "inline", "floating", "noMargin", "tag", "switch"];
11375
+ function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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; }; return _extends$2.apply(this, arguments); }
11376
+ function _objectWithoutProperties$2(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$2(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11377
+ function _objectWithoutPropertiesLoose$2(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11378
+ var propTypes$2 = {
11379
+ children: PropTypes.node,
11380
+ row: PropTypes.bool,
11381
+ check: PropTypes.bool,
11382
+ "switch": PropTypes.bool,
11383
+ inline: PropTypes.bool,
11384
+ floating: PropTypes.bool,
11385
+ noMargin: PropTypes.bool,
11386
+ disabled: PropTypes.bool,
11387
+ tag: tagPropType,
11388
+ className: PropTypes.string,
11389
+ cssModule: PropTypes.object
11390
+ };
11391
+ function FormGroup(props) {
11392
+ var className = props.className,
11393
+ cssModule = props.cssModule,
11394
+ row = props.row,
11395
+ disabled = props.disabled,
11396
+ check = props.check,
11397
+ inline = props.inline,
11398
+ floating = props.floating,
11399
+ noMargin = props.noMargin,
11400
+ _props$tag = props.tag,
11401
+ Tag = _props$tag === void 0 ? 'div' : _props$tag,
11402
+ switchProp = props["switch"],
11403
+ attributes = _objectWithoutProperties$2(props, _excluded$2);
11404
+ var formCheck = check || switchProp;
11405
+ var classes = mapToCssModules(classNames(className, row ? 'row' : false, formCheck ? 'form-check' : false, switchProp ? 'form-switch' : false, formCheck || noMargin ? false : 'mb-3', formCheck && inline ? 'form-check-inline' : false, formCheck && disabled ? 'disabled' : false, floating && 'form-floating'), cssModule);
11406
+ if (Tag === 'fieldset') {
11407
+ attributes.disabled = disabled;
11408
+ }
11409
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$2({}, attributes, {
11410
+ className: classes
11411
+ }));
11412
+ }
11413
+ FormGroup.propTypes = propTypes$2;
11414
+
11415
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
11416
+ var _excluded$1 = ["className", "cssModule", "type", "bsSize", "valid", "invalid", "tag", "addon", "plaintext", "innerRef"];
11417
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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; }; return _extends$1.apply(this, arguments); }
11418
+ function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11419
+ function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11420
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
11421
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
11422
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
11423
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
11424
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
11425
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
11426
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11427
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
11428
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
11429
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
11430
+ var propTypes$1 = {
11431
+ children: PropTypes.node,
11432
+ type: PropTypes.string,
11433
+ size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
11434
+ bsSize: PropTypes.string,
11435
+ valid: PropTypes.bool,
11436
+ invalid: PropTypes.bool,
11437
+ tag: tagPropType,
11438
+ innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),
11439
+ plaintext: PropTypes.bool,
11440
+ addon: PropTypes.bool,
11441
+ className: PropTypes.string,
11442
+ cssModule: PropTypes.object
11443
+ };
11444
+ var Input = /*#__PURE__*/function (_React$Component) {
11445
+ _inherits(Input, _React$Component);
11446
+ var _super = _createSuper(Input);
11447
+ function Input(props) {
11448
+ var _this;
11449
+ _classCallCheck(this, Input);
11450
+ _this = _super.call(this, props);
11451
+ _this.getRef = _this.getRef.bind(_assertThisInitialized(_this));
11452
+ _this.focus = _this.focus.bind(_assertThisInitialized(_this));
11453
+ return _this;
11454
+ }
11455
+ _createClass(Input, [{
11456
+ key: "getRef",
11457
+ value: function getRef(ref) {
11458
+ if (this.props.innerRef) {
11459
+ this.props.innerRef(ref);
11460
+ }
11461
+ this.ref = ref;
11462
+ }
11463
+ }, {
11464
+ key: "focus",
11465
+ value: function focus() {
11466
+ if (this.ref) {
11467
+ this.ref.focus();
11468
+ }
11469
+ }
11470
+ }, {
11471
+ key: "render",
11472
+ value: function render() {
11473
+ var _this$props = this.props,
11474
+ className = _this$props.className,
11475
+ cssModule = _this$props.cssModule,
11476
+ _this$props$type = _this$props.type,
11477
+ type = _this$props$type === void 0 ? 'text' : _this$props$type,
11478
+ bsSize = _this$props.bsSize,
11479
+ valid = _this$props.valid,
11480
+ invalid = _this$props.invalid,
11481
+ tag = _this$props.tag,
11482
+ addon = _this$props.addon,
11483
+ plaintext = _this$props.plaintext,
11484
+ innerRef = _this$props.innerRef,
11485
+ attributes = _objectWithoutProperties$1(_this$props, _excluded$1);
11486
+ var checkInput = ['switch', 'radio', 'checkbox'].indexOf(type) > -1;
11487
+ var isNotaNumber = /\D/g;
11488
+ var textareaInput = type === 'textarea';
11489
+ var selectInput = type === 'select';
11490
+ var rangeInput = type === 'range';
11491
+ var Tag = tag || (selectInput || textareaInput ? type : 'input');
11492
+ var formControlClass = 'form-control';
11493
+ if (plaintext) {
11494
+ formControlClass = "".concat(formControlClass, "-plaintext");
11495
+ Tag = tag || 'input';
11496
+ } else if (rangeInput) {
11497
+ formControlClass = 'form-range';
11498
+ } else if (selectInput) {
11499
+ formControlClass = 'form-select';
11500
+ } else if (checkInput) {
11501
+ if (addon) {
11502
+ formControlClass = null;
11503
+ } else {
11504
+ formControlClass = 'form-check-input';
11505
+ }
11506
+ }
11507
+ if (attributes.size && isNotaNumber.test(attributes.size)) {
11508
+ warnOnce('Please use the prop "bsSize" instead of the "size" to bootstrap\'s input sizing.');
11509
+ bsSize = attributes.size;
11510
+ delete attributes.size;
11511
+ }
11512
+ var classes = mapToCssModules(classNames(className, invalid && 'is-invalid', valid && 'is-valid', bsSize ? selectInput ? "form-select-".concat(bsSize) : "form-control-".concat(bsSize) : false, formControlClass), cssModule);
11513
+ if (Tag === 'input' || tag && typeof tag === 'function') {
11514
+ attributes.type = type === 'switch' ? 'checkbox' : type;
11515
+ }
11516
+ if (attributes.children && !(plaintext || type === 'select' || typeof Tag !== 'string' || Tag === 'select')) {
11517
+ warnOnce("Input with a type of \"".concat(type, "\" cannot have children. Please use \"value\"/\"defaultValue\" instead."));
11518
+ delete attributes.children;
11519
+ }
11520
+ return /*#__PURE__*/React__default.createElement(Tag, _extends$1({}, attributes, {
11521
+ ref: innerRef,
11522
+ className: classes,
11523
+ "aria-invalid": invalid
11524
+ }));
11525
+ }
11526
+ }]);
11527
+ return Input;
11528
+ }(React__default.Component);
11529
+ Input.propTypes = propTypes$1;
11530
+ var Input$1 = Input;
11531
+
11532
+ var _excluded = ["className", "cssModule", "hidden", "widths", "tag", "check", "size", "for"];
11533
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : 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; }; return _extends.apply(this, arguments); }
11534
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11535
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
11536
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11537
+ var colWidths = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
11538
+ var stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);
11539
+ var columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.string, PropTypes.number, PropTypes.shape({
11540
+ size: stringOrNumberProp,
11541
+ order: stringOrNumberProp,
11542
+ offset: stringOrNumberProp
11543
+ })]);
11544
+ var propTypes = {
11545
+ children: PropTypes.node,
11546
+ hidden: PropTypes.bool,
11547
+ check: PropTypes.bool,
11548
+ size: PropTypes.string,
11549
+ "for": PropTypes.string,
11550
+ tag: tagPropType,
11551
+ className: PropTypes.string,
11552
+ cssModule: PropTypes.object,
11553
+ xs: columnProps,
11554
+ sm: columnProps,
11555
+ md: columnProps,
11556
+ lg: columnProps,
11557
+ xl: columnProps,
11558
+ xxl: columnProps,
11559
+ widths: PropTypes.array
11560
+ };
11561
+ var getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {
11562
+ if (colSize === true || colSize === '') {
11563
+ return isXs ? 'col' : "col-".concat(colWidth);
11564
+ }
11565
+ if (colSize === 'auto') {
11566
+ return isXs ? 'col-auto' : "col-".concat(colWidth, "-auto");
11567
+ }
11568
+ return isXs ? "col-".concat(colSize) : "col-".concat(colWidth, "-").concat(colSize);
11569
+ };
11570
+ function Label(props) {
11571
+ var className = props.className,
11572
+ cssModule = props.cssModule,
11573
+ hidden = props.hidden,
11574
+ _props$widths = props.widths,
11575
+ widths = _props$widths === void 0 ? colWidths : _props$widths,
11576
+ _props$tag = props.tag,
11577
+ Tag = _props$tag === void 0 ? 'label' : _props$tag,
11578
+ check = props.check,
11579
+ size = props.size,
11580
+ htmlFor = props["for"],
11581
+ attributes = _objectWithoutProperties(props, _excluded);
11582
+ var colClasses = [];
11583
+ widths.forEach(function (colWidth, i) {
11584
+ var columnProp = props[colWidth];
11585
+ delete attributes[colWidth];
11586
+ if (!columnProp && columnProp !== '') {
11587
+ return;
11588
+ }
11589
+ var isXs = !i;
11590
+ var colClass;
11591
+ if (isObject(columnProp)) {
11592
+ var _classNames;
11593
+ var colSizeInterfix = isXs ? '-' : "-".concat(colWidth, "-");
11594
+ colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);
11595
+ colClasses.push(mapToCssModules(classNames((_classNames = {}, _defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ''), _defineProperty(_classNames, "order".concat(colSizeInterfix).concat(columnProp.order), columnProp.order || columnProp.order === 0), _defineProperty(_classNames, "offset".concat(colSizeInterfix).concat(columnProp.offset), columnProp.offset || columnProp.offset === 0), _classNames))), cssModule);
11596
+ } else {
11597
+ colClass = getColumnSizeClass(isXs, colWidth, columnProp);
11598
+ colClasses.push(colClass);
11599
+ }
11600
+ });
11601
+ var colFormLabel = size || colClasses.length;
11602
+ var formLabel = !(check || colFormLabel);
11603
+ var classes = mapToCssModules(classNames(className, hidden ? 'visually-hidden' : false, check ? 'form-check-label' : false, size ? "col-form-label-".concat(size) : false, colClasses, colFormLabel ? 'col-form-label' : false, formLabel ? 'form-label' : false), cssModule);
11604
+ return /*#__PURE__*/React__default.createElement(Tag, _extends({
11605
+ htmlFor: htmlFor
11606
+ }, attributes, {
11607
+ className: classes
11608
+ }));
11609
+ }
11610
+ Label.propTypes = propTypes;
11611
+
11374
11612
  const SettingApp = (props) => {
11375
11613
  const { isOpen, eventChange, eventClose } = { ...props };
11376
11614
  useForm({
@@ -11417,11 +11655,64 @@ const SettingApp = (props) => {
11417
11655
  data: [{
11418
11656
  name: "Danh bạ",
11419
11657
  description: "Danh sách danh sách danh sách danh sách",
11420
- data: [{
11658
+ data: [
11659
+ {
11421
11660
  name: "Hiển thị trạng thái truy cập",
11422
11661
  description: "Ai được phép truy cập",
11423
11662
  type: "checkbox"
11424
- }]
11663
+ },
11664
+ {
11665
+ name: "Hiển thị trạng thái truy cập",
11666
+ description: "Ai được phép truy cập",
11667
+ type: "radio"
11668
+ },
11669
+ {
11670
+ name: "Hiển thị trạng thái truy cập",
11671
+ description: "Ai được phép truy cập",
11672
+ type: "combobox",
11673
+ option: [
11674
+ { name: "Cho phép", value: 1 },
11675
+ { name: "Không phép", value: 0 }
11676
+ ]
11677
+ },
11678
+ {
11679
+ name: "Nhập văn bản",
11680
+ description: "Gõ nội dung cần nhập",
11681
+ type: "text"
11682
+ },
11683
+ {
11684
+ name: "Nhập số",
11685
+ description: "Chỉ nhập giá trị số",
11686
+ type: "number"
11687
+ },
11688
+ {
11689
+ name: "Chọn ngày",
11690
+ description: "Lựa chọn ngày cụ thể",
11691
+ type: "date"
11692
+ },
11693
+ {
11694
+ name: "Bật/tắt trạng thái",
11695
+ description: "Chuyển đổi trạng thái",
11696
+ type: "switch"
11697
+ },
11698
+ {
11699
+ name: "Điều chỉnh giá trị",
11700
+ description: "Kéo để chọn giá trị mong muốn",
11701
+ type: "slider",
11702
+ min: 0,
11703
+ max: 100
11704
+ },
11705
+ {
11706
+ name: "Tải tệp",
11707
+ description: "Chọn tệp để tải lên",
11708
+ type: "file"
11709
+ },
11710
+ {
11711
+ name: "Màu sắc",
11712
+ description: "Chọn màu sắc yêu thích",
11713
+ type: "color"
11714
+ }
11715
+ ]
11425
11716
  }]
11426
11717
  }, {
11427
11718
  id: 2,
@@ -11457,13 +11748,41 @@ const SettingApp = (props) => {
11457
11748
  setSettingData(data);
11458
11749
  setDataSettingGroup(updated);
11459
11750
  };
11751
+ //Hàm sử dụng tạo theo loại giá trị
11752
+ const _renderInput = (root, data) => {
11753
+ console.log((new Date()).getTime(), 111);
11754
+ switch (data.type) {
11755
+ case "checkbox":
11756
+ return (jsx("div", { className: "checkbox", title: data.description, children: jsx(Input$1, { type: "checkbox" }, "") }));
11757
+ case "radio":
11758
+ return (jsx("div", { className: "radio-group", title: data.description, children: data.option?.map((opt, index) => (jsxs("label", { children: [jsx(Input$1, { type: "radio", name: data.name, value: opt.value }), opt.name] }, index))) }));
11759
+ case "combobox":
11760
+ return (jsx("div", { className: "combobox", title: data.description, children: jsxs(FormGroup, { title: data.description, children: [jsx(Label, { for: data.name, children: data.name }), jsxs(Input$1, { type: "select", name: data.name, id: data.name, children: [jsx("option", { value: "", children: "Ch\u1ECDn m\u1ED9t gi\u00E1 tr\u1ECB" }), data.option?.map((opt, index) => (jsx("option", { value: opt.value, children: opt.name }, index)))] })] }) }));
11761
+ case "text":
11762
+ return (jsx("div", { className: "text-input", title: data.description, children: jsx(Input$1, { type: "text", placeholder: data.name }) }));
11763
+ case "number":
11764
+ return (jsx("div", { className: "number-input", title: data.description, children: jsx(Input$1, { type: "number", placeholder: data.name }) }));
11765
+ case "date":
11766
+ return (jsx("div", { className: "date-input", title: data.description, children: jsx(Input$1, { type: "date" }) }));
11767
+ case "switch":
11768
+ return (jsx("div", { className: "switch", title: data.description }));
11769
+ case "slider":
11770
+ return (jsx("div", { className: "slider", title: data.description }));
11771
+ case "file":
11772
+ return (jsx("div", { className: "file-input", title: data.description, children: jsx(Input$1, { type: "file" }) }));
11773
+ case "color":
11774
+ return (jsx("div", { className: "color-picker", title: data.description, children: jsx(Input$1, { type: "color" }) }));
11775
+ default:
11776
+ return null;
11777
+ }
11778
+ };
11460
11779
  //hàm tạo các thông số cấu hình và cài đặt
11461
11780
  const _renderView = () => {
11462
11781
  return (settingData && settingData.data && settingData.data.length > 0 ? settingData.data.map((item, index) => {
11463
11782
  return (jsxs("div", { className: "setting-section", children: [jsx("div", { className: "setting-section-label", children: jsx("div", { className: "", children: jsx("span", { children: item.name }) }) }), item.description ?
11464
11783
  jsx("div", { className: "setting-section-desc", children: jsx("div", { className: "", children: jsx("span", { children: item.description }) }) })
11465
11784
  : null, item.data && item.data.length > 0 ? item.data.map((_item, _index) => {
11466
- return (jsx("div", { className: "setting-section-content ", children: jsxs("div", { className: 'flx flx-al-c flx-sp-btw setting-section-content__item ' + (item.data.length === 1 ? "single" : (_index === 0 ? 'first' : (_index === item.data.length - 1 ? 'last' : ""))), children: [jsxs("div", { className: "flx flx-col", style: { flex: "0 0 fit-content" }, children: [jsx("span", { children: _item.name }), jsx("span", { className: "setting-section-content__description", children: _item.description })] }), jsx("div", { style: { maxWidth: "50%" }, children: jsx("div", { style: { width: "100%", boxSizing: "border-box" }, children: jsxs("div", { className: "flx flx-al-c z-dropdown-preview --square --l", style: { width: "100%", boxSizing: "border-box" }, children: [jsx("div", { className: "truncate flx-1" }), jsx("i", { className: "fa fa-Chevron_Down_24_Line margin-left-24" })] }) }) })] }) }));
11785
+ return (jsx("div", { className: "setting-section-content ", children: jsxs("div", { className: 'flx flx-al-c flx-sp-btw setting-section-content__item ' + (item.data.length === 1 ? "single" : (_index === 0 ? 'first' : (_index === item.data.length - 1 ? 'last' : ""))), children: [jsxs("div", { className: "flx flx-col", style: { flex: "0 0 fit-content" }, children: [jsx("span", { children: _item.name }), jsx("span", { className: "setting-section-content__description", children: _item.description })] }), jsx("div", { style: { maxWidth: "50%" }, children: jsx("div", { style: { width: "100%", boxSizing: "border-box" }, children: _renderInput(item, _item) }) })] }) }));
11467
11786
  })
11468
11787
  : null] }));
11469
11788
  })