{"version":3,"sources":["Tag.tsx"],"sourcesContent":["export type TagOptions = {\n\ttext?: string | HTMLElement,\n\tlarge?: boolean,\n\tsmall?: boolean,\n\tcolor?: string,\n\tbackgroundColor?: string,\n\tborderColor?: string | [string, string],\n\tappearance?: \"default\" | \"special\"\n}\n\nexport const Tag = blankTemplate<TagOptions & {children?: any}>(({appearance, children, large, small, color, backgroundColor, borderColor, text, ...props}) => \n\t<span \n\t\tdata-size={large ? \"large\" : small ? \"small\" : \"medium\"}\n\t\tstylesheet={\"./Tag.css?\"}\n\t\tstyle={{\n\t\t\t[color ? \"--tag-text-primary\" : \"\"]: color ?? \"transparent\",\n\t\t\t[backgroundColor ? \"--tag-bg-primary\" : \"\"]: backgroundColor ?? \"transparent\",\n\t\t\t[borderColor ? \"--tag-border-start\" : \"\"]: Array.isArray(borderColor) ? borderColor[0] : (borderColor ?? \"transparent\"),\n\t\t\t[borderColor ? \"--tag-border-end\" : \"\"]: Array.isArray(borderColor) ? borderColor[1] : (borderColor ?? \"transparent\"),\n\t\t}}\n\t\tclass={[\"unyt-tag\", appearance ?? \"default\"].join(\" \")} {...props}>\n\t\t{text}\n\t\t{children}\n\t</span>\n);"],"names":["Tag","blankTemplate","appearance","children","large","small","color","backgroundColor","borderColor","text","props","span","data-size","stylesheet","style","Array","isArray","class","join"],"mappings":";AAUA,OAAO,MAAMA,MAAMC,cAA6C,CAAC,EAACC,UAAU,EAAEC,QAAQ,EAAEC,KAAK,EAAEC,KAAK,EAAEC,KAAK,EAAEC,eAAe,EAAEC,WAAW,EAAEC,IAAI,EAAE,GAAGC,OAAM,iBACzJ,MAACC;QACAC,aAAWR,QAAQ,UAAUC,QAAQ,UAAU;QAC/CQ,YAAY;QACZC,OAAO;YACN,CAACR,QAAQ,uBAAuB,GAAG,EAAEA,SAAS;YAC9C,CAACC,kBAAkB,qBAAqB,GAAG,EAAEA,mBAAmB;YAChE,CAACC,cAAc,uBAAuB,GAAG,EAAEO,MAAMC,OAAO,CAACR,eAAeA,WAAW,CAAC,EAAE,GAAIA,eAAe;YACzG,CAACA,cAAc,qBAAqB,GAAG,EAAEO,MAAMC,OAAO,CAACR,eAAeA,WAAW,CAAC,EAAE,GAAIA,eAAe;QACxG;QACAS,OAAO;YAAC;YAAYf,cAAc;SAAU,CAACgB,IAAI,CAAC;QAAO,GAAGR,KAAK;;YAChED;YACAN;;QAED","sourceRoot":"/lib/unyt-components-0.0.17/elements/tag/","file":"Tag.tsx"}