react-cm-ui
Version:
React UI for Healthy Church
81 lines (64 loc) • 2.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _List = _interopRequireDefault(require("@material-ui/core/List"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
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; }
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; }
var propTypes = {
/**
* The content of the component.
*/
children: _propTypes["default"].node,
/**
* Override or extend the styles applied to the component.
* See [CSS API](#css) below for more details.
*/
classes: _propTypes["default"].shape({}),
/**
* @ignore
*/
className: _propTypes["default"].string,
/**
* The component used for the root node.
* Either a string to use a HTML element or a component.
*/
component: _propTypes["default"].node,
/**
* If `true`, compact vertical padding designed for keyboard and mouse input will be used for
* the list and list items.
* The prop is available to descendant components as the `dense` context.
*/
dense: _propTypes["default"].bool,
/**
* If `true`, vertical padding will be removed from the list.
*/
disablePadding: _propTypes["default"].bool,
/**
* The content of the subheader, normally `ListSubheader`.
*/
subheader: _propTypes["default"].node
};
var defaultProps = {
children: undefined,
className: undefined,
component: undefined,
classes: undefined,
dense: false,
disablePadding: false,
subheader: undefined
};
function List(props) {
var children = props.children,
otherProps = _objectWithoutProperties(props, ["children"]);
return /*#__PURE__*/_react["default"].createElement(_List["default"] // eslint-disable-next-line react/jsx-props-no-spreading
, otherProps, children);
}
List.propTypes = propTypes;
List.defaultProps = defaultProps;
var _default = List;
exports["default"] = _default;