"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs38.js"),l=require("react"),T=require("./index.cjs40.js"),t=require("./index.cjs45.js"),N=require("./index.cjs46.js"),q=require("./index.cjs47.js"),y=l.forwardRef(function({as:n,...a},s){return l.createElement(n,{...a,ref:s})}),g=l.forwardRef(({variant:i="primary",size:n="md",icon:a,iconPosition:s="left",closeable:c=!1,onClose:r,hashtag:o=!1,children:x,className:f,href:u,...d},p)=>{const j=m=>{m.stopPropagation(),r==null||r(m)},h=u?{...d,href:u,as:"a","data-atme-ui":!0}:{...d,as:"span","data-atme-ui":!0},R=o||!!a&&s==="left",I=c||!!a&&s==="right",E=T(t.default.tag,t.default[`tag--${i}`],t.default[`tag--${n}`],u&&t.default["tag--link"],R&&t.default["tag--hasLeadingIcon"],I&&t.default["tag--hasTrailingIcon"],f);return e.jsxRuntimeExports.jsxs(y,{ref:p,className:E,...h,children:[o&&e.jsxRuntimeExports.jsx("span",{className:t.default.tagHashIcon,children:e.jsxRuntimeExports.jsx(q.HashIcon,{width:"0.85em",height:"0.85em"})}),a&&s==="left"&&e.jsxRuntimeExports.jsx("span",{className:t.default.tagIcon,children:a}),e.jsxRuntimeExports.jsx("span",{className:t.default.tagContent,children:x}),a&&s==="right"&&e.jsxRuntimeExports.jsx("span",{className:t.default.tagIcon,children:a}),c&&e.jsxRuntimeExports.jsx("button",{type:"button",className:t.default.tagClose,onClick:j,"aria-label":"Close tag",children:e.jsxRuntimeExports.jsx(N.DismissIcon,{width:"0.7em",height:"0.7em"})})]})});g.displayName="Tag";exports.Tag=g;
//# sourceMappingURL=index.cjs11.js.map
