{"version":3,"sources":["Link.tsx"],"sourcesContent":["export type LinkOptions = {\n\thref?: string,\n\tlabel?: string,\n\ttarget?: \"_blank\" | \"_self\" | \"_parent\" | \"_top\",\n\tstyle?: string,\n\tdisableUnderline?: boolean,\n};\nexport const Link = blankTemplate<{ children?: any } & LinkOptions >(({disableUnderline, children, href, label, target, ...props}) => {\n\treturn <a \n\t\tdata-disable-underline={disableUnderline ?? false} \n\t\ttitle={label ?? href} \n\t\tdata-link=\"unyt-link\" \n\t\tstylesheet={\"./Link.css?\"} \n\t\t{...(href != undefined ? {\"href\": href} : {})} \n\t\ttarget={target} \n\t\t{...props}\n\t\tclass={[\"unyt-link\", ...(props.class ? [props.class] : [])].join(\" \")}\n\t\t>\n\t\t<span>{(children && children.length) ? Array.from(children) : (label ?? href)}</span>\n\t\t<svg class=\"arrow\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\"><path fill=\"currentColor\" d=\"M7.28033 3.21967C6.98744 2.92678 6.51256 2.92678 6.21967 3.21967C5.92678 3.51256 5.92678 3.98744 6.21967 4.28033L7.28033 3.21967ZM11 8L11.5303 8.53033C11.8232 8.23744 11.8232 7.76256 11.5303 7.46967L11 8ZM6.21967 11.7197C5.92678 12.0126 5.92678 12.4874 6.21967 12.7803C6.51256 13.0732 6.98744 13.0732 7.28033 12.7803L6.21967 11.7197ZM6.21967 4.28033L10.4697 8.53033L11.5303 7.46967L7.28033 3.21967L6.21967 4.28033ZM10.4697 7.46967L6.21967 11.7197L7.28033 12.7803L11.5303 8.53033L10.4697 7.46967Z\"></path><path class=\"part\" stroke=\"currentColor\" d=\"M1.75 8H11\" stroke-width=\"1.5\" stroke-linecap=\"round\"></path></svg>\n\t</a>\n});"],"names":["Link","blankTemplate","disableUnderline","children","href","label","target","props","a","data-disable-underline","title","data-link","stylesheet","undefined","class","join","span","length","Array","from","svg","width","height","viewBox","fill","path","d","stroke","stroke-width","stroke-linecap"],"mappings":";AAOA,OAAO,MAAMA,OAAOC,cAAiD,CAAC,EAACC,gBAAgB,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,KAAK,EAAEC,MAAM,EAAE,GAAGC,OAAM,iBACzH,MAACC;QACPC,0BAAwBP,oBAAoB,CAAA;QAC5CQ,OAAOL,SAASD;QAChBO,aAAU;QACVC,YAAY;QACX,GAAIR,AAAQS,KAAAA,KAART,OAAoB;YAAC,MAAQA;QAAI,IAAI,CAAC,CAAC;QAC5CE,QAAQA;QACP,GAAGC,KAAK;QACTO,OAAO;YAAC;eAAiBP,MAAMO,KAAK,GAAG;gBAACP,MAAMO,KAAK;aAAC,GAAG,EAAE;SAAE,CAACC,IAAI,CAAC;;0BAEjE,KAACC;0BAAM,AAACb,YAAYA,SAASc,MAAM,GAAIC,MAAMC,IAAI,CAAChB,YAAaE,SAASD;;0BACxE,MAACgB;gBAAIN,OAAM;gBAAQO,OAAM;gBAAKC,QAAO;gBAAKC,SAAQ;gBAAYC,MAAK;;kCAAO,KAACC;wBAAKD,MAAK;wBAAeE,GAAE;;kCAAyf,KAACD;wBAAKX,OAAM;wBAAOa,QAAO;wBAAeD,GAAE;wBAAaE,gBAAa;wBAAMC,kBAAe;;;;;QAExrB","sourceRoot":"/lib/unyt-components-0.0.17/elements/link/","file":"Link.tsx"}