var _excluded = ["children", "level", "shadowStrength", "variant"];
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); }
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; }
import React from 'react';
import { useDeprecation } from '../_hooks/Deprecation';
import { StyledCardContainer } from './Card.styles';
/**

 We use cards to display information that is grouped together.
 Cards may contain rich media, text, buttons, and other functionality.

 @since 10.19.0

 @see [Storybook](https://stories.core.procore.com/?path=/story/core-react_demos-card--demo)

 @see [Design Guidelines](https://design.procore.com/card)

 */
export var Card = /*#__PURE__*/React.forwardRef(function Card(_ref, ref) {
  var children = _ref.children,
    level = _ref.level,
    _ref$shadowStrength = _ref.shadowStrength,
    shadowStrength = _ref$shadowStrength === void 0 ? 1 : _ref$shadowStrength,
    variant = _ref.variant,
    props = _objectWithoutProperties(_ref, _excluded);
  useDeprecation({
    when: level,
    oldThing: 'level',
    newThing: 'shadowStrength'
  });
  return /*#__PURE__*/React.createElement(StyledCardContainer, _extends({}, props, {
    $level: level,
    $shadowStrength: shadowStrength,
    $variant: variant,
    ref: ref
  }), children);
});
Card.displayName = 'Card';
//# sourceMappingURL=Card.js.map