"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs38.js"),b=require("react"),g=require("./index.cjs40.js"),a=require("./index.cjs70.js");function p(t,r){return r!=null&&typeof t=="number"&&t>r?`${r}+`:t}const l=b.forwardRef(({variant:t="primary",size:r="md",dot:e=!1,max:d,children:n,className:o,"aria-label":c,...f},m)=>{const u=e?null:p(n,d),i=c??(typeof n=="number"&&!e?`${n} items`:void 0);return s.jsxRuntimeExports.jsxs("span",{ref:m,"data-atme-ui":!0,className:g(a.default.badge,a.default[`badge--${t}`],a.default[`badge--${r}`],e&&a.default["badge--dot"],o),role:e?"status":void 0,"aria-label":i,"aria-hidden":e&&!i?!0:void 0,...f,children:[e&&s.jsxRuntimeExports.jsx("span",{className:a.default.badgeDot,"aria-hidden":"true"}),!e&&u!=null&&s.jsxRuntimeExports.jsx("span",{className:a.default.badgeContent,children:u})]})});l.displayName="Badge";exports.Badge=l;
//# sourceMappingURL=index.cjs18.js.map
