import e from"../../node_modules/classnames/index.js";import t from"react";import{mapBootstrapSizeToTextSize as r,LabelPlacement as n}from"../utils.js";import o from"../Stack/Stack.js";import s from"../Text/Text.js";import a from"./LinearPercentage.module.scss.js";const m=({boldLabel:m=!1,color:c="none",label:i,labelPlacement:l=n.Right,percent:d,size:g="md",...h})=>{const p=e({[a.green]:"success"===c,[a.orange]:"warning"===c,[a.red]:"danger"===c,[a.none]:"none"===c}),f="sm"===g,x=f?36:45.6,u=f?6:10,w=d*x/100,b=t.createElement(s,{bold:m,component:"div",nowrap:!0,size:r(g),...h},i);return t.createElement(o,{alignItems:"center",row:!0},l===n.Left&&b,t.createElement("svg",{fill:"none",height:"10",viewBox:"0 0 46 10",width:x},t.createElement("rect",{className:a.outer,height:u,rx:"4",width:x}),t.createElement("rect",{className:p,height:u,rx:"4",width:w,x:"0.338867"})),l===n.Right&&b)};export{m as default};
//# sourceMappingURL=LinearPercentage.js.map
