import { clsx } from 'clsx';
import { jsxs, jsx } from 'react/jsx-runtime';
import { Size } from '../common/propsValues/size.mjs';
import { Theme } from '../common/theme.mjs';

const Badge = ({
  badge,
  className = undefined,
  size: sizeProp = Size.SMALL,
  border = Theme.LIGHT,
  'aria-label': ariaLabel,
  children
}) => {
  // medium is deprecated, so we map it to small
  const size = sizeProp === Size.MEDIUM ? Size.SMALL : sizeProp;
  const classes = clsx('tw-badge', {
    [`tw-badge-border-${border}`]: border,
    [`tw-badge-${size}`]: size
  }, className);
  return /*#__PURE__*/jsxs("div", {
    "aria-label": ariaLabel,
    className: classes,
    children: [/*#__PURE__*/jsx("div", {
      className: "tw-badge__children",
      children: children
    }), /*#__PURE__*/jsx("div", {
      className: "tw-badge__content",
      children: badge
    })]
  });
};

export { Badge as default };
//# sourceMappingURL=Badge.mjs.map
