UNPKG

react-reusable-elements

Version:
12 lines (11 loc) 26.9 kB
"use strict";var r=require("react"),e=require("react-dom"),n=function(){return n=Object.assign||function(r){for(var e,n=1,o=arguments.length;n<o;n++)for(var t in e=arguments[n])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},n.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var o,t={exports:{}},a={};var s,i,l={}; /** * @license React * react-jsx-runtime.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function c(){return s||(s=1,"production"!==process.env.NODE_ENV&&function(){var e=r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),y=Symbol.iterator;var h=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b(r){for(var e=arguments.length,n=new Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];!function(r,e,n){var o=h.ReactDebugCurrentFrame,t=o.getStackAddendum();""!==t&&(e+="%s",n=n.concat([t]));var a=n.map((function(r){return String(r)}));a.unshift("Warning: "+e),Function.prototype.apply.call(console[r],console,a)}("error",r,n)}var g;function v(r){return r.displayName||"Context"}function E(r){if(null==r)return null;if("number"==typeof r.tag&&b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof r)return r.displayName||r.name||null;if("string"==typeof r)return r;switch(r){case t:return"Fragment";case o:return"Portal";case s:return"Profiler";case a:return"StrictMode";case d:return"Suspense";case p:return"SuspenseList"}if("object"==typeof r)switch(r.$$typeof){case c:return v(r)+".Consumer";case i:return v(r._context)+".Provider";case u:return function(r,e,n){var o=r.displayName;if(o)return o;var t=e.displayName||e.name||"";return""!==t?n+"("+t+")":n}(r,r.render,"ForwardRef");case f:var e=r.displayName||null;return null!==e?e:E(r.type)||"Memo";case _:var n=r,l=n._payload,m=n._init;try{return E(m(l))}catch(r){return null}}return null}g=Symbol.for("react.module.reference");var x,k,w,j,F,C,S,O=Object.assign,R=0;function I(){}I.__reactDisabledLog=!0;var L,T=h.ReactCurrentDispatcher;function M(r,e,n){if(void 0===L)try{throw Error()}catch(r){var o=r.stack.trim().match(/\n( *(at )?)/);L=o&&o[1]||""}return"\n"+L+r}var N,P=!1,B="function"==typeof WeakMap?WeakMap:Map;function z(r,e){if(!r||P)return"";var n,o=N.get(r);if(void 0!==o)return o;P=!0;var t,a=Error.prepareStackTrace;Error.prepareStackTrace=void 0,t=T.current,T.current=null,function(){if(0===R){x=console.log,k=console.info,w=console.warn,j=console.error,F=console.group,C=console.groupCollapsed,S=console.groupEnd;var r={configurable:!0,enumerable:!0,value:I,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}R++}();try{if(e){var s=function(){throw Error()};if(Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(s,[])}catch(r){n=r}Reflect.construct(r,[],s)}else{try{s.call()}catch(r){n=r}r.call(s.prototype)}}else{try{throw Error()}catch(r){n=r}r()}}catch(e){if(e&&n&&"string"==typeof e.stack){for(var i=e.stack.split("\n"),l=n.stack.split("\n"),c=i.length-1,u=l.length-1;c>=1&&u>=0&&i[c]!==l[u];)u--;for(;c>=1&&u>=0;c--,u--)if(i[c]!==l[u]){if(1!==c||1!==u)do{if(c--,--u<0||i[c]!==l[u]){var d="\n"+i[c].replace(" at new "," at ");return r.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",r.displayName)),"function"==typeof r&&N.set(r,d),d}}while(c>=1&&u>=0);break}}}finally{P=!1,T.current=t,function(){if(0==--R){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:O({},r,{value:x}),info:O({},r,{value:k}),warn:O({},r,{value:w}),error:O({},r,{value:j}),group:O({},r,{value:F}),groupCollapsed:O({},r,{value:C}),groupEnd:O({},r,{value:S})})}R<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=a}var p=r?r.displayName||r.name:"",f=p?M(p):"";return"function"==typeof r&&N.set(r,f),f}function D(r,e,n){if(null==r)return"";if("function"==typeof r)return z(r,!(!(o=r.prototype)||!o.isReactComponent));var o;if("string"==typeof r)return M(r);switch(r){case d:return M("Suspense");case p:return M("SuspenseList")}if("object"==typeof r)switch(r.$$typeof){case u:return z(r.render,!1);case f:return D(r.type,e,n);case _:var t=r,a=t._payload,s=t._init;try{return D(s(a),e,n)}catch(r){}}return""}N=new B;var A=Object.prototype.hasOwnProperty,$={},J=h.ReactDebugCurrentFrame;function W(r){if(r){var e=r._owner,n=D(r.type,r._source,e?e.type:null);J.setExtraStackFrame(n)}else J.setExtraStackFrame(null)}var U=Array.isArray;function q(r){return U(r)}function G(r){return""+r}function Y(r){if(function(r){try{return G(r),!1}catch(r){return!0}}(r))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(r){return"function"==typeof Symbol&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}(r)),G(r)}var Z,V,H,Q=h.ReactCurrentOwner,X={key:!0,ref:!0,__self:!0,__source:!0};H={};function K(r,e,o,t,a){var s,i={},l=null,c=null;for(s in void 0!==o&&(Y(o),l=""+o),function(r){if(A.call(r,"key")){var e=Object.getOwnPropertyDescriptor(r,"key").get;if(e&&e.isReactWarning)return!1}return void 0!==r.key}(e)&&(Y(e.key),l=""+e.key),function(r){if(A.call(r,"ref")){var e=Object.getOwnPropertyDescriptor(r,"ref").get;if(e&&e.isReactWarning)return!1}return void 0!==r.ref}(e)&&(c=e.ref,function(r,e){if("string"==typeof r.ref&&Q.current&&e&&Q.current.stateNode!==e){var n=E(Q.current.type);H[n]||(b('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',E(Q.current.type),r.ref),H[n]=!0)}}(e,a)),e)A.call(e,s)&&!X.hasOwnProperty(s)&&(i[s]=e[s]);if(r&&r.defaultProps){var u=r.defaultProps;for(s in u)void 0===i[s]&&(i[s]=u[s])}if(l||c){var d="function"==typeof r?r.displayName||r.name||"Unknown":r;l&&function(r,e){var n=function(){Z||(Z=!0,b("%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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"key",{get:n,configurable:!0})}(i,d),c&&function(r,e){var n=function(){V||(V=!0,b("%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)",e))};n.isReactWarning=!0,Object.defineProperty(r,"ref",{get:n,configurable:!0})}(i,d)}return function(r,e,o,t,a,s,i){var l={$$typeof:n,type:r,key:e,ref:o,props:i,_owner:s,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:t}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:a}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l}(r,l,c,a,t,Q.current,i)}var rr,er=h.ReactCurrentOwner,nr=h.ReactDebugCurrentFrame;function or(r){if(r){var e=r._owner,n=D(r.type,r._source,e?e.type:null);nr.setExtraStackFrame(n)}else nr.setExtraStackFrame(null)}function tr(r){return"object"==typeof r&&null!==r&&r.$$typeof===n}function ar(){if(er.current){var r=E(er.current.type);if(r)return"\n\nCheck the render method of `"+r+"`."}return""}rr=!1;var sr={};function ir(r,e){if(r._store&&!r._store.validated&&null==r.key){r._store.validated=!0;var n=function(r){var e=ar();if(!e){var n="string"==typeof r?r:r.displayName||r.name;n&&(e="\n\nCheck the top-level render call using <"+n+">.")}return e}(e);if(!sr[n]){sr[n]=!0;var o="";r&&r._owner&&r._owner!==er.current&&(o=" It was passed a child from "+E(r._owner.type)+"."),or(r),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',n,o),or(null)}}}function lr(r,e){if("object"==typeof r)if(q(r))for(var n=0;n<r.length;n++){var o=r[n];tr(o)&&ir(o,e)}else if(tr(r))r._store&&(r._store.validated=!0);else if(r){var t=function(r){if(null===r||"object"!=typeof r)return null;var e=y&&r[y]||r["@@iterator"];return"function"==typeof e?e:null}(r);if("function"==typeof t&&t!==r.entries)for(var a,s=t.call(r);!(a=s.next()).done;)tr(a.value)&&ir(a.value,e)}}function cr(r){var e,n=r.type;if(null!=n&&"string"!=typeof n){if("function"==typeof n)e=n.propTypes;else{if("object"!=typeof n||n.$$typeof!==u&&n.$$typeof!==f)return;e=n.propTypes}if(e){var o=E(n);!function(r,e,n,o,t){var a=Function.call.bind(A);for(var s in r)if(a(r,s)){var i=void 0;try{if("function"!=typeof r[s]){var l=Error((o||"React class")+": "+n+" type `"+s+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[s]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}i=r[s](e,s,o,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(r){i=r}!i||i instanceof Error||(W(t),b("%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).",o||"React class",n,s,typeof i),W(null)),i instanceof Error&&!(i.message in $)&&($[i.message]=!0,W(t),b("Failed %s type: %s",n,i.message),W(null))}}(e,r.props,"prop",o,r)}else if(void 0!==n.PropTypes&&!rr){rr=!0,b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",E(n)||"Unknown")}"function"!=typeof n.getDefaultProps||n.getDefaultProps.isReactClassApproved||b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}var ur={};function dr(r,e,o,l,y,h){var v=function(r){return"string"==typeof r||"function"==typeof r||r===t||r===s||r===a||r===d||r===p||r===m||"object"==typeof r&&null!==r&&(r.$$typeof===_||r.$$typeof===f||r.$$typeof===i||r.$$typeof===c||r.$$typeof===u||r.$$typeof===g||void 0!==r.getModuleId)}(r);if(!v){var x="";(void 0===r||"object"==typeof r&&null!==r&&0===Object.keys(r).length)&&(x+=" 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 k;x+=ar(),null===r?k="null":q(r)?k="array":void 0!==r&&r.$$typeof===n?(k="<"+(E(r.type)||"Unknown")+" />",x=" Did you accidentally export a JSX literal instead of a component?"):k=typeof r,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",k,x)}var w=K(r,e,o,y,h);if(null==w)return w;if(v){var j=e.children;if(void 0!==j)if(l)if(q(j)){for(var F=0;F<j.length;F++)lr(j[F],r);Object.freeze&&Object.freeze(j)}else b("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 lr(j,r)}if(A.call(e,"key")){var C=E(r),S=Object.keys(e).filter((function(r){return"key"!==r})),O=S.length>0?"{key: someKey, "+S.join(": ..., ")+": ...}":"{key: someKey}";if(!ur[C+O])b('A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',O,C,S.length>0?"{"+S.join(": ..., ")+": ...}":"{}",C),ur[C+O]=!0}return r===t?function(r){for(var e=Object.keys(r.props),n=0;n<e.length;n++){var o=e[n];if("children"!==o&&"key"!==o){or(r),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",o),or(null);break}}null!==r.ref&&(or(r),b("Invalid attribute `ref` supplied to `React.Fragment`."),or(null))}(w):cr(w),w}var pr=function(r,e,n){return dr(r,e,n,!1)},fr=function(r,e,n){return dr(r,e,n,!0)};l.Fragment=t,l.jsx=pr,l.jsxs=fr}()),l}var u=(i||(i=1,"production"===process.env.NODE_ENV?t.exports=function(){if(o)return a;o=1;var e=r,n=Symbol.for("react.element"),t=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(r,e,o){var t,a={},c=null,u=null;for(t in void 0!==o&&(c=""+o),void 0!==e.key&&(c=""+e.key),void 0!==e.ref&&(u=e.ref),e)s.call(e,t)&&!l.hasOwnProperty(t)&&(a[t]=e[t]);if(r&&r.defaultProps)for(t in e=r.defaultProps)void 0===a[t]&&(a[t]=e[t]);return{$$typeof:n,type:r,key:c,ref:u,props:a,_owner:i.current}}return a.Fragment=t,a.jsx=c,a.jsxs=c,a}():t.exports=c()),t.exports);function d(r,e){void 0===e&&(e={});var n=e.insertAt;if(r&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css","top"===n&&o.firstChild?o.insertBefore(t,o.firstChild):o.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}}var p="EissaInputField-module_input_container__ApCvn",f="EissaInputField-module_input_wrapper__6AFYQ",_="EissaInputField-module_inputField__rJHdr",m="EissaInputField-module_inputFieldLabel__br3CD",y="EissaInputField-module_hide_placeholder__WjJio",h="EissaInputField-module_error__ssj7L",b="EissaInputField-module_errorMessage__Xm82-",g="EissaInputField-module_hideErrorMessage__m2QS-",v="EissaInputField-module_showErrorMessage__wP-Sz",E="EissaInputField-module_heightZero__8kZuo",x="EissaInputField-module_borderlessInput__CwWgP";d(".EissaInputField-module_input_container__ApCvn {\r\n text-align: start;\r\n}\r\n\r\n.EissaInputField-module_input_container__ApCvn span {\r\n color: red;\r\n}\r\n\r\n.EissaInputField-module_input_wrapper__6AFYQ {\r\n --focus-color: var(--brand-color);\r\n --padding: 0.75rem;\r\n position: relative;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.EissaInputField-module_inputField__rJHdr {\r\n padding: var(--padding);\r\n border: 2px solid gray;\r\n outline: none;\r\n border-radius: 6px;\r\n transition: all 0.2s ease-in;\r\n width: 100%;\r\n}\r\n\r\n.EissaInputField-module_inputFieldLabel__br3CD {\r\n position: absolute;\r\n background-color: white;\r\n color: gray;\r\n left: var(--padding);\r\n padding: 0 4px;\r\n transition: all 0.2s ease-in;\r\n cursor: text;\r\n}\r\n\r\n.EissaInputField-module_inputField__rJHdr::placeholder {\r\n transition: all 0.2s ease-in;\r\n}\r\n\r\n.EissaInputField-module_hide_placeholder__WjJio:not(:focus)::placeholder {\r\n opacity: 0;\r\n}\r\n\r\n.EissaInputField-module_inputField__rJHdr:is(:focus) {\r\n border: 2px solid var(--focus-color);\r\n}\r\n\r\n.EissaInputField-module_inputField__rJHdr:is(:focus)+.EissaInputField-module_inputFieldLabel__br3CD {\r\n color: var(--focus-color);\r\n}\r\n\r\n.EissaInputField-module_inputField__rJHdr:is(:focus, :not(:placeholder-shown)) {}\r\n\r\n.EissaInputField-module_inputField__rJHdr:is(:focus, :not(:placeholder-shown))+.EissaInputField-module_inputFieldLabel__br3CD {\r\n transform: translatey(calc(-1 * var(--padding) - 12px)) translatex(-8px);\r\n font-size: 14px;\r\n}\r\n\r\n.EissaInputField-module_error__ssj7L .EissaInputField-module_inputField__rJHdr:is(:not(:focus)) {\r\n border: 2px solid red;\r\n}\r\n\r\n.EissaInputField-module_error__ssj7L .EissaInputField-module_inputFieldLabel__br3CD {\r\n color: red;\r\n}\r\n\r\n.EissaInputField-module_errorMessage__Xm82- {\r\n color: red;\r\n font-size: 0.75rem;\r\n height: 1rem;\r\n transition: opacity 0.75s ease;\r\n}\r\n\r\n.EissaInputField-module_hideErrorMessage__m2QS- {\r\n opacity: 0;\r\n}\r\n\r\n.EissaInputField-module_showErrorMessage__wP-Sz {\r\n opacity: 1;\r\n height: unset;\r\n}\r\n\r\n.EissaInputField-module_heightZero__8kZuo {\r\n height: 0;\r\n}\r\n\r\n\r\n.EissaInputField-module_borderlessInput__CwWgP {\r\n border: none;\r\n}\r\n\r\n.EissaInputField-module_borderlessInput__CwWgP:focus {\r\n border: none;\r\n}\r\n\r\n.EissaInputField-module_error__ssj7L .EissaInputField-module_inputField__rJHdr:is(:not(:focus)) {\r\n border: none;\r\n}");var k="EissaButton-module_eissa_button__qqG9z",w="EissaButton-module_primary__aain1",j="EissaButton-module_secondary__mpLkM",F="EissaButton-module_disabled__AMGBr";d(".EissaButton-module_eissa_button__qqG9z {\r\n --padding: 12px 24px;\r\n --border-radius: 32px;\r\n padding: var(--padding);\r\n border-radius: var(--border-radius);\r\n cursor: pointer;\r\n /* min-width: 3rem; */\r\n border: 2px solid var(--brand-color);\r\n font-weight: bold;\r\n transition: all 0.5s ease;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n\r\n.EissaButton-module_primary__aain1 {\r\n background-color: var(--brand-color);\r\n color: white;\r\n}\r\n\r\n.EissaButton-module_eissa_button__qqG9z:hover {\r\n opacity: 0.9;\r\n box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;\r\n}\r\n\r\n.EissaButton-module_eissa_button__qqG9z:active {\r\n filter: brightness(50%);\r\n transform: scale(0.95);\r\n}\r\n\r\n.EissaButton-module_secondary__mpLkM {\r\n background-color: white;\r\n color: var(--brand-color);\r\n}\r\n\r\n.EissaButton-module_eissa_button__qqG9z.EissaButton-module_disabled__AMGBr {\r\n background-color: gray;\r\n cursor: not-allowed;\r\n}\r\n\r\n.EissaButton-module_loader__CWshF {\r\n width: 0.8rem;\r\n height: 0.8rem;\r\n border: 2px solid var(--brand-color);\r\n border-bottom-color: transparent;\r\n border-radius: 50%;\r\n display: inline-block;\r\n box-sizing: border-box;\r\n animation: EissaButton-module_rotation__FG7of 1s linear infinite;\r\n}\r\n\r\n.EissaButton-module_primary__aain1 > .EissaButton-module_loader__CWshF{\r\n border: 2px solid white;\r\n}\r\n\r\n@keyframes EissaButton-module_rotation__FG7of {\r\n 0% {\r\n transform: rotate(0deg);\r\n }\r\n\r\n 100% {\r\n transform: rotate(360deg);\r\n }\r\n}");var C={dot:"EissaLoader-module_dot__fjyS0",bounce:"EissaLoader-module_bounce__tUvaz",primary:"EissaLoader-module_primary__OnJla",secondary:"EissaLoader-module_secondary__wrBlZ",loader:"EissaLoader-module_loader__GRxRB"};d(".EissaLoader-module_dot__fjyS0 {\r\n height: 0.4rem;\r\n width: 0.4rem;\r\n border-radius: 50%;\r\n animation: EissaLoader-module_bounce__tUvaz 0.6s infinite ease-in-out;\r\n}\r\n\r\n.EissaLoader-module_primary__OnJla .EissaLoader-module_dot__fjyS0 {\r\n background-color: white;\r\n}\r\n\r\n.EissaLoader-module_secondary__wrBlZ .EissaLoader-module_dot__fjyS0 {\r\n background-color: var(--brand-color);\r\n}\r\n\r\n.EissaLoader-module_loader__GRxRB {\r\n display: flex;\r\n gap: 0.5rem;\r\n justify-content: center;\r\n height: 2ch;\r\n}\r\n\r\n.EissaLoader-module_loader__GRxRB .EissaLoader-module_dot__fjyS0:nth-child(1) {\r\n animation-delay: 0s;\r\n}\r\n\r\n.EissaLoader-module_loader__GRxRB .EissaLoader-module_dot__fjyS0:nth-child(2) {\r\n animation-delay: 0.1s;\r\n}\r\n\r\n.EissaLoader-module_loader__GRxRB .EissaLoader-module_dot__fjyS0:nth-child(3) {\r\n animation-delay: 0.2s;\r\n}\r\n\r\n@keyframes EissaLoader-module_bounce__tUvaz {\r\n\r\n 0%,\r\n 100% {\r\n transform: translateY(0.25rem);\r\n }\r\n\r\n 50% {\r\n transform: translateY(-0.25rem);\r\n }\r\n}");var S=function(r){var e=r.varient;return u.jsxs("div",{className:"".concat(C.loader," ").concat(C[e]),children:[u.jsx("div",{className:C.dot}),u.jsx("div",{className:C.dot}),u.jsx("div",{className:C.dot})]})},O={checkbox_container:"EissaCheckbox-module_checkbox_container__JVMgx",checkbox_label:"EissaCheckbox-module_checkbox_label__361-Y",checkbox:"EissaCheckbox-module_checkbox__fZBpm",errorMessage:"EissaCheckbox-module_errorMessage__3bfEM",hideErrorMessage:"EissaCheckbox-module_hideErrorMessage__8R-JQ",showErrorMessage:"EissaCheckbox-module_showErrorMessage__aOyT0"};d(".EissaCheckbox-module_checkbox_container__JVMgx {\r\n display: flex;\r\n flex-direction: column;\r\n align-items: start;\r\n}\r\n\r\n.EissaCheckbox-module_checkbox_label__361-Y {\r\n padding-left: 0.25rem;\r\n}\r\n\r\n.EissaCheckbox-module_checkbox__fZBpm {\r\n accent-color: var(--brand-color)\r\n}\r\n\r\n.EissaCheckbox-module_errorMessage__3bfEM {\r\n color: red;\r\n font-size: 0.75rem;\r\n height: 1rem;\r\n transition: opacity 0.75s ease;\r\n}\r\n\r\n.EissaCheckbox-module_hideErrorMessage__8R-JQ {\r\n opacity: 0;\r\n}\r\n\r\n.EissaCheckbox-module_showErrorMessage__aOyT0 {\r\n opacity: 1;\r\n}");var R="EissaModal-module_main_container__CM9up",I="EissaModal-module_visible__t-0OL",L="EissaModal-module_hide__XlVCw";d(".EissaModal-module_main_container__CM9up {\r\n background-color: rgba(0, 0, 0, 0.5);\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n height: 100%;\r\n width: 100%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n opacity: 0;\r\n transition: opacity 0.5s ease;\r\n}\r\n\r\n.EissaModal-module_visible__t-0OL {\r\n animation: EissaModal-module_showModal__Lpx-R 0.5s forwards ease\r\n}\r\n\r\n.EissaModal-module_hide__XlVCw {\r\n animation: EissaModal-module_hideModal__Tdh3V 0.5s forwards ease\r\n}\r\n\r\n@keyframes EissaModal-module_showModal__Lpx-R {\r\n from {\r\n opacity: 0;\r\n }\r\n\r\n to {\r\n opacity: 1;\r\n }\r\n}\r\n\r\n@keyframes EissaModal-module_hideModal__Tdh3V {\r\n from {\r\n opacity: 1;\r\n }\r\n\r\n to {\r\n opacity: 0;\r\n }\r\n}");var T="EissaAvatar-module_main_container__wy2kT",M="EissaAvatar-module_avatar_img__TDRzP";d(".EissaAvatar-module_main_container__wy2kT {\r\n height: 2rem;\r\n aspect-ratio: 1;\r\n background-color: var(--brand-color);\r\n border-radius: 50%;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n color: white;\r\n cursor: pointer;\r\n}\r\n\r\n.EissaAvatar-module_main_container__wy2kT .EissaAvatar-module_avatar_img__TDRzP {\r\n height: 100%;\r\n object-fit: cover;\r\n aspect-ratio: 1;\r\n overflow: hidden;\r\n border-radius: 50%;\r\n}");var N="EissaTextLogo-module_logo__OZ5zp";d("@import url('https://fonts.googleapis.com/css2?family=Catamaran:wght@700&display=swap');\r\n\r\n.EissaTextLogo-module_logo__OZ5zp {\r\n font-family: \"Catamaran\", sans-serif;\r\n font-weight: 700;\r\n letter-spacing: -4px;\r\n display: flex;\r\n}\r\n\r\n.EissaTextLogo-module_logo__OZ5zp span {\r\n opacity: 0;\r\n transform: translateY(30px);\r\n animation: EissaTextLogo-module_fadeUp__SQiuD 0.6s ease forwards;\r\n display: inline-block;\r\n cursor: default;\r\n transition: transform 0.3s ease;\r\n}\r\n\r\n.EissaTextLogo-module_logo__OZ5zp span:hover {\r\n transform: scale(1.2) rotate(-5deg);\r\n}\r\n\r\n@keyframes EissaTextLogo-module_fadeUp__SQiuD {\r\n to {\r\n opacity: 1;\r\n transform: translateY(0);\r\n }\r\n}\r\n\r\n@media (max-width: 420px) {\r\n .EissaTextLogo-module_logo__OZ5zp {\r\n letter-spacing: -2px;\r\n }\r\n}\r\n");exports.EissaAvatar=function(r){var e=r.img,n=r.bg,o=r.fontColor,t=r.fontSize,a=r.height,s=r.name,i=r.CTA;return u.jsx("div",{className:T,style:{backgroundColor:n,color:o,fontSize:t,height:a},onClick:i,children:e?u.jsx("img",{src:e,alt:"Avatar",className:M}):null==s?void 0:s.charAt(0).toUpperCase()})},exports.EissaButton=function(r){var e=r.label,n=r.onClick,o=r.type,t=void 0===o?"button":o,a=r.variant,s=void 0===a?"primary":a,i=r.disabled,l=void 0!==i&&i,c=r.isLoading,d=void 0!==c&&c,p=r.icon,f=r.bg,_=r.fontColor,m=r.padding,y=r.borderColor;return u.jsxs("button",{className:"".concat(k," ").concat("primary"===s?w:j," ").concat(l?F:""),onClick:n,type:t,disabled:l||d,style:{backgroundColor:f,padding:m,color:_,borderColor:y},children:[p&&u.jsx("img",{src:p,alt:"Button Icon"}),d?u.jsx(S,{varient:s}):e]})},exports.EissaCheckbox=function(r){var e=r.label,o=r.name,t=r.register,a=r.rules,s=r.error,i=r.isTouched;return u.jsxs("div",{className:O.checkbox_container,children:[u.jsxs("div",{children:[u.jsx("input",n({type:"checkbox"},t(o,a),{className:"".concat(O.checkbox," ").concat(i&&(null==s?void 0:s.message)?O.error:"")})),u.jsx("label",{className:O.checkbox_label,htmlFor:o,children:e})]}),u.jsxs("div",{className:"".concat(O.errorMessage," ").concat(i&&(null==s?void 0:s.message)?O.showErrorMessage:O.hideErrorMessage),children:[" ",null==s?void 0:s.message]})]})},exports.EissaInputField=function(r){var e=r.label,o=r.name,t=r.register,a=r.rules,s=r.error,i=r.isTouched,l=r.placeholder,c=void 0===l?"":l,d=r.type,k=void 0===d?"text":d,w=r.keepSpaceForError,j=void 0===w||w,F=r.bg,C=r.fontColor,S=r.varient,O=void 0===S?"primary":S;return u.jsxs("div",{className:p,children:[u.jsxs("div",{className:"".concat(f," ").concat(i&&(null==s?void 0:s.message)&&h),children:[u.jsx("input",n({type:k,id:o,placeholder:c},t(o,a),{className:"".concat(_," ").concat(e&&y," ").concat("secondary"===O&&x),style:{backgroundColor:F&&F,color:C&&C}})),e&&u.jsx("label",{htmlFor:o,className:m,style:{backgroundColor:F&&F,color:C&&C},children:e})]}),u.jsxs("div",{className:"".concat(!j&&E," ").concat(b," ").concat(i&&(null==s?void 0:s.message)?v:g),children:[" ",null==s?void 0:s.message]})]})},exports.EissaLoader=S,exports.EissaModal=function(n){var o=n.ModalContent,t=n.isVisible,a=r.useState(!1),s=a[0],i=a[1];if(r.useEffect((function(){t?i(t):setTimeout((function(){i(t)}),500)}),[t]),!s&&!t)return null;var l=u.jsx("div",{className:"".concat(R," ").concat(t?I:L),children:u.jsx(o,{})});return e.createPortal(l,document.body)},exports.EissaTextLogo=function(r){var e=r.text,n=void 0===e?"Logo":e,o=r.size,t=void 0===o?140:o,a=r.colors,s=void 0===a?["#4285F4","#EA4335","#FBBC05","#34A853"]:a;return u.jsx("div",{className:N,style:{fontSize:"".concat(t,"px")},children:n.split("").map((function(r,e){return u.jsx("span",{style:{color:s[e%s.length],animationDelay:"".concat(.1+.2*e,"s")},children:r},e)}))})}; //# sourceMappingURL=index.js.map