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";import{i as c,r as l}from"./IconButton-DZfzVk_P.js";var u,d,f=t((()=>{e(n(),1),i(),s(),c(),u=a(),d=({count:e,showEmpty:t=!1,limit:n=99,size:i=`large`,variant:a=`dark`,children:s,dataset:c})=>{if(e===void 0&&!t)return s??(0,u.jsx)(u.Fragment,{});let d=(0,u.jsx)(`span`,{className:[l.bubbleCounter,l[`size-${i}`],l[`variant-${a}`]].join(` `),...r(c,{preplyDsComponent:o.BubbleCounter}),children:typeof e==`number`&&(e>n?`${n}+`:e)});return s?(0,u.jsxs)(`div`,{className:l.childTargetOverlay,children:[d,s]}):d};try{d.displayName=`BubbleCounter`,d.__docgenInfo={description:``,displayName:`BubbleCounter`,props:{count:{defaultValue:null,description:"The counter's current value;\n\n- If `undefined`, the counter is not rendered.\n- If above `limit`, the `limit` value is rendered instead, with a `+`\n  suffix.",name:`count`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},showEmpty:{defaultValue:{value:`false`},description:"If `true`, the counter will render even if `count` is `undefined`.",name:`showEmpty`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},limit:{defaultValue:{value:`99`},description:``,name:`limit`,required:!1,type:{name:`enum`,value:[{value:`number`}]}},size:{defaultValue:{value:`large`},description:``,name:`size`,required:!1,type:{name:`enum`,value:[{value:`"small"`},{value:`"medium"`},{value:`"large"`}]}},variant:{defaultValue:{value:`dark`},description:``,name:`variant`,required:!1,type:{name:`enum`,value:[{value:`"light"`},{value:`"dark"`}]}},children:{defaultValue:null,description:`When provided, the \`BubbleCounter\` will position itself as an indicator
overlay above the target child element.

This is intended to work on just one child, but will not throw errors if
you pass multiple children in order to avoid breaking UX unnecessarily.`,name:`children`,required:!1,type:{name:`enum`,value:[{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},dataset:{defaultValue:null,description:``,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}}}}}catch{}}));export{f as n,d as t};