"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _ProgressBarSt = require("./ProgressBar.st.css.js");
var _Heading = _interopRequireDefault(require("../../Heading"));
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/Selector/ProgressBar/ProgressBar.tsx";
var ProgressBar = _ref => {
  var {
    dataHook,
    progress
  } = _ref;
  return /*#__PURE__*/_react.default.createElement("div", {
    "data-hook": dataHook,
    className: _ProgressBarSt.classes.root,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 8,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_Heading.default, {
    size: "extraTiny",
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 9,
      columnNumber: 7
    }
  }, "".concat(progress, "%")), /*#__PURE__*/_react.default.createElement("span", {
    className: _ProgressBarSt.classes.bar,
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 10,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement("span", {
    className: _ProgressBarSt.classes.value,
    style: {
      width: progress + '%'
    },
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 11,
      columnNumber: 9
    }
  }), /*#__PURE__*/_react.default.createElement("span", {
    className: _ProgressBarSt.classes.leftover,
    style: {
      width: 100 - progress + '%'
    },
    __self: void 0,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 12,
      columnNumber: 9
    }
  })));
};
var _default = exports.default = ProgressBar;
//# sourceMappingURL=ProgressBar.js.map