"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"),n=require("../Text/Text.js"),a=require("./Label.scss.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=o(e),c=o(r),u=o(s),f=["children","size","position","state","className","testId","suffix","prefix"];function p(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 d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?p(Object(t),!0).forEach((function(r){l.default(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):p(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var m={small:a.small,medium:a.medium},b={left:a.left,right:a.right},j={primary:a.primary,neutral:a.neutral,error:a.error,info:a.info,success:a.success,warning:a.warning},O=i.forwardRef((function(e,r){var s=e.children,o=e.size,l=void 0===o?"medium":o,p=e.position,O=void 0===p?"left":p,y=e.state,h=void 0===y?"primary":y,v=e.className,x=e.testId,g=e.suffix,P=e.prefix,w=c.default(e,f);return t.jsxs(n.Text,d(d({},w),{},{className:u.default(a.root,m[l],b[O],j[h],v),"data-testid":x,size:10,ref:r,tagName:"div",children:[P&&i.isValidElement(P)?i.cloneElement(P,{size:12}):P,t.jsx("span",{className:a.text,children:s}),g&&i.isValidElement(g)?i.cloneElement(g,{size:12}):g]}))}));exports.Label=O;
//# sourceMappingURL=Label.js.map
