cleanplate 0.0.22 → 0.0.23

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.
package/dist/index.es.js CHANGED
@@ -11,4 +11,4 @@ import e,{useState as t,useRef as n,useEffect as r,cloneElement as a}from"react"
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function N(){if(b)return y;b=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,l,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),m=1;m<arguments.length;m++){for(var u in o=Object(arguments[m]))t.call(o,u)&&(i[u]=o[u]);if(e){l=e(o);for(var d=0;d<l.length;d++)n.call(o,l[d])&&(i[l[d]]=o[l[d]])}}return i},y}function T(){return v?h:(v=1,h=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var j=w();d.exports=function(){if(O)return x;O=1;var e=w(),t=N(),n=s(),r=T(),a=function(){if(C)return $;C=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=s(),n={},r=T();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,o,l,i,m){if("production"!==process.env.NODE_ENV)for(var u in a)if(r(a,u)){var d;try{if("function"!=typeof a[u]){var s=Error((i||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}d=a[u](o,u,i,l,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((i||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var c=m?m():"";e("Failed "+l+" type: "+d.message+(null!=c?c:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},$=a}(),o=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),x=function(i,m){var u="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",s="<<anonymous>>",c={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:_(l),arrayOf:function(e){return _((function(t,r,a,o,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new p("Invalid "+o+" `"+l+"` of type `"+h(i)+"` supplied to `"+a+"`, expected an array.");for(var m=0;m<i.length;m++){var u=e(i,m,a,o,l+"["+m+"]",n);if(u instanceof Error)return u}return null}))},element:_((function(e,t,n,r,a){var o=e[t];return i(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+h(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:_((function(t,n,r,a,o){var l=t[n];return e.isValidElementType(l)?null:new p("Invalid "+a+" `"+o+"` of type `"+h(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return _((function(t,n,r,a,o){if(!(t[n]instanceof e)){var l=e.name||s;return new p("Invalid "+a+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:s)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var i;return null}))},node:_((function(e,t,n,r,a){return b(e[t])?null:new p("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return _((function(t,a,o,l,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var m=t[a],u=h(m);if("object"!==u)return new p("Invalid "+l+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var d in m)if(r(m,d)){var s=e(m,d,o,l,i+"."+d,n);if(s instanceof Error)return s}return null}))},oneOf:function(e){return Array.isArray(e)?_((function(t,n,r,a,o){for(var l=t[n],i=0;i<e.length;i++)if(g(l,e[i]))return null;var m=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+a+" `"+o+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+m+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(a)+" at index "+t+"."),l}return _((function(t,a,o,l,i){for(var m=[],u=0;u<e.length;u++){var d=(0,e[u])(t,a,o,l,i,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&m.push(d.data.expectedType)}return new p("Invalid "+l+" `"+i+"` supplied to `"+o+"`"+(m.length>0?", expected one of type ["+m.join(", ")+"]":"")+".")}))},shape:function(e){return _((function(t,r,a,o,l){var i=t[r],m=h(i);if("object"!==m)return new p("Invalid "+o+" `"+l+"` of type `"+m+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var d=e[u];if("function"!=typeof d)return y(a,o,l,u,v(d));var s=d(i,u,a,o,l+"."+u,n);if(s)return s}return null}))},exact:function(e){return _((function(a,o,l,i,m){var u=a[o],d=h(u);if("object"!==d)return new p("Invalid "+i+" `"+m+"` of type `"+d+"` supplied to `"+l+"`, expected `object`.");var s=t({},a[o],e);for(var c in s){var g=e[c];if(r(e,c)&&"function"!=typeof g)return y(l,i,m,c,v(g));if(!g)return new p("Invalid "+i+" `"+m+"` key `"+c+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var _=g(u,c,l,i,m+"."+c,n);if(_)return _}return null}))}};function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function _(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,l,i,u,d,c,g){if(u=u||s,c=c||i,g!==n){if(m){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=u+":"+i;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==l[i]?a?null===l[i]?new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,i,u,d,c)}var l=a.bind(null,!1);return l.isRequired=a.bind(null,!0),l}function f(e){return _((function(t,n,r,a,o,l){var i=t[n];return h(i)!==e?new p("Invalid "+a+" `"+o+"` of type `"+v(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,a){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},x}()(j.isElement,!0)}else d.exports=function(){if(u)return m;u=1;var e=s();function t(){}function n(){}return n.resetWarningCache=t,m=function(){function r(t,n,r,a,o,l){if(l!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var S=o(d.exports),A={"cp-typography":"Typography-module_cp-typography__8bhKb",h1:"Typography-module_h1__HgP-t",h2:"Typography-module_h2__2ktYB",h3:"Typography-module_h3__sjyRX",h4:"Typography-module_h4__KLr0r",h5:"Typography-module_h5__vdQ3X",h6:"Typography-module_h6__yqRrD",p:"Typography-module_p__OKx7S",black:"Typography-module_black__xMmAt",white:"Typography-module_white__tsPaS",gray:"Typography-module_gray__Ddjga",blue:"Typography-module_blue__cubuC","margin-top-none":"Typography-module_margin-top-none__L-V8v","margin-right-none":"Typography-module_margin-right-none__Qex-O","margin-bottom-none":"Typography-module_margin-bottom-none__COJ3a","margin-left-none":"Typography-module_margin-left-none__IaP5b","margin-top-small":"Typography-module_margin-top-small__MoP1g","margin-right-small":"Typography-module_margin-right-small__PY7b-","margin-bottom-small":"Typography-module_margin-bottom-small__v08uR","margin-left-small":"Typography-module_margin-left-small__8SB-4","margin-top-medium":"Typography-module_margin-top-medium__63jl5","margin-right-medium":"Typography-module_margin-right-medium__Sczte","margin-bottom-medium":"Typography-module_margin-bottom-medium__Appjr","margin-left-medium":"Typography-module_margin-left-medium__afWbU","margin-top-large":"Typography-module_margin-top-large__OomRC","margin-right-large":"Typography-module_margin-right-large__X5QX3","margin-bottom-large":"Typography-module_margin-bottom-large__tNkt4","margin-left-large":"Typography-module_margin-left-large__tHi1u","margin-top-extra-large":"Typography-module_margin-top-extra-large__kw9qo","margin-right-extra-large":"Typography-module_margin-right-extra-large__jWk0c","margin-bottom-extra-large":"Typography-module_margin-bottom-extra-large__8Jxjp","margin-left-extra-large":"Typography-module_margin-left-extra-large__LHFOS"};const k=({children:t,variant:n,marginTop:r="none",marginRight:a="none",marginBottom:o="none",marginLeft:l="none"})=>{const i=`${A[`margin-top-${r}`]} ${A[`margin-right-${a}`]} ${A[`margin-bottom-${o}`]} ${A[`margin-left-${l}`]}`;switch(n){case"h1":return e.createElement("h1",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h2":return e.createElement("h2",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h3":return e.createElement("h3",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h4":return e.createElement("h4",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h5":return e.createElement("h5",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h6":return e.createElement("h6",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);default:return e.createElement("p",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t)}};k.propTypes={variant:S.oneOf(["h1","h2","h3","h4","h5","h6","p"]),marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"])};const M=({children:e})=>React.createElement("div",{className:"cp-app-shell"},e);var B={"cp-icon":"Icon-module_cp-icon__onsmO",small:"Icon-module_small__9C3K-",medium:"Icon-module_medium__0kcM-",large:"Icon-module_large__LvTw7",black:"Icon-module_black__zBBu5",white:"Icon-module_white__3rwyA",gray:"Icon-module_gray__CLINZ",blue:"Icon-module_blue__-tUmv"};const R=({name:t="",size:n="medium",className:r="",color:a="black"})=>e.createElement("span",{className:`${B["cp-icon"]} ${B[n]} ${B[a]} ${r}`},t);R.propTypes={name:S.string,size:S.oneOf(["small","medium","large"]),color:S.oneOf(["black","white","gray","blue"])};var D={"cp-button":"Alert-module_cp-button__5-DCd",small:"Alert-module_small__HjcnA",medium:"Alert-module_medium__CIKUL",disabled:"Alert-module_disabled__NWgLG",loading:"Alert-module_loading__HVAl0","cp-button-loader":"Alert-module_cp-button-loader__bskOJ","spin-animation":"Alert-module_spin-animation__S-7gY",outline:"Alert-module_outline__D6cS9"};const F=({children:t,isLoading:n=!1,isDisabled:r=!1,size:a="medium",variant:o="solid",onClick:l})=>e.createElement("button",{className:`${D["cp-button"]} ${D[o]} ${D[a]} ${r?D.disabled:""} ${n?D.loading:""}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof l&&l(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:D["cp-button-loader"]}),t);F.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"])};const I=({children:t})=>e.createElement("p",{className:"cp-modal"},t);var P={"cp-badge":"Badge-module_cp-badge__Mwtty",info:"Badge-module_info__XJFfU",success:"Badge-module_success__SuM7z",error:"Badge-module_error__NKD32",default:"Badge-module_default__2-bvp",warning:"Badge-module_warning__noVf8"};const V=({label:t,variant:n="default"})=>e.createElement("p",{className:`${P["cp-badge"]} ${P[n]}`},t);V.propTypes={label:S.string,size:S.oneOf(["small","medium","large"]),variant:S.oneOf(["default","info","warning","error","success"])};var L="FormControls-module_cp-form-field__rvJuX",U="FormControls-module_cp-form-field-fluid__4OlPJ",q="FormControls-module_cp-form-label__ipGaH",z="FormControls-module_cp-form-control__KFQ-6",H="FormControls-module_cp-form-control-error__FG8To",J="FormControls-module_cp-form-error-message__7h2ZR",Y="FormControls-module_cp-textarea-field__-u6Jy",W="FormControls-module_cp-select-field__A22qi",X="FormControls-module_cp-select-field-header__x-V6H",K="FormControls-module_cp-select-field-header-open__-yeCb",G="FormControls-module_cp-select-field-options__TCRwC",Z="FormControls-module_cp-select-field-options-top__MUGf4",Q="FormControls-module_cp-select-field-options-bottom__PKVjk",ee="FormControls-module_cp-select-field-option__16WXY",te="FormControls-module_cp-radio-field__AXBRh",ne="FormControls-module_cp-checkbox-field__61TMZ",re="FormControls-module_cp-file-field__M3U8J",ae="FormControls-module_cp-date-field__9sVJa";var oe={Input:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${L} ${`${u?U:""}`} ${s}`,_=`${z} ${g?`${H}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:J},g))},TextArea:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,className:d="",placeholder:s="",error:c=""})=>{const g=`${L} ${d} ${`${u?U:""}`}`,p=`${z} ${Y} ${c?`${H}`:""}`;return e.createElement("div",{className:g},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("textarea",{className:p,disabled:i,name:t,id:n,defaultValue:a,placeholder:s,value:o,onChange:e=>{r&&r(e)}}),c&&e.createElement("p",{className:J},c))},File:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${re} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"file",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Select:({name:a,id:o,onChange:l,defaultValue:i,value:m,label:u="",isDisabled:d=!1,className:s="",options:c=[],isRequired:g=!1,placeholder:p="Select an option",error:_="",isFluid:f=!1})=>{const y=`${L} ${`${f?U:""}`} ${s}`,[b,h]=t(!1),[v,$]=t(""),[C,x]=t(!1),O=n(null),E=C?`${Z}`:`${Q}`,w=`${X} ${b?`${K}`:""}`;return r((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),r((()=>{if(O.current){const e=O.current.getBoundingClientRect(),t=window.innerHeight;x(e.bottom>t)}}),[b]),e.createElement("div",{className:y},u&&e.createElement("label",{className:q},u," ",g&&e.createElement("span",null,"*")),e.createElement("div",{className:W,ref:O},e.createElement("div",{className:w,onClick:()=>h(!b)},e.createElement("span",null,v.label||p),e.createElement(R,{name:b?"arrow_drop_up":"arrow_drop_down",className:"arrow "+(b?"up":"down")})),b&&e.createElement("div",{className:`${G} ${E}`},c.map((t=>e.createElement("div",{key:t.value,className:ee,onClick:e=>{return r=t,(n=e).stopPropagation(),n.preventDefault(),$(r),"function"==typeof l&&l(r),void h(!1);var n,r}},t.label))))),_&&e.createElement("p",{className:J},_))},Checkbox:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${ne} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"checkbox",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Radio:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${te} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Date:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",error:d="",isFluid:s=!1})=>{const c=`${L} ${ae} ${`${s?U:""}`} ${u}`,g=`${z} ${d?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"date",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),d&&e.createElement("p",{className:J},d))},Stepper:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${L} ${`${u?U:""}`} ${s}`,_=`${z} ${g?`${H}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:J},g))},Toggle:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${te} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))}},le={"cp-button":"Button-module_cp-button__t348U",small:"Button-module_small__FaxG-",medium:"Button-module_medium__gHl4b",disabled:"Button-module_disabled__En-KU",loading:"Button-module_loading__cFq1s","cp-button-fluid":"Button-module_cp-button-fluid__lZE3X","cp-button-loader":"Button-module_cp-button-loader__Ee1ij","spin-animation":"Button-module_spin-animation__lrjqF",outline:"Button-module_outline__LI97x","margin-top-none":"Button-module_margin-top-none__ewGaQ","margin-right-none":"Button-module_margin-right-none__IHyDO","margin-bottom-none":"Button-module_margin-bottom-none__dOXyc","margin-left-none":"Button-module_margin-left-none__pUXvL","margin-top-small":"Button-module_margin-top-small__L8P-C","margin-right-small":"Button-module_margin-right-small__YD-WQ","margin-bottom-small":"Button-module_margin-bottom-small__x-LU-","margin-left-small":"Button-module_margin-left-small__hNoYe","margin-top-medium":"Button-module_margin-top-medium__dSL81","margin-right-medium":"Button-module_margin-right-medium__iZ51M","margin-bottom-medium":"Button-module_margin-bottom-medium__CO6U-","margin-left-medium":"Button-module_margin-left-medium__UjKev","margin-top-large":"Button-module_margin-top-large__LL-1y","margin-right-large":"Button-module_margin-right-large__A3q6T","margin-bottom-large":"Button-module_margin-bottom-large__5RADE","margin-left-large":"Button-module_margin-left-large__-GUfw","margin-top-extra-large":"Button-module_margin-top-extra-large__u-vJv","margin-right-extra-large":"Button-module_margin-right-extra-large__RrMvU","margin-bottom-extra-large":"Button-module_margin-bottom-extra-large__LuMGx","margin-left-extra-large":"Button-module_margin-left-extra-large__FA-jf"};const ie=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?le["cp-button-fluid"]:""}`,g=`${le[`margin-top-${i}`]} ${le[`margin-right-${m}`]} ${le[`margin-bottom-${u}`]} ${le[`margin-left-${d}`]}`;return e.createElement("button",{className:`${le["cp-button"]} ${c} ${le[l]} ${le[o]} ${r?le.disabled:""} ${n?le.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:le["cp-button-loader"]}),t)};ie.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"]),isDisabled:S.bool,isLoading:S.bool,marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var me={"cp-container":"Container-module_cp-container__WrTi0",border:"Container-module_border__xE-bJ","width-small":"Container-module_width-small__xgrY7","width-medium":"Container-module_width-medium__-st6E","width-large":"Container-module_width-large__F5b-N","width-extra-large":"Container-module_width-extra-large__aI-u5","width-quarter":"Container-module_width-quarter__WDFs7","width-one-third":"Container-module_width-one-third__oaNlD","width-haf":"Container-module_width-haf__F5eEy","width-three-quarters":"Container-module_width-three-quarters__mtvAf","width-full":"Container-module_width-full__dU4Xj","display-block":"Container-module_display-block__6r4yl","display-inline-block":"Container-module_display-inline-block__dmUGh","display-flex":"Container-module_display-flex__nwA-d","align-start":"Container-module_align-start__Klcpf","align-center":"Container-module_align-center__tcGiw","align-end":"Container-module_align-end__a9o4a","justify-space-between":"Container-module_justify-space-between__EekDw","justify-center":"Container-module_justify-center__5SYIV","justify-space-around":"Container-module_justify-space-around__ZVo7H","justify-space-evenly":"Container-module_justify-space-evenly__12F92","margin-top-none":"Container-module_margin-top-none__HGmtH","margin-right-none":"Container-module_margin-right-none__15T1l","margin-bottom-none":"Container-module_margin-bottom-none__nbUHz","margin-left-none":"Container-module_margin-left-none__L1BNA","margin-top-auto":"Container-module_margin-top-auto__Jo5R8","margin-right-auto":"Container-module_margin-right-auto__tPJev","margin-bottom-auto":"Container-module_margin-bottom-auto__ZsRcU","margin-left-auto":"Container-module_margin-left-auto__Jfcxs","margin-top-small":"Container-module_margin-top-small__mq0xf","margin-right-small":"Container-module_margin-right-small__g3-1N","margin-bottom-small":"Container-module_margin-bottom-small__EF1Ia","margin-left-small":"Container-module_margin-left-small__ayljX","margin-top-medium":"Container-module_margin-top-medium__woXAO","margin-right-medium":"Container-module_margin-right-medium__wWwJC","margin-bottom-medium":"Container-module_margin-bottom-medium__gfPfm","margin-left-medium":"Container-module_margin-left-medium__pjJVP","margin-top-large":"Container-module_margin-top-large__jsN1Y","margin-right-large":"Container-module_margin-right-large__5fYQn","margin-bottom-large":"Container-module_margin-bottom-large__zaEur","margin-left-large":"Container-module_margin-left-large__Jr65D","margin-top-extra-large":"Container-module_margin-top-extra-large__fH4zH","margin-right-extra-large":"Container-module_margin-right-extra-large__s-HKF","margin-bottom-extra-large":"Container-module_margin-bottom-extra-large__f5Uya","margin-left-extra-large":"Container-module_margin-left-extra-large__V533Z","padding-top-none":"Container-module_padding-top-none__YDpt0","padding-right-none":"Container-module_padding-right-none__mffie","padding-bottom-none":"Container-module_padding-bottom-none__jR3eA","padding-left-none":"Container-module_padding-left-none__fRf8D","padding-top-small":"Container-module_padding-top-small__ATpHJ","padding-right-small":"Container-module_padding-right-small__8foIr","padding-bottom-small":"Container-module_padding-bottom-small__eH37U","padding-left-small":"Container-module_padding-left-small__vO4L0","padding-top-medium":"Container-module_padding-top-medium__xy6CB","padding-right-medium":"Container-module_padding-right-medium__tNqrp","padding-bottom-medium":"Container-module_padding-bottom-medium__-7qVN","padding-left-medium":"Container-module_padding-left-medium__0khEB","padding-top-large":"Container-module_padding-top-large__2VK5E","padding-right-large":"Container-module_padding-right-large__cXXjD","padding-bottom-large":"Container-module_padding-bottom-large__rMuRR","padding-left-large":"Container-module_padding-left-large__1ApsS","padding-top-extra-large":"Container-module_padding-top-extra-large__DZ6eE","padding-right-extra-large":"Container-module_padding-right-extra-large__lTAI2","padding-bottom-extra-large":"Container-module_padding-bottom-extra-large__ZqK9N","padding-left-extra-large":"Container-module_padding-left-extra-large__bdCtB"};const ue=({children:t,marginTop:n="",marginRight:r="",marginBottom:a="",marginLeft:o="",paddingTop:l="medium",paddingRight:i="medium",paddingBottom:m="medium",paddingLeft:u="medium",display:d="",align:s="",justify:c="",width:g="",showBorder:p=!1,className:_="",onClick:f})=>{const y=d?`display-${d}`:"",b=d?`justify-${c}`:"",h=s?`align-${s}`:"",v=g?`width-${g}`:"",$=p?"border":"",C=n?`margin-top-${n}`:"",x=r?`margin-right-${r}`:"",O=a?`margin-bottom-${a}`:"",E=o?`margin-left-${o}`:"",w=`${C?me[C]:""} ${x?me[x]:""} ${O?me[O]:""} ${E?me[E]:""}`,N=l?`padding-top-${l}`:"",T=i?`padding-right-${i}`:"",j=m?`padding-bottom-${m}`:"",S=u?`padding-left-${u}`:"",A=`${N?me[N]:""} ${T?me[T]:""} ${j?me[j]:""} ${S?me[S]:""}`,k=y?`${me[y]}`:"",M=h?`${me[h]}`:"",B=b?`${me[b]}`:"",R=v?`${me[v]}`:"",D=$?`${me[$]}`:"";return e.createElement("div",{className:`${me["cp-container"]} ${R} ${w} ${A} ${D} ${k} ${M} ${B} ${_}`,onClick:e=>(e=>{"function"==typeof f&&f(e)})(e)},t)};ue.propTypes={display:S.oneOf(["inline-block","block","flex"]),width:S.oneOf(["small","medium","large","extra-large","quarter","half","three-quarters","full"]),showBorder:S.bool,justify:S.oneOf(["space-between","center","space-around","space-evenly"]),align:S.oneOf(["start","center","end"]),marginTop:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","auto","small","medium","large","extra-large"]),paddingTop:S.oneOf(["none","small","medium","large","extra-large"]),paddingRight:S.oneOf(["none","small","medium","large","extra-large"]),paddingBottom:S.oneOf(["none","small","medium","large","extra-large"]),paddingLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var de={"dropdown-trigger":"Dropdown-module_dropdown-trigger__Dy532",active:"Dropdown-module_active__pBlCN","dropdown-wrapper":"Dropdown-module_dropdown-wrapper__L38Fh","dropdown-contents":"Dropdown-module_dropdown-contents__KUhXv","align-left":"Dropdown-module_align-left__I5dHd","align-right":"Dropdown-module_align-right__YEgO9"};const se=({trigger:o,content:l,align:i="right"})=>{const[m,u]=t(!1),d=n(null),s=n(null),c=i?`align-${i}`:"",g=c?`${de[c]}`:"";return r((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&u(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]),e.createElement("div",{className:de["dropdown-wrapper"]},e.createElement("div",{className:`${de["dropdown-trigger"]} ${m?de.active:""}`,ref:d,onClick:e=>{return t=e,void(m&&d.current&&d.current.contains(t.target)?u(!1):m||u(!0));var t},isActive:m},o),m&&e.createElement("div",{ref:s,className:`${de["dropdown-contents"]} ${g}`},a(l,{onClose:()=>u(!1)})))};se.propTypes={align:S.oneOf(["left","right"])};var ce={"cp-button":"MediaObject-module_cp-button__Qbl3-",small:"MediaObject-module_small__ZbDrr",medium:"MediaObject-module_medium__1xG2s",disabled:"MediaObject-module_disabled__oQGl-",loading:"MediaObject-module_loading__aFU74","cp-button-fluid":"MediaObject-module_cp-button-fluid__-ynEM","cp-button-loader":"MediaObject-module_cp-button-loader__C-OJI","spin-animation":"MediaObject-module_spin-animation__1QWaT",outline:"MediaObject-module_outline__Sh7sg","margin-top-none":"MediaObject-module_margin-top-none__uR-xA","margin-right-none":"MediaObject-module_margin-right-none__rTHY6","margin-bottom-none":"MediaObject-module_margin-bottom-none__fhWp2","margin-left-none":"MediaObject-module_margin-left-none__XzYcv","margin-top-small":"MediaObject-module_margin-top-small__IE-mB","margin-right-small":"MediaObject-module_margin-right-small__bfjMt","margin-bottom-small":"MediaObject-module_margin-bottom-small__AIeyU","margin-left-small":"MediaObject-module_margin-left-small__rRm8l","margin-top-medium":"MediaObject-module_margin-top-medium__wkOGM","margin-right-medium":"MediaObject-module_margin-right-medium__MRgAY","margin-bottom-medium":"MediaObject-module_margin-bottom-medium__5KmIm","margin-left-medium":"MediaObject-module_margin-left-medium__D9kJA","margin-top-large":"MediaObject-module_margin-top-large__xbcpr","margin-right-large":"MediaObject-module_margin-right-large__Fc0bk","margin-bottom-large":"MediaObject-module_margin-bottom-large__TMQZe","margin-left-large":"MediaObject-module_margin-left-large__gItxB","margin-top-extra-large":"MediaObject-module_margin-top-extra-large__HW90R","margin-right-extra-large":"MediaObject-module_margin-right-extra-large__VUNuh","margin-bottom-extra-large":"MediaObject-module_margin-bottom-extra-large__mr6KU","margin-left-extra-large":"MediaObject-module_margin-left-extra-large__Z-eo1"};const ge=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?ce["cp-button-fluid"]:""}`,g=`${ce[`margin-top-${i}`]} ${ce[`margin-right-${m}`]} ${ce[`margin-bottom-${u}`]} ${ce[`margin-left-${d}`]}`;return e.createElement("button",{className:`${ce["cp-button"]} ${c} ${ce[l]} ${ce[o]} ${r?ce.disabled:""} ${n?ce.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:ce["cp-button-loader"]}),t)};ge.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"]),isDisabled:S.bool,isLoading:S.bool,marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var pe={"cp-avatar":"Avatar-module_cp-avatar__aTAsj","cp-button":"Avatar-module_cp-button__b4d-A",small:"Avatar-module_small__fOHEE",medium:"Avatar-module_medium__hYVQB","margin-top-none":"Avatar-module_margin-top-none__IRyo4","margin-right-none":"Avatar-module_margin-right-none__7zeJk","margin-bottom-none":"Avatar-module_margin-bottom-none__aRYCj","margin-left-none":"Avatar-module_margin-left-none__jSqHX","margin-top-small":"Avatar-module_margin-top-small__Y6PWn","margin-right-small":"Avatar-module_margin-right-small__iyaeo","margin-bottom-small":"Avatar-module_margin-bottom-small__49guD","margin-left-small":"Avatar-module_margin-left-small__CfV5V","margin-top-medium":"Avatar-module_margin-top-medium__Qx6SC","margin-right-medium":"Avatar-module_margin-right-medium__Aqc0S","margin-bottom-medium":"Avatar-module_margin-bottom-medium__ySYhq","margin-left-medium":"Avatar-module_margin-left-medium__O-P6h","margin-top-large":"Avatar-module_margin-top-large__G-H3w","margin-right-large":"Avatar-module_margin-right-large__80-S3","margin-bottom-large":"Avatar-module_margin-bottom-large__ld9EZ","margin-left-large":"Avatar-module_margin-left-large__dfbni","margin-top-extra-large":"Avatar-module_margin-top-extra-large__lo6NF","margin-right-extra-large":"Avatar-module_margin-right-extra-large__OQAWO","margin-bottom-extra-large":"Avatar-module_margin-bottom-extra-large__Op7T9","margin-left-extra-large":"Avatar-module_margin-left-extra-large__tzUZM"};const _e=({size:t="medium",marginTop:n="none",marginRight:r="none",marginBottom:a="none",marginLeft:o="none",onClick:l,name:i=""})=>{const m=((e="")=>{const[t,n]=e.split(" ");let r="";return r=n?t||n?`${t?.[0]||""}${n?.[0]||""}`:"":t?.[0]||"",r.toUpperCase()})(i),u=`${pe[`margin-top-${n}`]} ${pe[`margin-right-${r}`]} ${pe[`margin-bottom-${a}`]} ${pe[`margin-left-${o}`]}`;return e.createElement("div",{className:`${pe["cp-avatar"]} ${pe[t]} ${u}`,onClick:e=>(e=>{isDisabled||isLoading?e.preventDefault():"function"==typeof l&&l(e)})(e),title:i},m||e.createElement(R,{name:"person"}))};_e.propTypes={name:S.string,size:S.oneOf(["small","medium"]),marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};export{F as Alert,M as AppShell,_e as Avatar,V as Badge,ie as Button,ue as Container,se as Dropdown,oe as FormControls,R as Icon,ge as MediaObject,I as Modal,k as Typography};
14
+ */function N(){if(b)return y;b=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return y=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,l,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),m=1;m<arguments.length;m++){for(var u in o=Object(arguments[m]))t.call(o,u)&&(i[u]=o[u]);if(e){l=e(o);for(var d=0;d<l.length;d++)n.call(o,l[d])&&(i[l[d]]=o[l[d]])}}return i},y}function T(){return v?h:(v=1,h=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var j=w();d.exports=function(){if(O)return x;O=1;var e=w(),t=N(),n=s(),r=T(),a=function(){if(C)return $;C=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=s(),n={},r=T();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,o,l,i,m){if("production"!==process.env.NODE_ENV)for(var u in a)if(r(a,u)){var d;try{if("function"!=typeof a[u]){var s=Error((i||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}d=a[u](o,u,i,l,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((i||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var c=m?m():"";e("Failed "+l+" type: "+d.message+(null!=c?c:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},$=a}(),o=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),x=function(i,m){var u="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",s="<<anonymous>>",c={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:_(l),arrayOf:function(e){return _((function(t,r,a,o,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new p("Invalid "+o+" `"+l+"` of type `"+h(i)+"` supplied to `"+a+"`, expected an array.");for(var m=0;m<i.length;m++){var u=e(i,m,a,o,l+"["+m+"]",n);if(u instanceof Error)return u}return null}))},element:_((function(e,t,n,r,a){var o=e[t];return i(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+h(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:_((function(t,n,r,a,o){var l=t[n];return e.isValidElementType(l)?null:new p("Invalid "+a+" `"+o+"` of type `"+h(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return _((function(t,n,r,a,o){if(!(t[n]instanceof e)){var l=e.name||s;return new p("Invalid "+a+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:s)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var i;return null}))},node:_((function(e,t,n,r,a){return b(e[t])?null:new p("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return _((function(t,a,o,l,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var m=t[a],u=h(m);if("object"!==u)return new p("Invalid "+l+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var d in m)if(r(m,d)){var s=e(m,d,o,l,i+"."+d,n);if(s instanceof Error)return s}return null}))},oneOf:function(e){return Array.isArray(e)?_((function(t,n,r,a,o){for(var l=t[n],i=0;i<e.length;i++)if(g(l,e[i]))return null;var m=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+a+" `"+o+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+m+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(a)+" at index "+t+"."),l}return _((function(t,a,o,l,i){for(var m=[],u=0;u<e.length;u++){var d=(0,e[u])(t,a,o,l,i,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&m.push(d.data.expectedType)}return new p("Invalid "+l+" `"+i+"` supplied to `"+o+"`"+(m.length>0?", expected one of type ["+m.join(", ")+"]":"")+".")}))},shape:function(e){return _((function(t,r,a,o,l){var i=t[r],m=h(i);if("object"!==m)return new p("Invalid "+o+" `"+l+"` of type `"+m+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var d=e[u];if("function"!=typeof d)return y(a,o,l,u,v(d));var s=d(i,u,a,o,l+"."+u,n);if(s)return s}return null}))},exact:function(e){return _((function(a,o,l,i,m){var u=a[o],d=h(u);if("object"!==d)return new p("Invalid "+i+" `"+m+"` of type `"+d+"` supplied to `"+l+"`, expected `object`.");var s=t({},a[o],e);for(var c in s){var g=e[c];if(r(e,c)&&"function"!=typeof g)return y(l,i,m,c,v(g));if(!g)return new p("Invalid "+i+" `"+m+"` key `"+c+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var _=g(u,c,l,i,m+"."+c,n);if(_)return _}return null}))}};function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function _(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,l,i,u,d,c,g){if(u=u||s,c=c||i,g!==n){if(m){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=u+":"+i;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==l[i]?a?null===l[i]?new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,i,u,d,c)}var l=a.bind(null,!1);return l.isRequired=a.bind(null,!0),l}function f(e){return _((function(t,n,r,a,o,l){var i=t[n];return h(i)!==e?new p("Invalid "+a+" `"+o+"` of type `"+v(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,a){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},x}()(j.isElement,!0)}else d.exports=function(){if(u)return m;u=1;var e=s();function t(){}function n(){}return n.resetWarningCache=t,m=function(){function r(t,n,r,a,o,l){if(l!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var S=o(d.exports),A={"cp-typography":"Typography-module_cp-typography__8bhKb",h1:"Typography-module_h1__HgP-t",h2:"Typography-module_h2__2ktYB",h3:"Typography-module_h3__sjyRX",h4:"Typography-module_h4__KLr0r",h5:"Typography-module_h5__vdQ3X",h6:"Typography-module_h6__yqRrD",p:"Typography-module_p__OKx7S",black:"Typography-module_black__xMmAt",white:"Typography-module_white__tsPaS",gray:"Typography-module_gray__Ddjga",blue:"Typography-module_blue__cubuC","margin-top-none":"Typography-module_margin-top-none__L-V8v","margin-right-none":"Typography-module_margin-right-none__Qex-O","margin-bottom-none":"Typography-module_margin-bottom-none__COJ3a","margin-left-none":"Typography-module_margin-left-none__IaP5b","margin-top-small":"Typography-module_margin-top-small__MoP1g","margin-right-small":"Typography-module_margin-right-small__PY7b-","margin-bottom-small":"Typography-module_margin-bottom-small__v08uR","margin-left-small":"Typography-module_margin-left-small__8SB-4","margin-top-medium":"Typography-module_margin-top-medium__63jl5","margin-right-medium":"Typography-module_margin-right-medium__Sczte","margin-bottom-medium":"Typography-module_margin-bottom-medium__Appjr","margin-left-medium":"Typography-module_margin-left-medium__afWbU","margin-top-large":"Typography-module_margin-top-large__OomRC","margin-right-large":"Typography-module_margin-right-large__X5QX3","margin-bottom-large":"Typography-module_margin-bottom-large__tNkt4","margin-left-large":"Typography-module_margin-left-large__tHi1u","margin-top-extra-large":"Typography-module_margin-top-extra-large__kw9qo","margin-right-extra-large":"Typography-module_margin-right-extra-large__jWk0c","margin-bottom-extra-large":"Typography-module_margin-bottom-extra-large__8Jxjp","margin-left-extra-large":"Typography-module_margin-left-extra-large__LHFOS"};const k=({children:t,variant:n,marginTop:r="none",marginRight:a="none",marginBottom:o="none",marginLeft:l="none"})=>{const i=`${A[`margin-top-${r}`]} ${A[`margin-right-${a}`]} ${A[`margin-bottom-${o}`]} ${A[`margin-left-${l}`]}`;switch(n){case"h1":return e.createElement("h1",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h2":return e.createElement("h2",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h3":return e.createElement("h3",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h4":return e.createElement("h4",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h5":return e.createElement("h5",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);case"h6":return e.createElement("h6",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t);default:return e.createElement("p",{className:`${A["cp-typography"]} ${A[n]} ${i}`},t)}};k.propTypes={variant:S.oneOf(["h1","h2","h3","h4","h5","h6","p"]),marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"])};const M=({children:e})=>React.createElement("div",{className:"cp-app-shell"},e);var B={"cp-icon":"Icon-module_cp-icon__onsmO",small:"Icon-module_small__9C3K-",medium:"Icon-module_medium__0kcM-",large:"Icon-module_large__LvTw7",black:"Icon-module_black__zBBu5",white:"Icon-module_white__3rwyA",gray:"Icon-module_gray__CLINZ",blue:"Icon-module_blue__-tUmv"};const R=({name:t="",size:n="medium",className:r="",color:a="black"})=>e.createElement("span",{className:`${B["cp-icon"]} ${B[n]} ${B[a]} ${r}`},t);R.propTypes={name:S.string,size:S.oneOf(["small","medium","large"]),color:S.oneOf(["black","white","gray","blue"])};var D={"cp-button":"Alert-module_cp-button__5-DCd",small:"Alert-module_small__HjcnA",medium:"Alert-module_medium__CIKUL",disabled:"Alert-module_disabled__NWgLG",loading:"Alert-module_loading__HVAl0","cp-button-loader":"Alert-module_cp-button-loader__bskOJ","spin-animation":"Alert-module_spin-animation__S-7gY",outline:"Alert-module_outline__D6cS9"};const F=({children:t,isLoading:n=!1,isDisabled:r=!1,size:a="medium",variant:o="solid",onClick:l})=>e.createElement("button",{className:`${D["cp-button"]} ${D[o]} ${D[a]} ${r?D.disabled:""} ${n?D.loading:""}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof l&&l(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:D["cp-button-loader"]}),t);F.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"])};const I=({children:t})=>e.createElement("p",{className:"cp-modal"},t);var P={"cp-badge":"Badge-module_cp-badge__Mwtty",info:"Badge-module_info__XJFfU",success:"Badge-module_success__SuM7z",error:"Badge-module_error__NKD32",default:"Badge-module_default__2-bvp",warning:"Badge-module_warning__noVf8"};const V=({label:t,variant:n="default"})=>e.createElement("p",{className:`${P["cp-badge"]} ${P[n]}`},t);V.propTypes={label:S.string,size:S.oneOf(["small","medium","large"]),variant:S.oneOf(["default","info","warning","error","success"])};var L="FormControls-module_cp-form-field__rvJuX",U="FormControls-module_cp-form-field-fluid__4OlPJ",q="FormControls-module_cp-form-label__ipGaH",z="FormControls-module_cp-form-control__KFQ-6",H="FormControls-module_cp-form-control-error__FG8To",J="FormControls-module_cp-form-error-message__7h2ZR",Y="FormControls-module_cp-textarea-field__-u6Jy",W="FormControls-module_cp-select-field__A22qi",X="FormControls-module_cp-select-field-header__x-V6H",K="FormControls-module_cp-select-field-header-open__-yeCb",G="FormControls-module_cp-select-field-options__TCRwC",Z="FormControls-module_cp-select-field-options-top__MUGf4",Q="FormControls-module_cp-select-field-options-bottom__PKVjk",ee="FormControls-module_cp-select-field-option__16WXY",te="FormControls-module_cp-radio-field__AXBRh",ne="FormControls-module_cp-checkbox-field__61TMZ",re="FormControls-module_cp-file-field__M3U8J",ae="FormControls-module_cp-date-field__9sVJa";var oe={Input:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${L} ${`${u?U:""}`} ${s}`,_=`${z} ${g?`${H}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:J},g))},TextArea:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,className:d="",placeholder:s="",error:c=""})=>{const g=`${L} ${d} ${`${u?U:""}`}`,p=`${z} ${Y} ${c?`${H}`:""}`;return e.createElement("div",{className:g},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("textarea",{className:p,disabled:i,name:t,id:n,defaultValue:a,placeholder:s,value:o,onChange:e=>{r&&r(e)}}),c&&e.createElement("p",{className:J},c))},File:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${re} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"file",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Select:({name:a,id:o,onChange:l,defaultValue:i,value:m,label:u="",isDisabled:d=!1,className:s="",options:c=[],isRequired:g=!1,placeholder:p="Select an option",error:_="",isFluid:f=!1})=>{const y=`${L} ${`${f?U:""}`} ${s}`,[b,h]=t(!1),[v,$]=t(""),[C,x]=t(!1),O=n(null),E=C?`${Z}`:`${Q}`,w=`${X} ${b?`${K}`:""}`;return r((()=>{const e=e=>{O.current&&!O.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),r((()=>{if(O.current){const e=O.current.getBoundingClientRect(),t=window.innerHeight;x(e.bottom>t)}}),[b]),e.createElement("div",{className:y},u&&e.createElement("label",{className:q},u," ",g&&e.createElement("span",null,"*")),e.createElement("div",{className:W,ref:O},e.createElement("div",{className:w,onClick:()=>h(!b)},e.createElement("span",null,v.label||p),e.createElement(R,{name:b?"arrow_drop_up":"arrow_drop_down",className:"arrow "+(b?"up":"down")})),b&&e.createElement("div",{className:`${G} ${E}`},c.map((t=>e.createElement("div",{key:t.value,className:ee,onClick:e=>{return r=t,(n=e).stopPropagation(),n.preventDefault(),$(r),"function"==typeof l&&l(r),void h(!1);var n,r}},t.label))))),_&&e.createElement("p",{className:J},_))},Checkbox:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${ne} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"checkbox",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Radio:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${te} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))},Date:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",error:d="",isFluid:s=!1})=>{const c=`${L} ${ae} ${`${s?U:""}`} ${u}`,g=`${z} ${d?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"date",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),d&&e.createElement("p",{className:J},d))},Stepper:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${L} ${`${u?U:""}`} ${s}`,_=`${z} ${g?`${H}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:q},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:J},g))},Toggle:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${L} ${te} ${`${d?U:""}`} ${u}`,g=`${z} ${s?`${H}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:q},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:J},s))}},le={"cp-button":"Button-module_cp-button__t348U",small:"Button-module_small__FaxG-",medium:"Button-module_medium__gHl4b",disabled:"Button-module_disabled__En-KU",loading:"Button-module_loading__cFq1s","cp-button-fluid":"Button-module_cp-button-fluid__lZE3X","cp-button-loader":"Button-module_cp-button-loader__Ee1ij","spin-animation":"Button-module_spin-animation__lrjqF",outline:"Button-module_outline__LI97x","margin-top-none":"Button-module_margin-top-none__ewGaQ","margin-right-none":"Button-module_margin-right-none__IHyDO","margin-bottom-none":"Button-module_margin-bottom-none__dOXyc","margin-left-none":"Button-module_margin-left-none__pUXvL","margin-top-small":"Button-module_margin-top-small__L8P-C","margin-right-small":"Button-module_margin-right-small__YD-WQ","margin-bottom-small":"Button-module_margin-bottom-small__x-LU-","margin-left-small":"Button-module_margin-left-small__hNoYe","margin-top-medium":"Button-module_margin-top-medium__dSL81","margin-right-medium":"Button-module_margin-right-medium__iZ51M","margin-bottom-medium":"Button-module_margin-bottom-medium__CO6U-","margin-left-medium":"Button-module_margin-left-medium__UjKev","margin-top-large":"Button-module_margin-top-large__LL-1y","margin-right-large":"Button-module_margin-right-large__A3q6T","margin-bottom-large":"Button-module_margin-bottom-large__5RADE","margin-left-large":"Button-module_margin-left-large__-GUfw","margin-top-extra-large":"Button-module_margin-top-extra-large__u-vJv","margin-right-extra-large":"Button-module_margin-right-extra-large__RrMvU","margin-bottom-extra-large":"Button-module_margin-bottom-extra-large__LuMGx","margin-left-extra-large":"Button-module_margin-left-extra-large__FA-jf"};const ie=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?le["cp-button-fluid"]:""}`,g=`${le[`margin-top-${i}`]} ${le[`margin-right-${m}`]} ${le[`margin-bottom-${u}`]} ${le[`margin-left-${d}`]}`;return e.createElement("button",{className:`${le["cp-button"]} ${c} ${le[l]} ${le[o]} ${r?le.disabled:""} ${n?le.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:le["cp-button-loader"]}),t)};ie.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"]),isDisabled:S.bool,isLoading:S.bool,marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var me={"cp-container":"Container-module_cp-container__WrTi0",border:"Container-module_border__xE-bJ","width-small":"Container-module_width-small__xgrY7","width-medium":"Container-module_width-medium__-st6E","width-large":"Container-module_width-large__F5b-N","width-extra-large":"Container-module_width-extra-large__aI-u5","width-quarter":"Container-module_width-quarter__WDFs7","width-one-third":"Container-module_width-one-third__oaNlD","width-haf":"Container-module_width-haf__F5eEy","width-three-quarters":"Container-module_width-three-quarters__mtvAf","width-full":"Container-module_width-full__dU4Xj","display-block":"Container-module_display-block__6r4yl","display-inline-block":"Container-module_display-inline-block__dmUGh","display-flex":"Container-module_display-flex__nwA-d","align-start":"Container-module_align-start__Klcpf","align-center":"Container-module_align-center__tcGiw","align-end":"Container-module_align-end__a9o4a","justify-space-between":"Container-module_justify-space-between__EekDw","justify-center":"Container-module_justify-center__5SYIV","justify-space-around":"Container-module_justify-space-around__ZVo7H","justify-space-evenly":"Container-module_justify-space-evenly__12F92","margin-top-none":"Container-module_margin-top-none__HGmtH","margin-right-none":"Container-module_margin-right-none__15T1l","margin-bottom-none":"Container-module_margin-bottom-none__nbUHz","margin-left-none":"Container-module_margin-left-none__L1BNA","margin-top-auto":"Container-module_margin-top-auto__Jo5R8","margin-right-auto":"Container-module_margin-right-auto__tPJev","margin-bottom-auto":"Container-module_margin-bottom-auto__ZsRcU","margin-left-auto":"Container-module_margin-left-auto__Jfcxs","margin-top-small":"Container-module_margin-top-small__mq0xf","margin-right-small":"Container-module_margin-right-small__g3-1N","margin-bottom-small":"Container-module_margin-bottom-small__EF1Ia","margin-left-small":"Container-module_margin-left-small__ayljX","margin-top-medium":"Container-module_margin-top-medium__woXAO","margin-right-medium":"Container-module_margin-right-medium__wWwJC","margin-bottom-medium":"Container-module_margin-bottom-medium__gfPfm","margin-left-medium":"Container-module_margin-left-medium__pjJVP","margin-top-large":"Container-module_margin-top-large__jsN1Y","margin-right-large":"Container-module_margin-right-large__5fYQn","margin-bottom-large":"Container-module_margin-bottom-large__zaEur","margin-left-large":"Container-module_margin-left-large__Jr65D","margin-top-extra-large":"Container-module_margin-top-extra-large__fH4zH","margin-right-extra-large":"Container-module_margin-right-extra-large__s-HKF","margin-bottom-extra-large":"Container-module_margin-bottom-extra-large__f5Uya","margin-left-extra-large":"Container-module_margin-left-extra-large__V533Z","padding-top-none":"Container-module_padding-top-none__YDpt0","padding-right-none":"Container-module_padding-right-none__mffie","padding-bottom-none":"Container-module_padding-bottom-none__jR3eA","padding-left-none":"Container-module_padding-left-none__fRf8D","padding-top-small":"Container-module_padding-top-small__ATpHJ","padding-right-small":"Container-module_padding-right-small__8foIr","padding-bottom-small":"Container-module_padding-bottom-small__eH37U","padding-left-small":"Container-module_padding-left-small__vO4L0","padding-top-medium":"Container-module_padding-top-medium__xy6CB","padding-right-medium":"Container-module_padding-right-medium__tNqrp","padding-bottom-medium":"Container-module_padding-bottom-medium__-7qVN","padding-left-medium":"Container-module_padding-left-medium__0khEB","padding-top-large":"Container-module_padding-top-large__2VK5E","padding-right-large":"Container-module_padding-right-large__cXXjD","padding-bottom-large":"Container-module_padding-bottom-large__rMuRR","padding-left-large":"Container-module_padding-left-large__1ApsS","padding-top-extra-large":"Container-module_padding-top-extra-large__DZ6eE","padding-right-extra-large":"Container-module_padding-right-extra-large__lTAI2","padding-bottom-extra-large":"Container-module_padding-bottom-extra-large__ZqK9N","padding-left-extra-large":"Container-module_padding-left-extra-large__bdCtB"};const ue=({children:t,marginTop:n="",marginRight:r="",marginBottom:a="",marginLeft:o="",paddingTop:l="medium",paddingRight:i="medium",paddingBottom:m="medium",paddingLeft:u="medium",display:d="",align:s="",justify:c="",width:g="",showBorder:p=!1,className:_="",onClick:f})=>{const y=d?`display-${d}`:"",b=d?`justify-${c}`:"",h=s?`align-${s}`:"",v=g?`width-${g}`:"",$=p?"border":"",C=n?`margin-top-${n}`:"",x=r?`margin-right-${r}`:"",O=a?`margin-bottom-${a}`:"",E=o?`margin-left-${o}`:"",w=`${C?me[C]:""} ${x?me[x]:""} ${O?me[O]:""} ${E?me[E]:""}`,N=l?`padding-top-${l}`:"",T=i?`padding-right-${i}`:"",j=m?`padding-bottom-${m}`:"",S=u?`padding-left-${u}`:"",A=`${N?me[N]:""} ${T?me[T]:""} ${j?me[j]:""} ${S?me[S]:""}`,k=y?`${me[y]}`:"",M=h?`${me[h]}`:"",B=b?`${me[b]}`:"",R=v?`${me[v]}`:"",D=$?`${me[$]}`:"";return e.createElement("div",{className:`${me["cp-container"]} ${R} ${w} ${A} ${D} ${k} ${M} ${B} ${_}`,onClick:e=>(e=>{"function"==typeof f&&f(e)})(e)},t)};ue.propTypes={display:S.oneOf(["inline-block","block","flex"]),width:S.oneOf(["small","medium","large","extra-large","quarter","half","three-quarters","full"]),showBorder:S.bool,justify:S.oneOf(["space-between","center","space-around","space-evenly"]),align:S.oneOf(["start","center","end"]),marginTop:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","auto","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","auto","small","medium","large","extra-large"]),paddingTop:S.oneOf(["none","small","medium","large","extra-large"]),paddingRight:S.oneOf(["none","small","medium","large","extra-large"]),paddingBottom:S.oneOf(["none","small","medium","large","extra-large"]),paddingLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var de={"dropdown-trigger":"Dropdown-module_dropdown-trigger__Dy532",active:"Dropdown-module_active__pBlCN","dropdown-wrapper":"Dropdown-module_dropdown-wrapper__L38Fh","dropdown-contents":"Dropdown-module_dropdown-contents__KUhXv","align-left":"Dropdown-module_align-left__I5dHd","align-right":"Dropdown-module_align-right__YEgO9"};const se=({trigger:o,content:l,align:i="right"})=>{const[m,u]=t(!1),d=n(null),s=n(null),c=i?`align-${i}`:"",g=c?`${de[c]}`:"";return r((()=>{const e=e=>{s.current&&!s.current.contains(e.target)&&d.current&&!d.current.contains(e.target)&&u(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]),e.createElement("div",{className:de["dropdown-wrapper"]},e.createElement("div",{className:`${de["dropdown-trigger"]} ${m?de.active:""}`,ref:d,onClick:e=>{return t=e,void(m&&d.current&&d.current.contains(t.target)?u(!1):m||u(!0));var t},isActive:m},o),m&&e.createElement("div",{ref:s,className:`${de["dropdown-contents"]} ${g}`},a(l,{onClose:()=>u(!1)})))};se.propTypes={align:S.oneOf(["left","right"])};var ce={"cp-button":"MediaObject-module_cp-button__Qbl3-",small:"MediaObject-module_small__ZbDrr",medium:"MediaObject-module_medium__1xG2s",disabled:"MediaObject-module_disabled__oQGl-",loading:"MediaObject-module_loading__aFU74","cp-button-fluid":"MediaObject-module_cp-button-fluid__-ynEM","cp-button-loader":"MediaObject-module_cp-button-loader__C-OJI","spin-animation":"MediaObject-module_spin-animation__1QWaT",outline:"MediaObject-module_outline__Sh7sg","margin-top-none":"MediaObject-module_margin-top-none__uR-xA","margin-right-none":"MediaObject-module_margin-right-none__rTHY6","margin-bottom-none":"MediaObject-module_margin-bottom-none__fhWp2","margin-left-none":"MediaObject-module_margin-left-none__XzYcv","margin-top-small":"MediaObject-module_margin-top-small__IE-mB","margin-right-small":"MediaObject-module_margin-right-small__bfjMt","margin-bottom-small":"MediaObject-module_margin-bottom-small__AIeyU","margin-left-small":"MediaObject-module_margin-left-small__rRm8l","margin-top-medium":"MediaObject-module_margin-top-medium__wkOGM","margin-right-medium":"MediaObject-module_margin-right-medium__MRgAY","margin-bottom-medium":"MediaObject-module_margin-bottom-medium__5KmIm","margin-left-medium":"MediaObject-module_margin-left-medium__D9kJA","margin-top-large":"MediaObject-module_margin-top-large__xbcpr","margin-right-large":"MediaObject-module_margin-right-large__Fc0bk","margin-bottom-large":"MediaObject-module_margin-bottom-large__TMQZe","margin-left-large":"MediaObject-module_margin-left-large__gItxB","margin-top-extra-large":"MediaObject-module_margin-top-extra-large__HW90R","margin-right-extra-large":"MediaObject-module_margin-right-extra-large__VUNuh","margin-bottom-extra-large":"MediaObject-module_margin-bottom-extra-large__mr6KU","margin-left-extra-large":"MediaObject-module_margin-left-extra-large__Z-eo1"};const ge=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?ce["cp-button-fluid"]:""}`,g=`${ce[`margin-top-${i}`]} ${ce[`margin-right-${m}`]} ${ce[`margin-bottom-${u}`]} ${ce[`margin-left-${d}`]}`;return e.createElement("button",{className:`${ce["cp-button"]} ${c} ${ce[l]} ${ce[o]} ${r?ce.disabled:""} ${n?ce.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(R,{name:"progress_activity",className:ce["cp-button-loader"]}),t)};ge.propTypes={size:S.oneOf(["small","medium"]),variant:S.oneOf(["solid","outline"]),isDisabled:S.bool,isLoading:S.bool,marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};var pe={"cp-avatar":"Avatar-module_cp-avatar__aTAsj","cp-button":"Avatar-module_cp-button__b4d-A",small:"Avatar-module_small__fOHEE",medium:"Avatar-module_medium__hYVQB","margin-top-none":"Avatar-module_margin-top-none__IRyo4","margin-right-none":"Avatar-module_margin-right-none__7zeJk","margin-bottom-none":"Avatar-module_margin-bottom-none__aRYCj","margin-left-none":"Avatar-module_margin-left-none__jSqHX","margin-top-small":"Avatar-module_margin-top-small__Y6PWn","margin-right-small":"Avatar-module_margin-right-small__iyaeo","margin-bottom-small":"Avatar-module_margin-bottom-small__49guD","margin-left-small":"Avatar-module_margin-left-small__CfV5V","margin-top-medium":"Avatar-module_margin-top-medium__Qx6SC","margin-right-medium":"Avatar-module_margin-right-medium__Aqc0S","margin-bottom-medium":"Avatar-module_margin-bottom-medium__ySYhq","margin-left-medium":"Avatar-module_margin-left-medium__O-P6h","margin-top-large":"Avatar-module_margin-top-large__G-H3w","margin-right-large":"Avatar-module_margin-right-large__80-S3","margin-bottom-large":"Avatar-module_margin-bottom-large__ld9EZ","margin-left-large":"Avatar-module_margin-left-large__dfbni","margin-top-extra-large":"Avatar-module_margin-top-extra-large__lo6NF","margin-right-extra-large":"Avatar-module_margin-right-extra-large__OQAWO","margin-bottom-extra-large":"Avatar-module_margin-bottom-extra-large__Op7T9","margin-left-extra-large":"Avatar-module_margin-left-extra-large__tzUZM"};const _e=({size:t="medium",marginTop:n="none",marginRight:r="none",marginBottom:a="none",marginLeft:o="none",onClick:l,name:i=""})=>{const m=((e="")=>(e?.[0]||"").toUpperCase())(i),u=`${pe[`margin-top-${n}`]} ${pe[`margin-right-${r}`]} ${pe[`margin-bottom-${a}`]} ${pe[`margin-left-${o}`]}`;return e.createElement("div",{className:`${pe["cp-avatar"]} ${pe[t]} ${u}`,onClick:e=>(e=>{isDisabled||isLoading?e.preventDefault():"function"==typeof l&&l(e)})(e),title:i},m||e.createElement(R,{name:"person"}))};_e.propTypes={name:S.string,size:S.oneOf(["small","medium"]),marginTop:S.oneOf(["none","small","medium","large","extra-large"]),marginRight:S.oneOf(["none","small","medium","large","extra-large"]),marginBottom:S.oneOf(["none","small","medium","large","extra-large"]),marginLeft:S.oneOf(["none","small","medium","large","extra-large"]),onClick:S.func};export{F as Alert,M as AppShell,_e as Avatar,V as Badge,ie as Button,ue as Container,se as Dropdown,oe as FormControls,R as Icon,ge as MediaObject,I as Modal,k as Typography};
package/dist/index.js CHANGED
@@ -11,4 +11,4 @@
11
11
  object-assign
12
12
  (c) Sindre Sorhus
13
13
  @license MIT
14
- */function C(){if(p)return g;p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return g=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,l,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),m=1;m<arguments.length;m++){for(var u in o=Object(arguments[m]))t.call(o,u)&&(i[u]=o[u]);if(e){l=e(o);for(var d=0;d<l.length;d++)n.call(o,l[d])&&(i[l[d]]=o[l[d]])}}return i},g}function O(){return f?_:(f=1,_=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var E=x();l.exports=function(){if(v)return h;v=1;var e=x(),t=C(),n=i(),r=O(),a=function(){if(b)return y;b=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=i(),n={},r=O();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,o,l,i,m){if("production"!==process.env.NODE_ENV)for(var u in a)if(r(a,u)){var d;try{if("function"!=typeof a[u]){var s=Error((i||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}d=a[u](o,u,i,l,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((i||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var c=m?m():"";e("Failed "+l+" type: "+d.message+(null!=c?c:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},y=a}(),o=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),h=function(i,m){var u="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",s="<<anonymous>>",c={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:_(l),arrayOf:function(e){return _((function(t,r,a,o,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new p("Invalid "+o+" `"+l+"` of type `"+h(i)+"` supplied to `"+a+"`, expected an array.");for(var m=0;m<i.length;m++){var u=e(i,m,a,o,l+"["+m+"]",n);if(u instanceof Error)return u}return null}))},element:_((function(e,t,n,r,a){var o=e[t];return i(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+h(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:_((function(t,n,r,a,o){var l=t[n];return e.isValidElementType(l)?null:new p("Invalid "+a+" `"+o+"` of type `"+h(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return _((function(t,n,r,a,o){if(!(t[n]instanceof e)){var l=e.name||s;return new p("Invalid "+a+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:s)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var i;return null}))},node:_((function(e,t,n,r,a){return b(e[t])?null:new p("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return _((function(t,a,o,l,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var m=t[a],u=h(m);if("object"!==u)return new p("Invalid "+l+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var d in m)if(r(m,d)){var s=e(m,d,o,l,i+"."+d,n);if(s instanceof Error)return s}return null}))},oneOf:function(e){return Array.isArray(e)?_((function(t,n,r,a,o){for(var l=t[n],i=0;i<e.length;i++)if(g(l,e[i]))return null;var m=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+a+" `"+o+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+m+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(a)+" at index "+t+"."),l}return _((function(t,a,o,l,i){for(var m=[],u=0;u<e.length;u++){var d=(0,e[u])(t,a,o,l,i,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&m.push(d.data.expectedType)}return new p("Invalid "+l+" `"+i+"` supplied to `"+o+"`"+(m.length>0?", expected one of type ["+m.join(", ")+"]":"")+".")}))},shape:function(e){return _((function(t,r,a,o,l){var i=t[r],m=h(i);if("object"!==m)return new p("Invalid "+o+" `"+l+"` of type `"+m+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var d=e[u];if("function"!=typeof d)return y(a,o,l,u,v(d));var s=d(i,u,a,o,l+"."+u,n);if(s)return s}return null}))},exact:function(e){return _((function(a,o,l,i,m){var u=a[o],d=h(u);if("object"!==d)return new p("Invalid "+i+" `"+m+"` of type `"+d+"` supplied to `"+l+"`, expected `object`.");var s=t({},a[o],e);for(var c in s){var g=e[c];if(r(e,c)&&"function"!=typeof g)return y(l,i,m,c,v(g));if(!g)return new p("Invalid "+i+" `"+m+"` key `"+c+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var _=g(u,c,l,i,m+"."+c,n);if(_)return _}return null}))}};function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function _(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,l,i,u,d,c,g){if(u=u||s,c=c||i,g!==n){if(m){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=u+":"+i;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==l[i]?a?null===l[i]?new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,i,u,d,c)}var l=a.bind(null,!1);return l.isRequired=a.bind(null,!0),l}function f(e){return _((function(t,n,r,a,o,l){var i=t[n];return h(i)!==e?new p("Invalid "+a+" `"+o+"` of type `"+v(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,a){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},h}()(E.isElement,!0)}else l.exports=function(){if(o)return a;o=1;var e=i();function t(){}function n(){}return n.resetWarningCache=t,a=function(){function r(t,n,r,a,o,l){if(l!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var w=t(l.exports),N={"cp-typography":"Typography-module_cp-typography__8bhKb",h1:"Typography-module_h1__HgP-t",h2:"Typography-module_h2__2ktYB",h3:"Typography-module_h3__sjyRX",h4:"Typography-module_h4__KLr0r",h5:"Typography-module_h5__vdQ3X",h6:"Typography-module_h6__yqRrD",p:"Typography-module_p__OKx7S",black:"Typography-module_black__xMmAt",white:"Typography-module_white__tsPaS",gray:"Typography-module_gray__Ddjga",blue:"Typography-module_blue__cubuC","margin-top-none":"Typography-module_margin-top-none__L-V8v","margin-right-none":"Typography-module_margin-right-none__Qex-O","margin-bottom-none":"Typography-module_margin-bottom-none__COJ3a","margin-left-none":"Typography-module_margin-left-none__IaP5b","margin-top-small":"Typography-module_margin-top-small__MoP1g","margin-right-small":"Typography-module_margin-right-small__PY7b-","margin-bottom-small":"Typography-module_margin-bottom-small__v08uR","margin-left-small":"Typography-module_margin-left-small__8SB-4","margin-top-medium":"Typography-module_margin-top-medium__63jl5","margin-right-medium":"Typography-module_margin-right-medium__Sczte","margin-bottom-medium":"Typography-module_margin-bottom-medium__Appjr","margin-left-medium":"Typography-module_margin-left-medium__afWbU","margin-top-large":"Typography-module_margin-top-large__OomRC","margin-right-large":"Typography-module_margin-right-large__X5QX3","margin-bottom-large":"Typography-module_margin-bottom-large__tNkt4","margin-left-large":"Typography-module_margin-left-large__tHi1u","margin-top-extra-large":"Typography-module_margin-top-extra-large__kw9qo","margin-right-extra-large":"Typography-module_margin-right-extra-large__jWk0c","margin-bottom-extra-large":"Typography-module_margin-bottom-extra-large__8Jxjp","margin-left-extra-large":"Typography-module_margin-left-extra-large__LHFOS"};const T=({children:t,variant:n,marginTop:r="none",marginRight:a="none",marginBottom:o="none",marginLeft:l="none"})=>{const i=`${N[`margin-top-${r}`]} ${N[`margin-right-${a}`]} ${N[`margin-bottom-${o}`]} ${N[`margin-left-${l}`]}`;switch(n){case"h1":return e.createElement("h1",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h2":return e.createElement("h2",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h3":return e.createElement("h3",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h4":return e.createElement("h4",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h5":return e.createElement("h5",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h6":return e.createElement("h6",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);default:return e.createElement("p",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t)}};T.propTypes={variant:w.oneOf(["h1","h2","h3","h4","h5","h6","p"]),marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"])};var j={"cp-icon":"Icon-module_cp-icon__onsmO",small:"Icon-module_small__9C3K-",medium:"Icon-module_medium__0kcM-",large:"Icon-module_large__LvTw7",black:"Icon-module_black__zBBu5",white:"Icon-module_white__3rwyA",gray:"Icon-module_gray__CLINZ",blue:"Icon-module_blue__-tUmv"};const S=({name:t="",size:n="medium",className:r="",color:a="black"})=>e.createElement("span",{className:`${j["cp-icon"]} ${j[n]} ${j[a]} ${r}`},t);S.propTypes={name:w.string,size:w.oneOf(["small","medium","large"]),color:w.oneOf(["black","white","gray","blue"])};var A={"cp-button":"Alert-module_cp-button__5-DCd",small:"Alert-module_small__HjcnA",medium:"Alert-module_medium__CIKUL",disabled:"Alert-module_disabled__NWgLG",loading:"Alert-module_loading__HVAl0","cp-button-loader":"Alert-module_cp-button-loader__bskOJ","spin-animation":"Alert-module_spin-animation__S-7gY",outline:"Alert-module_outline__D6cS9"};const k=({children:t,isLoading:n=!1,isDisabled:r=!1,size:a="medium",variant:o="solid",onClick:l})=>e.createElement("button",{className:`${A["cp-button"]} ${A[o]} ${A[a]} ${r?A.disabled:""} ${n?A.loading:""}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof l&&l(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:A["cp-button-loader"]}),t);k.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"])};var M={"cp-badge":"Badge-module_cp-badge__Mwtty",info:"Badge-module_info__XJFfU",success:"Badge-module_success__SuM7z",error:"Badge-module_error__NKD32",default:"Badge-module_default__2-bvp",warning:"Badge-module_warning__noVf8"};const B=({label:t,variant:n="default"})=>e.createElement("p",{className:`${M["cp-badge"]} ${M[n]}`},t);B.propTypes={label:w.string,size:w.oneOf(["small","medium","large"]),variant:w.oneOf(["default","info","warning","error","success"])};var R="FormControls-module_cp-form-field__rvJuX",D="FormControls-module_cp-form-field-fluid__4OlPJ",F="FormControls-module_cp-form-label__ipGaH",I="FormControls-module_cp-form-control__KFQ-6",P="FormControls-module_cp-form-control-error__FG8To",V="FormControls-module_cp-form-error-message__7h2ZR",L="FormControls-module_cp-textarea-field__-u6Jy",q="FormControls-module_cp-select-field__A22qi",U="FormControls-module_cp-select-field-header__x-V6H",z="FormControls-module_cp-select-field-header-open__-yeCb",H="FormControls-module_cp-select-field-options__TCRwC",J="FormControls-module_cp-select-field-options-top__MUGf4",Y="FormControls-module_cp-select-field-options-bottom__PKVjk",W="FormControls-module_cp-select-field-option__16WXY",X="FormControls-module_cp-radio-field__AXBRh",K="FormControls-module_cp-checkbox-field__61TMZ",G="FormControls-module_cp-file-field__M3U8J",Z="FormControls-module_cp-date-field__9sVJa";var Q={Input:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${R} ${`${u?D:""}`} ${s}`,_=`${I} ${g?`${P}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:V},g))},TextArea:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,className:d="",placeholder:s="",error:c=""})=>{const g=`${R} ${d} ${`${u?D:""}`}`,p=`${I} ${L} ${c?`${P}`:""}`;return e.createElement("div",{className:g},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("textarea",{className:p,disabled:i,name:t,id:n,defaultValue:a,placeholder:s,value:o,onChange:e=>{r&&r(e)}}),c&&e.createElement("p",{className:V},c))},File:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${G} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"file",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Select:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,className:m="",options:u=[],isRequired:d=!1,placeholder:s="Select an option",error:c="",isFluid:g=!1})=>{const p=`${R} ${`${g?D:""}`} ${m}`,[_,f]=e.useState(!1),[y,b]=e.useState(""),[h,v]=e.useState(!1),$=e.useRef(null),x=h?`${J}`:`${Y}`,C=`${U} ${_?`${z}`:""}`;return e.useEffect((()=>{const e=e=>{$.current&&!$.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.useEffect((()=>{if($.current){const e=$.current.getBoundingClientRect(),t=window.innerHeight;v(e.bottom>t)}}),[_]),e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",d&&e.createElement("span",null,"*")),e.createElement("div",{className:q,ref:$},e.createElement("div",{className:C,onClick:()=>f(!_)},e.createElement("span",null,y.label||s),e.createElement(S,{name:_?"arrow_drop_up":"arrow_drop_down",className:"arrow "+(_?"up":"down")})),_&&e.createElement("div",{className:`${H} ${x}`},u.map((t=>e.createElement("div",{key:t.value,className:W,onClick:e=>{return a=t,(n=e).stopPropagation(),n.preventDefault(),b(a),"function"==typeof r&&r(a),void f(!1);var n,a}},t.label))))),c&&e.createElement("p",{className:V},c))},Checkbox:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${K} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"checkbox",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Radio:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${X} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Date:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",error:d="",isFluid:s=!1})=>{const c=`${R} ${Z} ${`${s?D:""}`} ${u}`,g=`${I} ${d?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"date",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),d&&e.createElement("p",{className:V},d))},Stepper:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${R} ${`${u?D:""}`} ${s}`,_=`${I} ${g?`${P}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:V},g))},Toggle:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${X} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))}},ee={"cp-button":"Button-module_cp-button__t348U",small:"Button-module_small__FaxG-",medium:"Button-module_medium__gHl4b",disabled:"Button-module_disabled__En-KU",loading:"Button-module_loading__cFq1s","cp-button-fluid":"Button-module_cp-button-fluid__lZE3X","cp-button-loader":"Button-module_cp-button-loader__Ee1ij","spin-animation":"Button-module_spin-animation__lrjqF",outline:"Button-module_outline__LI97x","margin-top-none":"Button-module_margin-top-none__ewGaQ","margin-right-none":"Button-module_margin-right-none__IHyDO","margin-bottom-none":"Button-module_margin-bottom-none__dOXyc","margin-left-none":"Button-module_margin-left-none__pUXvL","margin-top-small":"Button-module_margin-top-small__L8P-C","margin-right-small":"Button-module_margin-right-small__YD-WQ","margin-bottom-small":"Button-module_margin-bottom-small__x-LU-","margin-left-small":"Button-module_margin-left-small__hNoYe","margin-top-medium":"Button-module_margin-top-medium__dSL81","margin-right-medium":"Button-module_margin-right-medium__iZ51M","margin-bottom-medium":"Button-module_margin-bottom-medium__CO6U-","margin-left-medium":"Button-module_margin-left-medium__UjKev","margin-top-large":"Button-module_margin-top-large__LL-1y","margin-right-large":"Button-module_margin-right-large__A3q6T","margin-bottom-large":"Button-module_margin-bottom-large__5RADE","margin-left-large":"Button-module_margin-left-large__-GUfw","margin-top-extra-large":"Button-module_margin-top-extra-large__u-vJv","margin-right-extra-large":"Button-module_margin-right-extra-large__RrMvU","margin-bottom-extra-large":"Button-module_margin-bottom-extra-large__LuMGx","margin-left-extra-large":"Button-module_margin-left-extra-large__FA-jf"};const te=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?ee["cp-button-fluid"]:""}`,g=`${ee[`margin-top-${i}`]} ${ee[`margin-right-${m}`]} ${ee[`margin-bottom-${u}`]} ${ee[`margin-left-${d}`]}`;return e.createElement("button",{className:`${ee["cp-button"]} ${c} ${ee[l]} ${ee[o]} ${r?ee.disabled:""} ${n?ee.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:ee["cp-button-loader"]}),t)};te.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"]),isDisabled:w.bool,isLoading:w.bool,marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var ne={"cp-container":"Container-module_cp-container__WrTi0",border:"Container-module_border__xE-bJ","width-small":"Container-module_width-small__xgrY7","width-medium":"Container-module_width-medium__-st6E","width-large":"Container-module_width-large__F5b-N","width-extra-large":"Container-module_width-extra-large__aI-u5","width-quarter":"Container-module_width-quarter__WDFs7","width-one-third":"Container-module_width-one-third__oaNlD","width-haf":"Container-module_width-haf__F5eEy","width-three-quarters":"Container-module_width-three-quarters__mtvAf","width-full":"Container-module_width-full__dU4Xj","display-block":"Container-module_display-block__6r4yl","display-inline-block":"Container-module_display-inline-block__dmUGh","display-flex":"Container-module_display-flex__nwA-d","align-start":"Container-module_align-start__Klcpf","align-center":"Container-module_align-center__tcGiw","align-end":"Container-module_align-end__a9o4a","justify-space-between":"Container-module_justify-space-between__EekDw","justify-center":"Container-module_justify-center__5SYIV","justify-space-around":"Container-module_justify-space-around__ZVo7H","justify-space-evenly":"Container-module_justify-space-evenly__12F92","margin-top-none":"Container-module_margin-top-none__HGmtH","margin-right-none":"Container-module_margin-right-none__15T1l","margin-bottom-none":"Container-module_margin-bottom-none__nbUHz","margin-left-none":"Container-module_margin-left-none__L1BNA","margin-top-auto":"Container-module_margin-top-auto__Jo5R8","margin-right-auto":"Container-module_margin-right-auto__tPJev","margin-bottom-auto":"Container-module_margin-bottom-auto__ZsRcU","margin-left-auto":"Container-module_margin-left-auto__Jfcxs","margin-top-small":"Container-module_margin-top-small__mq0xf","margin-right-small":"Container-module_margin-right-small__g3-1N","margin-bottom-small":"Container-module_margin-bottom-small__EF1Ia","margin-left-small":"Container-module_margin-left-small__ayljX","margin-top-medium":"Container-module_margin-top-medium__woXAO","margin-right-medium":"Container-module_margin-right-medium__wWwJC","margin-bottom-medium":"Container-module_margin-bottom-medium__gfPfm","margin-left-medium":"Container-module_margin-left-medium__pjJVP","margin-top-large":"Container-module_margin-top-large__jsN1Y","margin-right-large":"Container-module_margin-right-large__5fYQn","margin-bottom-large":"Container-module_margin-bottom-large__zaEur","margin-left-large":"Container-module_margin-left-large__Jr65D","margin-top-extra-large":"Container-module_margin-top-extra-large__fH4zH","margin-right-extra-large":"Container-module_margin-right-extra-large__s-HKF","margin-bottom-extra-large":"Container-module_margin-bottom-extra-large__f5Uya","margin-left-extra-large":"Container-module_margin-left-extra-large__V533Z","padding-top-none":"Container-module_padding-top-none__YDpt0","padding-right-none":"Container-module_padding-right-none__mffie","padding-bottom-none":"Container-module_padding-bottom-none__jR3eA","padding-left-none":"Container-module_padding-left-none__fRf8D","padding-top-small":"Container-module_padding-top-small__ATpHJ","padding-right-small":"Container-module_padding-right-small__8foIr","padding-bottom-small":"Container-module_padding-bottom-small__eH37U","padding-left-small":"Container-module_padding-left-small__vO4L0","padding-top-medium":"Container-module_padding-top-medium__xy6CB","padding-right-medium":"Container-module_padding-right-medium__tNqrp","padding-bottom-medium":"Container-module_padding-bottom-medium__-7qVN","padding-left-medium":"Container-module_padding-left-medium__0khEB","padding-top-large":"Container-module_padding-top-large__2VK5E","padding-right-large":"Container-module_padding-right-large__cXXjD","padding-bottom-large":"Container-module_padding-bottom-large__rMuRR","padding-left-large":"Container-module_padding-left-large__1ApsS","padding-top-extra-large":"Container-module_padding-top-extra-large__DZ6eE","padding-right-extra-large":"Container-module_padding-right-extra-large__lTAI2","padding-bottom-extra-large":"Container-module_padding-bottom-extra-large__ZqK9N","padding-left-extra-large":"Container-module_padding-left-extra-large__bdCtB"};const re=({children:t,marginTop:n="",marginRight:r="",marginBottom:a="",marginLeft:o="",paddingTop:l="medium",paddingRight:i="medium",paddingBottom:m="medium",paddingLeft:u="medium",display:d="",align:s="",justify:c="",width:g="",showBorder:p=!1,className:_="",onClick:f})=>{const y=d?`display-${d}`:"",b=d?`justify-${c}`:"",h=s?`align-${s}`:"",v=g?`width-${g}`:"",$=p?"border":"",x=n?`margin-top-${n}`:"",C=r?`margin-right-${r}`:"",O=a?`margin-bottom-${a}`:"",E=o?`margin-left-${o}`:"",w=`${x?ne[x]:""} ${C?ne[C]:""} ${O?ne[O]:""} ${E?ne[E]:""}`,N=l?`padding-top-${l}`:"",T=i?`padding-right-${i}`:"",j=m?`padding-bottom-${m}`:"",S=u?`padding-left-${u}`:"",A=`${N?ne[N]:""} ${T?ne[T]:""} ${j?ne[j]:""} ${S?ne[S]:""}`,k=y?`${ne[y]}`:"",M=h?`${ne[h]}`:"",B=b?`${ne[b]}`:"",R=v?`${ne[v]}`:"",D=$?`${ne[$]}`:"";return e.createElement("div",{className:`${ne["cp-container"]} ${R} ${w} ${A} ${D} ${k} ${M} ${B} ${_}`,onClick:e=>(e=>{"function"==typeof f&&f(e)})(e)},t)};re.propTypes={display:w.oneOf(["inline-block","block","flex"]),width:w.oneOf(["small","medium","large","extra-large","quarter","half","three-quarters","full"]),showBorder:w.bool,justify:w.oneOf(["space-between","center","space-around","space-evenly"]),align:w.oneOf(["start","center","end"]),marginTop:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","auto","small","medium","large","extra-large"]),paddingTop:w.oneOf(["none","small","medium","large","extra-large"]),paddingRight:w.oneOf(["none","small","medium","large","extra-large"]),paddingBottom:w.oneOf(["none","small","medium","large","extra-large"]),paddingLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var ae={"dropdown-trigger":"Dropdown-module_dropdown-trigger__Dy532",active:"Dropdown-module_active__pBlCN","dropdown-wrapper":"Dropdown-module_dropdown-wrapper__L38Fh","dropdown-contents":"Dropdown-module_dropdown-contents__KUhXv","align-left":"Dropdown-module_align-left__I5dHd","align-right":"Dropdown-module_align-right__YEgO9"};const oe=({trigger:t,content:n,align:r="right"})=>{const[a,o]=e.useState(!1),l=e.useRef(null),i=e.useRef(null),m=r?`align-${r}`:"",u=m?`${ae[m]}`:"";return e.useEffect((()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&l.current&&!l.current.contains(e.target)&&o(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]),e.createElement("div",{className:ae["dropdown-wrapper"]},e.createElement("div",{className:`${ae["dropdown-trigger"]} ${a?ae.active:""}`,ref:l,onClick:e=>{return t=e,void(a&&l.current&&l.current.contains(t.target)?o(!1):a||o(!0));var t},isActive:a},t),a&&e.createElement("div",{ref:i,className:`${ae["dropdown-contents"]} ${u}`},e.cloneElement(n,{onClose:()=>o(!1)})))};oe.propTypes={align:w.oneOf(["left","right"])};var le={"cp-button":"MediaObject-module_cp-button__Qbl3-",small:"MediaObject-module_small__ZbDrr",medium:"MediaObject-module_medium__1xG2s",disabled:"MediaObject-module_disabled__oQGl-",loading:"MediaObject-module_loading__aFU74","cp-button-fluid":"MediaObject-module_cp-button-fluid__-ynEM","cp-button-loader":"MediaObject-module_cp-button-loader__C-OJI","spin-animation":"MediaObject-module_spin-animation__1QWaT",outline:"MediaObject-module_outline__Sh7sg","margin-top-none":"MediaObject-module_margin-top-none__uR-xA","margin-right-none":"MediaObject-module_margin-right-none__rTHY6","margin-bottom-none":"MediaObject-module_margin-bottom-none__fhWp2","margin-left-none":"MediaObject-module_margin-left-none__XzYcv","margin-top-small":"MediaObject-module_margin-top-small__IE-mB","margin-right-small":"MediaObject-module_margin-right-small__bfjMt","margin-bottom-small":"MediaObject-module_margin-bottom-small__AIeyU","margin-left-small":"MediaObject-module_margin-left-small__rRm8l","margin-top-medium":"MediaObject-module_margin-top-medium__wkOGM","margin-right-medium":"MediaObject-module_margin-right-medium__MRgAY","margin-bottom-medium":"MediaObject-module_margin-bottom-medium__5KmIm","margin-left-medium":"MediaObject-module_margin-left-medium__D9kJA","margin-top-large":"MediaObject-module_margin-top-large__xbcpr","margin-right-large":"MediaObject-module_margin-right-large__Fc0bk","margin-bottom-large":"MediaObject-module_margin-bottom-large__TMQZe","margin-left-large":"MediaObject-module_margin-left-large__gItxB","margin-top-extra-large":"MediaObject-module_margin-top-extra-large__HW90R","margin-right-extra-large":"MediaObject-module_margin-right-extra-large__VUNuh","margin-bottom-extra-large":"MediaObject-module_margin-bottom-extra-large__mr6KU","margin-left-extra-large":"MediaObject-module_margin-left-extra-large__Z-eo1"};const ie=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?le["cp-button-fluid"]:""}`,g=`${le[`margin-top-${i}`]} ${le[`margin-right-${m}`]} ${le[`margin-bottom-${u}`]} ${le[`margin-left-${d}`]}`;return e.createElement("button",{className:`${le["cp-button"]} ${c} ${le[l]} ${le[o]} ${r?le.disabled:""} ${n?le.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:le["cp-button-loader"]}),t)};ie.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"]),isDisabled:w.bool,isLoading:w.bool,marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var me={"cp-avatar":"Avatar-module_cp-avatar__aTAsj","cp-button":"Avatar-module_cp-button__b4d-A",small:"Avatar-module_small__fOHEE",medium:"Avatar-module_medium__hYVQB","margin-top-none":"Avatar-module_margin-top-none__IRyo4","margin-right-none":"Avatar-module_margin-right-none__7zeJk","margin-bottom-none":"Avatar-module_margin-bottom-none__aRYCj","margin-left-none":"Avatar-module_margin-left-none__jSqHX","margin-top-small":"Avatar-module_margin-top-small__Y6PWn","margin-right-small":"Avatar-module_margin-right-small__iyaeo","margin-bottom-small":"Avatar-module_margin-bottom-small__49guD","margin-left-small":"Avatar-module_margin-left-small__CfV5V","margin-top-medium":"Avatar-module_margin-top-medium__Qx6SC","margin-right-medium":"Avatar-module_margin-right-medium__Aqc0S","margin-bottom-medium":"Avatar-module_margin-bottom-medium__ySYhq","margin-left-medium":"Avatar-module_margin-left-medium__O-P6h","margin-top-large":"Avatar-module_margin-top-large__G-H3w","margin-right-large":"Avatar-module_margin-right-large__80-S3","margin-bottom-large":"Avatar-module_margin-bottom-large__ld9EZ","margin-left-large":"Avatar-module_margin-left-large__dfbni","margin-top-extra-large":"Avatar-module_margin-top-extra-large__lo6NF","margin-right-extra-large":"Avatar-module_margin-right-extra-large__OQAWO","margin-bottom-extra-large":"Avatar-module_margin-bottom-extra-large__Op7T9","margin-left-extra-large":"Avatar-module_margin-left-extra-large__tzUZM"};const ue=({size:t="medium",marginTop:n="none",marginRight:r="none",marginBottom:a="none",marginLeft:o="none",onClick:l,name:i=""})=>{const m=((e="")=>{const[t,n]=e.split(" ");let r="";return r=n?t||n?`${t?.[0]||""}${n?.[0]||""}`:"":t?.[0]||"",r.toUpperCase()})(i),u=`${me[`margin-top-${n}`]} ${me[`margin-right-${r}`]} ${me[`margin-bottom-${a}`]} ${me[`margin-left-${o}`]}`;return e.createElement("div",{className:`${me["cp-avatar"]} ${me[t]} ${u}`,onClick:e=>(e=>{isDisabled||isLoading?e.preventDefault():"function"==typeof l&&l(e)})(e),title:i},m||e.createElement(S,{name:"person"}))};ue.propTypes={name:w.string,size:w.oneOf(["small","medium"]),marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func},exports.Alert=k,exports.AppShell=({children:e})=>React.createElement("div",{className:"cp-app-shell"},e),exports.Avatar=ue,exports.Badge=B,exports.Button=te,exports.Container=re,exports.Dropdown=oe,exports.FormControls=Q,exports.Icon=S,exports.MediaObject=ie,exports.Modal=({children:t})=>e.createElement("p",{className:"cp-modal"},t),exports.Typography=T;
14
+ */function C(){if(p)return g;p=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;return g=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(r,a){for(var o,l,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(r),m=1;m<arguments.length;m++){for(var u in o=Object(arguments[m]))t.call(o,u)&&(i[u]=o[u]);if(e){l=e(o);for(var d=0;d<l.length;d++)n.call(o,l[d])&&(i[l[d]]=o[l[d]])}}return i},g}function O(){return f?_:(f=1,_=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var E=x();l.exports=function(){if(v)return h;v=1;var e=x(),t=C(),n=i(),r=O(),a=function(){if(b)return y;b=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=i(),n={},r=O();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function a(a,o,l,i,m){if("production"!==process.env.NODE_ENV)for(var u in a)if(r(a,u)){var d;try{if("function"!=typeof a[u]){var s=Error((i||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw s.name="Invariant Violation",s}d=a[u](o,u,i,l,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((i||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var c=m?m():"";e("Failed "+l+" type: "+d.message+(null!=c?c:""))}}}return a.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(n={})},y=a}(),o=function(){};function l(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),h=function(i,m){var u="function"==typeof Symbol&&Symbol.iterator,d="@@iterator",s="<<anonymous>>",c={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:_(l),arrayOf:function(e){return _((function(t,r,a,o,l){if("function"!=typeof e)return new p("Property `"+l+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var i=t[r];if(!Array.isArray(i))return new p("Invalid "+o+" `"+l+"` of type `"+h(i)+"` supplied to `"+a+"`, expected an array.");for(var m=0;m<i.length;m++){var u=e(i,m,a,o,l+"["+m+"]",n);if(u instanceof Error)return u}return null}))},element:_((function(e,t,n,r,a){var o=e[t];return i(o)?null:new p("Invalid "+r+" `"+a+"` of type `"+h(o)+"` supplied to `"+n+"`, expected a single ReactElement.")})),elementType:_((function(t,n,r,a,o){var l=t[n];return e.isValidElementType(l)?null:new p("Invalid "+a+" `"+o+"` of type `"+h(l)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return _((function(t,n,r,a,o){if(!(t[n]instanceof e)){var l=e.name||s;return new p("Invalid "+a+" `"+o+"` of type `"+((i=t[n]).constructor&&i.constructor.name?i.constructor.name:s)+"` supplied to `"+r+"`, expected instance of `"+l+"`.")}var i;return null}))},node:_((function(e,t,n,r,a){return b(e[t])?null:new p("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return _((function(t,a,o,l,i){if("function"!=typeof e)return new p("Property `"+i+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var m=t[a],u=h(m);if("object"!==u)return new p("Invalid "+l+" `"+i+"` of type `"+u+"` supplied to `"+o+"`, expected an object.");for(var d in m)if(r(m,d)){var s=e(m,d,o,l,i+"."+d,n);if(s instanceof Error)return s}return null}))},oneOf:function(e){return Array.isArray(e)?_((function(t,n,r,a,o){for(var l=t[n],i=0;i<e.length;i++)if(g(l,e[i]))return null;var m=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new p("Invalid "+a+" `"+o+"` of value `"+String(l)+"` supplied to `"+r+"`, expected one of "+m+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),l)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var t=0;t<e.length;t++){var a=e[t];if("function"!=typeof a)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+$(a)+" at index "+t+"."),l}return _((function(t,a,o,l,i){for(var m=[],u=0;u<e.length;u++){var d=(0,e[u])(t,a,o,l,i,n);if(null==d)return null;d.data&&r(d.data,"expectedType")&&m.push(d.data.expectedType)}return new p("Invalid "+l+" `"+i+"` supplied to `"+o+"`"+(m.length>0?", expected one of type ["+m.join(", ")+"]":"")+".")}))},shape:function(e){return _((function(t,r,a,o,l){var i=t[r],m=h(i);if("object"!==m)return new p("Invalid "+o+" `"+l+"` of type `"+m+"` supplied to `"+a+"`, expected `object`.");for(var u in e){var d=e[u];if("function"!=typeof d)return y(a,o,l,u,v(d));var s=d(i,u,a,o,l+"."+u,n);if(s)return s}return null}))},exact:function(e){return _((function(a,o,l,i,m){var u=a[o],d=h(u);if("object"!==d)return new p("Invalid "+i+" `"+m+"` of type `"+d+"` supplied to `"+l+"`, expected `object`.");var s=t({},a[o],e);for(var c in s){var g=e[c];if(r(e,c)&&"function"!=typeof g)return y(l,i,m,c,v(g));if(!g)return new p("Invalid "+i+" `"+m+"` key `"+c+"` supplied to `"+l+"`.\nBad object: "+JSON.stringify(a[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var _=g(u,c,l,i,m+"."+c,n);if(_)return _}return null}))}};function g(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function _(e){if("production"!==process.env.NODE_ENV)var t={},r=0;function a(a,l,i,u,d,c,g){if(u=u||s,c=c||i,g!==n){if(m){var _=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw _.name="Invariant Violation",_}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=u+":"+i;!t[f]&&r<3&&(o("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+u+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,r++)}}return null==l[i]?a?null===l[i]?new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `null`."):new p("The "+d+" `"+c+"` is marked as required in `"+u+"`, but its value is `undefined`."):null:e(l,i,u,d,c)}var l=a.bind(null,!1);return l.isRequired=a.bind(null,!0),l}function f(e){return _((function(t,n,r,a,o,l){var i=t[n];return h(i)!==e?new p("Invalid "+a+" `"+o+"` of type `"+v(i)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,n,r,a){return new p((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function b(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(b);if(null===e||i(e))return!0;var t=function(e){var t=e&&(u&&e[u]||e[d]);if("function"==typeof t)return t}(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!b(n.value))return!1}else for(;!(n=r.next()).done;){var a=n.value;if(a&&!b(a[1]))return!1}return!0;default:return!1}}function h(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if(null==e)return""+e;var t=h(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function $(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return p.prototype=Error.prototype,c.checkPropTypes=a,c.resetWarningCache=a.resetWarningCache,c.PropTypes=c,c},h}()(E.isElement,!0)}else l.exports=function(){if(o)return a;o=1;var e=i();function t(){}function n(){}return n.resetWarningCache=t,a=function(){function r(t,n,r,a,o,l){if(l!==e){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function a(){return r}r.isRequired=r;var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o}}()();var w=t(l.exports),N={"cp-typography":"Typography-module_cp-typography__8bhKb",h1:"Typography-module_h1__HgP-t",h2:"Typography-module_h2__2ktYB",h3:"Typography-module_h3__sjyRX",h4:"Typography-module_h4__KLr0r",h5:"Typography-module_h5__vdQ3X",h6:"Typography-module_h6__yqRrD",p:"Typography-module_p__OKx7S",black:"Typography-module_black__xMmAt",white:"Typography-module_white__tsPaS",gray:"Typography-module_gray__Ddjga",blue:"Typography-module_blue__cubuC","margin-top-none":"Typography-module_margin-top-none__L-V8v","margin-right-none":"Typography-module_margin-right-none__Qex-O","margin-bottom-none":"Typography-module_margin-bottom-none__COJ3a","margin-left-none":"Typography-module_margin-left-none__IaP5b","margin-top-small":"Typography-module_margin-top-small__MoP1g","margin-right-small":"Typography-module_margin-right-small__PY7b-","margin-bottom-small":"Typography-module_margin-bottom-small__v08uR","margin-left-small":"Typography-module_margin-left-small__8SB-4","margin-top-medium":"Typography-module_margin-top-medium__63jl5","margin-right-medium":"Typography-module_margin-right-medium__Sczte","margin-bottom-medium":"Typography-module_margin-bottom-medium__Appjr","margin-left-medium":"Typography-module_margin-left-medium__afWbU","margin-top-large":"Typography-module_margin-top-large__OomRC","margin-right-large":"Typography-module_margin-right-large__X5QX3","margin-bottom-large":"Typography-module_margin-bottom-large__tNkt4","margin-left-large":"Typography-module_margin-left-large__tHi1u","margin-top-extra-large":"Typography-module_margin-top-extra-large__kw9qo","margin-right-extra-large":"Typography-module_margin-right-extra-large__jWk0c","margin-bottom-extra-large":"Typography-module_margin-bottom-extra-large__8Jxjp","margin-left-extra-large":"Typography-module_margin-left-extra-large__LHFOS"};const T=({children:t,variant:n,marginTop:r="none",marginRight:a="none",marginBottom:o="none",marginLeft:l="none"})=>{const i=`${N[`margin-top-${r}`]} ${N[`margin-right-${a}`]} ${N[`margin-bottom-${o}`]} ${N[`margin-left-${l}`]}`;switch(n){case"h1":return e.createElement("h1",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h2":return e.createElement("h2",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h3":return e.createElement("h3",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h4":return e.createElement("h4",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h5":return e.createElement("h5",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);case"h6":return e.createElement("h6",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t);default:return e.createElement("p",{className:`${N["cp-typography"]} ${N[n]} ${i}`},t)}};T.propTypes={variant:w.oneOf(["h1","h2","h3","h4","h5","h6","p"]),marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"])};var j={"cp-icon":"Icon-module_cp-icon__onsmO",small:"Icon-module_small__9C3K-",medium:"Icon-module_medium__0kcM-",large:"Icon-module_large__LvTw7",black:"Icon-module_black__zBBu5",white:"Icon-module_white__3rwyA",gray:"Icon-module_gray__CLINZ",blue:"Icon-module_blue__-tUmv"};const S=({name:t="",size:n="medium",className:r="",color:a="black"})=>e.createElement("span",{className:`${j["cp-icon"]} ${j[n]} ${j[a]} ${r}`},t);S.propTypes={name:w.string,size:w.oneOf(["small","medium","large"]),color:w.oneOf(["black","white","gray","blue"])};var A={"cp-button":"Alert-module_cp-button__5-DCd",small:"Alert-module_small__HjcnA",medium:"Alert-module_medium__CIKUL",disabled:"Alert-module_disabled__NWgLG",loading:"Alert-module_loading__HVAl0","cp-button-loader":"Alert-module_cp-button-loader__bskOJ","spin-animation":"Alert-module_spin-animation__S-7gY",outline:"Alert-module_outline__D6cS9"};const k=({children:t,isLoading:n=!1,isDisabled:r=!1,size:a="medium",variant:o="solid",onClick:l})=>e.createElement("button",{className:`${A["cp-button"]} ${A[o]} ${A[a]} ${r?A.disabled:""} ${n?A.loading:""}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof l&&l(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:A["cp-button-loader"]}),t);k.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"])};var M={"cp-badge":"Badge-module_cp-badge__Mwtty",info:"Badge-module_info__XJFfU",success:"Badge-module_success__SuM7z",error:"Badge-module_error__NKD32",default:"Badge-module_default__2-bvp",warning:"Badge-module_warning__noVf8"};const B=({label:t,variant:n="default"})=>e.createElement("p",{className:`${M["cp-badge"]} ${M[n]}`},t);B.propTypes={label:w.string,size:w.oneOf(["small","medium","large"]),variant:w.oneOf(["default","info","warning","error","success"])};var R="FormControls-module_cp-form-field__rvJuX",D="FormControls-module_cp-form-field-fluid__4OlPJ",F="FormControls-module_cp-form-label__ipGaH",I="FormControls-module_cp-form-control__KFQ-6",P="FormControls-module_cp-form-control-error__FG8To",V="FormControls-module_cp-form-error-message__7h2ZR",L="FormControls-module_cp-textarea-field__-u6Jy",q="FormControls-module_cp-select-field__A22qi",U="FormControls-module_cp-select-field-header__x-V6H",z="FormControls-module_cp-select-field-header-open__-yeCb",H="FormControls-module_cp-select-field-options__TCRwC",J="FormControls-module_cp-select-field-options-top__MUGf4",Y="FormControls-module_cp-select-field-options-bottom__PKVjk",W="FormControls-module_cp-select-field-option__16WXY",X="FormControls-module_cp-radio-field__AXBRh",K="FormControls-module_cp-checkbox-field__61TMZ",G="FormControls-module_cp-file-field__M3U8J",Z="FormControls-module_cp-date-field__9sVJa";var Q={Input:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${R} ${`${u?D:""}`} ${s}`,_=`${I} ${g?`${P}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:V},g))},TextArea:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,className:d="",placeholder:s="",error:c=""})=>{const g=`${R} ${d} ${`${u?D:""}`}`,p=`${I} ${L} ${c?`${P}`:""}`;return e.createElement("div",{className:g},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("textarea",{className:p,disabled:i,name:t,id:n,defaultValue:a,placeholder:s,value:o,onChange:e=>{r&&r(e)}}),c&&e.createElement("p",{className:V},c))},File:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${G} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"file",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Select:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,className:m="",options:u=[],isRequired:d=!1,placeholder:s="Select an option",error:c="",isFluid:g=!1})=>{const p=`${R} ${`${g?D:""}`} ${m}`,[_,f]=e.useState(!1),[y,b]=e.useState(""),[h,v]=e.useState(!1),$=e.useRef(null),x=h?`${J}`:`${Y}`,C=`${U} ${_?`${z}`:""}`;return e.useEffect((()=>{const e=e=>{$.current&&!$.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),e.useEffect((()=>{if($.current){const e=$.current.getBoundingClientRect(),t=window.innerHeight;v(e.bottom>t)}}),[_]),e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",d&&e.createElement("span",null,"*")),e.createElement("div",{className:q,ref:$},e.createElement("div",{className:C,onClick:()=>f(!_)},e.createElement("span",null,y.label||s),e.createElement(S,{name:_?"arrow_drop_up":"arrow_drop_down",className:"arrow "+(_?"up":"down")})),_&&e.createElement("div",{className:`${H} ${x}`},u.map((t=>e.createElement("div",{key:t.value,className:W,onClick:e=>{return a=t,(n=e).stopPropagation(),n.preventDefault(),b(a),"function"==typeof r&&r(a),void f(!1);var n,a}},t.label))))),c&&e.createElement("p",{className:V},c))},Checkbox:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${K} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"checkbox",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Radio:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${X} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))},Date:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",error:d="",isFluid:s=!1})=>{const c=`${R} ${Z} ${`${s?D:""}`} ${u}`,g=`${I} ${d?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"date",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),d&&e.createElement("p",{className:V},d))},Stepper:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,isRequired:m=!1,isFluid:u=!1,type:d="text",className:s="",placeholder:c="",error:g=""})=>{const p=`${R} ${`${u?D:""}`} ${s}`,_=`${I} ${g?`${P}`:""}`;return e.createElement("div",{className:p},l&&e.createElement("label",{className:F},l," ",m&&e.createElement("span",null,"*")),e.createElement("input",{className:_,type:d,disabled:i,name:t,id:n,defaultValue:a,placeholder:c,value:o,onChange:e=>{r&&r(e)}}),g&&e.createElement("p",{className:V},g))},Toggle:({name:t,id:n,onChange:r,defaultValue:a,value:o,label:l="",isDisabled:i=!1,type:m="text",className:u="",isFluid:d=!1,error:s=""})=>{const c=`${R} ${X} ${`${d?D:""}`} ${u}`,g=`${I} ${s?`${P}`:""}`;return e.createElement("div",{className:c},l&&e.createElement("label",{className:F},l),e.createElement("input",{className:g,type:"radio",disabled:i,name:t,id:n,defaultValue:a,value:o,onChange:e=>{r&&r(e)}}),s&&e.createElement("p",{className:V},s))}},ee={"cp-button":"Button-module_cp-button__t348U",small:"Button-module_small__FaxG-",medium:"Button-module_medium__gHl4b",disabled:"Button-module_disabled__En-KU",loading:"Button-module_loading__cFq1s","cp-button-fluid":"Button-module_cp-button-fluid__lZE3X","cp-button-loader":"Button-module_cp-button-loader__Ee1ij","spin-animation":"Button-module_spin-animation__lrjqF",outline:"Button-module_outline__LI97x","margin-top-none":"Button-module_margin-top-none__ewGaQ","margin-right-none":"Button-module_margin-right-none__IHyDO","margin-bottom-none":"Button-module_margin-bottom-none__dOXyc","margin-left-none":"Button-module_margin-left-none__pUXvL","margin-top-small":"Button-module_margin-top-small__L8P-C","margin-right-small":"Button-module_margin-right-small__YD-WQ","margin-bottom-small":"Button-module_margin-bottom-small__x-LU-","margin-left-small":"Button-module_margin-left-small__hNoYe","margin-top-medium":"Button-module_margin-top-medium__dSL81","margin-right-medium":"Button-module_margin-right-medium__iZ51M","margin-bottom-medium":"Button-module_margin-bottom-medium__CO6U-","margin-left-medium":"Button-module_margin-left-medium__UjKev","margin-top-large":"Button-module_margin-top-large__LL-1y","margin-right-large":"Button-module_margin-right-large__A3q6T","margin-bottom-large":"Button-module_margin-bottom-large__5RADE","margin-left-large":"Button-module_margin-left-large__-GUfw","margin-top-extra-large":"Button-module_margin-top-extra-large__u-vJv","margin-right-extra-large":"Button-module_margin-right-extra-large__RrMvU","margin-bottom-extra-large":"Button-module_margin-bottom-extra-large__LuMGx","margin-left-extra-large":"Button-module_margin-left-extra-large__FA-jf"};const te=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?ee["cp-button-fluid"]:""}`,g=`${ee[`margin-top-${i}`]} ${ee[`margin-right-${m}`]} ${ee[`margin-bottom-${u}`]} ${ee[`margin-left-${d}`]}`;return e.createElement("button",{className:`${ee["cp-button"]} ${c} ${ee[l]} ${ee[o]} ${r?ee.disabled:""} ${n?ee.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:ee["cp-button-loader"]}),t)};te.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"]),isDisabled:w.bool,isLoading:w.bool,marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var ne={"cp-container":"Container-module_cp-container__WrTi0",border:"Container-module_border__xE-bJ","width-small":"Container-module_width-small__xgrY7","width-medium":"Container-module_width-medium__-st6E","width-large":"Container-module_width-large__F5b-N","width-extra-large":"Container-module_width-extra-large__aI-u5","width-quarter":"Container-module_width-quarter__WDFs7","width-one-third":"Container-module_width-one-third__oaNlD","width-haf":"Container-module_width-haf__F5eEy","width-three-quarters":"Container-module_width-three-quarters__mtvAf","width-full":"Container-module_width-full__dU4Xj","display-block":"Container-module_display-block__6r4yl","display-inline-block":"Container-module_display-inline-block__dmUGh","display-flex":"Container-module_display-flex__nwA-d","align-start":"Container-module_align-start__Klcpf","align-center":"Container-module_align-center__tcGiw","align-end":"Container-module_align-end__a9o4a","justify-space-between":"Container-module_justify-space-between__EekDw","justify-center":"Container-module_justify-center__5SYIV","justify-space-around":"Container-module_justify-space-around__ZVo7H","justify-space-evenly":"Container-module_justify-space-evenly__12F92","margin-top-none":"Container-module_margin-top-none__HGmtH","margin-right-none":"Container-module_margin-right-none__15T1l","margin-bottom-none":"Container-module_margin-bottom-none__nbUHz","margin-left-none":"Container-module_margin-left-none__L1BNA","margin-top-auto":"Container-module_margin-top-auto__Jo5R8","margin-right-auto":"Container-module_margin-right-auto__tPJev","margin-bottom-auto":"Container-module_margin-bottom-auto__ZsRcU","margin-left-auto":"Container-module_margin-left-auto__Jfcxs","margin-top-small":"Container-module_margin-top-small__mq0xf","margin-right-small":"Container-module_margin-right-small__g3-1N","margin-bottom-small":"Container-module_margin-bottom-small__EF1Ia","margin-left-small":"Container-module_margin-left-small__ayljX","margin-top-medium":"Container-module_margin-top-medium__woXAO","margin-right-medium":"Container-module_margin-right-medium__wWwJC","margin-bottom-medium":"Container-module_margin-bottom-medium__gfPfm","margin-left-medium":"Container-module_margin-left-medium__pjJVP","margin-top-large":"Container-module_margin-top-large__jsN1Y","margin-right-large":"Container-module_margin-right-large__5fYQn","margin-bottom-large":"Container-module_margin-bottom-large__zaEur","margin-left-large":"Container-module_margin-left-large__Jr65D","margin-top-extra-large":"Container-module_margin-top-extra-large__fH4zH","margin-right-extra-large":"Container-module_margin-right-extra-large__s-HKF","margin-bottom-extra-large":"Container-module_margin-bottom-extra-large__f5Uya","margin-left-extra-large":"Container-module_margin-left-extra-large__V533Z","padding-top-none":"Container-module_padding-top-none__YDpt0","padding-right-none":"Container-module_padding-right-none__mffie","padding-bottom-none":"Container-module_padding-bottom-none__jR3eA","padding-left-none":"Container-module_padding-left-none__fRf8D","padding-top-small":"Container-module_padding-top-small__ATpHJ","padding-right-small":"Container-module_padding-right-small__8foIr","padding-bottom-small":"Container-module_padding-bottom-small__eH37U","padding-left-small":"Container-module_padding-left-small__vO4L0","padding-top-medium":"Container-module_padding-top-medium__xy6CB","padding-right-medium":"Container-module_padding-right-medium__tNqrp","padding-bottom-medium":"Container-module_padding-bottom-medium__-7qVN","padding-left-medium":"Container-module_padding-left-medium__0khEB","padding-top-large":"Container-module_padding-top-large__2VK5E","padding-right-large":"Container-module_padding-right-large__cXXjD","padding-bottom-large":"Container-module_padding-bottom-large__rMuRR","padding-left-large":"Container-module_padding-left-large__1ApsS","padding-top-extra-large":"Container-module_padding-top-extra-large__DZ6eE","padding-right-extra-large":"Container-module_padding-right-extra-large__lTAI2","padding-bottom-extra-large":"Container-module_padding-bottom-extra-large__ZqK9N","padding-left-extra-large":"Container-module_padding-left-extra-large__bdCtB"};const re=({children:t,marginTop:n="",marginRight:r="",marginBottom:a="",marginLeft:o="",paddingTop:l="medium",paddingRight:i="medium",paddingBottom:m="medium",paddingLeft:u="medium",display:d="",align:s="",justify:c="",width:g="",showBorder:p=!1,className:_="",onClick:f})=>{const y=d?`display-${d}`:"",b=d?`justify-${c}`:"",h=s?`align-${s}`:"",v=g?`width-${g}`:"",$=p?"border":"",x=n?`margin-top-${n}`:"",C=r?`margin-right-${r}`:"",O=a?`margin-bottom-${a}`:"",E=o?`margin-left-${o}`:"",w=`${x?ne[x]:""} ${C?ne[C]:""} ${O?ne[O]:""} ${E?ne[E]:""}`,N=l?`padding-top-${l}`:"",T=i?`padding-right-${i}`:"",j=m?`padding-bottom-${m}`:"",S=u?`padding-left-${u}`:"",A=`${N?ne[N]:""} ${T?ne[T]:""} ${j?ne[j]:""} ${S?ne[S]:""}`,k=y?`${ne[y]}`:"",M=h?`${ne[h]}`:"",B=b?`${ne[b]}`:"",R=v?`${ne[v]}`:"",D=$?`${ne[$]}`:"";return e.createElement("div",{className:`${ne["cp-container"]} ${R} ${w} ${A} ${D} ${k} ${M} ${B} ${_}`,onClick:e=>(e=>{"function"==typeof f&&f(e)})(e)},t)};re.propTypes={display:w.oneOf(["inline-block","block","flex"]),width:w.oneOf(["small","medium","large","extra-large","quarter","half","three-quarters","full"]),showBorder:w.bool,justify:w.oneOf(["space-between","center","space-around","space-evenly"]),align:w.oneOf(["start","center","end"]),marginTop:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","auto","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","auto","small","medium","large","extra-large"]),paddingTop:w.oneOf(["none","small","medium","large","extra-large"]),paddingRight:w.oneOf(["none","small","medium","large","extra-large"]),paddingBottom:w.oneOf(["none","small","medium","large","extra-large"]),paddingLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var ae={"dropdown-trigger":"Dropdown-module_dropdown-trigger__Dy532",active:"Dropdown-module_active__pBlCN","dropdown-wrapper":"Dropdown-module_dropdown-wrapper__L38Fh","dropdown-contents":"Dropdown-module_dropdown-contents__KUhXv","align-left":"Dropdown-module_align-left__I5dHd","align-right":"Dropdown-module_align-right__YEgO9"};const oe=({trigger:t,content:n,align:r="right"})=>{const[a,o]=e.useState(!1),l=e.useRef(null),i=e.useRef(null),m=r?`align-${r}`:"",u=m?`${ae[m]}`:"";return e.useEffect((()=>{const e=e=>{i.current&&!i.current.contains(e.target)&&l.current&&!l.current.contains(e.target)&&o(!1)};return document.addEventListener("click",e,!0),()=>{document.removeEventListener("click",e,!0)}}),[]),e.createElement("div",{className:ae["dropdown-wrapper"]},e.createElement("div",{className:`${ae["dropdown-trigger"]} ${a?ae.active:""}`,ref:l,onClick:e=>{return t=e,void(a&&l.current&&l.current.contains(t.target)?o(!1):a||o(!0));var t},isActive:a},t),a&&e.createElement("div",{ref:i,className:`${ae["dropdown-contents"]} ${u}`},e.cloneElement(n,{onClose:()=>o(!1)})))};oe.propTypes={align:w.oneOf(["left","right"])};var le={"cp-button":"MediaObject-module_cp-button__Qbl3-",small:"MediaObject-module_small__ZbDrr",medium:"MediaObject-module_medium__1xG2s",disabled:"MediaObject-module_disabled__oQGl-",loading:"MediaObject-module_loading__aFU74","cp-button-fluid":"MediaObject-module_cp-button-fluid__-ynEM","cp-button-loader":"MediaObject-module_cp-button-loader__C-OJI","spin-animation":"MediaObject-module_spin-animation__1QWaT",outline:"MediaObject-module_outline__Sh7sg","margin-top-none":"MediaObject-module_margin-top-none__uR-xA","margin-right-none":"MediaObject-module_margin-right-none__rTHY6","margin-bottom-none":"MediaObject-module_margin-bottom-none__fhWp2","margin-left-none":"MediaObject-module_margin-left-none__XzYcv","margin-top-small":"MediaObject-module_margin-top-small__IE-mB","margin-right-small":"MediaObject-module_margin-right-small__bfjMt","margin-bottom-small":"MediaObject-module_margin-bottom-small__AIeyU","margin-left-small":"MediaObject-module_margin-left-small__rRm8l","margin-top-medium":"MediaObject-module_margin-top-medium__wkOGM","margin-right-medium":"MediaObject-module_margin-right-medium__MRgAY","margin-bottom-medium":"MediaObject-module_margin-bottom-medium__5KmIm","margin-left-medium":"MediaObject-module_margin-left-medium__D9kJA","margin-top-large":"MediaObject-module_margin-top-large__xbcpr","margin-right-large":"MediaObject-module_margin-right-large__Fc0bk","margin-bottom-large":"MediaObject-module_margin-bottom-large__TMQZe","margin-left-large":"MediaObject-module_margin-left-large__gItxB","margin-top-extra-large":"MediaObject-module_margin-top-extra-large__HW90R","margin-right-extra-large":"MediaObject-module_margin-right-extra-large__VUNuh","margin-bottom-extra-large":"MediaObject-module_margin-bottom-extra-large__mr6KU","margin-left-extra-large":"MediaObject-module_margin-left-extra-large__Z-eo1"};const ie=({children:t,isLoading:n=!1,isDisabled:r=!1,isFluid:a=!1,size:o="medium",variant:l="solid",marginTop:i="none",marginRight:m="none",marginBottom:u="none",marginLeft:d="none",onClick:s})=>{const c=`${a?le["cp-button-fluid"]:""}`,g=`${le[`margin-top-${i}`]} ${le[`margin-right-${m}`]} ${le[`margin-bottom-${u}`]} ${le[`margin-left-${d}`]}`;return e.createElement("button",{className:`${le["cp-button"]} ${c} ${le[l]} ${le[o]} ${r?le.disabled:""} ${n?le.loading:""} ${g}`,onClick:e=>(e=>{r||n?e.preventDefault():"function"==typeof s&&s(e)})(e)},n&&e.createElement(S,{name:"progress_activity",className:le["cp-button-loader"]}),t)};ie.propTypes={size:w.oneOf(["small","medium"]),variant:w.oneOf(["solid","outline"]),isDisabled:w.bool,isLoading:w.bool,marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func};var me={"cp-avatar":"Avatar-module_cp-avatar__aTAsj","cp-button":"Avatar-module_cp-button__b4d-A",small:"Avatar-module_small__fOHEE",medium:"Avatar-module_medium__hYVQB","margin-top-none":"Avatar-module_margin-top-none__IRyo4","margin-right-none":"Avatar-module_margin-right-none__7zeJk","margin-bottom-none":"Avatar-module_margin-bottom-none__aRYCj","margin-left-none":"Avatar-module_margin-left-none__jSqHX","margin-top-small":"Avatar-module_margin-top-small__Y6PWn","margin-right-small":"Avatar-module_margin-right-small__iyaeo","margin-bottom-small":"Avatar-module_margin-bottom-small__49guD","margin-left-small":"Avatar-module_margin-left-small__CfV5V","margin-top-medium":"Avatar-module_margin-top-medium__Qx6SC","margin-right-medium":"Avatar-module_margin-right-medium__Aqc0S","margin-bottom-medium":"Avatar-module_margin-bottom-medium__ySYhq","margin-left-medium":"Avatar-module_margin-left-medium__O-P6h","margin-top-large":"Avatar-module_margin-top-large__G-H3w","margin-right-large":"Avatar-module_margin-right-large__80-S3","margin-bottom-large":"Avatar-module_margin-bottom-large__ld9EZ","margin-left-large":"Avatar-module_margin-left-large__dfbni","margin-top-extra-large":"Avatar-module_margin-top-extra-large__lo6NF","margin-right-extra-large":"Avatar-module_margin-right-extra-large__OQAWO","margin-bottom-extra-large":"Avatar-module_margin-bottom-extra-large__Op7T9","margin-left-extra-large":"Avatar-module_margin-left-extra-large__tzUZM"};const ue=({size:t="medium",marginTop:n="none",marginRight:r="none",marginBottom:a="none",marginLeft:o="none",onClick:l,name:i=""})=>{const m=((e="")=>(e?.[0]||"").toUpperCase())(i),u=`${me[`margin-top-${n}`]} ${me[`margin-right-${r}`]} ${me[`margin-bottom-${a}`]} ${me[`margin-left-${o}`]}`;return e.createElement("div",{className:`${me["cp-avatar"]} ${me[t]} ${u}`,onClick:e=>(e=>{isDisabled||isLoading?e.preventDefault():"function"==typeof l&&l(e)})(e),title:i},m||e.createElement(S,{name:"person"}))};ue.propTypes={name:w.string,size:w.oneOf(["small","medium"]),marginTop:w.oneOf(["none","small","medium","large","extra-large"]),marginRight:w.oneOf(["none","small","medium","large","extra-large"]),marginBottom:w.oneOf(["none","small","medium","large","extra-large"]),marginLeft:w.oneOf(["none","small","medium","large","extra-large"]),onClick:w.func},exports.Alert=k,exports.AppShell=({children:e})=>React.createElement("div",{className:"cp-app-shell"},e),exports.Avatar=ue,exports.Badge=B,exports.Button=te,exports.Container=re,exports.Dropdown=oe,exports.FormControls=Q,exports.Icon=S,exports.MediaObject=ie,exports.Modal=({children:t})=>e.createElement("p",{className:"cp-modal"},t),exports.Typography=T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cleanplate",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "CleanPlate - A Headless React UI Framework",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",