import e from"@babel/runtime/helpers/defineProperty";import r from"@babel/runtime/helpers/objectWithoutProperties";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{forwardRef as o,isValidElement as s,cloneElement as a}from"react";import c from"classnames";import n from"./Tag.scss.js";var l=["testId","className","state","prefix","suffix","children","size"];function m(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,i)}return t}function p(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?m(Object(i),!0).forEach((function(t){e(r,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):m(Object(i)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))}))}return r}var f={dark:n.dark,light:n.light},u={large:n.large,medium:n.medium,small:n.small},d={large:20,medium:16,small:12},b=o((function(e,o){var m=e.testId,b=e.className,O=e.state,j=void 0===O?"dark":O,g=e.prefix,h=e.suffix,y=e.children,v=e.size,P=void 0===v?"medium":v,w=r(e,l),x=d[P];return t("div",p(p({className:c(n.root,u[P],f[j],b),"data-testid":m,ref:o},w),{},{children:[g&&s(g)?a(g,{size:x}):g,i("div",{className:n.label,children:y}),h&&s(h)?a(h,{size:x}):h]}))}));export{b as Tag};
//# sourceMappingURL=Tag.js.map
