'use strict';

var clsx = require('clsx');
var Body = require('../body/Body.js');
require('../common/theme.js');
require('../common/direction.js');
require('../common/propsValues/control.js');
require('../common/propsValues/breakpoint.js');
require('../common/propsValues/size.js');
var typography = require('../common/propsValues/typography.js');
require('../common/propsValues/width.js');
require('../common/propsValues/type.js');
require('../common/propsValues/dateMode.js');
require('../common/propsValues/monthFormat.js');
require('../common/propsValues/position.js');
require('../common/propsValues/layouts.js');
require('../common/propsValues/status.js');
require('../common/propsValues/sentiment.js');
require('../common/propsValues/profileType.js');
require('../common/propsValues/variant.js');
require('../common/propsValues/scroll.js');
require('../common/propsValues/markdownNodeType.js');
require('../common/fileType.js');
require('@transferwise/icons');
require('react');
require('react-intl');
require('../common/closeButton/CloseButton.messages.js');
var jsxRuntime = require('react/jsx-runtime');
var RadioButton = require('../common/RadioButton/RadioButton.js');

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

module.exports = Radio;
//# sourceMappingURL=Radio.js.map
