var _excluded = ["children", "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 styled from 'styled-components';
import { getTypographyIntent } from '../Typography/Typography.styles';
import { useDeprecation } from '../_hooks/Deprecation';
import { colors } from '../_styles/colors';
var variantColorMap = {
  required: 'orange50',
  error: 'red50',
  pagination: 'gray45'
};
var StyledNotation = /*#__PURE__*/styled.i.withConfig({
  displayName: "StyledNotation",
  componentId: "core-11_23_1__sc-160q1m6-0"
})(["", " color:", ";font-style:italic;"], getTypographyIntent('small'), function (_ref) {
  var variant = _ref.variant;
  return variant ? colors[variantColorMap[variant]] : colors.gray15;
});
/**
 * @deprecated Please use `<Typography italic />` component for plain text
 * notations or the `<Required />` component for required notations. `Notation`
 * will be removed in a future version.
 *
 *  @see [Storybook](https://procore.github.io/core/core-react/latest/?path=/story/coverage-notation--basic-props)
 */
export var Notation = /*#__PURE__*/React.forwardRef(function Notation(_ref2, ref) {
  var children = _ref2.children,
    _ref2$variant = _ref2.variant,
    variant = _ref2$variant === void 0 ? '' : _ref2$variant,
    props = _objectWithoutProperties(_ref2, _excluded);
  useDeprecation({
    oldThing: 'Notation',
    newThing: 'Typography or Required'
  });
  return /*#__PURE__*/React.createElement(StyledNotation, _extends({}, props, {
    variant: variant,
    ref: ref
  }), children);
});
Notation.displayName = 'Notation';
//# sourceMappingURL=Notation.js.map