import{a as e,n as t}from"./chunk-BneVvdWh.js";import{t as n}from"./react-C7IZe2D1.js";import{_ as r,gt as i,ht as a,s as o,st as s,t as c,w as l,x as u,y as d}from"./dist-DtfJeYQK.js";import{t as f}from"./jsx-runtime-C2wGStra.js";import{n as p,t as m}from"./dist-Cc1j9Pjk.js";var h,g,_=t((()=>{h=`Link__Jw0hc`,g={Link:h,"Link--inline":`Link--inline__aWJxC`,"Link--noUnderline":`Link--noUnderline__vuCBO`,"Link--variant-accentDark":`Link--variant-accentDark__5RCSd`,"Link--variant-accentDarkInverted":`Link--variant-accentDarkInverted__5GVfk`,"Link--variant-neutral":`Link--variant-neutral__v0PFp`,"Link--variant-neutralInverted":`Link--variant-neutralInverted__t9Ijl`,"Link--variant-unsetColors":`Link--variant-unsetColors__EEbF5`}})),v,y,b,x=t((()=>{l(),m(),c(),v=e(n(),1),_(),y=f(),b=(0,v.forwardRef)(function(e,t){let{variant:n=s,href:c,download:l,opensInNewTab:f,nofollow:m,assistiveText:h,onClick:_,as:b,url:x,dataset:S,children:C,inline:w,noUnderline:T,className:E,...D}=e,O=o(),k=d(g,p.Link,[u(`variant`,n),r(`inline`,void 0,w),r(`noUnderline`,void 0,T)]),A=c||x,j={...A?i(O,A,f,m):{},...D,ref:t,href:A,download:l,onClick:_,...h===void 0?{}:{"aria-label":h},className:[...k,E].filter(Boolean).join(` `),...a(S,{preplyDsComponent:p.Link})};return b?(0,v.cloneElement)(b,{...j},C):(0,y.jsx)(`a`,{...j,children:C})});try{b.displayName=`Link`,b.__docgenInfo={description:`This is an inline element and will inherit font-size, line-height and
font-weight from the parent context. If you need to customise any of these
styles, all you have to do is wrap the <Link> in a Text or TextInline
component.`,displayName:`Link`,props:{variant:{defaultValue:null,description:``,name:`variant`,required:!1,type:{name:`enum`,value:[{value:`"neutral"`},{value:`"accentDark"`},{value:`"accentDarkInverted"`},{value:`"neutralInverted"`},{value:`"unsetColors"`}]}},opensInNewTab:{defaultValue:null,description:"If `true`, forces internal link to open in a new tab.",name:`opensInNewTab`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},nofollow:{defaultValue:null,description:``,name:`nofollow`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},assistiveText:{defaultValue:null,description:"Provide an `aria-label` to the link.\nThis is useful if the link wraps non-textual elements, eg. an `img`.",name:`assistiveText`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},as:{defaultValue:null,description:``,name:`as`,required:!1,type:{name:`enum`,value:[{value:`ReactElement<any, string | JSXElementConstructor<any>>`}]}},url:{defaultValue:null,description:"@deprecated Use `href` instead",name:`url`,required:!1,type:{name:`enum`,value:[{value:`string`}]}},dataset:{defaultValue:null,description:`Sets data attributes on the DOM element.
@example <Avatar dataset={{ 'qa-id': 'user-avatar' }} /> // will add data-qa-id="user-avatar" to the HTML element`,name:`dataset`,required:!1,type:{name:`enum`,value:[{value:`Dataset`}]}},inline:{defaultValue:null,description:"If `true`, allows the link to wrap within text.",name:`inline`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}},noUnderline:{defaultValue:null,description:``,name:`noUnderline`,required:!1,type:{name:`enum`,value:[{value:`false`},{value:`true`}]}}}}}catch{}}));export{x as n,b as t};