master-components-react 1.3.1 → 1.4.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.mc__mainButton{border-radius:.5rem;min-width:7.75rem;border:.125rem solid rgba(255,255,255,.12);background:#7f56d9;display:flex;justify-content:center;align-items:center;padding:.5rem 1.25rem;cursor:pointer}.mc__mainButton:hover{background:#6941c6}.mc__mainButton:active{box-shadow:0 0 0 .0625rem #0a0d122e inset,0 -.125rem #0a0d120d inset,0 .0625rem .125rem #0a0d120d,0 0 0 .125rem #fff,0 0 0 .25rem #9e77ed}.mc__mainButton.mc__sm{height:2.25rem}.mc__mainButton.mc__sm.mc__onlyIcon{height:2.25rem;width:2.25rem;min-width:unset}.mc__mainButton.mc__sm .mc__buttonSlot .mc__buttonLabel{font-size:.875rem;line-height:1.25rem}.mc__mainButton.mc__md{height:2.5rem}.mc__mainButton.mc__md.mc__onlyIcon{height:2.5rem;width:2.5rem;min-width:unset}.mc__mainButton.mc__md .mc__buttonSlot .mc__buttonLabel{font-size:.875rem;line-height:1.25rem}.mc__mainButton.mc__lg{height:2.75rem}.mc__mainButton.mc__lg.mc__onlyIcon{height:2.75rem;width:2.75rem;min-width:unset}.mc__mainButton.mc__lg .mc__buttonSlot .mc__buttonLabel{font-size:1rem;line-height:1.25rem}.mc__mainButton.mc__xl{height:3rem}.mc__mainButton.mc__xl.mc__onlyIcon{height:3rem;width:3rem;min-width:unset}.mc__mainButton.mc__xl .mc__buttonSlot .mc__buttonLabel{font-size:1rem;line-height:1.5rem}.mc__mainButton.mc__xl2{height:3.75rem}.mc__mainButton.mc__xl2.mc__onlyIcon{height:3.5rem;width:3.5rem;min-width:unset}.mc__mainButton.mc__xl2 .mc__buttonSlot .mc__buttonLabel{font-size:1.125rem;line-height:1.75rem}.mc__mainButton.mc__disabled{border-radius:.5rem;border:.0625rem solid #e9eaeb;background:#f5f5f5;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.mc__mainButton.mc__disabled .mc__buttonSlot .mc__buttonLabel{color:#a4a7ae}.mc__mainButton .mc__buttonSlot{display:flex;align-items:center;gap:.5rem}.mc__mainButton .mc__buttonSlot .mc__buttonLabel{color:#fff;font-family:Inter,sans-serif;font-style:normal;font-weight:400}.mc__inputWrapper{width:100%}.mc__inputWrapper .mc__inputLabel{color:#414651;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.mc__inputWrapper .mc__inputLabel .mc__required{color:#7f56d9;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.mc__inputWrapper .mc__inputContainer{position:relative;margin:.375rem 0;width:100%;border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d;display:flex;padding-left:.75rem}.mc__inputWrapper .mc__inputContainer input{background-color:transparent;width:100%;border:none;padding:.5rem 0;color:#181d27;font-family:Inter,sans-serif;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;outline:none}.mc__inputWrapper .mc__inputContainer input::placeholder{color:#717680}.mc__inputWrapper .mc__inputContainer.mc__focused{border-radius:.5rem;outline-color:#9e77ed;outline-width:.125rem;outline-style:solid;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d}.mc__inputWrapper .mc__inputContainer.mc__error{border-radius:.5rem;outline-color:#fda29b;outline-width:.0625rem;outline-style:solid;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d}.mc__inputWrapper .mc__inputContainer.mc__error.mc__focused{outline-width:.125rem;outline-color:#f04438}.mc__inputWrapper .mc__inputContainer .mc__rightIcon,.mc__inputWrapper .mc__inputContainer .mc__leftIcon{display:flex;justify-content:center;align-items:center}.mc__inputWrapper .mc__inputContainer .mc__rightIcon{margin:0 .5rem}.mc__inputWrapper .mc__inputContainer .mc__leftIcon{margin-right:.375rem}.mc__inputWrapper .mc__inputContainer .mc__inputDropDown{padding:.5rem .75rem;display:grid;place-items:center;position:relative;color:#414651;font-family:Inter,sans-serif;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;cursor:pointer;display:flex;align-items:center;gap:.5rem}.mc__inputWrapper .mc__inputContainer .mc__inputDropDown ul{width:100%;position:absolute;left:50%;top:100%;transform:translate(-50%);max-height:9.375rem;overflow:hidden;background-color:#fff;border:.0625rem solid #d5d7da;border-radius:.5rem}.mc__inputWrapper .mc__inputContainer .mc__inputDropDown ul li{padding:.375rem .75rem;width:100%;display:flex;flex-direction:column;font-size:.875rem;line-height:initial;cursor:pointer}.mc__inputWrapper .mc__inputContainer .mc__inputDropDown ul li:hover{background-color:#d5d7da}.mc__inputWrapper .mc__inputContainer .mc__inputDropDown.mc__http{cursor:initial;border-right:.0625rem solid #d5d7da;margin-right:.75rem}.mc__inputWrapper .mc__inputContainer.mc__disabled{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.mc__inputWrapper .mc__inputContainer.mc__disabled input{background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.mc__inputWrapper .mc__inputContainer.mc__sm{height:2.5rem}.mc__inputWrapper .mc__inputContainer.mc__md{height:2.75rem}.mc__inputWrapper .mc__withCopy{display:grid;place-items:center;position:relative;font-size:1rem;font-weight:400;line-height:1.5rem;gap:.5rem;display:flex;align-items:center;gap:.25rem;border-radius:0rem .5rem .5rem 0rem;border:.0625rem solid #d5d7da;background:#fff;padding:.625rem .875rem;color:#414651;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:600;line-height:1.25rem;cursor:pointer;-webkit-user-select:none;user-select:none}.mc__inputWrapper .mc__withCopy:hover{background:#f0f0f0}.mc__inputWrapper .mc__withCopy:active{background:#ececec}.mc__inputWrapper .mc__inputHelperText p{color:#535862;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.mc__inputWrapper .mc__inputHelperText.mc__error p{color:#d92d20}.mc__textareaContainer{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;flex-shrink:0}.mc__textareaContainer .mc__textAreaLabel{display:flex;align-items:center;gap:.125rem}.mc__textareaContainer .mc__textAreaLabel p{font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.mc__textareaContainer .mc__textAreaLabel .mc__required{color:#7f56d9;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.mc__textareaContainer .mc__wrap{position:relative;display:inline-block}.mc__textareaContainer .mc__wrap:after{content:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M10%202L2%2010'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3cpath%20d='M11%207L7%2011'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3c/svg%3e");width:.9375rem;background:transparent;position:absolute;right:.125rem;bottom:.3125rem;pointer-events:none;border-radius:25%}.mc__textareaContainer .mc__wrap .mc__textarea{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d;padding:.75rem .875rem;border:none;outline-color:#d5d7da;outline-width:.0625rem;outline-style:solid;position:relative;color:#181d27;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem}.mc__textareaContainer .mc__wrap .mc__textarea::-webkit-resizer{display:none}.mc__textareaContainer .mc__wrap .mc__textarea::-webkit-scrollbar{width:0}.mc__textareaContainer .mc__wrap .mc__textarea::-webkit-scrollbar-track{-webkit-box-shadow:none}.mc__textareaContainer .mc__wrap .mc__textarea::-webkit-scrollbar-thumb{background-color:none;outline:0}.mc__textareaContainer .mc__wrap .mc__textarea.mc__focused{border-radius:.5rem;box-shadow:0 .0625rem .125rem #0a0d120d;outline-color:#9e77ed;outline-width:.125rem;outline-style:solid}.mc__textareaContainer .mc__wrap .mc__textarea.mc__disabled{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.mc__textareaContainer .mc__wrap .mc__textarea.mc__error{border-radius:.5rem;box-shadow:0 .0625rem .125rem #0a0d120d;outline-color:#fda29b;outline-width:.125rem;outline-style:solid}.mc__textareaContainer .mc__wrap .mc__textarea.mc__error.mc__focused{outline-color:#f04438}.mc__textareaContainer .mc__wrap .mc__textarea::placeholder{color:#717680;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem}.mc__textareaContainer .mc__helperTextStyle{color:#535862;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.mc__textareaContainer .mc__helperTextStyle.mc__error{color:#d92d20}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`.MainButton-module__mainButton{border-radius:.5rem;min-width:7.75rem;border:.125rem solid rgba(255,255,255,.12);background:#7f56d9;display:flex;justify-content:center;align-items:center;padding:.5rem 1.25rem;cursor:pointer}.MainButton-module__mainButton:hover{background:#6941c6}.MainButton-module__mainButton:active{box-shadow:0 0 0 .0625rem #0a0d122e inset,0 -.125rem #0a0d120d inset,0 .0625rem .125rem #0a0d120d,0 0 0 .125rem #fff,0 0 0 .25rem #9e77ed}.MainButton-module__mainButton.MainButton-module__sm{height:2.25rem}.MainButton-module__mainButton.MainButton-module__sm.MainButton-module__onlyIcon{height:2.25rem;width:2.25rem;min-width:unset}.MainButton-module__mainButton.MainButton-module__sm .MainButton-module__buttonSlot .MainButton-module__buttonLabel{font-size:.875rem;line-height:1.25rem}.MainButton-module__mainButton.MainButton-module__md{height:2.5rem}.MainButton-module__mainButton.MainButton-module__md.MainButton-module__onlyIcon{height:2.5rem;width:2.5rem;min-width:unset}.MainButton-module__mainButton.MainButton-module__md .MainButton-module__buttonSlot .MainButton-module__buttonLabel{font-size:.875rem;line-height:1.25rem}.MainButton-module__mainButton.MainButton-module__lg{height:2.75rem}.MainButton-module__mainButton.MainButton-module__lg.MainButton-module__onlyIcon{height:2.75rem;width:2.75rem;min-width:unset}.MainButton-module__mainButton.MainButton-module__lg .MainButton-module__buttonSlot .MainButton-module__buttonLabel{font-size:1rem;line-height:1.25rem}.MainButton-module__mainButton.MainButton-module__xl{height:3rem}.MainButton-module__mainButton.MainButton-module__xl.MainButton-module__onlyIcon{height:3rem;width:3rem;min-width:unset}.MainButton-module__mainButton.MainButton-module__xl .MainButton-module__buttonSlot .MainButton-module__buttonLabel{font-size:1rem;line-height:1.5rem}.MainButton-module__mainButton.MainButton-module__xl2{height:3.75rem}.MainButton-module__mainButton.MainButton-module__xl2.MainButton-module__onlyIcon{height:3.5rem;width:3.5rem;min-width:unset}.MainButton-module__mainButton.MainButton-module__xl2 .MainButton-module__buttonSlot .MainButton-module__buttonLabel{font-size:1.125rem;line-height:1.75rem}.MainButton-module__mainButton.MainButton-module__disabled{border-radius:.5rem;border:.0625rem solid #e9eaeb;background:#f5f5f5;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.MainButton-module__mainButton.MainButton-module__disabled .MainButton-module__buttonSlot .MainButton-module__buttonLabel{color:#a4a7ae}.MainButton-module__mainButton .MainButton-module__buttonSlot{display:flex;align-items:center;gap:.5rem}.MainButton-module__mainButton .MainButton-module__buttonSlot .MainButton-module__buttonLabel{color:#fff;font-family:Inter,sans-serif;font-style:normal;font-weight:400}.FormInput-module__inputWrapper{width:100%}.FormInput-module__inputWrapper .FormInput-module__inputLabel{color:#414651;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.FormInput-module__inputWrapper .FormInput-module__inputLabel .FormInput-module__required{color:#7f56d9;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer{position:relative;margin:.375rem 0;width:100%;border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d;display:flex;padding-left:.75rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer input{background-color:transparent;width:100%;border:none;padding:.5rem 0;color:#181d27;font-family:Inter,sans-serif;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;outline:none}.FormInput-module__inputWrapper .FormInput-module__inputContainer input::placeholder{color:#717680}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__focused{border-radius:.5rem;outline-color:#9e77ed;outline-width:.125rem;outline-style:solid;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__error{border-radius:.5rem;outline-color:#fda29b;outline-width:.0625rem;outline-style:solid;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__error.FormInput-module__focused{outline-width:.125rem;outline-color:#f04438}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__rightIcon,.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__leftIcon{display:flex;justify-content:center;align-items:center}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__rightIcon{margin:0 .5rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__leftIcon{margin-right:.375rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__inputDropDown{padding:.5rem .75rem;display:grid;place-items:center;position:relative;color:#414651;font-family:Inter,sans-serif;font-size:1rem;font-style:normal;font-weight:400;line-height:1.5rem;cursor:pointer;display:flex;align-items:center;gap:.5rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__inputDropDown ul{width:100%;position:absolute;left:50%;top:100%;transform:translate(-50%);max-height:9.375rem;overflow:hidden;background-color:#fff;border:.0625rem solid #d5d7da;border-radius:.5rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__inputDropDown ul li{padding:.375rem .75rem;width:100%;display:flex;flex-direction:column;font-size:.875rem;line-height:initial;cursor:pointer}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__inputDropDown ul li:hover{background-color:#d5d7da}.FormInput-module__inputWrapper .FormInput-module__inputContainer .FormInput-module__inputDropDown.FormInput-module__http{cursor:initial;border-right:.0625rem solid #d5d7da;margin-right:.75rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__disabled{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__disabled input{background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__sm{height:2.5rem}.FormInput-module__inputWrapper .FormInput-module__inputContainer.FormInput-module__md{height:2.75rem}.FormInput-module__inputWrapper .FormInput-module__withCopy{display:grid;place-items:center;position:relative;font-size:1rem;font-weight:400;line-height:1.5rem;gap:.5rem;display:flex;align-items:center;gap:.25rem;border-radius:0rem .5rem .5rem 0rem;border:.0625rem solid #d5d7da;background:#fff;padding:.625rem .875rem;color:#414651;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:600;line-height:1.25rem;cursor:pointer;-webkit-user-select:none;user-select:none}.FormInput-module__inputWrapper .FormInput-module__withCopy:hover{background:#f0f0f0}.FormInput-module__inputWrapper .FormInput-module__withCopy:active{background:#ececec}.FormInput-module__inputWrapper .FormInput-module__inputHelperText p{color:#535862;font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:400;line-height:1.25rem}.FormInput-module__inputWrapper .FormInput-module__inputHelperText.FormInput-module__error p{color:#d92d20}.Textarea-module__textareaContainer{width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:.375rem;flex-shrink:0}.Textarea-module__textareaContainer .Textarea-module__textAreaLabel{display:flex;align-items:center;gap:.125rem}.Textarea-module__textareaContainer .Textarea-module__textAreaLabel p{font-family:Inter,sans-serif;font-size:.875rem;font-style:normal;font-weight:500;line-height:1.25rem}.Textarea-module__textareaContainer .Textarea-module__textAreaLabel .Textarea-module__required{color:#7f56d9;font-size:.875rem;font-family:Inter,sans-serif;font-style:normal;font-weight:500;line-height:1.25rem}.Textarea-module__textareaContainer .Textarea-module__wrap{position:relative;display:inline-block}.Textarea-module__textareaContainer .Textarea-module__wrap:after{content:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2012%2012'%20fill='none'%3e%3cpath%20d='M10%202L2%2010'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3cpath%20d='M11%207L7%2011'%20stroke='%23D5D7DA'%20stroke-linecap='round'/%3e%3c/svg%3e");width:.9375rem;background:transparent;position:absolute;right:.125rem;bottom:.3125rem;pointer-events:none;border-radius:25%}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fff;box-shadow:0 .0625rem .125rem #0a0d120d;padding:.75rem .875rem;border:none;outline-color:#d5d7da;outline-width:.0625rem;outline-style:solid;position:relative;color:#181d27;font-size:1rem;font-family:Inter,sans-serif;font-style:normal;font-weight:400;line-height:1.5rem}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-resizer{display:none}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar{width:0}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar-track{-webkit-box-shadow:none}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::-webkit-scrollbar-thumb{background-color:none;outline:0}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__focused{border-radius:.5rem;box-shadow:0 .0625rem .125rem #0a0d120d;outline-color:#9e77ed;outline-width:.125rem;outline-style:solid}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__disabled{border-radius:.5rem;border:.0625rem solid #d5d7da;background:#fafafa;box-shadow:0 .0625rem .125rem #0a0d120d;cursor:no-drop}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__error{border-radius:.5rem;box-shadow:0 .0625rem .125rem #0a0d120d;outline-color:#fda29b;outline-width:.125rem;outline-style:solid}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea.Textarea-module__error.Textarea-module__focused{outline-color:#f04438}.Textarea-module__textareaContainer .Textarea-module__wrap .Textarea-module__textarea::placeholder{color:#717680;font-size:1rem;font-family:Inter,sans-serif;font-style:normal;font-weight:400;line-height:1.5rem}.Textarea-module__textareaContainer .Textarea-module__helperTextStyle{color:#535862;font-size:.875rem;font-family:Inter,sans-serif;font-style:normal;font-weight:400;line-height:1.25rem}.Textarea-module__textareaContainer .Textarea-module__helperTextStyle.Textarea-module__error{color:#d92d20}.Toggle-module__toggleWrapper{width:36px;height:20px;position:relative;overflow:hidden;background:#f5f5f5;border-radius:624.9375rem;cursor:pointer}.Toggle-module__toggleWrapper:active{box-shadow:0 0 0 2px #fff,0 0 0 4px #9e77ed}.Toggle-module__toggleWrapper .Toggle-module__toggleState{width:1.125rem;height:16px;width:16px;border-radius:624.9375rem;background:#fff;transition:.2s;position:absolute;top:50%;left:.125rem;transform:translateY(-50%)}.Toggle-module__toggleWrapper.Toggle-module__checked{background:#7f56d9}.Toggle-module__toggleWrapper.Toggle-module__checked .Toggle-module__toggleState{left:calc(100% - 1.25rem)}.Toggle-module__toggleWrapper.Toggle-module__checked:hover{background:#6941c6}.Toggle-module__toggleWrapper.Toggle-module__checked.Toggle-module__disabled{background:#f5f5f5;cursor:no-drop}.Toggle-module__toggleWrapper.Toggle-module__disabled{pointer-events:none;-webkit-user-select:none;user-select:none;background:#f5f5f5}.Toggle-module__toggleWrapper.Toggle-module__disabled .Toggle-module__toggleState{background:#fafafa}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("react");var Me={exports:{}},ce={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react-jsx-runtime.production.min.js
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/var
|
|
10
|
+
*/var Ge;function _r(){if(Ge)return ce;Ge=1;var p=S,v=Symbol.for("react.element"),a=Symbol.for("react.fragment"),g=Object.prototype.hasOwnProperty,P=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,E={key:!0,ref:!0,__self:!0,__source:!0};function R(h,c,y){var s,x={},j=null,A=null;y!==void 0&&(j=""+y),c.key!==void 0&&(j=""+c.key),c.ref!==void 0&&(A=c.ref);for(s in c)g.call(c,s)&&!E.hasOwnProperty(s)&&(x[s]=c[s]);if(h&&h.defaultProps)for(s in c=h.defaultProps,c)x[s]===void 0&&(x[s]=c[s]);return{$$typeof:v,type:h,key:j,ref:A,props:x,_owner:P.current}}return ce.Fragment=a,ce.jsx=R,ce.jsxs=R,ce}var fe={};/**
|
|
11
11
|
* @license React
|
|
12
12
|
* react-jsx-runtime.development.js
|
|
13
13
|
*
|
|
@@ -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
|
|
19
|
-
`+ue+e}}var U=!1,H;{var
|
|
20
|
-
`),
|
|
21
|
-
`),
|
|
22
|
-
`+
|
|
18
|
+
*/var Xe;function hr(){return Xe||(Xe=1,process.env.NODE_ENV!=="production"&&function(){var p=S,v=Symbol.for("react.element"),a=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),h=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),s=Symbol.for("react.suspense_list"),x=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),A=Symbol.for("react.offscreen"),D=Symbol.iterator,W="@@iterator";function N(e){if(e===null||typeof e!="object")return null;var r=D&&e[D]||e[W];return typeof r=="function"?r:null}var k=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function _(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];B("error",e,t)}}function B(e,r,t){{var n=k.ReactDebugCurrentFrame,f=n.getStackAddendum();f!==""&&(r+="%s",t=t.concat([f]));var d=t.map(function(u){return String(u)});d.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,d)}}var z=!1,Z=!1,Y=!1,L=!1,ie=!1,Q;Q=Symbol.for("react.module.reference");function de(e){return!!(typeof e=="string"||typeof e=="function"||e===g||e===E||ie||e===P||e===y||e===s||L||e===A||z||Z||Y||typeof e=="object"&&e!==null&&(e.$$typeof===j||e.$$typeof===x||e.$$typeof===R||e.$$typeof===h||e.$$typeof===c||e.$$typeof===Q||e.getModuleId!==void 0))}function se(e,r,t){var n=e.displayName;if(n)return n;var f=r.displayName||r.name||"";return f!==""?t+"("+f+")":t}function pe(e){return e.displayName||"Context"}function O(e){if(e==null)return null;if(typeof e.tag=="number"&&_("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 g:return"Fragment";case a:return"Portal";case E:return"Profiler";case P:return"StrictMode";case y:return"Suspense";case s:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var r=e;return pe(r)+".Consumer";case R:var t=e;return pe(t._context)+".Provider";case c:return se(e,e.render,"ForwardRef");case x:var n=e.displayName||null;return n!==null?n:O(e.type)||"Memo";case j:{var f=e,d=f._payload,u=f._init;try{return O(u(d))}catch{return null}}}return null}var M=Object.assign,V=0,ve,_e,he,ye,me,be,xe;function ge(){}ge.__reactDisabledLog=!0;function we(){{if(V===0){ve=console.log,_e=console.info,he=console.warn,ye=console.error,me=console.group,be=console.groupCollapsed,xe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ge,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}V++}}function Le(){{if(V--,V===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:M({},e,{value:ve}),info:M({},e,{value:_e}),warn:M({},e,{value:he}),error:M({},e,{value:ye}),group:M({},e,{value:me}),groupCollapsed:M({},e,{value:be}),groupEnd:M({},e,{value:xe})})}V<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=k.ReactCurrentDispatcher,ue;function q(e,r,t){{if(ue===void 0)try{throw Error()}catch(f){var n=f.stack.trim().match(/\n( *(at )?)/);ue=n&&n[1]||""}return`
|
|
19
|
+
`+ue+e}}var U=!1,H;{var Se=typeof WeakMap=="function"?WeakMap:Map;H=new Se}function K(e,r){if(!e||U)return"";{var t=H.get(e);if(t!==void 0)return t}var n;U=!0;var f=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var d;d=le.current,le.current=null,we();try{if(r){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(w){n=w}Reflect.construct(e,[],u)}else{try{u.call()}catch(w){n=w}e.call(u.prototype)}}else{try{throw Error()}catch(w){n=w}e()}}catch(w){if(w&&n&&typeof w.stack=="string"){for(var l=w.stack.split(`
|
|
20
|
+
`),T=n.stack.split(`
|
|
21
|
+
`),m=l.length-1,b=T.length-1;m>=1&&b>=0&&l[m]!==T[b];)b--;for(;m>=1&&b>=0;m--,b--)if(l[m]!==T[b]){if(m!==1||b!==1)do if(m--,b--,b<0||l[m]!==T[b]){var $=`
|
|
22
|
+
`+l[m].replace(" at new "," at ");return e.displayName&&$.includes("<anonymous>")&&($=$.replace("<anonymous>",e.displayName)),typeof e=="function"&&H.set(e,$),$}while(m>=1&&b>=0);break}}}finally{U=!1,le.current=d,Le(),Error.prepareStackTrace=f}var oe=e?e.displayName||e.name:"",X=oe?q(oe):"";return typeof e=="function"&&H.set(e,X),X}function Pe(e,r,t){return K(e,!1)}function ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function ee(e,r,t){if(e==null)return"";if(typeof e=="function")return K(e,ke(e));if(typeof e=="string")return q(e);switch(e){case y:return q("Suspense");case s:return q("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Pe(e.render);case x:return ee(e.type,r,t);case j:{var n=e,f=n._payload,d=n._init;try{return ee(d(f),r,t)}catch{}}}return""}var J=Object.prototype.hasOwnProperty,Ce={},Ee=k.ReactDebugCurrentFrame;function re(e){if(e){var r=e._owner,t=ee(e.type,e._source,r?r.type:null);Ee.setExtraStackFrame(t)}else Ee.setExtraStackFrame(null)}function Re(e,r,t,n,f){{var d=Function.call.bind(J);for(var u in e)if(d(e,u)){var l=void 0;try{if(typeof e[u]!="function"){var T=Error((n||"React class")+": "+t+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}l=e[u](r,u,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(m){l=m}l&&!(l instanceof Error)&&(re(f),_("%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).",n||"React class",t,u,typeof l),re(null)),l instanceof Error&&!(l.message in Ce)&&(Ce[l.message]=!0,re(f),_("Failed %s type: %s",t,l.message),re(null))}}}var Oe=Array.isArray;function te(e){return Oe(e)}function $e(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function je(e){try{return i(e),!1}catch{return!0}}function i(e){return""+e}function I(e){if(je(e))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",$e(e)),i(e)}var G=k.ReactCurrentOwner,ze={key:!0,ref:!0,__self:!0,__source:!0},Ne,Be,Fe;Fe={};function Ze(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 Qe(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 er(e,r){if(typeof e.ref=="string"&&G.current&&r&&G.current.stateNode!==r){var t=O(G.current.type);Fe[t]||(_('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',O(G.current.type),e.ref),Fe[t]=!0)}}function rr(e,r){{var t=function(){Ne||(Ne=!0,_("%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 tr(e,r){{var t=function(){Be||(Be=!0,_("%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 nr=function(e,r,t,n,f,d,u){var l={$$typeof:v,type:e,key:r,ref:t,props:u,_owner:d};return l._store={},Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:f}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function or(e,r,t,n,f){{var d,u={},l=null,T=null;t!==void 0&&(I(t),l=""+t),Qe(r)&&(I(r.key),l=""+r.key),Ze(r)&&(T=r.ref,er(r,f));for(d in r)J.call(r,d)&&!ze.hasOwnProperty(d)&&(u[d]=r[d]);if(e&&e.defaultProps){var m=e.defaultProps;for(d in m)u[d]===void 0&&(u[d]=m[d])}if(l||T){var b=typeof e=="function"?e.displayName||e.name||"Unknown":e;l&&rr(u,b),T&&tr(u,b)}return nr(e,l,T,f,n,G.current,u)}}var Ae=k.ReactCurrentOwner,Ye=k.ReactDebugCurrentFrame;function ne(e){if(e){var r=e._owner,t=ee(e.type,e._source,r?r.type:null);Ye.setExtraStackFrame(t)}else Ye.setExtraStackFrame(null)}var De;De=!1;function Ie(e){return typeof e=="object"&&e!==null&&e.$$typeof===v}function Ve(){{if(Ae.current){var e=O(Ae.current.type);if(e)return`
|
|
23
23
|
|
|
24
|
-
Check the render method of \``+e+"`."}return""}}function ar(e){return""}var
|
|
24
|
+
Check the render method of \``+e+"`."}return""}}function ar(e){return""}var qe={};function ir(e){{var r=Ve();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
|
|
26
|
+
Check the top-level render call using <`+t+">.")}return r}}function Ue(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=ir(r);if(qe[t])return;qe[t]=!0;var n="";e&&e._owner&&e._owner!==Ae.current&&(n=" It was passed a child from "+O(e._owner.type)+"."),ne(e),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),ne(null)}}function He(e,r){{if(typeof e!="object")return;if(te(e))for(var t=0;t<e.length;t++){var n=e[t];Ie(n)&&Ue(n,r)}else if(Ie(e))e._store&&(e._store.validated=!0);else if(e){var f=N(e);if(typeof f=="function"&&f!==e.entries)for(var d=f.call(e),u;!(u=d.next()).done;)Ie(u.value)&&Ue(u.value,r)}}}function sr(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===c||r.$$typeof===x))t=r.propTypes;else return;if(t){var n=O(r);Re(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!De){De=!0;var f=O(r);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",f||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function lr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){ne(e),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),ne(null);break}}e.ref!==null&&(ne(e),_("Invalid attribute `ref` supplied to `React.Fragment`."),ne(null))}}var Ke={};function Je(e,r,t,n,f,d){{var u=de(e);if(!u){var l="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" 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 T=ar();T?l+=T:l+=Ve();var m;e===null?m="null":te(e)?m="array":e!==void 0&&e.$$typeof===v?(m="<"+(O(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):m=typeof e,_("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",m,l)}var b=or(e,r,t,f,d);if(b==null)return b;if(u){var $=r.children;if($!==void 0)if(n)if(te($)){for(var oe=0;oe<$.length;oe++)He($[oe],e);Object.freeze&&Object.freeze($)}else _("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 He($,e)}if(J.call(r,"key")){var X=O(e),w=Object.keys(r).filter(function(vr){return vr!=="key"}),We=w.length>0?"{key: someKey, "+w.join(": ..., ")+": ...}":"{key: someKey}";if(!Ke[X+We]){var pr=w.length>0?"{"+w.join(": ..., ")+": ...}":"{}";_(`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} />`,Le,X,dr,X),He[X+Le]=!0}}return e===R?sr(_):or(_),_}}function lr(e,r,t){return Ke(e,r,t,!0)}function ur(e,r,t){return Ke(e,r,t,!1)}var cr=ur,fr=lr;fe.Fragment=R,fe.jsx=cr,fe.jsxs=fr}()),fe}process.env.NODE_ENV==="production"?Ne.exports=vr():Ne.exports=hr();var a=Ne.exports;const _r="mc__mainButton",yr="mc__sm",br="mc__onlyIcon",mr="mc__buttonSlot",xr="mc__buttonLabel",Cr="mc__md",Er="mc__lg",Rr="mc__xl",jr="mc__xl2",gr="mc__disabled",ie={mainButton:_r,sm:yr,onlyIcon:br,buttonSlot:mr,buttonLabel:xr,md:Cr,lg:Er,xl:Rr,xl2:jr,disabled:gr},wr=({label:m,buttonType:h="button",onClick:s,size:R="md",disabled:$,withIcons:w,iconOne:T,iconTwo:y,onlyIcon:f,buttonStyle:b,labelStyle:l,buttonSlotStyle:x})=>a.jsx("button",{type:h,style:b&&typeof b=="object"?b:{},className:`${ie.mainButton} ${f?ie.onlyIcon:""} ${R?ie[R]:""} ${$?ie.disabled:""}`,onClick:()=>{s&&typeof s=="function"&&s()},children:a.jsxs("div",{className:ie.buttonSlot,style:x??{},children:[f||w&&T?T:"",!f&&a.jsx("span",{style:l??{},className:ie.buttonLabel,children:m??"Button"}),w&&y?y:""]})}),Tr="mc__inputWrapper",Sr="mc__inputLabel",kr="mc__required",Pr="mc__inputContainer",Or="mc__focused",$r="mc__error",Ar="mc__rightIcon",Fr="mc__leftIcon",Dr="mc__inputDropDown",Lr="mc__http",Nr="mc__disabled",Wr="mc__sm",Yr="mc__md",Ir="mc__withCopy",Mr="mc__inputHelperText",C={inputWrapper:Tr,inputLabel:Sr,required:kr,inputContainer:Pr,focused:Or,error:$r,rightIcon:Ar,leftIcon:Fr,inputDropDown:Dr,http:Lr,disabled:Nr,sm:Wr,md:Yr,withCopy:Ir,inputHelperText:Mr},Vr=({width:m,height:h,color:s})=>a.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:m??"12",height:h??"8",viewBox:"0 0 12 8",fill:"none",children:a.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:s??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),Br=({width:m,height:h,color:s})=>a.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:m??"20",height:h??"20",viewBox:"0 0 20 20",fill:"none",children:[a.jsx("g",{clipPath:"url(#clip0_444_26)",children:a.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:s??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_444_26",children:a.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),qr=({value:m,label:h,placeholder:s,required:R,disabled:$,type:w,size:T,onChange:y,onFouce:f,onBlur:b,msg:l,readOnly:x,maxLength:A,onlyText:L,onRightIconIconClick:N,onRightIconIconMouseEnter:Y,onRightIconIconMouseLeave:I,onLeftIconIconClick:S,onLeftIconIconMouseEnter:p,onLeftIconIconMouseLeave:M,rightIcon:z,leftIcon:Z,withDropDown:V,dropdownData:W,onSelectData:oe,withLink:Q,withCopy:de,onCopy:se,inputWrapperStyle:pe,inputLabelStyle:k,requiredStyle:D,inputContainerStyle:B,leftIconStyle:ve,inputDropDownStyle:he,ulStyle:_e,liStyle:ye,httpStyle:be,inputStyle:me,rightIconStyle:xe,withCopyStyle:Ce,inputHelperTextStyle:we})=>{const[We,le]=g.useState(!1),[ue,q]=g.useState(!1);g.useState(!1);const U=g.useRef(null),H=g.useRef(null),[Te,K]=g.useState(!1),[Se,ke]=g.useState(1),ee=i=>{let F=i.target.value;F.length===1&&(F=F.trim()),y&&typeof y=="function"&&y(L?F.replace(/\d/g,""):F)},J=()=>{q(!0),f&&typeof f=="function"&&f()},Ee=()=>{q(!1),b&&typeof b=="function"&&b()},Re=i=>{const G=i.target.value.length===0;w==="number"&&(i.keyCode===69||!G&&(i.keyCode===187||i.keyCode===107||i.keyCode===189||i.keyCode===109))&&i.preventDefault()},re=()=>{se&&typeof se=="function"&&se(m)},je=i=>i,Pe=()=>{let i={};return de&&(i.borderTopRightRadius=0,i.borderBottomRightRadius=0,i.borderRight=0),V&&(i.paddingLeft=0),{...i,...B??{}}},te=i=>{!i.composedPath().includes(H.current)&&i.composedPath().includes(U.current)||K(!1)},Oe=i=>{ke(i.id),K(!1),oe&&typeof oe=="function"&&oe(i)};g.useEffect(()=>(document.addEventListener("click",te),()=>{document.removeEventListener("click",te)}),[]);const ge=g.useRef(!1);return g.useEffect(()=>{ge.current?setTimeout(()=>{le(i=>!i)},0):ge.current=!0},[]),a.jsxs("div",{className:C.inputWrapper,style:pe??{},children:[h&&a.jsxs("label",{className:C.inputLabel,style:k??{},children:[h," ",a.jsx("span",{className:C.required,style:D??{},children:R&&"*"})]}),a.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[a.jsxs("div",{style:Pe(),className:`${C.inputContainer} ${ue&&!x?C.focused:""} ${$?C.disabled:""} ${l!=null&&l.error?C.error:""} ${C[T??"sm"]}`,children:[!V&&!Q&&Z&&a.jsx("div",{className:C.leftIcon,style:ve??{},onClick:()=>{S&&typeof S=="function"&&S()},onMouseEnter:()=>{p&&typeof p=="function"&&p()},onMouseLeave:()=>{M&&typeof M=="function"&&M()},children:je(Z)}),!Q&&V&&a.jsxs("div",{className:C.inputDropDown,style:he??{},onClick:()=>K(!0),ref:U,children:[W.find(i=>i.id===Se).label,Te&&a.jsx("ul",{ref:H,style:_e??{},children:W&&W.length&&W.map((i,F)=>a.jsx("li",{style:ye??{},onClick:()=>Oe(i),children:(i==null?void 0:i.label)??"-"},i.id))}),a.jsx(Vr,{})]}),Q&&a.jsx("div",{className:`${C.inputDropDown} ${C.http}`,style:be??{},onClick:()=>K(!0),ref:U,children:"http://"}),a.jsx("input",{style:me??{},type:w??"text",value:m,onChange:i=>ee(i),onFocus:J,onBlur:Ee,disabled:$,required:R,onKeyDown:Re,readOnly:x,spellCheck:!1,placeholder:s??"",autoComplete:"off",maxLength:A}),z&&a.jsx("div",{className:C.rightIcon,style:xe??{},onClick:()=>{N&&typeof N=="function"&&N()},onMouseEnter:()=>{Y&&typeof Y=="function"&&Y()},onMouseLeave:()=>{I&&typeof I=="function"&&I()},children:je(z)})]}),de&&a.jsxs("div",{style:Ce??{},onClick:re,className:C.withCopy,children:[a.jsx(Br,{}),"Copy"]})]}),l&&(l==null?void 0:l.visigle)&&a.jsx("div",{style:we??{},className:`${C.inputHelperText} ${l!=null&&l.error?C.error:""}`,children:a.jsx("p",{style:(l==null?void 0:l.style)??{},children:l.text})})]})},Ur="mc__textareaContainer",Hr="mc__textAreaLabel",Kr="mc__required",Jr="mc__wrap",Gr="mc__textarea",Xr="mc__focused",zr="mc__disabled",Zr="mc__error",Qr="mc__helperTextStyle",O={textareaContainer:Ur,textAreaLabel:Hr,required:Kr,wrap:Jr,textarea:Gr,focused:Xr,disabled:zr,error:Zr,helperTextStyle:Qr},et=({width:m,height:h,color:s})=>a.jsxs("svg",{width:m??"16",height:h??"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("g",{id:"help-circle",clipPath:"url(#clip0_433_6293)",children:a.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:s??"#A4A7AE",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),a.jsx("defs",{children:a.jsx("clipPath",{id:"clip0_433_6293",children:a.jsx("rect",{width:m??"16",height:h??"16",fill:"white"})})})]}),rt=({placeholder:m,label:h,msg:s,cols:R,rows:$,value:w,maxLength:T,onChange:y,onFocus:f,onBlur:b,disabled:l,required:x,textareaContainerStyle:A,textareaLabelStyle:L,requiredStyle:N,textareaStyle:Y,textareaHelperTextStyle:I})=>{const[S,p]=g.useState(!1),M=V=>{let W=V.target.value;y&&typeof y=="function"&&y(W)},z=()=>{p(!0),f&&typeof f=="function"&&f()},Z=()=>{p(!1),b&&typeof b=="function"&&b()};return a.jsxs("div",{style:A??{},className:`${O.textareaContainer} ${s!=null&&s.type&&(s!=null&&s.visible)?O[s==null?void 0:s.type]:""} ${l?O.disabled:null}`,children:[h&&a.jsxs("div",{style:L,className:O.textAreaLabel,children:[a.jsx("p",{children:h}),a.jsx("span",{style:N??{},className:O.required,children:x&&"*"}),a.jsx(et,{})]}),a.jsx("div",{className:O.wrap,children:a.jsx("textarea",{style:Y??{},className:`${O.textarea} ${S?O.focused:""} ${l?O.disabled:""} ${s!=null&&s.error?O.error:""}`,value:w,placeholder:m??"",cols:R??"30",rows:$??"5",maxLength:T??null,onFocus:z,disabled:l,onBlur:Z,onChange:M})}),a.jsx("div",{style:I??{},className:`${O.helperTextStyle} ${s!=null&&s.error?O.error:""}`,children:a.jsx("p",{style:(s==null?void 0:s.style)??{},children:s.text})})]})};exports.FormInput=qr;exports.MainButton=wr;exports.Textarea=rt;
|
|
31
|
+
<%s key={someKey} {...props} />`,We,X,pr,X),Ke[X+We]=!0}}return e===g?lr(b):sr(b),b}}function ur(e,r,t){return Je(e,r,t,!0)}function cr(e,r,t){return Je(e,r,t,!1)}var fr=cr,dr=ur;fe.Fragment=g,fe.jsx=fr,fe.jsxs=dr}()),fe}process.env.NODE_ENV==="production"?Me.exports=_r():Me.exports=hr();var o=Me.exports;const yr="MainButton-module__mainButton",mr="MainButton-module__sm",br="MainButton-module__onlyIcon",xr="MainButton-module__buttonSlot",gr="MainButton-module__buttonLabel",Cr="MainButton-module__md",Er="MainButton-module__lg",Rr="MainButton-module__xl",jr="MainButton-module__xl2",Tr="MainButton-module__disabled",ae={mainButton:yr,sm:mr,onlyIcon:br,buttonSlot:xr,buttonLabel:gr,md:Cr,lg:Er,xl:Rr,xl2:jr,disabled:Tr},wr=({label:p,buttonType:v="button",onClick:a,size:g="md",disabled:P,withIcons:E,iconOne:R,iconTwo:h,onlyIcon:c,buttonStyle:y,labelStyle:s,buttonSlotStyle:x})=>o.jsx("button",{type:v,style:y&&typeof y=="object"?y:{},className:`${ae.mainButton} ${c?ae.onlyIcon:""} ${g?ae[g]:""} ${P?ae.disabled:""}`,onClick:()=>{a&&typeof a=="function"&&a()},children:o.jsxs("div",{className:ae.buttonSlot,style:x??{},children:[c||E&&R?R:"",!c&&o.jsx("span",{style:s??{},className:ae.buttonLabel,children:p??"Button"}),E&&h?h:""]})}),Sr="FormInput-module__inputWrapper",Pr="FormInput-module__inputLabel",kr="FormInput-module__required",Or="FormInput-module__inputContainer",$r="FormInput-module__focused",Fr="FormInput-module__error",Ar="FormInput-module__rightIcon",Dr="FormInput-module__leftIcon",Ir="FormInput-module__inputDropDown",Wr="FormInput-module__http",Mr="FormInput-module__disabled",Lr="FormInput-module__sm",Nr="FormInput-module__md",Br="FormInput-module__withCopy",Yr="FormInput-module__inputHelperText",C={inputWrapper:Sr,inputLabel:Pr,required:kr,inputContainer:Or,focused:$r,error:Fr,rightIcon:Ar,leftIcon:Dr,inputDropDown:Ir,http:Wr,disabled:Mr,sm:Lr,md:Nr,withCopy:Br,inputHelperText:Yr},Vr=({width:p,height:v,color:a})=>o.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:p??"12",height:v??"8",viewBox:"0 0 12 8",fill:"none",children:o.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:a??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),qr=({width:p,height:v,color:a})=>o.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:p??"20",height:v??"20",viewBox:"0 0 20 20",fill:"none",children:[o.jsx("g",{clipPath:"url(#clip0_444_26)",children:o.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:a??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_444_26",children:o.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Ur=({value:p,label:v,placeholder:a,required:g,disabled:P,type:E,size:R,onChange:h,onFouce:c,onBlur:y,msg:s,readOnly:x,maxLength:j,onlyText:A,onRightIconIconClick:D,onRightIconIconMouseEnter:W,onRightIconIconMouseLeave:N,onLeftIconIconClick:k,onLeftIconIconMouseEnter:_,onLeftIconIconMouseLeave:B,rightIcon:z,leftIcon:Z,withDropDown:Y,dropdownData:L,onSelectData:ie,withLink:Q,withCopy:de,onCopy:se,inputWrapperStyle:pe,inputLabelStyle:O,requiredStyle:M,inputContainerStyle:V,leftIconStyle:ve,inputDropDownStyle:_e,ulStyle:he,liStyle:ye,httpStyle:me,inputStyle:be,rightIconStyle:xe,withCopyStyle:ge,inputHelperTextStyle:we})=>{const[Le,le]=S.useState(!1),[ue,q]=S.useState(!1);S.useState(!1);const U=S.useRef(null),H=S.useRef(null),[Se,K]=S.useState(!1),[Pe,ke]=S.useState(1),ee=i=>{let I=i.target.value;I.length===1&&(I=I.trim()),h&&typeof h=="function"&&h(A?I.replace(/\d/g,""):I)},J=()=>{q(!0),c&&typeof c=="function"&&c()},Ce=()=>{q(!1),y&&typeof y=="function"&&y()},Ee=i=>{const G=i.target.value.length===0;E==="number"&&(i.keyCode===69||!G&&(i.keyCode===187||i.keyCode===107||i.keyCode===189||i.keyCode===109))&&i.preventDefault()},re=()=>{se&&typeof se=="function"&&se(p)},Re=i=>i,Oe=()=>{let i={};return de&&(i.borderTopRightRadius=0,i.borderBottomRightRadius=0,i.borderRight=0),Y&&(i.paddingLeft=0),{...i,...V??{}}},te=i=>{!i.composedPath().includes(H.current)&&i.composedPath().includes(U.current)||K(!1)},$e=i=>{ke(i.id),K(!1),ie&&typeof ie=="function"&&ie(i)};S.useEffect(()=>(document.addEventListener("click",te),()=>{document.removeEventListener("click",te)}),[]);const je=S.useRef(!1);return S.useEffect(()=>{je.current?setTimeout(()=>{le(i=>!i)},0):je.current=!0},[]),o.jsxs("div",{className:C.inputWrapper,style:pe??{},children:[v&&o.jsxs("label",{className:C.inputLabel,style:O??{},children:[v," ",o.jsx("span",{className:C.required,style:M??{},children:g&&"*"})]}),o.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[o.jsxs("div",{style:Oe(),className:`${C.inputContainer} ${ue&&!x?C.focused:""} ${P?C.disabled:""} ${s!=null&&s.error?C.error:""} ${C[R??"sm"]}`,children:[!Y&&!Q&&Z&&o.jsx("div",{className:C.leftIcon,style:ve??{},onClick:()=>{k&&typeof k=="function"&&k()},onMouseEnter:()=>{_&&typeof _=="function"&&_()},onMouseLeave:()=>{B&&typeof B=="function"&&B()},children:Re(Z)}),!Q&&Y&&o.jsxs("div",{className:C.inputDropDown,style:_e??{},onClick:()=>K(!0),ref:U,children:[L.find(i=>i.id===Pe).label,Se&&o.jsx("ul",{ref:H,style:he??{},children:L&&L.length&&L.map((i,I)=>o.jsx("li",{style:ye??{},onClick:()=>$e(i),children:(i==null?void 0:i.label)??"-"},i.id))}),o.jsx(Vr,{})]}),Q&&o.jsx("div",{className:`${C.inputDropDown} ${C.http}`,style:me??{},onClick:()=>K(!0),ref:U,children:"http://"}),o.jsx("input",{style:be??{},type:E??"text",value:p,onChange:i=>ee(i),onFocus:J,onBlur:Ce,disabled:P,required:g,onKeyDown:Ee,readOnly:x,spellCheck:!1,placeholder:a??"",autoComplete:"off",maxLength:j}),z&&o.jsx("div",{className:C.rightIcon,style:xe??{},onClick:()=>{D&&typeof D=="function"&&D()},onMouseEnter:()=>{W&&typeof W=="function"&&W()},onMouseLeave:()=>{N&&typeof N=="function"&&N()},children:Re(z)})]}),de&&o.jsxs("div",{style:ge??{},onClick:re,className:C.withCopy,children:[o.jsx(qr,{}),"Copy"]})]}),s&&(s==null?void 0:s.visigle)&&o.jsx("div",{style:we??{},className:`${C.inputHelperText} ${s!=null&&s.error?C.error:""}`,children:o.jsx("p",{style:(s==null?void 0:s.style)??{},children:s.text})})]})},Hr="Textarea-module__textareaContainer",Kr="Textarea-module__textAreaLabel",Jr="Textarea-module__required",Gr="Textarea-module__wrap",Xr="Textarea-module__textarea",zr="Textarea-module__focused",Zr="Textarea-module__disabled",Qr="Textarea-module__error",et="Textarea-module__helperTextStyle",F={textareaContainer:Hr,textAreaLabel:Kr,required:Jr,wrap:Gr,textarea:Xr,focused:zr,disabled:Zr,error:Qr,helperTextStyle:et},rt=({width:p,height:v,color:a})=>o.jsxs("svg",{width:p??"16",height:v??"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[o.jsx("g",{id:"help-circle",clipPath:"url(#clip0_433_6293)",children:o.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:a??"#A4A7AE",strokeWidth:"1.33333",strokeLinecap:"round",strokeLinejoin:"round"})}),o.jsx("defs",{children:o.jsx("clipPath",{id:"clip0_433_6293",children:o.jsx("rect",{width:p??"16",height:v??"16",fill:"white"})})})]}),tt=({placeholder:p,label:v,msg:a,cols:g,rows:P,value:E,maxLength:R,onChange:h,onFocus:c,onBlur:y,disabled:s,required:x,textareaContainerStyle:j,textareaLabelStyle:A,requiredStyle:D,textareaStyle:W,textareaHelperTextStyle:N})=>{const[k,_]=S.useState(!1),B=Y=>{let L=Y.target.value;h&&typeof h=="function"&&h(L)},z=()=>{_(!0),c&&typeof c=="function"&&c()},Z=()=>{_(!1),y&&typeof y=="function"&&y()};return o.jsxs("div",{style:j??{},className:`${F.textareaContainer} ${a!=null&&a.type&&(a!=null&&a.visible)?F[a==null?void 0:a.type]:""} ${s?F.disabled:null}`,children:[v&&o.jsxs("div",{style:A,className:F.textAreaLabel,children:[o.jsx("p",{children:v}),o.jsx("span",{style:D??{},className:F.required,children:x&&"*"}),o.jsx(rt,{})]}),o.jsx("div",{className:F.wrap,children:o.jsx("textarea",{style:W??{},className:`${F.textarea} ${k?F.focused:""} ${s?F.disabled:""} ${a!=null&&a.error?F.error:""}`,value:E,placeholder:p??"",cols:g??"30",rows:P??"5",maxLength:R??null,onFocus:z,disabled:s,onBlur:Z,onChange:B})}),o.jsx("div",{style:N??{},className:`${F.helperTextStyle} ${a!=null&&a.error?F.error:""}`,children:o.jsx("p",{style:(a==null?void 0:a.style)??{},children:a.text})})]})},nt="Toggle-module__toggleWrapper",ot="Toggle-module__toggleState",at="Toggle-module__checked",it="Toggle-module__disabled",Te={toggleWrapper:nt,toggleState:ot,checked:at,disabled:it},st=({checked:p,change:v,disabled:a,required:g,activeStyle:P,bgStyle:E,checkedBgStyle:R,disabledBgStyle:h,circleStyle:c,checkedCircleStyle:y,disabledCircleStyle:s})=>{const[x,j]=S.useState(!1),A=()=>{v&&typeof v=="function"&&v(!p)},D=()=>{if(x)return P??{};if(p){if(R)return R}else if(p){if(a&&h)return h}else if(E)return E;return{}},W=()=>{if(p){if(y)return y}else if(p){if(a&&s)return s}else if(c)return c;return{}};return o.jsx("div",{style:D(),onMouseDown:()=>j(!0),onMouseUp:()=>j(!1),onMouseLeave:()=>j(!1),onClick:A,className:`${Te.toggleWrapper} ${p?Te.checked:""} ${a?Te.disabled:""}`,children:o.jsx("div",{style:W(),className:Te.toggleState,children:o.jsx("input",{type:"checkbox",checked:p,readOnly:!0,disabled:a??!1,hidden:!0,required:g??!1})})})};exports.FormInput=Ur;exports.MainButton=wr;exports.Textarea=tt;exports.Toggle=st;
|