import { useTheme } from '@wise/components-theming';
import { clsx } from 'clsx';
import Body from '../body/Body.mjs';
import Progress from '../progress/Progress.mjs';
import Title from '../title/Title.mjs';
import { jsxs, jsx } from 'react/jsx-runtime';
import { Typography } from '../common/propsValues/typography.mjs';

const ProgressBar = ({
  className,
  description,
  id,
  title,
  progress,
  textEnd
}) => {
  const {
    isModern
  } = useTheme();
  return /*#__PURE__*/jsxs("div", {
    className: clsx('np-progress-bar', className),
    children: [/*#__PURE__*/jsxs("label", {
      className: "np-progress-bar__title m-b-1",
      htmlFor: id,
      children: [/*#__PURE__*/jsx(Title, {
        type: Typography.TITLE_BODY,
        className: isModern ? `m-b-1 text-primary` : `text-primary`,
        children: title
      }), description && /*#__PURE__*/jsx(Body, {
        children: description
      })]
    }), /*#__PURE__*/jsx(Progress, {
      id: id,
      progress: progress
    }), /*#__PURE__*/jsx(Body, {
      as: "p",
      type: Typography.BODY_DEFAULT_BOLD,
      className: "d-flex justify-content-end text-primary m-b-0",
      children: textEnd
    })]
  });
};

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