@bigbinary/neetoui
Version:
neetoUI drives the experience at all neeto products
53 lines (50 loc) • 1.81 kB
JavaScript
import 'react';
import classnames from 'classnames';
import { motion } from 'framer-motion';
import '@babel/runtime/helpers/slicedToArray';
import 'react-router-dom';
import '@bigbinary/neeto-hotkeys';
import './overlayManager.js';
import '@babel/runtime/helpers/defineProperty';
import '@babel/runtime/helpers/classCallCheck';
import '@babel/runtime/helpers/createClass';
import '@bigbinary/neeto-cist';
import 'qs';
import 'ramda';
import './index-DyUNP5G9.js';
import 'i18next';
import { u as usePrefersReducedMotion } from './usePrefersReducedMotion-n4ZJtExQ.js';
import { jsx } from 'react/jsx-runtime';
import '@babel/runtime/helpers/toConsumableArray';
import 'dayjs';
import 'dayjs/plugin/localeData';
import 'dayjs/plugin/utc';
import 'dayjs/plugin/weekday';
import 'dayjs/plugin/weekOfYear';
var ProgressBar = function ProgressBar(_ref) {
var progressPercentage = _ref.progressPercentage,
progressValue = _ref.progressValue,
_ref$className = _ref.className,
className = _ref$className === void 0 ? "" : _ref$className;
var prefersReducedMotion = usePrefersReducedMotion();
return /*#__PURE__*/jsx("div", {
className: classnames(["neeto-ui-progress-bar__wrapper neeto-ui-rounded-full", className]),
children: /*#__PURE__*/jsx(motion.div, {
animate: {
width: "".concat(progressPercentage, "%")
},
className: "neeto-ui-progress-bar neeto-ui-rounded-full",
"data-testid": "progress-bar",
initial: {
width: 0
},
transition: {
duration: prefersReducedMotion ? 0 : 0.5,
ease: "easeInOut"
},
children: progressValue !== null && progressValue !== void 0 ? progressValue : "".concat(progressPercentage, "%")
})
});
};
export { ProgressBar as default };
//# sourceMappingURL=ProgressBar.js.map