"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("@babel/runtime/helpers/objectWithoutProperties"),t=require("react/jsx-runtime"),i=require("react"),s=require("classnames"),a=require("./Tag.scss.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(e),c=l(r),o=l(s),u=["testId","className","state","prefix","suffix","children","size"];function d(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 f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?d(Object(t),!0).forEach((function(r){n.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):d(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var m={dark:a.dark,light:a.light},p={large:a.large,medium:a.medium,small:a.small},b={large:20,medium:16,small:12},j=i.forwardRef((function(e,r){var s=e.testId,l=e.className,n=e.state,d=void 0===n?"dark":n,j=e.prefix,O=e.suffix,g=e.children,y=e.size,h=void 0===y?"medium":y,v=c.default(e,u),P=b[h];return t.jsxs("div",f(f({className:o.default(a.root,p[h],m[d],l),"data-testid":s,ref:r},v),{},{children:[j&&i.isValidElement(j)?i.cloneElement(j,{size:P}):j,t.jsx("div",{className:a.label,children:g}),O&&i.isValidElement(O)?i.cloneElement(O,{size:P}):O]}))}));exports.Tag=j;
//# sourceMappingURL=Tag.js.map
