{"version":3,"file":"ProgressBar.B3vs0riP.mjs","names":[],"sources":["https:/framerusercontent.com/modules/vh04rTSJX81hbHwLHYBB/wcNYTi6QSuRtLqa7Wy8k/ProgressBar.js"],"sourcesContent":["// Linear progress bar with total and active number, customizable bg color, bar color, and border radius\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Linear Progress Bar\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function ProgressBar(props){const{total,active,backgroundColor,barColor,borderRadius,style={}}=props;const percent=total>0?Math.min(Math.max(active/total,0),1):0;return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",height:\"100%\",background:backgroundColor,borderRadius,overflow:\"hidden\",position:\"relative\",display:\"flex\",alignItems:\"center\"},\"aria-valuenow\":active,\"aria-valuemax\":total,\"aria-valuemin\":0,role:\"progressbar\",children:/*#__PURE__*/_jsx(\"div\",{style:{background:barColor,height:\"100%\",width:`${percent*100}%`,borderRadius,transition:\"width 0.3s cubic-bezier(.4,0,.2,1)\"}})});}addPropertyControls(ProgressBar,{total:{type:ControlType.Number,title:\"Total\",defaultValue:100,min:1,step:1,displayStepper:true},active:{type:ControlType.Number,title:\"Active\",defaultValue:50,min:0,step:1,displayStepper:true},backgroundColor:{type:ControlType.Color,title:\"BG Color\",defaultValue:\"#EEEEEE\"},barColor:{type:ControlType.Color,title:\"Bar Color\",defaultValue:\"#0099FF\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressBar\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgressBar.map"],"mappings":"6JAMG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,SAAO,kBAAgB,WAAS,eAAa,QAAM,EAAE,EAAE,EAAY,EAAQ,EAAM,EAAE,KAAK,IAAI,KAAK,IAAI,EAAO,EAAM,EAAE,CAAC,EAAE,CAAC,EAAE,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,OAAO,OAAO,WAAW,EAAgB,eAAa,SAAS,SAAS,SAAS,WAAW,QAAQ,OAAO,WAAW,SAAS,CAAC,gBAAgB,EAAO,gBAAgB,EAAM,gBAAgB,EAAE,KAAK,cAAc,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,WAAW,EAAS,OAAO,OAAO,MAAM,GAAG,EAAQ,IAAI,GAAG,eAAa,WAAW,qCAAqC,CAAC,CAAC,CAAC,CAAC,kBAL5jB,IAAoD,CAK0gB,EAAoB,EAAY,CAAC,MAAM,CAAC,KAAK,EAAY,OAAO,MAAM,QAAQ,aAAa,IAAI,IAAI,EAAE,KAAK,EAAE,eAAe,GAAK,CAAC,OAAO,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,GAAG,IAAI,EAAE,KAAK,EAAE,eAAe,GAAK,CAAC,gBAAgB,CAAC,KAAK,EAAY,MAAM,MAAM,WAAW,aAAa,UAAU,CAAC,SAAS,CAAC,KAAK,EAAY,MAAM,MAAM,YAAY,aAAa,UAAU,CAAC,aAAa,CAAC,KAAK,EAAY,OAAO,MAAM,SAAS,aAAa,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC"}