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