master-components-react 1.7.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,17 +15,17 @@
|
|
|
15
15
|
*
|
|
16
16
|
* This source code is licensed under the MIT license found in the
|
|
17
17
|
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/var Qe;function br(){return Qe||(Qe=1,process.env.NODE_ENV!=="production"&&function(){var s=k,u=Symbol.for("react.element"),o=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),C=Symbol.iterator,
|
|
18
|
+
*/var Qe;function br(){return Qe||(Qe=1,process.env.NODE_ENV!=="production"&&function(){var s=k,u=Symbol.for("react.element"),o=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),i=Symbol.for("react.suspense_list"),b=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),P=Symbol.for("react.offscreen"),C=Symbol.iterator,W="@@iterator";function D(e){if(e===null||typeof e!="object")return null;var r=C&&e[C]||e[W];return typeof r=="function"?r:null}var S=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),a=1;a<r;a++)t[a-1]=arguments[a];B("error",e,t)}}function B(e,r,t){{var a=S.ReactDebugCurrentFrame,p=a.getStackAddendum();p!==""&&(r+="%s",t=t.concat([p]));var v=t.map(function(f){return String(f)});v.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,v)}}var Z=!1,Q=!1,Y=!1,I=!1,ue=!1,ee;ee=Symbol.for("react.module.reference");function he(e){return!!(typeof e=="string"||typeof e=="function"||e===m||e===x||ue||e===g||e===_||e===i||I||e===P||Z||Q||Y||typeof e=="object"&&e!==null&&(e.$$typeof===T||e.$$typeof===b||e.$$typeof===j||e.$$typeof===h||e.$$typeof===d||e.$$typeof===ee||e.getModuleId!==void 0))}function ce(e,r,t){var a=e.displayName;if(a)return a;var p=r.displayName||r.name||"";return p!==""?t+"("+p+")":t}function _e(e){return e.displayName||"Context"}function F(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case o:return"Portal";case x:return"Profiler";case g:return"StrictMode";case _:return"Suspense";case i:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var r=e;return _e(r)+".Consumer";case j:var t=e;return _e(t._context)+".Provider";case d:return ce(e,e.render,"ForwardRef");case b:var a=e.displayName||null;return a!==null?a:F(e.type)||"Memo";case T:{var p=e,v=p._payload,f=p._init;try{return F(f(v))}catch{return null}}}return null}var N=Object.assign,V=0,me,ye,xe,be,ge,je,Ce;function Re(){}Re.__reactDisabledLog=!0;function Se(){{if(V===0){me=console.log,ye=console.info,xe=console.warn,be=console.error,ge=console.group,je=console.groupCollapsed,Ce=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Re,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Ye(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:N({},e,{value:me}),info:N({},e,{value:ye}),warn:N({},e,{value:xe}),error:N({},e,{value:be}),group:N({},e,{value:ge}),groupCollapsed:N({},e,{value:je}),groupEnd:N({},e,{value:Ce})})}V<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var fe=S.ReactCurrentDispatcher,de;function q(e,r,t){{if(de===void 0)try{throw Error()}catch(p){var a=p.stack.trim().match(/\n( *(at )?)/);de=a&&a[1]||""}return`
|
|
19
19
|
`+de+e}}var U=!1,H;{var Oe=typeof WeakMap=="function"?WeakMap:Map;H=new Oe}function K(e,r){if(!e||U)return"";{var t=H.get(e);if(t!==void 0)return t}var a;U=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var v;v=fe.current,fe.current=null,Se();try{if(r){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(O){a=O}Reflect.construct(e,[],f)}else{try{f.call()}catch(O){a=O}e.call(f.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var c=O.stack.split(`
|
|
20
20
|
`),$=a.stack.split(`
|
|
21
|
-
`),R=c.length-1,E=$.length-1;R>=1&&E>=0&&c[R]!==$[E];)E--;for(;R>=1&&E>=0;R--,E--)if(c[R]!==$[E]){if(R!==1||E!==1)do if(R--,E--,E<0||c[R]!==$[E]){var
|
|
22
|
-
`+c[R].replace(" at new "," at ");return e.displayName&&
|
|
21
|
+
`),R=c.length-1,E=$.length-1;R>=1&&E>=0&&c[R]!==$[E];)E--;for(;R>=1&&E>=0;R--,E--)if(c[R]!==$[E]){if(R!==1||E!==1)do if(R--,E--,E<0||c[R]!==$[E]){var A=`
|
|
22
|
+
`+c[R].replace(" at new "," at ");return e.displayName&&A.includes("<anonymous>")&&(A=A.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,A),A}while(R>=1&&E>=0);break}}}finally{U=!1,fe.current=v,Ye(),Error.prepareStackTrace=p}var ae=e?e.displayName||e.name:"",X=ae?q(ae):"";return typeof e=="function"&&H.set(e,X),X}function Pe(e,r,t){return K(e,!1)}function Fe(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function re(e,r,t){if(e==null)return"";if(typeof e=="function")return K(e,Fe(e));if(typeof e=="string")return q(e);switch(e){case _:return q("Suspense");case i:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case d:return Pe(e.render);case b:return re(e.type,r,t);case T:{var a=e,p=a._payload,v=a._init;try{return re(v(p),r,t)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Ee={},Te=S.ReactDebugCurrentFrame;function te(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}function ke(e,r,t,a,p){{var v=Function.call.bind(J);for(var f in e)if(v(e,f)){var c=void 0;try{if(typeof e[f]!="function"){var $=Error((a||"React class")+": "+t+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw $.name="Invariant Violation",$}c=e[f](r,f,a,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){c=R}c&&!(c instanceof Error)&&(te(p),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",t,f,typeof c),te(null)),c instanceof Error&&!(c.message in Ee)&&(Ee[c.message]=!0,te(p),y("Failed %s type: %s",t,c.message),te(null))}}}var Ae=Array.isArray;function ne(e){return Ae(e)}function Le(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function we(e){try{return l(e),!1}catch{return!0}}function l(e){return""+e}function M(e){if(we(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Le(e)),l(e)}var G=S.ReactCurrentOwner,rr={key:!0,ref:!0,__self:!0,__source:!0},Ve,qe,We;We={};function tr(e){if(J.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function nr(e){if(J.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function or(e,r){if(typeof e.ref=="string"&&G.current&&r&&G.current.stateNode!==r){var t=F(G.current.type);We[t]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',F(G.current.type),e.ref),We[t]=!0)}}function ar(e,r){{var t=function(){Ve||(Ve=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ir(e,r){{var t=function(){qe||(qe=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var sr=function(e,r,t,a,p,v,f){var c={$$typeof:u,type:e,key:r,ref:t,props:f,_owner:v};return c._store={},Object.defineProperty(c._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(c,"_self",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.defineProperty(c,"_source",{configurable:!1,enumerable:!1,writable:!1,value:p}),Object.freeze&&(Object.freeze(c.props),Object.freeze(c)),c};function lr(e,r,t,a,p){{var v,f={},c=null,$=null;t!==void 0&&(M(t),c=""+t),nr(r)&&(M(r.key),c=""+r.key),tr(r)&&($=r.ref,or(r,p));for(v in r)J.call(r,v)&&!rr.hasOwnProperty(v)&&(f[v]=r[v]);if(e&&e.defaultProps){var R=e.defaultProps;for(v in R)f[v]===void 0&&(f[v]=R[v])}if(c||$){var E=typeof e=="function"?e.displayName||e.name||"Unknown":e;c&&ar(f,E),$&&ir(f,E)}return sr(e,c,$,p,a,G.current,f)}}var Me=S.ReactCurrentOwner,Ue=S.ReactDebugCurrentFrame;function oe(e){if(e){var r=e._owner,t=re(e.type,e._source,r?r.type:null);Ue.setExtraStackFrame(t)}else Ue.setExtraStackFrame(null)}var De;De=!1;function Ne(e){return typeof e=="object"&&e!==null&&e.$$typeof===u}function He(){{if(Me.current){var e=F(Me.current.type);if(e)return`
|
|
23
23
|
|
|
24
24
|
Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Ke={};function cr(e){{var r=He();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
25
25
|
|
|
26
|
-
Check the top-level render call using <`+t+">.")}return r}}function Je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Ke[t])return;Ke[t]=!0;var a="";e&&e._owner&&e._owner!==Me.current&&(a=" It was passed a child from "+
|
|
26
|
+
Check the top-level render call using <`+t+">.")}return r}}function Je(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=cr(r);if(Ke[t])return;Ke[t]=!0;var a="";e&&e._owner&&e._owner!==Me.current&&(a=" It was passed a child from "+F(e._owner.type)+"."),oe(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,a),oe(null)}}function Ge(e,r){{if(typeof e!="object")return;if(ne(e))for(var t=0;t<e.length;t++){var a=e[t];Ne(a)&&Je(a,r)}else if(Ne(e))e._store&&(e._store.validated=!0);else if(e){var p=D(e);if(typeof p=="function"&&p!==e.entries)for(var v=p.call(e),f;!(f=v.next()).done;)Ne(f.value)&&Je(f.value,r)}}}function fr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===d||r.$$typeof===b))t=r.propTypes;else return;if(t){var a=F(r);ke(t,e.props,"prop",a,e)}else if(r.PropTypes!==void 0&&!De){De=!0;var p=F(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",p||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function dr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var a=r[t];if(a!=="children"&&a!=="key"){oe(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",a),oe(null);break}}e.ref!==null&&(oe(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),oe(null))}}var Xe={};function ze(e,r,t,a,p,v){{var f=he(e);if(!f){var c="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(c+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var $=ur();$?c+=$:c+=He();var R;e===null?R="null":ne(e)?R="array":e!==void 0&&e.$$typeof===u?(R="<"+(F(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):R=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,c)}var E=lr(e,r,t,p,v);if(E==null)return E;if(f){var A=r.children;if(A!==void 0)if(a)if(ne(A)){for(var ae=0;ae<A.length;ae++)Ge(A[ae],e);Object.freeze&&Object.freeze(A)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ge(A,e)}if(J.call(r,"key")){var X=F(e),O=Object.keys(r).filter(function(yr){return yr!=="key"}),Ie=O.length>0?"{key: someKey, "+O.join(": ..., ")+": ...}":"{key: someKey}";if(!Xe[X+Ie]){var mr=O.length>0?"{"+O.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
27
27
|
let props = %s;
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,Ie,X,mr,X),Xe[X+Ie]=!0}}return e===m?dr(E):fr(E),E}}function pr(e,r,t){return ze(e,r,t,!0)}function vr(e,r,t){return ze(e,r,t,!1)}var hr=vr,_r=pr;ve.Fragment=m,ve.jsx=hr,ve.jsxs=_r}()),ve}process.env.NODE_ENV==="production"?Be.exports=xr():Be.exports=br();var n=Be.exports;const gr="MainButton-module__mainButton",jr="MainButton-module__sm",Cr="MainButton-module__onlyIcon",Rr="MainButton-module__buttonSlot",Er="MainButton-module__buttonLabel",Tr="MainButton-module__md",kr="MainButton-module__lg",wr="MainButton-module__xl",$r="MainButton-module__xl2",Sr="MainButton-module__disabled",ie={mainButton:gr,sm:jr,onlyIcon:Cr,buttonSlot:Rr,buttonLabel:Er,md:Tr,lg:kr,xl:wr,xl2:$r,disabled:Sr},Or=({label:s,buttonType:u="button",onClick:o,size:m="md",disabled:g,withIcons:x,iconOne:j,iconTwo:h,onlyIcon:d,buttonStyle:_,labelStyle:i,buttonSlotStyle:b})=>n.jsx("button",{type:u,style:_&&typeof _=="object"?_:{},className:`${ie.mainButton} ${d?ie.onlyIcon:""} ${m?ie[m]:""} ${g?ie.disabled:""}`,onClick:()=>{o&&typeof o=="function"&&o()},children:n.jsxs("div",{className:ie.buttonSlot,style:b??{},children:[d||x&&j?j:"",!d&&n.jsx("span",{style:i??{},className:ie.buttonLabel,children:s??"Button"}),x&&h?h:""]})}),Pr="FormInput-module__inputWrapper",Fr="FormInput-module__inputLabel",Ar="FormInput-module__required",Lr="FormInput-module__inputContainer",Wr="FormInput-module__focused",Mr="FormInput-module__error",Dr="FormInput-module__rightIcon",Nr="FormInput-module__leftIcon",Ir="FormInput-module__inputDropDown",Br="FormInput-module__http",Yr="FormInput-module__disabled",Vr="FormInput-module__sm",qr="FormInput-module__md",Ur="FormInput-module__withCopy",Hr="FormInput-module__inputHelperText",w={inputWrapper:Pr,inputLabel:Fr,required:Ar,inputContainer:Lr,focused:Wr,error:Mr,rightIcon:Dr,leftIcon:Nr,inputDropDown:Ir,http:Br,disabled:Yr,sm:Vr,md:qr,withCopy:Ur,inputHelperText:Hr},Kr=({width:s,height:u,color:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"12",height:u??"8",viewBox:"0 0 12 8",fill:"none",children:n.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:o??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Jr=({width:s,height:u,color:o})=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"20",height:u??"20",viewBox:"0 0 20 20",fill:"none",children:[n.jsx("g",{clipPath:"url(#clip0_444_26)",children:n.jsx("path",{d:"M4.1665 12.5C3.38993 12.5 3.00165 12.5 2.69536 12.3732C2.28698 12.204 1.96253 11.8795 1.79337 11.4712C1.6665 11.1649 1.6665 10.7766 1.6665 10V4.33335C1.6665 3.39993 1.6665 2.93322 1.84816 2.5767C2.00795 2.2631 2.26292 2.00813 2.57652 1.84834C2.93304 1.66669 3.39975 1.66669 4.33317 1.66669H9.99984C10.7764 1.66669 11.1647 1.66669 11.471 1.79355C11.8794 1.96271 12.2038 2.28717 12.373 2.69555C12.4998 3.00183 12.4998 3.39012 12.4998 4.16669M10.1665 18.3334H15.6665C16.5999 18.3334 17.0666 18.3334 17.4232 18.1517C17.7368 17.9919 17.9917 17.7369 18.1515 17.4233C18.3332 17.0668 18.3332 16.6001 18.3332 15.6667V10.1667C18.3332 9.23327 18.3332 8.76656 18.1515 8.41004C17.9917 8.09643 17.7368 7.84147 17.4232 7.68168C17.0666 7.50002 16.5999 7.50002 15.6665 7.50002H10.1665C9.23308 7.50002 8.76637 7.50002 8.40985 7.68168C8.09625 7.84147 7.84128 8.09643 7.68149 8.41004C7.49984 8.76656 7.49984 9.23327 7.49984 10.1667V15.6667C7.49984 16.6001 7.49984 17.0668 7.68149 17.4233C7.84128 17.7369 8.09625 17.9919 8.40985 18.1517C8.76637 18.3334 9.23308 18.3334 10.1665 18.3334Z",stroke:o??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_444_26",children:n.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Gr=({value:s,label:u,placeholder:o,required:m,disabled:g,type:x,size:j,onChange:h,onFouce:d,onBlur:_,msg:i,readOnly:b,maxLength:T,onlyText:P,onRightIconIconClick:C,onRightIconIconMouseEnter:F,onRightIconIconMouseLeave:D,onLeftIconIconClick:S,onLeftIconIconMouseEnter:y,onLeftIconIconMouseLeave:B,rightIcon:Z,leftIcon:Q,withDropDown:Y,dropdownData:I,onSelectData:ue,withLink:ee,withCopy:he,onCopy:ce,inputWrapperStyle:_e,inputLabelStyle:A,requiredStyle:N,inputContainerStyle:V,leftIconStyle:me,inputDropDownStyle:ye,ulStyle:xe,liStyle:be,httpStyle:ge,inputStyle:je,rightIconStyle:Ce,withCopyStyle:Re,inputHelperTextStyle:Se})=>{const[Ye,fe]=k.useState(!1),[de,q]=k.useState(!1);k.useState(!1);const U=k.useRef(null),H=k.useRef(null),[Oe,K]=k.useState(!1),[Pe,Fe]=k.useState(1),re=l=>{let M=l.target.value;M.length===1&&(M=M.trim()),h&&typeof h=="function"&&h(P?M.replace(/\d/g,""):M)},J=()=>{q(!0),d&&typeof d=="function"&&d()},Ee=()=>{q(!1),_&&typeof _=="function"&&_()},Te=l=>{const G=l.target.value.length===0;x==="number"&&(l.keyCode===69||!G&&(l.keyCode===187||l.keyCode===107||l.keyCode===189||l.keyCode===109))&&l.preventDefault()},te=()=>{ce&&typeof ce=="function"&&ce(s)},ke=l=>l,Ae=()=>{let l={};return he&&(l.borderTopRightRadius=0,l.borderBottomRightRadius=0,l.borderRight=0),Y&&(l.paddingLeft=0),{...l,...V??{}}},ne=l=>{!l.composedPath().includes(H.current)&&l.composedPath().includes(U.current)||K(!1)},Le=l=>{Fe(l.id),K(!1),ue&&typeof ue=="function"&&ue(l)};k.useEffect(()=>(document.addEventListener("click",ne),()=>{document.removeEventListener("click",ne)}),[]);const we=k.useRef(!1);return k.useEffect(()=>{we.current?setTimeout(()=>{fe(l=>!l)},0):we.current=!0},[]),n.jsxs("div",{className:w.inputWrapper,style:_e??{},children:[u&&n.jsxs("label",{className:w.inputLabel,style:A??{},children:[u," ",n.jsx("span",{className:w.required,style:N??{},children:m&&"*"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[n.jsxs("div",{style:Ae(),className:`${w.inputContainer} ${de&&!b?w.focused:""} ${g?w.disabled:""} ${i!=null&&i.error?w.error:""} ${w[j??"sm"]}`,children:[!Y&&!ee&&Q&&n.jsx("div",{className:w.leftIcon,style:me??{},onClick:()=>{S&&typeof S=="function"&&S()},onMouseEnter:()=>{y&&typeof y=="function"&&y()},onMouseLeave:()=>{B&&typeof B=="function"&&B()},children:ke(Q)}),!ee&&Y&&n.jsxs("div",{className:w.inputDropDown,style:ye??{},onClick:()=>K(!0),ref:U,children:[I.find(l=>l.id===Pe).label,Oe&&n.jsx("ul",{ref:H,style:xe??{},children:I&&I.length&&I.map((l,M)=>n.jsx("li",{style:be??{},onClick:()=>Le(l),children:(l==null?void 0:l.label)??"-"},l.id))}),n.jsx(Kr,{})]}),ee&&n.jsx("div",{className:`${w.inputDropDown} ${w.http}`,style:ge??{},onClick:()=>K(!0),ref:U,children:"http://"}),n.jsx("input",{style:je??{},type:x??"text",value:s,onChange:l=>re(l),onFocus:J,onBlur:Ee,disabled:g,required:m,onKeyDown:Te,readOnly:b,spellCheck:!1,placeholder:o??"",autoComplete:"off",maxLength:T}),Z&&n.jsx("div",{className:w.rightIcon,style:Ce??{},onClick:()=>{C&&typeof C=="function"&&C()},onMouseEnter:()=>{F&&typeof F=="function"&&F()},onMouseLeave:()=>{D&&typeof D=="function"&&D()},children:ke(Z)})]}),he&&n.jsxs("div",{style:Re??{},onClick:te,className:w.withCopy,children:[n.jsx(Jr,{}),"Copy"]})]}),i&&(i==null?void 0:i.visigle)&&n.jsx("div",{style:Se??{},className:`${w.inputHelperText} ${i!=null&&i.error?w.error:""}`,children:n.jsx("p",{style:(i==null?void 0:i.style)??{},children:i.text})})]})},Xr="Textarea-module__textareaContainer",zr="Textarea-module__textAreaLabel",Zr="Textarea-module__required",Qr="Textarea-module__wrap",et="Textarea-module__textarea",rt="Textarea-module__focused",tt="Textarea-module__disabled",nt="Textarea-module__error",ot="Textarea-module__helperTextStyle",W={textareaContainer:Xr,textAreaLabel:zr,required:Zr,wrap:Qr,textarea:et,focused:rt,disabled:tt,error:nt,helperTextStyle:ot},at=({width:s,height:u,color:o})=>n.jsxs("svg",{width:s??"16",height:u??"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("g",{id:"help-circle",clipPath:"url(#clip0_433_6293)",children:n.jsx("path",{id:"Icon",d:"M6.05992 5.99998C6.21665 5.55442 6.52602 5.17872 6.93322 4.9394C7.34042 4.70009 7.81918 4.61261 8.2847 4.69245C8.75022 4.7723 9.17246 5.01433 9.47664 5.37567C9.78081 5.737 9.94729 6.19433 9.94659 6.66665C9.94659 7.99998 7.94659 8.66665 7.94659 8.66665M7.99992 11.3333H8.00659M14.6666 7.99998C14.6666 11.6819 11.6818 14.6666 7.99992 14.6666C4.31802 14.6666 1.33325 11.6819 1.33325 7.99998C1.33325 4.31808 4.31802 1.33331 7.99992 1.33331C11.6818 1.33331 14.6666 4.31808 14.6666 7.99998Z",stroke:o??"#A4A7AE",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_433_6293",children:n.jsx("rect",{width:s??"16",height:u??"16",fill:"white"})})})]}),it=({placeholder:s,label:u,msg:o,cols:m,rows:g,value:x,maxLength:j,onChange:h,onFocus:d,onBlur:_,disabled:i,required:b,textareaContainerStyle:T,textareaLabelStyle:P,requiredStyle:C,textareaStyle:F,textareaHelperTextStyle:D})=>{const[S,y]=k.useState(!1),B=Y=>{let I=Y.target.value;h&&typeof h=="function"&&h(I)},Z=()=>{y(!0),d&&typeof d=="function"&&d()},Q=()=>{y(!1),_&&typeof _=="function"&&_()};return n.jsxs("div",{style:T??{},className:`${W.textareaContainer} ${o!=null&&o.type&&(o!=null&&o.visible)?W[o==null?void 0:o.type]:""} ${i?W.disabled:null}`,children:[u&&n.jsxs("div",{style:P,className:W.textAreaLabel,children:[n.jsx("p",{children:u}),n.jsx("span",{style:C??{},className:W.required,children:b&&"*"}),n.jsx(at,{})]}),n.jsx("div",{className:W.wrap,children:n.jsx("textarea",{style:F??{},className:`${W.textarea} ${S?W.focused:""} ${i?W.disabled:""} ${o!=null&&o.error?W.error:""}`,value:x,placeholder:s??"",cols:m??"30",rows:g??"5",maxLength:j??null,onFocus:Z,disabled:i,onBlur:Q,onChange:B})}),n.jsx("div",{style:D??{},className:`${W.helperTextStyle} ${o!=null&&o.error?W.error:""}`,children:n.jsx("p",{style:(o==null?void 0:o.style)??{},children:o.text})})]})},st="Toggle-module__toggleWrapper",lt="Toggle-module__toggleState",ut="Toggle-module__checked",ct="Toggle-module__disabled",$e={toggleWrapper:st,toggleState:lt,checked:ut,disabled:ct},ft=({checked:s,change:u,disabled:o,required:m,activeStyle:g,bgStyle:x,checkedBgStyle:j,disabledBgStyle:h,circleStyle:d,checkedCircleStyle:_,disabledCircleStyle:i})=>{const[b,T]=k.useState(!1),P=()=>{u&&typeof u=="function"&&u(!s)},C=()=>{if(b)return g??{};if(s){if(j)return j}else if(s){if(o&&h)return h}else if(x)return x;return{}},F=()=>{if(s){if(_)return _}else if(s){if(o&&i)return i}else if(d)return d;return{}};return n.jsx("div",{style:C(),onMouseDown:()=>T(!0),onMouseUp:()=>T(!1),onMouseLeave:()=>T(!1),onClick:P,className:`${$e.toggleWrapper} ${s?$e.checked:""} ${o?$e.disabled:""}`,children:n.jsx("div",{style:F(),className:$e.toggleState,children:n.jsx("input",{type:"checkbox",checked:s,readOnly:!0,disabled:o??!1,hidden:!0,required:m??!1})})})},dt="Checkbox-module__checkboxWrapper",pt="Checkbox-module__sm",vt="Checkbox-module__md",ht="Checkbox-module__checkMark",_t="Checkbox-module__checked",mt="Checkbox-module__disabled",se={checkboxWrapper:dt,sm:pt,md:vt,checkMark:ht,checked:_t,disabled:mt},yt=s=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...s,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:n.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),xt=s=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...s,width:"10",height:"2",viewBox:"0 0 10 2",fill:"none",children:n.jsx("path",{d:"M1.5 1H8.5",stroke:"white",strokeWidth:"1.66666",strokeLinecap:"round",strokeLinejoin:"round"})}),er=({checked:s,change:u,disabled:o,required:m,multipleChecked:g,size:x,activeStyle:j,checkBoxStyle:h})=>{const d=k.useRef(null),[_,i]=k.useState(!1),b=()=>{u&&typeof u=="function"&&u(!s)},T=()=>_?j??{}:h??{};return n.jsxs("div",{style:T(),className:`${se.checkboxWrapper} ${se[x]??se.md} ${s?se.checked:se.unChecked} ${o?se.disabled:""}`,onMouseDown:()=>i(!0),onMouseUp:()=>i(!1),onMouseLeave:()=>i(!1),onClick:b,children:[n.jsx("input",{ref:d,type:"checkbox",disabled:o,checked:s,hidden:!0,readOnly:!0,required:m??!1}),s?g?n.jsx(xt,{}):n.jsx(yt,{}):""]})},bt="Radio-module__radioWrapper",gt="Radio-module__sm",jt="Radio-module__md",Ct="Radio-module__checked",Rt="Radio-module__innerCircle",Et="Radio-module__radioState",Tt="Radio-module__disabled",z={radioWrapper:bt,sm:gt,md:jt,checked:Ct,innerCircle:Rt,radioState:Et,disabled:Tt},kt=({checked:s,change:u,disabled:o,isRequired:m,withUncheckState:g,size:x})=>{k.useState(!1);const j=()=>{u&&typeof u=="function"&&(g||!g&&!s)&&u(!0)};return n.jsxs("div",{className:`${z.radioWrapper} ${z[x]??z.md} ${s?z.checked:""} ${o?z.disabled:""}`,onClick:j,children:[n.jsx("input",{type:"radio",checked:!0,readOnly:!0,hidden:!0,disabled:o??!1,required:m??!1}),n.jsx("div",{className:z.radioState,children:n.jsx("div",{className:z.innerCircle})})]})},wt=({width:s,height:u,color:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"14",height:u??"14",viewBox:"0 0 14 14",fill:"none",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:o??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),$t="Tag-module__tagContainer",St="Tag-module__onlyLabel",Ot="Tag-module__sm",Pt="Tag-module__md",Ft="Tag-module__lg",At="Tag-module__tagLabel",Lt="Tag-module__tagNumber",Wt="Tag-module__tagClose",le={tagContainer:$t,onlyLabel:St,sm:Ot,md:Pt,lg:Ft,tagLabel:At,tagNumber:Lt,tagClose:Wt},Mt=({id:s,label:u,icon:o,withDelete:m,withCheckbox:g,withNumber:x,number:j,checkboxProps:h,disable:d,size:_,onClose:i,tagContainerStyle:b,tagLabelStyle:T,tagNumberStyle:P,tagCloseStlye:C})=>{const F=()=>!g&&!o&&!m&&!x;console.log(F());const D=()=>o,S=()=>{i&&typeof i=="function"&&i(s??null)};return n.jsxs("div",{style:b??{},className:`${le.tagContainer} ${F()?le.onlyLabel:""} ${le[_??"md"]}`,children:[g&&n.jsx(er,{...h}),o&&D(),u&&n.jsx("p",{style:T??{},className:le.tagLabel,children:u??""}),x&&n.jsx("div",{style:P??{},className:le.tagNumber,children:j??""}),m&&n.jsx("div",{style:C??{},className:le.tagClose,onClick:S,children:n.jsx(wt,{width:(C==null?void 0:C.width)??"14",height:(C==null?void 0:C.height)??"14",color:(C==null?void 0:C.color)??"#A4A7AE"})})]})};exports.Checkbox=er;exports.FormInput=Gr;exports.MainButton=Or;exports.Radio=kt;exports.Tag=Mt;exports.Textarea=it;exports.Toggle=ft;
|
|
31
|
+
<%s key={someKey} {...props} />`,Ie,X,mr,X),Xe[X+Ie]=!0}}return e===m?dr(E):fr(E),E}}function pr(e,r,t){return ze(e,r,t,!0)}function vr(e,r,t){return ze(e,r,t,!1)}var hr=vr,_r=pr;ve.Fragment=m,ve.jsx=hr,ve.jsxs=_r}()),ve}process.env.NODE_ENV==="production"?Be.exports=xr():Be.exports=br();var n=Be.exports;const gr="MainButton-module__mainButton",jr="MainButton-module__sm",Cr="MainButton-module__onlyIcon",Rr="MainButton-module__buttonSlot",Er="MainButton-module__buttonLabel",Tr="MainButton-module__md",kr="MainButton-module__lg",wr="MainButton-module__xl",$r="MainButton-module__xl2",Sr="MainButton-module__disabled",ie={mainButton:gr,sm:jr,onlyIcon:Cr,buttonSlot:Rr,buttonLabel:Er,md:Tr,lg:kr,xl:wr,xl2:$r,disabled:Sr},Or=({label:s,buttonType:u="button",onClick:o,size:m="md",disabled:g,withIcons:x,iconOne:j,iconTwo:h,onlyIcon:d,buttonStyle:_,labelStyle:i,buttonSlotStyle:b})=>n.jsx("button",{type:u,style:_&&typeof _=="object"?_:{},className:`${ie.mainButton} ${d?ie.onlyIcon:""} ${m?ie[m]:""} ${g?ie.disabled:""}`,onClick:()=>{o&&typeof o=="function"&&o()},children:n.jsxs("div",{className:ie.buttonSlot,style:b??{},children:[d||x&&j?j:"",!d&&n.jsx("span",{style:i??{},className:ie.buttonLabel,children:s??"Button"}),x&&h?h:""]})}),Pr="FormInput-module__inputWrapper",Fr="FormInput-module__inputLabel",Ar="FormInput-module__required",Lr="FormInput-module__inputContainer",Wr="FormInput-module__focused",Mr="FormInput-module__error",Dr="FormInput-module__rightIcon",Nr="FormInput-module__leftIcon",Ir="FormInput-module__inputDropDown",Br="FormInput-module__http",Yr="FormInput-module__disabled",Vr="FormInput-module__sm",qr="FormInput-module__md",Ur="FormInput-module__withCopy",Hr="FormInput-module__inputHelperText",w={inputWrapper:Pr,inputLabel:Fr,required:Ar,inputContainer:Lr,focused:Wr,error:Mr,rightIcon:Dr,leftIcon:Nr,inputDropDown:Ir,http:Br,disabled:Yr,sm:Vr,md:qr,withCopy:Ur,inputHelperText:Hr},Kr=({width:s,height:u,color:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"12",height:u??"8",viewBox:"0 0 12 8",fill:"none",children:n.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:o??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Jr=({width:s,height:u,color:o})=>n.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"20",height:u??"20",viewBox:"0 0 20 20",fill:"none",children:[n.jsx("g",{clipPath:"url(#clip0_444_26)",children:n.jsx("path",{d:"M4.1665 12.5C3.38993 12.5 3.00165 12.5 2.69536 12.3732C2.28698 12.204 1.96253 11.8795 1.79337 11.4712C1.6665 11.1649 1.6665 10.7766 1.6665 10V4.33335C1.6665 3.39993 1.6665 2.93322 1.84816 2.5767C2.00795 2.2631 2.26292 2.00813 2.57652 1.84834C2.93304 1.66669 3.39975 1.66669 4.33317 1.66669H9.99984C10.7764 1.66669 11.1647 1.66669 11.471 1.79355C11.8794 1.96271 12.2038 2.28717 12.373 2.69555C12.4998 3.00183 12.4998 3.39012 12.4998 4.16669M10.1665 18.3334H15.6665C16.5999 18.3334 17.0666 18.3334 17.4232 18.1517C17.7368 17.9919 17.9917 17.7369 18.1515 17.4233C18.3332 17.0668 18.3332 16.6001 18.3332 15.6667V10.1667C18.3332 9.23327 18.3332 8.76656 18.1515 8.41004C17.9917 8.09643 17.7368 7.84147 17.4232 7.68168C17.0666 7.50002 16.5999 7.50002 15.6665 7.50002H10.1665C9.23308 7.50002 8.76637 7.50002 8.40985 7.68168C8.09625 7.84147 7.84128 8.09643 7.68149 8.41004C7.49984 8.76656 7.49984 9.23327 7.49984 10.1667V15.6667C7.49984 16.6001 7.49984 17.0668 7.68149 17.4233C7.84128 17.7369 8.09625 17.9919 8.40985 18.1517C8.76637 18.3334 9.23308 18.3334 10.1665 18.3334Z",stroke:o??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_444_26",children:n.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Gr=({value:s,label:u,placeholder:o,required:m,disabled:g,type:x,size:j,onChange:h,onFouce:d,onBlur:_,msg:i,readOnly:b,maxLength:T,onlyText:P,onRightIconIconClick:C,onRightIconIconMouseEnter:W,onRightIconIconMouseLeave:D,onLeftIconIconClick:S,onLeftIconIconMouseEnter:y,onLeftIconIconMouseLeave:B,rightIcon:Z,leftIcon:Q,withDropDown:Y,dropdownData:I,onSelectData:ue,withLink:ee,withCopy:he,onCopy:ce,inputWrapperStyle:_e,inputLabelStyle:F,requiredStyle:N,inputContainerStyle:V,leftIconStyle:me,inputDropDownStyle:ye,ulStyle:xe,liStyle:be,httpStyle:ge,inputStyle:je,rightIconStyle:Ce,withCopyStyle:Re,inputHelperTextStyle:Se})=>{const[Ye,fe]=k.useState(!1),[de,q]=k.useState(!1);k.useState(!1);const U=k.useRef(null),H=k.useRef(null),[Oe,K]=k.useState(!1),[Pe,Fe]=k.useState(1),re=l=>{let M=l.target.value;M.length===1&&(M=M.trim()),h&&typeof h=="function"&&h(P?M.replace(/\d/g,""):M)},J=()=>{q(!0),d&&typeof d=="function"&&d()},Ee=()=>{q(!1),_&&typeof _=="function"&&_()},Te=l=>{const G=l.target.value.length===0;x==="number"&&(l.keyCode===69||!G&&(l.keyCode===187||l.keyCode===107||l.keyCode===189||l.keyCode===109))&&l.preventDefault()},te=()=>{ce&&typeof ce=="function"&&ce(s)},ke=l=>l,Ae=()=>{let l={};return he&&(l.borderTopRightRadius=0,l.borderBottomRightRadius=0,l.borderRight=0),Y&&(l.paddingLeft=0),{...l,...V??{}}},ne=l=>{!l.composedPath().includes(H.current)&&l.composedPath().includes(U.current)||K(!1)},Le=l=>{Fe(l.id),K(!1),ue&&typeof ue=="function"&&ue(l)};k.useEffect(()=>(document.addEventListener("click",ne),()=>{document.removeEventListener("click",ne)}),[]);const we=k.useRef(!1);return k.useEffect(()=>{we.current?setTimeout(()=>{fe(l=>!l)},0):we.current=!0},[]),n.jsxs("div",{className:w.inputWrapper,style:_e??{},children:[u&&n.jsxs("label",{className:w.inputLabel,style:F??{},children:[u," ",n.jsx("span",{className:w.required,style:N??{},children:m&&"*"})]}),n.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[n.jsxs("div",{style:Ae(),className:`${w.inputContainer} ${de&&!b?w.focused:""} ${g?w.disabled:""} ${i!=null&&i.error?w.error:""} ${w[j??"sm"]}`,children:[!Y&&!ee&&Q&&n.jsx("div",{className:w.leftIcon,style:me??{},onClick:()=>{S&&typeof S=="function"&&S()},onMouseEnter:()=>{y&&typeof y=="function"&&y()},onMouseLeave:()=>{B&&typeof B=="function"&&B()},children:ke(Q)}),!ee&&Y&&n.jsxs("div",{className:w.inputDropDown,style:ye??{},onClick:()=>K(!0),ref:U,children:[I.find(l=>l.id===Pe).label,Oe&&n.jsx("ul",{ref:H,style:xe??{},children:I&&I.length&&I.map((l,M)=>n.jsx("li",{style:be??{},onClick:()=>Le(l),children:(l==null?void 0:l.label)??"-"},l.id))}),n.jsx(Kr,{})]}),ee&&n.jsx("div",{className:`${w.inputDropDown} ${w.http}`,style:ge??{},onClick:()=>K(!0),ref:U,children:"http://"}),n.jsx("input",{style:je??{},type:x??"text",value:s,onChange:l=>re(l),onFocus:J,onBlur:Ee,disabled:g,required:m,onKeyDown:Te,readOnly:b,spellCheck:!1,placeholder:o??"",autoComplete:"off",maxLength:T}),Z&&n.jsx("div",{className:w.rightIcon,style:Ce??{},onClick:()=>{C&&typeof C=="function"&&C()},onMouseEnter:()=>{W&&typeof W=="function"&&W()},onMouseLeave:()=>{D&&typeof D=="function"&&D()},children:ke(Z)})]}),he&&n.jsxs("div",{style:Re??{},onClick:te,className:w.withCopy,children:[n.jsx(Jr,{}),"Copy"]})]}),i&&(i==null?void 0:i.visigle)&&n.jsx("div",{style:Se??{},className:`${w.inputHelperText} ${i!=null&&i.error?w.error:""}`,children:n.jsx("p",{style:(i==null?void 0:i.style)??{},children:i.text})})]})},Xr="Textarea-module__textareaContainer",zr="Textarea-module__textAreaLabel",Zr="Textarea-module__required",Qr="Textarea-module__wrap",et="Textarea-module__textarea",rt="Textarea-module__focused",tt="Textarea-module__disabled",nt="Textarea-module__error",ot="Textarea-module__helperTextStyle",L={textareaContainer:Xr,textAreaLabel:zr,required:Zr,wrap:Qr,textarea:et,focused:rt,disabled:tt,error:nt,helperTextStyle:ot},at=({width:s,height:u,color:o})=>n.jsxs("svg",{width:s??"16",height:u??"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[n.jsx("g",{id:"help-circle",clipPath:"url(#clip0_433_6293)",children:n.jsx("path",{id:"Icon",d:"M6.05992 5.99998C6.21665 5.55442 6.52602 5.17872 6.93322 4.9394C7.34042 4.70009 7.81918 4.61261 8.2847 4.69245C8.75022 4.7723 9.17246 5.01433 9.47664 5.37567C9.78081 5.737 9.94729 6.19433 9.94659 6.66665C9.94659 7.99998 7.94659 8.66665 7.94659 8.66665M7.99992 11.3333H8.00659M14.6666 7.99998C14.6666 11.6819 11.6818 14.6666 7.99992 14.6666C4.31802 14.6666 1.33325 11.6819 1.33325 7.99998C1.33325 4.31808 4.31802 1.33331 7.99992 1.33331C11.6818 1.33331 14.6666 4.31808 14.6666 7.99998Z",stroke:o??"#A4A7AE",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),n.jsx("defs",{children:n.jsx("clipPath",{id:"clip0_433_6293",children:n.jsx("rect",{width:s??"16",height:u??"16",fill:"white"})})})]}),it=({placeholder:s,label:u,msg:o,cols:m,rows:g,value:x,maxLength:j,onChange:h,onFocus:d,onBlur:_,disabled:i,required:b,textareaContainerStyle:T,textareaLabelStyle:P,requiredStyle:C,textareaStyle:W,textareaHelperTextStyle:D})=>{const[S,y]=k.useState(!1),B=Y=>{let I=Y.target.value;h&&typeof h=="function"&&h(I)},Z=()=>{y(!0),d&&typeof d=="function"&&d()},Q=()=>{y(!1),_&&typeof _=="function"&&_()};return n.jsxs("div",{style:T??{},className:`${L.textareaContainer} ${o!=null&&o.type&&(o!=null&&o.visible)?L[o==null?void 0:o.type]:""} ${i?L.disabled:null}`,children:[u&&n.jsxs("div",{style:P,className:L.textAreaLabel,children:[n.jsx("p",{children:u}),n.jsx("span",{style:C??{},className:L.required,children:b&&"*"}),n.jsx(at,{})]}),n.jsx("div",{className:L.wrap,children:n.jsx("textarea",{style:W??{},className:`${L.textarea} ${S?L.focused:""} ${i?L.disabled:""} ${o!=null&&o.error?L.error:""}`,value:x,placeholder:s??"",cols:m??"30",rows:g??"5",maxLength:j??null,onFocus:Z,disabled:i,onBlur:Q,onChange:B})}),n.jsx("div",{style:D??{},className:`${L.helperTextStyle} ${o!=null&&o.error?L.error:""}`,children:n.jsx("p",{style:(o==null?void 0:o.style)??{},children:o.text})})]})},st="Toggle-module__toggleWrapper",lt="Toggle-module__toggleState",ut="Toggle-module__checked",ct="Toggle-module__disabled",$e={toggleWrapper:st,toggleState:lt,checked:ut,disabled:ct},ft=({checked:s,change:u,disabled:o,required:m,activeStyle:g,bgStyle:x,checkedBgStyle:j,disabledBgStyle:h,circleStyle:d,checkedCircleStyle:_,disabledCircleStyle:i})=>{const[b,T]=k.useState(!1),P=()=>{u&&typeof u=="function"&&u(!s)},C=()=>{if(b)return g??{};if(s){if(j)return j}else if(s){if(o&&h)return h}else if(x)return x;return{}},W=()=>{if(s){if(_)return _}else if(s){if(o&&i)return i}else if(d)return d;return{}};return n.jsx("div",{style:C(),onMouseDown:()=>T(!0),onMouseUp:()=>T(!1),onMouseLeave:()=>T(!1),onClick:P,className:`${$e.toggleWrapper} ${s?$e.checked:""} ${o?$e.disabled:""}`,children:n.jsx("div",{style:W(),className:$e.toggleState,children:n.jsx("input",{type:"checkbox",checked:s,readOnly:!0,disabled:o??!1,hidden:!0,required:m??!1})})})},dt="Checkbox-module__checkboxWrapper",pt="Checkbox-module__sm",vt="Checkbox-module__md",ht="Checkbox-module__checkMark",_t="Checkbox-module__checked",mt="Checkbox-module__disabled",se={checkboxWrapper:dt,sm:pt,md:vt,checkMark:ht,checked:_t,disabled:mt},yt=s=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...s,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",children:n.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:"white",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),xt=s=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...s,width:"10",height:"2",viewBox:"0 0 10 2",fill:"none",children:n.jsx("path",{d:"M1.5 1H8.5",stroke:"white",strokeWidth:"1.66666",strokeLinecap:"round",strokeLinejoin:"round"})}),er=({checked:s,change:u,disabled:o,required:m,multipleChecked:g,size:x,activeStyle:j,checkBoxStyle:h})=>{const d=k.useRef(null),[_,i]=k.useState(!1),b=()=>{u&&typeof u=="function"&&u(!s)},T=()=>_?j??{}:h??{};return n.jsxs("div",{style:T(),className:`${se.checkboxWrapper} ${se[x]??se.md} ${s?se.checked:se.unChecked} ${o?se.disabled:""}`,onMouseDown:()=>i(!0),onMouseUp:()=>i(!1),onMouseLeave:()=>i(!1),onClick:b,children:[n.jsx("input",{ref:d,type:"checkbox",disabled:o,checked:s,hidden:!0,readOnly:!0,required:m??!1}),s?g?n.jsx(xt,{}):n.jsx(yt,{}):""]})},bt="Radio-module__radioWrapper",gt="Radio-module__sm",jt="Radio-module__md",Ct="Radio-module__checked",Rt="Radio-module__innerCircle",Et="Radio-module__radioState",Tt="Radio-module__disabled",z={radioWrapper:bt,sm:gt,md:jt,checked:Ct,innerCircle:Rt,radioState:Et,disabled:Tt},kt=({checked:s,change:u,disabled:o,isRequired:m,withUncheckState:g,size:x})=>{k.useState(!1);const j=()=>{u&&typeof u=="function"&&(g||!g&&!s)&&u(!0)};return n.jsxs("div",{className:`${z.radioWrapper} ${z[x]??z.md} ${s?z.checked:""} ${o?z.disabled:""}`,onClick:j,children:[n.jsx("input",{type:"radio",checked:!0,readOnly:!0,hidden:!0,disabled:o??!1,required:m??!1}),n.jsx("div",{className:z.radioState,children:n.jsx("div",{className:z.innerCircle})})]})},wt=({width:s,height:u,color:o})=>n.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s??"14",height:u??"14",viewBox:"0 0 14 14",fill:"none",children:n.jsx("path",{d:"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:o??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),$t="Tag-module__tagContainer",St="Tag-module__onlyLabel",Ot="Tag-module__sm",Pt="Tag-module__md",Ft="Tag-module__lg",At="Tag-module__tagLabel",Lt="Tag-module__tagNumber",Wt="Tag-module__tagClose",le={tagContainer:$t,onlyLabel:St,sm:Ot,md:Pt,lg:Ft,tagLabel:At,tagNumber:Lt,tagClose:Wt},Mt=({id:s,label:u,icon:o,withDelete:m,withCheckbox:g,withNumber:x,number:j,checkboxProps:h,disable:d,size:_,onClose:i,tagContainerStyle:b,tagLabelStyle:T,tagNumberStyle:P,tagCloseStlye:C})=>{const W=()=>!g&&!o&&!m&&!x,D=()=>o,S=()=>{i&&typeof i=="function"&&i(s??null)};return n.jsxs("div",{style:b??{},className:`${le.tagContainer} ${W()?le.onlyLabel:""} ${le[_??"md"]}`,children:[g&&n.jsx(er,{...h}),o&&D(),u&&n.jsx("p",{style:T??{},className:le.tagLabel,children:u??""}),x&&n.jsx("div",{style:P??{},className:le.tagNumber,children:j??""}),m&&n.jsx("div",{style:C??{},className:le.tagClose,onClick:S,children:n.jsx(wt,{width:(C==null?void 0:C.width)??"14",height:(C==null?void 0:C.height)??"14",color:(C==null?void 0:C.color)??"#A4A7AE"})})]})};exports.Checkbox=er;exports.FormInput=Gr;exports.MainButton=Or;exports.Radio=kt;exports.Tag=Mt;exports.Textarea=it;exports.Toggle=ft;
|
|
@@ -37,11 +37,11 @@ var ve = {};
|
|
|
37
37
|
var rr;
|
|
38
38
|
function jr() {
|
|
39
39
|
return rr || (rr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
40
|
-
var s = tr, u = Symbol.for("react.element"), o = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), C = Symbol.iterator,
|
|
40
|
+
var s = tr, u = Symbol.for("react.element"), o = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), g = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), h = Symbol.for("react.context"), f = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), i = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), w = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), C = Symbol.iterator, L = "@@iterator";
|
|
41
41
|
function D(e) {
|
|
42
42
|
if (e === null || typeof e != "object")
|
|
43
43
|
return null;
|
|
44
|
-
var r = C && e[C] || e[
|
|
44
|
+
var r = C && e[C] || e[L];
|
|
45
45
|
return typeof r == "function" ? r : null;
|
|
46
46
|
}
|
|
47
47
|
var $ = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
@@ -81,7 +81,7 @@ function jr() {
|
|
|
81
81
|
function _e(e) {
|
|
82
82
|
return e.displayName || "Context";
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function S(e) {
|
|
85
85
|
if (e == null)
|
|
86
86
|
return null;
|
|
87
87
|
if (typeof e.tag == "number" && x("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
@@ -114,11 +114,11 @@ function jr() {
|
|
|
114
114
|
return ce(e, e.render, "ForwardRef");
|
|
115
115
|
case b:
|
|
116
116
|
var a = e.displayName || null;
|
|
117
|
-
return a !== null ? a :
|
|
117
|
+
return a !== null ? a : S(e.type) || "Memo";
|
|
118
118
|
case w: {
|
|
119
119
|
var p = e, v = p._payload, d = p._init;
|
|
120
120
|
try {
|
|
121
|
-
return
|
|
121
|
+
return S(d(v));
|
|
122
122
|
} catch {
|
|
123
123
|
return null;
|
|
124
124
|
}
|
|
@@ -264,9 +264,9 @@ function jr() {
|
|
|
264
264
|
if (R !== 1 || E !== 1)
|
|
265
265
|
do
|
|
266
266
|
if (R--, E--, E < 0 || c[R] !== T[E]) {
|
|
267
|
-
var
|
|
267
|
+
var F = `
|
|
268
268
|
` + c[R].replace(" at new ", " at ");
|
|
269
|
-
return e.displayName &&
|
|
269
|
+
return e.displayName && F.includes("<anonymous>") && (F = F.replace("<anonymous>", e.displayName)), typeof e == "function" && H.set(e, F), F;
|
|
270
270
|
}
|
|
271
271
|
while (R >= 1 && E >= 0);
|
|
272
272
|
break;
|
|
@@ -390,8 +390,8 @@ function jr() {
|
|
|
390
390
|
}
|
|
391
391
|
function ir(e, r) {
|
|
392
392
|
if (typeof e.ref == "string" && G.current && r && G.current.stateNode !== r) {
|
|
393
|
-
var t =
|
|
394
|
-
De[t] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
|
393
|
+
var t = S(G.current.type);
|
|
394
|
+
De[t] || (x('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', S(G.current.type), e.ref), De[t] = !0);
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
function sr(e, r) {
|
|
@@ -479,7 +479,7 @@ function jr() {
|
|
|
479
479
|
function Ke() {
|
|
480
480
|
{
|
|
481
481
|
if (Ne.current) {
|
|
482
|
-
var e =
|
|
482
|
+
var e = S(Ne.current.type);
|
|
483
483
|
if (e)
|
|
484
484
|
return `
|
|
485
485
|
|
|
@@ -514,7 +514,7 @@ Check the top-level render call using <` + t + ">.");
|
|
|
514
514
|
return;
|
|
515
515
|
Je[t] = !0;
|
|
516
516
|
var a = "";
|
|
517
|
-
e && e._owner && e._owner !== Ne.current && (a = " It was passed a child from " +
|
|
517
|
+
e && e._owner && e._owner !== Ne.current && (a = " It was passed a child from " + S(e._owner.type) + "."), oe(e), x('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), oe(null);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
function Xe(e, r) {
|
|
@@ -551,11 +551,11 @@ Check the top-level render call using <` + t + ">.");
|
|
|
551
551
|
else
|
|
552
552
|
return;
|
|
553
553
|
if (t) {
|
|
554
|
-
var a =
|
|
554
|
+
var a = S(r);
|
|
555
555
|
ke(t, e.props, "prop", a, e);
|
|
556
556
|
} else if (r.PropTypes !== void 0 && !Me) {
|
|
557
557
|
Me = !0;
|
|
558
|
-
var p =
|
|
558
|
+
var p = S(r);
|
|
559
559
|
x("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", p || "Unknown");
|
|
560
560
|
}
|
|
561
561
|
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && x("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
@@ -583,26 +583,26 @@ Check the top-level render call using <` + t + ">.");
|
|
|
583
583
|
var T = dr();
|
|
584
584
|
T ? c += T : c += Ke();
|
|
585
585
|
var R;
|
|
586
|
-
e === null ? R = "null" : ne(e) ? R = "array" : e !== void 0 && e.$$typeof === u ? (R = "<" + (
|
|
586
|
+
e === null ? R = "null" : ne(e) ? R = "array" : e !== void 0 && e.$$typeof === u ? (R = "<" + (S(e.type) || "Unknown") + " />", c = " Did you accidentally export a JSX literal instead of a component?") : R = typeof e, x("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", R, c);
|
|
587
587
|
}
|
|
588
588
|
var E = cr(e, r, t, p, v);
|
|
589
589
|
if (E == null)
|
|
590
590
|
return E;
|
|
591
591
|
if (d) {
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
592
|
+
var F = r.children;
|
|
593
|
+
if (F !== void 0)
|
|
594
594
|
if (a)
|
|
595
|
-
if (ne(
|
|
596
|
-
for (var ae = 0; ae <
|
|
597
|
-
Xe(
|
|
598
|
-
Object.freeze && Object.freeze(
|
|
595
|
+
if (ne(F)) {
|
|
596
|
+
for (var ae = 0; ae < F.length; ae++)
|
|
597
|
+
Xe(F[ae], e);
|
|
598
|
+
Object.freeze && Object.freeze(F);
|
|
599
599
|
} else
|
|
600
600
|
x("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
601
601
|
else
|
|
602
|
-
Xe(
|
|
602
|
+
Xe(F, e);
|
|
603
603
|
}
|
|
604
604
|
if (J.call(r, "key")) {
|
|
605
|
-
var X =
|
|
605
|
+
var X = S(e), O = Object.keys(r).filter(function(br) {
|
|
606
606
|
return br !== "key";
|
|
607
607
|
}), Be = O.length > 0 ? "{key: someKey, " + O.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
608
608
|
if (!ze[X + Be]) {
|
|
@@ -713,7 +713,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
713
713
|
maxLength: w,
|
|
714
714
|
onlyText: P,
|
|
715
715
|
onRightIconIconClick: C,
|
|
716
|
-
onRightIconIconMouseEnter:
|
|
716
|
+
onRightIconIconMouseEnter: L,
|
|
717
717
|
onRightIconIconMouseLeave: D,
|
|
718
718
|
onLeftIconIconClick: $,
|
|
719
719
|
onLeftIconIconMouseEnter: x,
|
|
@@ -727,7 +727,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
727
727
|
withCopy: he,
|
|
728
728
|
onCopy: ce,
|
|
729
729
|
inputWrapperStyle: _e,
|
|
730
|
-
inputLabelStyle:
|
|
730
|
+
inputLabelStyle: S,
|
|
731
731
|
requiredStyle: N,
|
|
732
732
|
inputContainerStyle: V,
|
|
733
733
|
leftIconStyle: me,
|
|
@@ -771,7 +771,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
771
771
|
de((l) => !l);
|
|
772
772
|
}, 0) : Te.current = !0;
|
|
773
773
|
}, []), /* @__PURE__ */ n.jsxs("div", { className: k.inputWrapper, style: _e ?? {}, children: [
|
|
774
|
-
u && /* @__PURE__ */ n.jsxs("label", { className: k.inputLabel, style:
|
|
774
|
+
u && /* @__PURE__ */ n.jsxs("label", { className: k.inputLabel, style: S ?? {}, children: [
|
|
775
775
|
u,
|
|
776
776
|
" ",
|
|
777
777
|
/* @__PURE__ */ n.jsx("span", { className: k.required, style: N ?? {}, children: m && "*" })
|
|
@@ -834,7 +834,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
834
834
|
C && typeof C == "function" && C();
|
|
835
835
|
},
|
|
836
836
|
onMouseEnter: () => {
|
|
837
|
-
|
|
837
|
+
L && typeof L == "function" && L();
|
|
838
838
|
},
|
|
839
839
|
onMouseLeave: () => {
|
|
840
840
|
D && typeof D == "function" && D();
|
|
@@ -852,7 +852,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
852
852
|
] }),
|
|
853
853
|
i && (i == null ? void 0 : i.visigle) && /* @__PURE__ */ n.jsx("div", { style: Pe ?? {}, className: `${k.inputHelperText} ${i != null && i.error ? k.error : ""}`, children: /* @__PURE__ */ n.jsx("p", { style: (i == null ? void 0 : i.style) ?? {}, children: i.text }) })
|
|
854
854
|
] });
|
|
855
|
-
}, Xr = "Textarea-module__textareaContainer", zr = "Textarea-module__textAreaLabel", Zr = "Textarea-module__required", Qr = "Textarea-module__wrap", et = "Textarea-module__textarea", rt = "Textarea-module__focused", tt = "Textarea-module__disabled", nt = "Textarea-module__error", ot = "Textarea-module__helperTextStyle",
|
|
855
|
+
}, Xr = "Textarea-module__textareaContainer", zr = "Textarea-module__textAreaLabel", Zr = "Textarea-module__required", Qr = "Textarea-module__wrap", et = "Textarea-module__textarea", rt = "Textarea-module__focused", tt = "Textarea-module__disabled", nt = "Textarea-module__error", ot = "Textarea-module__helperTextStyle", A = {
|
|
856
856
|
textareaContainer: Xr,
|
|
857
857
|
textAreaLabel: zr,
|
|
858
858
|
required: Zr,
|
|
@@ -891,7 +891,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
891
891
|
textareaContainerStyle: w,
|
|
892
892
|
textareaLabelStyle: P,
|
|
893
893
|
requiredStyle: C,
|
|
894
|
-
textareaStyle:
|
|
894
|
+
textareaStyle: L,
|
|
895
895
|
textareaHelperTextStyle: D
|
|
896
896
|
}) => {
|
|
897
897
|
const [$, x] = M(!1), B = (Y) => {
|
|
@@ -906,18 +906,18 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
908
|
style: w ?? {},
|
|
909
|
-
className: `${
|
|
909
|
+
className: `${A.textareaContainer} ${o != null && o.type && (o != null && o.visible) ? A[o == null ? void 0 : o.type] : ""} ${i ? A.disabled : null}`,
|
|
910
910
|
children: [
|
|
911
|
-
u && /* @__PURE__ */ n.jsxs("div", { style: P, className:
|
|
911
|
+
u && /* @__PURE__ */ n.jsxs("div", { style: P, className: A.textAreaLabel, children: [
|
|
912
912
|
/* @__PURE__ */ n.jsx("p", { children: u }),
|
|
913
|
-
/* @__PURE__ */ n.jsx("span", { style: C ?? {}, className:
|
|
913
|
+
/* @__PURE__ */ n.jsx("span", { style: C ?? {}, className: A.required, children: b && "*" }),
|
|
914
914
|
/* @__PURE__ */ n.jsx(at, {})
|
|
915
915
|
] }),
|
|
916
|
-
/* @__PURE__ */ n.jsx("div", { className:
|
|
916
|
+
/* @__PURE__ */ n.jsx("div", { className: A.wrap, children: /* @__PURE__ */ n.jsx(
|
|
917
917
|
"textarea",
|
|
918
918
|
{
|
|
919
|
-
style:
|
|
920
|
-
className: `${
|
|
919
|
+
style: L ?? {},
|
|
920
|
+
className: `${A.textarea} ${$ ? A.focused : ""} ${i ? A.disabled : ""} ${o != null && o.error ? A.error : ""}`,
|
|
921
921
|
value: y,
|
|
922
922
|
placeholder: s ?? "",
|
|
923
923
|
cols: m ?? "30",
|
|
@@ -929,7 +929,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
929
929
|
onChange: B
|
|
930
930
|
}
|
|
931
931
|
) }),
|
|
932
|
-
/* @__PURE__ */ n.jsx("div", { style: D ?? {}, className: `${
|
|
932
|
+
/* @__PURE__ */ n.jsx("div", { style: D ?? {}, className: `${A.helperTextStyle} ${o != null && o.error ? A.error : ""}`, children: /* @__PURE__ */ n.jsx("p", { style: (o == null ? void 0 : o.style) ?? {}, children: o.text }) })
|
|
933
933
|
]
|
|
934
934
|
}
|
|
935
935
|
);
|
|
@@ -963,7 +963,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
963
963
|
return h;
|
|
964
964
|
} else if (y) return y;
|
|
965
965
|
return {};
|
|
966
|
-
},
|
|
966
|
+
}, L = () => {
|
|
967
967
|
if (s) {
|
|
968
968
|
if (_) return _;
|
|
969
969
|
} else if (s) {
|
|
@@ -981,7 +981,7 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
981
981
|
onMouseLeave: () => w(!1),
|
|
982
982
|
onClick: P,
|
|
983
983
|
className: `${$e.toggleWrapper} ${s ? $e.checked : ""} ${o ? $e.disabled : ""}`,
|
|
984
|
-
children: /* @__PURE__ */ n.jsx("div", { style:
|
|
984
|
+
children: /* @__PURE__ */ n.jsx("div", { style: L(), className: $e.toggleState, children: /* @__PURE__ */ n.jsx("input", { type: "checkbox", checked: s, readOnly: !0, disabled: o ?? !1, hidden: !0, required: m ?? !1 }) })
|
|
985
985
|
}
|
|
986
986
|
);
|
|
987
987
|
}, ct = "Checkbox-module__checkboxWrapper", dt = "Checkbox-module__sm", ft = "Checkbox-module__md", pt = "Checkbox-module__checkMark", vt = "Checkbox-module__checked", ht = "Checkbox-module__disabled", se = {
|
|
@@ -1053,12 +1053,10 @@ const Cr = "MainButton-module__mainButton", Rr = "MainButton-module__sm", Er = "
|
|
|
1053
1053
|
tagNumberStyle: P,
|
|
1054
1054
|
tagCloseStlye: C
|
|
1055
1055
|
}) => {
|
|
1056
|
-
const
|
|
1057
|
-
console.log(S());
|
|
1058
|
-
const D = () => o, $ = () => {
|
|
1056
|
+
const L = () => !g && !o && !m && !y, D = () => o, $ = () => {
|
|
1059
1057
|
i && typeof i == "function" && i(s ?? null);
|
|
1060
1058
|
};
|
|
1061
|
-
return /* @__PURE__ */ n.jsxs("div", { style: b ?? {}, className: `${le.tagContainer} ${
|
|
1059
|
+
return /* @__PURE__ */ n.jsxs("div", { style: b ?? {}, className: `${le.tagContainer} ${L() ? le.onlyLabel : ""} ${le[_ ?? "md"]}`, children: [
|
|
1062
1060
|
g && /* @__PURE__ */ n.jsx(xt, { ...h }),
|
|
1063
1061
|
o && D(),
|
|
1064
1062
|
u && /* @__PURE__ */ n.jsx("p", { style: w ?? {}, className: le.tagLabel, children: u ?? "" }),
|