import { clsx } from 'clsx';
import Body from '../body/Body.mjs';
import RadioButton from '../common/RadioButton/RadioButton.mjs';
import { jsx, jsxs } from 'react/jsx-runtime';
import { Typography } from '../common/propsValues/typography.mjs';

function Radio({
  label,
  id,
  disabled,
  className,
  avatar,
  secondary,
  ...otherProps
}) {
  return /*#__PURE__*/jsx("div", {
    className: clsx('radio np-radio', {
      'radio-lg': secondary,
      'radio-disabled': disabled
    }, className),
    children: /*#__PURE__*/jsxs("label", {
      className: clsx({
        disabled
      }),
      htmlFor: id,
      children: [/*#__PURE__*/jsx("span", {
        className: "m-r-2 np-radio-button",
        children: /*#__PURE__*/jsx(RadioButton, {
          id: id,
          disabled: disabled,
          ...otherProps
        })
      }), /*#__PURE__*/jsxs(Body, {
        as: "span",
        type: secondary ? Typography.BODY_LARGE_BOLD : Typography.BODY_LARGE,
        className: "np-radio__text",
        children: [label, secondary && /*#__PURE__*/jsx(Body, {
          as: "span",
          children: secondary
        })]
      }), avatar && /*#__PURE__*/jsx("span", {
        className: "np-radio__avatar m-l-auto",
        children: avatar
      })]
    })
  });
}

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