import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{ht as r,t as i}from"./dist-DtfJeYQK.js";import{t as a}from"./jsx-runtime-C2wGStra.js";import{n as o,t as s}from"./dist-Cc1j9Pjk.js";var c,l,u=t((()=>{c=`ProgressBar__-Ss9D`,l={ProgressBar:c}})),d,f,p=t((()=>{e(n(),1),u(),i(),s(),d=a(),f=({min:e=0,max:t=100,value:n,"aria-label":i,dataset:a})=>{let s=r(a,{preplyDsComponent:o.ProgressBar}),c=(n-e)/(t-e)*100,u=`${Math.max(0,Math.min(100,c))}%`;return(0,d.jsx)(`div`,{...s,className:l.ProgressBar,role:`progressbar`,"aria-label":i,"aria-valuetext":u,"aria-valuenow":n,"aria-valuemin":e,"aria-valuemax":t,style:{"--progress-percentage":u}})};try{f.displayName=`ProgressBar`,f.__docgenInfo={description:`A component that visually displays continuous progress.

For a series of discrete progress steps, use the \`ProgressSteps\` component instead.`,displayName:`ProgressBar`,props:{min:{defaultValue:{value:`0`},description:`The minimum value of the progress bar.`,name:`min`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},max:{defaultValue:{value:`100`},description:`The maximum value of the progress bar.`,name:`max`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},value:{defaultValue:null,description:`The current value of the progress bar.`,name:`value`,required:!0,type:{name:`number`}},"aria-label":{defaultValue:null,description:`A description of the progress bar for screen readers.
@example 'Onboarding', 'Checkout', 'Survey', etc.`,name:`aria-label`,required:!0,type:{name:`string`}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{p as n,f as t};