uplord-ui 0.0.49 → 0.0.50
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.
|
@@ -7851,4 +7851,4 @@ object-assign
|
|
|
7851
7851
|
(c) Sindre Sorhus
|
|
7852
7852
|
@license MIT
|
|
7853
7853
|
*/var PC,fb;function xse(){if(fb)return PC;fb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(r){if(r==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function i(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de",Object.getOwnPropertyNames(r)[0]==="5")return!1;for(var c={},s=0;s<10;s++)c["_"+String.fromCharCode(s)]=s;var d=Object.getOwnPropertyNames(c).map(function(h){return c[h]});if(d.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(h){l[h]=h}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return PC=i()?Object.assign:function(r,c){for(var s,d=o(r),l,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var u in s)t.call(s,u)&&(d[u]=s[u]);if(e){l=e(s);for(var p=0;p<l.length;p++)a.call(s,l[p])&&(d[l[p]]=s[l[p]])}}return d},PC}var EC,mb;function Dx(){if(mb)return EC;mb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return EC=e,EC}var RC,Mb;function LI(){return Mb||(Mb=1,RC=Function.call.bind(Object.prototype.hasOwnProperty)),RC}var $C,gb;function Lse(){if(gb)return $C;gb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Dx(),a={},o=LI();e=function(r){var c="Warning: "+r;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}}}function i(r,c,s,d,l){if(process.env.NODE_ENV!=="production"){for(var h in r)if(o(r,h)){var u;try{if(typeof r[h]!="function"){var p=Error((d||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}u=r[h](c,h,d,s,null,t)}catch(C){u=C}if(u&&!(u instanceof Error)&&e((d||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in a)){a[u.message]=!0;var k=l?l():"";e("Failed "+s+" type: "+u.message+(k??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(a={})},$C=i,$C}var qC,_b;function wse(){if(_b)return qC;_b=1;var e=xI(),t=xse(),a=Dx(),o=LI(),i=Lse(),r=function(){};process.env.NODE_ENV!=="production"&&(r=function(s){var d="Warning: "+s;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}});function c(){return null}return qC=function(s,d){var l=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function u(v){var R=v&&(l&&v[l]||v[h]);if(typeof R=="function")return R}var p="<<anonymous>>",k={array:M("array"),bigint:M("bigint"),bool:M("boolean"),func:M("function"),number:M("number"),object:M("object"),string:M("string"),symbol:M("symbol"),any:N(),arrayOf:f,element:w(),elementType:m(),instanceOf:S,node:E(),objectOf:P,oneOf:A,oneOfType:H,shape:D,exact:ae};function C(v,R){return v===R?v!==0||1/v===1/R:v!==v&&R!==R}function g(v,R){this.message=v,this.data=R&&typeof R=="object"?R:{},this.stack=""}g.prototype=Error.prototype;function x(v){if(process.env.NODE_ENV!=="production")var R={},j=0;function F(J,G,b,Z,z,X,I){if(Z=Z||p,X=X||b,I!==a){if(d){var L=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 L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var me=Z+":"+b;!R[me]&&j<3&&(r("You are manually calling a React.PropTypes validation function for the `"+X+"` prop on `"+Z+"`. 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."),R[me]=!0,j++)}}return G[b]==null?J?G[b]===null?new g("The "+z+" `"+X+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new g("The "+z+" `"+X+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:v(G,b,Z,z,X)}var V=F.bind(null,!1);return V.isRequired=F.bind(null,!0),V}function M(v){function R(j,F,V,J,G,b){var Z=j[F],z=K(Z);if(z!==v){var X=Q(Z);return new g("Invalid "+J+" `"+G+"` of type "+("`"+X+"` supplied to `"+V+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return x(R)}function N(){return x(c)}function f(v){function R(j,F,V,J,G){if(typeof v!="function")return new g("Property `"+G+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var b=j[F];if(!Array.isArray(b)){var Z=K(b);return new g("Invalid "+J+" `"+G+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected an array."))}for(var z=0;z<b.length;z++){var X=v(b,z,V,J,G+"["+z+"]",a);if(X instanceof Error)return X}return null}return x(R)}function w(){function v(R,j,F,V,J){var G=R[j];if(!s(G)){var b=K(G);return new g("Invalid "+V+" `"+J+"` of type "+("`"+b+"` supplied to `"+F+"`, expected a single ReactElement."))}return null}return x(v)}function m(){function v(R,j,F,V,J){var G=R[j];if(!e.isValidElementType(G)){var b=K(G);return new g("Invalid "+V+" `"+J+"` of type "+("`"+b+"` supplied to `"+F+"`, expected a single ReactElement type."))}return null}return x(v)}function S(v){function R(j,F,V,J,G){if(!(j[F]instanceof v)){var b=v.name||p,Z=ne(j[F]);return new g("Invalid "+J+" `"+G+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected ")+("instance of `"+b+"`."))}return null}return x(R)}function A(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?r("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])."):r("Invalid argument supplied to oneOf, expected an array.")),c;function R(j,F,V,J,G){for(var b=j[F],Z=0;Z<v.length;Z++)if(C(b,v[Z]))return null;var z=JSON.stringify(v,function(I,L){var me=Q(L);return me==="symbol"?String(L):L});return new g("Invalid "+J+" `"+G+"` of value `"+String(b)+"` "+("supplied to `"+V+"`, expected one of "+z+"."))}return x(R)}function P(v){function R(j,F,V,J,G){if(typeof v!="function")return new g("Property `"+G+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var b=j[F],Z=K(b);if(Z!=="object")return new g("Invalid "+J+" `"+G+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected an object."));for(var z in b)if(o(b,z)){var X=v(b,z,V,J,G+"."+z,a);if(X instanceof Error)return X}return null}return x(R)}function H(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&r("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var R=0;R<v.length;R++){var j=v[R];if(typeof j!="function")return r("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(j)+" at index "+R+"."),c}function F(V,J,G,b,Z){for(var z=[],X=0;X<v.length;X++){var I=v[X],L=I(V,J,G,b,Z,a);if(L==null)return null;L.data&&o(L.data,"expectedType")&&z.push(L.data.expectedType)}var me=z.length>0?", expected one of type ["+z.join(", ")+"]":"";return new g("Invalid "+b+" `"+Z+"` supplied to "+("`"+G+"`"+me+"."))}return x(F)}function E(){function v(R,j,F,V,J){return U(R[j])?null:new g("Invalid "+V+" `"+J+"` supplied to "+("`"+F+"`, expected a ReactNode."))}return x(v)}function T(v,R,j,F,V){return new g((v||"React class")+": "+R+" type `"+j+"."+F+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function D(v){function R(j,F,V,J,G){var b=j[F],Z=K(b);if(Z!=="object")return new g("Invalid "+J+" `"+G+"` of type `"+Z+"` "+("supplied to `"+V+"`, expected `object`."));for(var z in v){var X=v[z];if(typeof X!="function")return T(V,J,G,z,Q(X));var I=X(b,z,V,J,G+"."+z,a);if(I)return I}return null}return x(R)}function ae(v){function R(j,F,V,J,G){var b=j[F],Z=K(b);if(Z!=="object")return new g("Invalid "+J+" `"+G+"` of type `"+Z+"` "+("supplied to `"+V+"`, expected `object`."));var z=t({},j[F],v);for(var X in z){var I=v[X];if(o(v,X)&&typeof I!="function")return T(V,J,G,X,Q(I));if(!I)return new g("Invalid "+J+" `"+G+"` key `"+X+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(j[F],null," ")+`
|
|
7854
|
-
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var L=I(b,X,V,J,G+"."+X,a);if(L)return L}return null}return x(R)}function U(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(U);if(v===null||s(v))return!0;var R=u(v);if(R){var j=R.call(v),F;if(R!==v.entries){for(;!(F=j.next()).done;)if(!U(F.value))return!1}else for(;!(F=j.next()).done;){var V=F.value;if(V&&!U(V[1]))return!1}}else return!1;return!0;default:return!1}}function ee(v,R){return v==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function K(v){var R=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":ee(R,v)?"symbol":R}function Q(v){if(typeof v>"u"||v===null)return""+v;var R=K(v);if(R==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return R}function te(v){var R=Q(v);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function ne(v){return!v.constructor||!v.constructor.name?p:v.constructor.name}return k.checkPropTypes=i,k.resetWarningCache=i.resetWarningCache,k.PropTypes=k,k},qC}var TC,vb;function bse(){if(vb)return TC;vb=1;var e=Dx();function t(){}function a(){}return a.resetWarningCache=t,TC=function(){function o(c,s,d,l,h,u){if(u!==e){var p=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 p.name="Invariant Violation",p}}o.isRequired=o;function i(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},TC}var Cb;function Sse(){if(Cb)return to.exports;if(Cb=1,process.env.NODE_ENV!=="production"){var e=xI(),t=!0;to.exports=wse()(e.isElement,t)}else to.exports=bse()();return to.exports}var Ise=Sse();const pe=fv(Ise),Te=pe.oneOfType([pe.string,pe.number]),wI={all:pe.bool,grid:pe.bool,aural:pe.bool,braille:pe.bool,handheld:pe.bool,print:pe.bool,projection:pe.bool,screen:pe.bool,tty:pe.bool,tv:pe.bool,embossed:pe.bool},Nse={orientation:pe.oneOf(["portrait","landscape"]),scan:pe.oneOf(["progressive","interlace"]),aspectRatio:pe.string,deviceAspectRatio:pe.string,height:Te,deviceHeight:Te,width:Te,deviceWidth:Te,color:pe.bool,colorIndex:pe.bool,monochrome:pe.bool,resolution:Te,type:Object.keys(wI)},{type:Tde,...Ase}=Nse,Pse={minAspectRatio:pe.string,maxAspectRatio:pe.string,minDeviceAspectRatio:pe.string,maxDeviceAspectRatio:pe.string,minHeight:Te,maxHeight:Te,minDeviceHeight:Te,maxDeviceHeight:Te,minWidth:Te,maxWidth:Te,minDeviceWidth:Te,maxDeviceWidth:Te,minColor:pe.number,maxColor:pe.number,minColorIndex:pe.number,maxColorIndex:pe.number,minMonochrome:pe.number,maxMonochrome:pe.number,minResolution:Te,maxResolution:Te,...Ase},Ese={...wI,...Pse};var Rse={all:Ese};const $se=e=>`not ${e}`,qse=(e,t)=>{const a=CI(e);return typeof t=="number"&&(t=`${t}px`),t===!0?a:t===!1?$se(a):`(${a}: ${t})`},Tse=e=>e.join(" and "),jse=e=>{const t=[];return Object.keys(Rse.all).forEach(a=>{const o=e[a];o!=null&&t.push(qse(a,o))}),Tse(t)},Hse=q.createContext(void 0),Vse=e=>e.query||jse(e),xb=e=>e?Object.keys(e).reduce((a,o)=>(a[CI(o)]=e[o],a),{}):void 0,bI=()=>{const e=q.useRef(!1);return q.useEffect(()=>{e.current=!0},[]),e.current},zse=e=>{const t=q.useContext(Hse),a=()=>xb(e)||xb(t),[o,i]=q.useState(a);return q.useEffect(()=>{const r=a();_se(o,r)||i(r)},[e,t]),o},Dse=e=>{const t=()=>Vse(e),[a,o]=q.useState(t);return q.useEffect(()=>{const i=t();a!==i&&o(i)},[e]),a},Ose=(e,t)=>{const a=()=>fse(e,t||{},!!t),[o,i]=q.useState(a),r=bI();return q.useEffect(()=>{if(r){const c=a();return i(c),()=>{c&&c.dispose()}}},[e,t]),o},Fse=e=>{const[t,a]=q.useState(e.matches);return q.useEffect(()=>{const o=i=>{a(i.matches)};return e.addListener(o),a(e.matches),()=>{e.removeListener(o)}},[e]),t},Ox=(e,t,a)=>{const o=zse(t),i=Dse(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const r=Ose(i,o),c=Fse(r);return bI(),q.useEffect(()=>{},[c]),q.useEffect(()=>()=>{r&&r.dispose()},[]),c},Bse="input-module__fields___7s82h",Use="input-module__field___BmXtm",Zse="input-module__dark___dEFyl",Gse="input-module__outer___STcOB",Wse="input-module__button___7gJw-",Xse="input-module__click___6FEoM",Kse="input-module__sm___jtNdd",Yse="input-module__input___j8Xrc",Qse="input-module__placeholder___Nc7hU",Jse="input-module__icon___foesl",ede="input-module__text___DFtl6",tde="input-module__inner___Oy65q",nde="input-module__pulse___1I5VM",ade="input-module__helper___BfwFu",ode="input-module__loading___1cxGp",re={fields:Bse,field:Use,dark:Zse,outer:Gse,"is-disabled":"input-module__is-disabled___JwbG4","is-error":"input-module__is-error___xIDnZ",button:Wse,click:Xse,sm:Kse,input:Yse,placeholder:Qse,icon:Jse,text:ede,"is-loading":"input-module__is-loading___4plIo",inner:tde,"icon-wrap":"input-module__icon-wrap___HEFm4","is-skeleton":"input-module__is-skeleton___xCVEU",pulse:nde,helper:ade,"no-placeholder":"input-module__no-placeholder___i5lJb",loading:ode,"loading-dark":"input-module__loading-dark___mfX-p"},SI=({label:e="",placeholder:t="",options:a,name:o,id:i,value:r,size:c="md",helper:s,className:d="",isDisabled:l=!1,isLoading:h=!1,isSkeleton:u=!1,isError:p=!1,onChange:k})=>{const C=q.useRef(null);return _.jsxs("div",{className:ie(re.field,re["no-placeholder"]),children:[e&&_.jsx("label",{htmlFor:i||o,children:e}),_.jsxs("div",{className:ie(re.outer,c&&re[c],d,(l||h||u)&&re["is-disabled"],h&&!u&&re["is-loading"],u&&re["is-skeleton"],p&&re["is-error"]),children:[h&&!u&&_.jsx("div",{className:re.loading}),_.jsx("div",{className:re.inner,children:_.jsxs("select",{ref:C,id:i||o,name:o,value:r,onChange:k,className:re.input,"aria-label":e?"":i||o,disabled:l||h||u,children:[t&&_.jsx("option",{value:"",children:t}),a==null?void 0:a.map(g=>_.jsx("option",{value:g.value,children:g.label},g.value))]})}),_.jsx("div",{className:re["icon-wrap"],children:_.jsx(n1,{name:"ChevronDown",size:"md",className:re.icon})})]}),s&&_.jsx("div",{className:re.helper,children:s})]})},ide=({totalPages:e=4,currentPage:t=1,setCurrentPage:a})=>{const o=Ox({maxWidth:743}),[i,r]=q.useState(!0),c=Array.from({length:e},(l,h)=>h+1);q.useEffect(()=>{r(o)},[o]);const s=()=>{t>1&&a(t-1)},d=()=>{t<e&&a(t+1)};return _.jsx(_.Fragment,{children:e<5&&!i?_.jsxs(hv,{justify:"center",children:[_.jsx(Ke,{leadingIcon:"ChevronLeft",size:"sm",variant:"outline",onClick:s,isDisabled:t===1,"aria-label":"Previous page"}),c.map(l=>_.jsx(Ke,{label:String(l),size:"sm",variant:l===t?"primary":"text",onClick:()=>a(l),isIcon:!0},l)),_.jsx(Ke,{leadingIcon:"ChevronRight",size:"sm",variant:"outline",onClick:d,isDisabled:t===e,"aria-label":"Next page"})]}):_.jsxs(hv,{justify:"center",children:[_.jsx(Ke,{leadingIcon:"ChevronLeft",size:"sm",variant:"outline",onClick:s,isDisabled:t===1,"aria-label":"Previous page"}),_.jsx(SI,{name:"pageSize",value:String(t),options:c.map(l=>({value:String(l),label:String(l)})),onChange:l=>a(Number(l.target.value))}),_.jsx(Ke,{leadingIcon:"ChevronRight",size:"sm",variant:"outline",onClick:d,isDisabled:t===e,"aria-label":"Next page"})]})})},cde="navbar-module__nav___JE2PK",rde={nav:cde},sde=({children:e,className:t})=>_.jsx("div",{className:ie(rde.nav,t),children:e}),dde=({field:e,form:t,helper:a,input:o,...i})=>{const r=t.errors[e.name],s=t.touched[e.name]&&typeof r=="string";if(!o)return _.jsx("div",{children:"Component not provided"});const d={...e,...i,helper:s?r:a,isError:!!s,...o.name==="Checkbox"&&{checked:e.value},...o.name==="Radio"&&{checked:e.value===i.value}};return _.jsx(o,{...d})},hde=({ref:e,type:t="text",label:a="",placeholder:o="",name:i,id:r,value:c,size:s="md",helper:d,className:l="",leadingIcon:h,leadingFunction:u,leadingText:p="",trailingIcon:k,trailingFunction:C,trailingText:g="",button:x,isDisabled:M=!1,isLoading:N=!1,isSkeleton:f=!1,isError:w=!1,onChange:m,...S})=>{const A=q.useRef(null),[P,H]=q.useState(!1),E=Q=>{typeof e=="function"?e(Q):e&&typeof e=="object"&&(e.current=Q),A.current=Q},T=()=>{e&&typeof e=="object"&&"current"in e&&e.current?e.current.focus():A.current&&A.current.focus()},D=()=>{m({target:{name:i,value:""}})},ae=Q=>{Q.stopPropagation(),H(te=>!te)},U=Q=>{Q.stopPropagation(),u==null||u()},ee=Q=>{Q.stopPropagation(),k==="X"&&D(),C==null||C()},K=Q=>{var te;Q.stopPropagation(),(te=x==null?void 0:x.onClick)==null||te.call(x,Q)};return _.jsxs("div",{className:ie(re.field,!o&&re["no-placeholder"]),children:[a&&_.jsx("label",{htmlFor:r||i,children:a}),_.jsxs("div",{className:ie(re.outer,s&&re[s],l,(M||N||f)&&re["is-disabled"],N&&!f&&re["is-loading"],f&&re["is-skeleton"],w&&re["is-error"]),onClick:T,children:[N&&!f&&_.jsx("div",{className:re.loading}),h&&_.jsx("div",{onClick:u&&U,className:ie(re["icon-wrap"],u&&re.click),children:_.jsx(n1,{name:h,size:"md",className:re.icon})}),p&&_.jsx("div",{className:re.text,children:p}),_.jsxs("div",{className:ie(re.inner),children:[_.jsx("input",{ref:E,type:t==="password"&&P?"text":t,id:r||i,name:i,value:c,onChange:m,className:re.input,placeholder:" ",required:!0,"aria-label":a?"":o,disabled:M||N||f,...S}),_.jsx("span",{className:re.placeholder,children:o})]}),g&&_.jsx("div",{className:re.text,children:g}),t==="password"&&_.jsx("div",{onClick:ae,className:ie(re["icon-wrap"],re.click),children:_.jsx(n1,{name:P?"Eye":"EyeOff",size:"md",className:re.icon})}),k&&!(k==="X"&&(!c||M))&&_.jsx("div",{onClick:ee,className:ie(re["icon-wrap"],C||k==="X"?re.click:""),children:_.jsx(n1,{name:k,size:"md",className:re.icon})}),x&&_.jsx(Ke,{...x,size:"sm",variant:x.variant||"primary",className:re.button,isDisabled:M||N||f,onClick:K})]}),d&&_.jsx("div",{className:re.helper,children:d})]})},lde=({children:e,name:t,id:a,value:o,checked:i,helper:r,className:c="",label:s,isDisabled:d=!1,isSkeleton:l=!1,isError:h=!1,onChange:u})=>_.jsxs("div",{className:Se.field,children:[_.jsxs("div",{className:ie(Se.radio,(d||l)&&Se["is-disabled"],l&&Se["is-skeleton"],h&&Se["is-error"]),children:[_.jsx("input",{type:"radio",id:a||t,name:t,value:String(o),onChange:u,className:ie(Se.input,c),checked:i,"aria-label":t,disabled:d||l}),_.jsx("label",{htmlFor:a||t,children:e||s&&_.jsx("div",{className:Se.title,children:_.jsx("div",{className:Se.label,children:s})})})]}),r&&_.jsx("div",{className:Se.helper,children:r})]}),ude=({label:e="",placeholder:t="",name:a,id:o,value:i,size:r="md",helper:c,className:s="",isDisabled:d=!1,isLoading:l=!1,isSkeleton:h=!1,isError:u=!1,onChange:p})=>{const k=q.useRef(null),C=()=>{var g;return(g=k.current)==null?void 0:g.focus()};return _.jsxs("div",{className:ie(re.field,!t&&re["no-placeholder"]),children:[e&&_.jsx("label",{htmlFor:o||a,children:e}),_.jsxs("div",{className:ie(re.outer,r&&re[r],s,(d||l||h)&&re["is-disabled"],l&&!h&&re["is-loading"],h&&re["is-skeleton"],u&&re["is-error"]),onClick:C,children:[l&&!h&&_.jsx("div",{className:re.loading}),_.jsxs("div",{className:ie(re.inner),children:[_.jsx("textarea",{ref:k,id:o||a,name:a,value:i,onChange:p,className:re.input,placeholder:" ",required:!0,"aria-label":e?"":t,disabled:d||l||h}),_.jsx("span",{className:re.placeholder,children:t})]})]}),c&&_.jsx("div",{className:re.helper,children:c})]})},pde="example-module__example___TRgac",yde="example-module__content___ExA7w",jC={example:pde,"is-skeleton":"example-module__is-skeleton___dMyJl",content:yde},kde=({isSkeleton:e=!1})=>_.jsx("div",{className:ie(jC.example,e&&jC["is-skeleton"]),children:_.jsx("div",{className:jC.content,children:"Example"})}),fde="modal-module__backdrop___DCpKI",mde="modal-module__fullscreen___sfLoP",Mde="modal-module__main___0Sjqx",gde="modal-module__max___9QSAL",_de="modal-module__sheet___8-CTw",vde="modal-module__drag___mZz3W",Cde="modal-module__scroll___OnShd",xde="modal-module__header___t3TrT",Lde="modal-module__title___oMB-c",wde="modal-module__subtext___IHfeN",bde="modal-module__top___62uvi",Sde="modal-module__left___dCx5f",Ide="modal-module__anchor___UCD-N",Nde="modal-module__right___rvlxY",Ade="modal-module__footer___tqppg",Pde="modal-module__full___WPa3O",Ede="modal-module__text___qx9vw",Rde="modal-module__content___k129O",le={backdrop:fde,fullscreen:mde,"backdrop--close-button":"modal-module__backdrop--close-button___SWtbL","bottom-sheet":"modal-module__bottom-sheet___oPiUM",main:Mde,max:gde,sheet:_de,drag:vde,scroll:Cde,header:xde,title:Lde,subtext:wde,top:bde,left:Sde,anchor:Ide,right:Nde,footer:Ade,full:Pde,text:Ede,content:Rde},Lb=e=>{var t;return q.isValidElement(e)&&((t=e.props)==null?void 0:t.variant)==="anchor"},wb=({title:e="",subtext:t="",leading:a,trailing:o,fullscreen:i=!1,sheet:r=!1})=>{const c=Ox({maxWidth:743}),s=Lb(a),d=Lb(o);return _.jsxs("div",{className:ie(le.header,r&&!c&&le.sheet,i&&`${le.fullscreen} dark`),children:[a&&_.jsx("div",{className:ie(le.left,s&&le.anchor),children:a}),_.jsxs("div",{className:le.top,children:[_.jsx("div",{className:ie(le.title,!t&&le.large),children:e}),t&&_.jsx("div",{className:le.subtext,children:t})]}),o&&_.jsx("div",{className:ie(le.right,d&&le.anchor),children:o})]})},bb=e=>{var t;return q.isValidElement(e)&&((t=e.props)==null?void 0:t.variant)==="anchor"},Sb=({title:e="",subtext:t="",leading:a,trailing:o,fullWidth:i=!1})=>{const r=bb(a),c=bb(o);return _.jsxs("div",{className:ie(le.footer,i&&le.full),children:[(e||t||a)&&_.jsx("div",{className:ie(le.left,r&&!e&&!t&&le.anchor),children:e||t?_.jsxs("div",{className:le.text,children:[e&&_.jsx("div",{className:le.title,children:e}),t&&_.jsx("div",{className:le.subtext,children:t})]}):_.jsx(_.Fragment,{children:a})}),o&&_.jsx("div",{className:ie(le.right,c&&le.anchor),children:o})]})},$de=({children:e,modal:t,headerProps:a,footerProps:o,maxWidth:i,sheet:r=!1,fullscreen:c=!1,mobileMaxHeight:s=!1,mobileDraggable:d=!1,backdropClose:l=!0,bottomSheet:h=!1})=>{const u=q.useRef(null),p=Dre(),k=Ox({maxWidth:743}),[C,g]=q.useState(!0);q.useEffect(()=>{g(k)},[k]);const x=(f,w)=>{w.offset.y>150&&t.hide()},M=()=>{const f={opacity:0};return r&&!k?{...f,translateX:"calc(100% + 0.5rem)",opacity:1}:f},N=()=>{const f={opacity:1};return r&&!k?{...f,translateX:0,opacity:1}:f};return _.jsx(tie,{onExitComplete:()=>t.remove(),children:t.visible&&_.jsxs(fa.div,{className:ie(le.backdrop,h&&le["bottom-sheet"],c&&le.fullscreen,s&&k&&le.max,r&&!k&&le.sheet),children:[_.jsx(fa.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.6},onClick:()=>l&&t.hide(),className:le["backdrop--close-button"]}),C&&d&&h?_.jsx(fa.div,{ref:u,className:ie(le.main,c&&le.fullscreen),style:i?{maxWidth:i}:void 0,drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.5},dragListener:!1,dragControls:p,onDragEnd:x,initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{duration:.4,ease:"easeInOut"},children:_.jsxs("div",{className:le.drag,onPointerDown:f=>p.start(f),style:{touchAction:"none"},children:[a&&_.jsx(wb,{...a}),_.jsx("div",{className:le.scroll,children:_.jsx("div",{className:le.content,children:e})}),o&&_.jsx(Sb,{...o})]})}):_.jsxs(fa.div,{className:ie(le.main,c&&le.fullscreen),style:i?{maxWidth:i}:void 0,onDragEnd:x,initial:M(),animate:N(),exit:M(),transition:{duration:.4,ease:"easeInOut"},children:[a&&_.jsx(wb,{...a}),_.jsx("div",{className:le.scroll,children:_.jsx("div",{className:le.content,children:e})}),o&&_.jsx(Sb,{...o})]})]})})};exports.Banner=Rne;exports.Button=Ke;exports.Card=use;exports.Checkbox=vI;exports.Example=kde;exports.Footer=Zae;exports.FormikInput=dde;exports.Header=rse;exports.Icon=n1;exports.Input=hde;exports.Modal=$de;exports.Navbar=sde;exports.Pagination=ide;exports.Projects=Yne;exports.Radio=lde;exports.Section=oae;exports.Select=SI;exports.Stack=wae;exports.Textarea=ude;exports.Timeline=Dae;
|
|
7854
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var L=I(b,X,V,J,G+"."+X,a);if(L)return L}return null}return x(R)}function U(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(U);if(v===null||s(v))return!0;var R=u(v);if(R){var j=R.call(v),F;if(R!==v.entries){for(;!(F=j.next()).done;)if(!U(F.value))return!1}else for(;!(F=j.next()).done;){var V=F.value;if(V&&!U(V[1]))return!1}}else return!1;return!0;default:return!1}}function ee(v,R){return v==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function K(v){var R=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":ee(R,v)?"symbol":R}function Q(v){if(typeof v>"u"||v===null)return""+v;var R=K(v);if(R==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return R}function te(v){var R=Q(v);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function ne(v){return!v.constructor||!v.constructor.name?p:v.constructor.name}return k.checkPropTypes=i,k.resetWarningCache=i.resetWarningCache,k.PropTypes=k,k},qC}var TC,vb;function bse(){if(vb)return TC;vb=1;var e=Dx();function t(){}function a(){}return a.resetWarningCache=t,TC=function(){function o(c,s,d,l,h,u){if(u!==e){var p=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 p.name="Invariant Violation",p}}o.isRequired=o;function i(){return o}var r={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:i,element:o,elementType:o,instanceOf:i,node:o,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:a,resetWarningCache:t};return r.PropTypes=r,r},TC}var Cb;function Sse(){if(Cb)return to.exports;if(Cb=1,process.env.NODE_ENV!=="production"){var e=xI(),t=!0;to.exports=wse()(e.isElement,t)}else to.exports=bse()();return to.exports}var Ise=Sse();const pe=fv(Ise),Te=pe.oneOfType([pe.string,pe.number]),wI={all:pe.bool,grid:pe.bool,aural:pe.bool,braille:pe.bool,handheld:pe.bool,print:pe.bool,projection:pe.bool,screen:pe.bool,tty:pe.bool,tv:pe.bool,embossed:pe.bool},Nse={orientation:pe.oneOf(["portrait","landscape"]),scan:pe.oneOf(["progressive","interlace"]),aspectRatio:pe.string,deviceAspectRatio:pe.string,height:Te,deviceHeight:Te,width:Te,deviceWidth:Te,color:pe.bool,colorIndex:pe.bool,monochrome:pe.bool,resolution:Te,type:Object.keys(wI)},{type:Tde,...Ase}=Nse,Pse={minAspectRatio:pe.string,maxAspectRatio:pe.string,minDeviceAspectRatio:pe.string,maxDeviceAspectRatio:pe.string,minHeight:Te,maxHeight:Te,minDeviceHeight:Te,maxDeviceHeight:Te,minWidth:Te,maxWidth:Te,minDeviceWidth:Te,maxDeviceWidth:Te,minColor:pe.number,maxColor:pe.number,minColorIndex:pe.number,maxColorIndex:pe.number,minMonochrome:pe.number,maxMonochrome:pe.number,minResolution:Te,maxResolution:Te,...Ase},Ese={...wI,...Pse};var Rse={all:Ese};const $se=e=>`not ${e}`,qse=(e,t)=>{const a=CI(e);return typeof t=="number"&&(t=`${t}px`),t===!0?a:t===!1?$se(a):`(${a}: ${t})`},Tse=e=>e.join(" and "),jse=e=>{const t=[];return Object.keys(Rse.all).forEach(a=>{const o=e[a];o!=null&&t.push(qse(a,o))}),Tse(t)},Hse=q.createContext(void 0),Vse=e=>e.query||jse(e),xb=e=>e?Object.keys(e).reduce((a,o)=>(a[CI(o)]=e[o],a),{}):void 0,bI=()=>{const e=q.useRef(!1);return q.useEffect(()=>{e.current=!0},[]),e.current},zse=e=>{const t=q.useContext(Hse),a=()=>xb(e)||xb(t),[o,i]=q.useState(a);return q.useEffect(()=>{const r=a();_se(o,r)||i(r)},[e,t]),o},Dse=e=>{const t=()=>Vse(e),[a,o]=q.useState(t);return q.useEffect(()=>{const i=t();a!==i&&o(i)},[e]),a},Ose=(e,t)=>{const a=()=>fse(e,t||{},!!t),[o,i]=q.useState(a),r=bI();return q.useEffect(()=>{if(r){const c=a();return i(c),()=>{c&&c.dispose()}}},[e,t]),o},Fse=e=>{const[t,a]=q.useState(e.matches);return q.useEffect(()=>{const o=i=>{a(i.matches)};return e.addListener(o),a(e.matches),()=>{e.removeListener(o)}},[e]),t},Ox=(e,t,a)=>{const o=zse(t),i=Dse(e);if(!i)throw new Error("Invalid or missing MediaQuery!");const r=Ose(i,o),c=Fse(r);return bI(),q.useEffect(()=>{},[c]),q.useEffect(()=>()=>{r&&r.dispose()},[]),c},Bse="input-module__fields___7s82h",Use="input-module__field___BmXtm",Zse="input-module__dark___dEFyl",Gse="input-module__outer___STcOB",Wse="input-module__button___7gJw-",Xse="input-module__click___6FEoM",Kse="input-module__sm___jtNdd",Yse="input-module__input___j8Xrc",Qse="input-module__placeholder___Nc7hU",Jse="input-module__icon___foesl",ede="input-module__text___DFtl6",tde="input-module__inner___Oy65q",nde="input-module__pulse___1I5VM",ade="input-module__helper___BfwFu",ode="input-module__loading___1cxGp",re={fields:Bse,field:Use,dark:Zse,outer:Gse,"is-disabled":"input-module__is-disabled___JwbG4","is-error":"input-module__is-error___xIDnZ",button:Wse,click:Xse,sm:Kse,input:Yse,placeholder:Qse,icon:Jse,text:ede,"is-loading":"input-module__is-loading___4plIo",inner:tde,"icon-wrap":"input-module__icon-wrap___HEFm4","is-skeleton":"input-module__is-skeleton___xCVEU",pulse:nde,helper:ade,"no-placeholder":"input-module__no-placeholder___i5lJb",loading:ode,"loading-dark":"input-module__loading-dark___mfX-p"},SI=({label:e="",placeholder:t="",options:a,name:o,id:i,value:r,size:c="md",helper:s,className:d="",isDisabled:l=!1,isLoading:h=!1,isSkeleton:u=!1,isError:p=!1,onChange:k})=>{const C=q.useRef(null);return _.jsxs("div",{className:ie(re.field,re["no-placeholder"]),children:[e&&_.jsx("label",{htmlFor:i||o,children:e}),_.jsxs("div",{className:ie(re.outer,c&&re[c],d,(l||h||u)&&re["is-disabled"],h&&!u&&re["is-loading"],u&&re["is-skeleton"],p&&re["is-error"]),children:[h&&!u&&_.jsx("div",{className:re.loading}),_.jsx("div",{className:re.inner,children:_.jsxs("select",{ref:C,id:i||o,name:o,value:r,onChange:k,className:re.input,"aria-label":e?"":i||o,disabled:l||h||u,children:[t&&_.jsx("option",{value:"",children:t}),a==null?void 0:a.map(g=>_.jsx("option",{value:g.value,children:g.label},g.value))]})}),_.jsx("div",{className:re["icon-wrap"],children:_.jsx(n1,{name:"ChevronDown",size:"md",className:re.icon})})]}),s&&_.jsx("div",{className:re.helper,children:s})]})},ide=({totalPages:e=4,currentPage:t=1,setCurrentPage:a})=>{const o=Ox({maxWidth:743}),[i,r]=q.useState(!0),c=Array.from({length:e},(l,h)=>h+1);q.useEffect(()=>{r(o)},[o]);const s=()=>{t>1&&a(t-1)},d=()=>{t<e&&a(t+1)};return _.jsx(_.Fragment,{children:e<5&&!i?_.jsxs(hv,{justify:"center",children:[_.jsx(Ke,{leadingIcon:"ChevronLeft",size:"md",variant:"outline",onClick:s,isDisabled:t===1,"aria-label":"Previous page"}),c.map(l=>_.jsx(Ke,{label:String(l),size:"md",variant:l===t?"primary":"text",onClick:()=>a(l),isIcon:!0},l)),_.jsx(Ke,{leadingIcon:"ChevronRight",size:"md",variant:"outline",onClick:d,isDisabled:t===e,"aria-label":"Next page"})]}):_.jsxs(hv,{justify:"center",children:[_.jsx(Ke,{leadingIcon:"ChevronLeft",size:"md",variant:"outline",onClick:s,isDisabled:t===1,"aria-label":"Previous page"}),_.jsx(SI,{name:"pageSize",value:String(t),size:"sm",options:c.map(l=>({value:String(l),label:String(l)})),onChange:l=>a(Number(l.target.value))}),_.jsx(Ke,{leadingIcon:"ChevronRight",size:"md",variant:"outline",onClick:d,isDisabled:t===e,"aria-label":"Next page"})]})})},cde="navbar-module__nav___JE2PK",rde={nav:cde},sde=({children:e,className:t})=>_.jsx("div",{className:ie(rde.nav,t),children:e}),dde=({field:e,form:t,helper:a,input:o,...i})=>{const r=t.errors[e.name],s=t.touched[e.name]&&typeof r=="string";if(!o)return _.jsx("div",{children:"Component not provided"});const d={...e,...i,helper:s?r:a,isError:!!s,...o.name==="Checkbox"&&{checked:e.value},...o.name==="Radio"&&{checked:e.value===i.value}};return _.jsx(o,{...d})},hde=({ref:e,type:t="text",label:a="",placeholder:o="",name:i,id:r,value:c,size:s="md",helper:d,className:l="",leadingIcon:h,leadingFunction:u,leadingText:p="",trailingIcon:k,trailingFunction:C,trailingText:g="",button:x,isDisabled:M=!1,isLoading:N=!1,isSkeleton:f=!1,isError:w=!1,onChange:m,...S})=>{const A=q.useRef(null),[P,H]=q.useState(!1),E=Q=>{typeof e=="function"?e(Q):e&&typeof e=="object"&&(e.current=Q),A.current=Q},T=()=>{e&&typeof e=="object"&&"current"in e&&e.current?e.current.focus():A.current&&A.current.focus()},D=()=>{m({target:{name:i,value:""}})},ae=Q=>{Q.stopPropagation(),H(te=>!te)},U=Q=>{Q.stopPropagation(),u==null||u()},ee=Q=>{Q.stopPropagation(),k==="X"&&D(),C==null||C()},K=Q=>{var te;Q.stopPropagation(),(te=x==null?void 0:x.onClick)==null||te.call(x,Q)};return _.jsxs("div",{className:ie(re.field,!o&&re["no-placeholder"]),children:[a&&_.jsx("label",{htmlFor:r||i,children:a}),_.jsxs("div",{className:ie(re.outer,s&&re[s],l,(M||N||f)&&re["is-disabled"],N&&!f&&re["is-loading"],f&&re["is-skeleton"],w&&re["is-error"]),onClick:T,children:[N&&!f&&_.jsx("div",{className:re.loading}),h&&_.jsx("div",{onClick:u&&U,className:ie(re["icon-wrap"],u&&re.click),children:_.jsx(n1,{name:h,size:"md",className:re.icon})}),p&&_.jsx("div",{className:re.text,children:p}),_.jsxs("div",{className:ie(re.inner),children:[_.jsx("input",{ref:E,type:t==="password"&&P?"text":t,id:r||i,name:i,value:c,onChange:m,className:re.input,placeholder:" ",required:!0,"aria-label":a?"":o,disabled:M||N||f,...S}),_.jsx("span",{className:re.placeholder,children:o})]}),g&&_.jsx("div",{className:re.text,children:g}),t==="password"&&_.jsx("div",{onClick:ae,className:ie(re["icon-wrap"],re.click),children:_.jsx(n1,{name:P?"Eye":"EyeOff",size:"md",className:re.icon})}),k&&!(k==="X"&&(!c||M))&&_.jsx("div",{onClick:ee,className:ie(re["icon-wrap"],C||k==="X"?re.click:""),children:_.jsx(n1,{name:k,size:"md",className:re.icon})}),x&&_.jsx(Ke,{...x,size:"sm",variant:x.variant||"primary",className:re.button,isDisabled:M||N||f,onClick:K})]}),d&&_.jsx("div",{className:re.helper,children:d})]})},lde=({children:e,name:t,id:a,value:o,checked:i,helper:r,className:c="",label:s,isDisabled:d=!1,isSkeleton:l=!1,isError:h=!1,onChange:u})=>_.jsxs("div",{className:Se.field,children:[_.jsxs("div",{className:ie(Se.radio,(d||l)&&Se["is-disabled"],l&&Se["is-skeleton"],h&&Se["is-error"]),children:[_.jsx("input",{type:"radio",id:a||t,name:t,value:String(o),onChange:u,className:ie(Se.input,c),checked:i,"aria-label":t,disabled:d||l}),_.jsx("label",{htmlFor:a||t,children:e||s&&_.jsx("div",{className:Se.title,children:_.jsx("div",{className:Se.label,children:s})})})]}),r&&_.jsx("div",{className:Se.helper,children:r})]}),ude=({label:e="",placeholder:t="",name:a,id:o,value:i,size:r="md",helper:c,className:s="",isDisabled:d=!1,isLoading:l=!1,isSkeleton:h=!1,isError:u=!1,onChange:p})=>{const k=q.useRef(null),C=()=>{var g;return(g=k.current)==null?void 0:g.focus()};return _.jsxs("div",{className:ie(re.field,!t&&re["no-placeholder"]),children:[e&&_.jsx("label",{htmlFor:o||a,children:e}),_.jsxs("div",{className:ie(re.outer,r&&re[r],s,(d||l||h)&&re["is-disabled"],l&&!h&&re["is-loading"],h&&re["is-skeleton"],u&&re["is-error"]),onClick:C,children:[l&&!h&&_.jsx("div",{className:re.loading}),_.jsxs("div",{className:ie(re.inner),children:[_.jsx("textarea",{ref:k,id:o||a,name:a,value:i,onChange:p,className:re.input,placeholder:" ",required:!0,"aria-label":e?"":t,disabled:d||l||h}),_.jsx("span",{className:re.placeholder,children:t})]})]}),c&&_.jsx("div",{className:re.helper,children:c})]})},pde="example-module__example___TRgac",yde="example-module__content___ExA7w",jC={example:pde,"is-skeleton":"example-module__is-skeleton___dMyJl",content:yde},kde=({isSkeleton:e=!1})=>_.jsx("div",{className:ie(jC.example,e&&jC["is-skeleton"]),children:_.jsx("div",{className:jC.content,children:"Example"})}),fde="modal-module__backdrop___DCpKI",mde="modal-module__fullscreen___sfLoP",Mde="modal-module__main___0Sjqx",gde="modal-module__max___9QSAL",_de="modal-module__sheet___8-CTw",vde="modal-module__drag___mZz3W",Cde="modal-module__scroll___OnShd",xde="modal-module__header___t3TrT",Lde="modal-module__title___oMB-c",wde="modal-module__subtext___IHfeN",bde="modal-module__top___62uvi",Sde="modal-module__left___dCx5f",Ide="modal-module__anchor___UCD-N",Nde="modal-module__right___rvlxY",Ade="modal-module__footer___tqppg",Pde="modal-module__full___WPa3O",Ede="modal-module__text___qx9vw",Rde="modal-module__content___k129O",le={backdrop:fde,fullscreen:mde,"backdrop--close-button":"modal-module__backdrop--close-button___SWtbL","bottom-sheet":"modal-module__bottom-sheet___oPiUM",main:Mde,max:gde,sheet:_de,drag:vde,scroll:Cde,header:xde,title:Lde,subtext:wde,top:bde,left:Sde,anchor:Ide,right:Nde,footer:Ade,full:Pde,text:Ede,content:Rde},Lb=e=>{var t;return q.isValidElement(e)&&((t=e.props)==null?void 0:t.variant)==="anchor"},wb=({title:e="",subtext:t="",leading:a,trailing:o,fullscreen:i=!1,sheet:r=!1})=>{const c=Ox({maxWidth:743}),s=Lb(a),d=Lb(o);return _.jsxs("div",{className:ie(le.header,r&&!c&&le.sheet,i&&`${le.fullscreen} dark`),children:[a&&_.jsx("div",{className:ie(le.left,s&&le.anchor),children:a}),_.jsxs("div",{className:le.top,children:[_.jsx("div",{className:ie(le.title,!t&&le.large),children:e}),t&&_.jsx("div",{className:le.subtext,children:t})]}),o&&_.jsx("div",{className:ie(le.right,d&&le.anchor),children:o})]})},bb=e=>{var t;return q.isValidElement(e)&&((t=e.props)==null?void 0:t.variant)==="anchor"},Sb=({title:e="",subtext:t="",leading:a,trailing:o,fullWidth:i=!1})=>{const r=bb(a),c=bb(o);return _.jsxs("div",{className:ie(le.footer,i&&le.full),children:[(e||t||a)&&_.jsx("div",{className:ie(le.left,r&&!e&&!t&&le.anchor),children:e||t?_.jsxs("div",{className:le.text,children:[e&&_.jsx("div",{className:le.title,children:e}),t&&_.jsx("div",{className:le.subtext,children:t})]}):_.jsx(_.Fragment,{children:a})}),o&&_.jsx("div",{className:ie(le.right,c&&le.anchor),children:o})]})},$de=({children:e,modal:t,headerProps:a,footerProps:o,maxWidth:i,sheet:r=!1,fullscreen:c=!1,mobileMaxHeight:s=!1,mobileDraggable:d=!1,backdropClose:l=!0,bottomSheet:h=!1})=>{const u=q.useRef(null),p=Dre(),k=Ox({maxWidth:743}),[C,g]=q.useState(!0);q.useEffect(()=>{g(k)},[k]);const x=(f,w)=>{w.offset.y>150&&t.hide()},M=()=>{const f={opacity:0};return r&&!k?{...f,translateX:"calc(100% + 0.5rem)",opacity:1}:f},N=()=>{const f={opacity:1};return r&&!k?{...f,translateX:0,opacity:1}:f};return _.jsx(tie,{onExitComplete:()=>t.remove(),children:t.visible&&_.jsxs(fa.div,{className:ie(le.backdrop,h&&le["bottom-sheet"],c&&le.fullscreen,s&&k&&le.max,r&&!k&&le.sheet),children:[_.jsx(fa.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.6},onClick:()=>l&&t.hide(),className:le["backdrop--close-button"]}),C&&d&&h?_.jsx(fa.div,{ref:u,className:ie(le.main,c&&le.fullscreen),style:i?{maxWidth:i}:void 0,drag:"y",dragConstraints:{top:0,bottom:0},dragElastic:{top:0,bottom:.5},dragListener:!1,dragControls:p,onDragEnd:x,initial:{y:"100%"},animate:{y:0},exit:{y:"100%"},transition:{duration:.4,ease:"easeInOut"},children:_.jsxs("div",{className:le.drag,onPointerDown:f=>p.start(f),style:{touchAction:"none"},children:[a&&_.jsx(wb,{...a}),_.jsx("div",{className:le.scroll,children:_.jsx("div",{className:le.content,children:e})}),o&&_.jsx(Sb,{...o})]})}):_.jsxs(fa.div,{className:ie(le.main,c&&le.fullscreen),style:i?{maxWidth:i}:void 0,onDragEnd:x,initial:M(),animate:N(),exit:M(),transition:{duration:.4,ease:"easeInOut"},children:[a&&_.jsx(wb,{...a}),_.jsx("div",{className:le.scroll,children:_.jsx("div",{className:le.content,children:e})}),o&&_.jsx(Sb,{...o})]})]})})};exports.Banner=Rne;exports.Button=Ke;exports.Card=use;exports.Checkbox=vI;exports.Example=kde;exports.Footer=Zae;exports.FormikInput=dde;exports.Header=rse;exports.Icon=n1;exports.Input=hde;exports.Modal=$de;exports.Navbar=sde;exports.Pagination=ide;exports.Projects=Yne;exports.Radio=lde;exports.Section=oae;exports.Select=SI;exports.Stack=wae;exports.Textarea=ude;exports.Timeline=Dae;
|
|
@@ -39851,7 +39851,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39851
39851
|
i1,
|
|
39852
39852
|
{
|
|
39853
39853
|
leadingIcon: "ChevronLeft",
|
|
39854
|
-
size: "
|
|
39854
|
+
size: "md",
|
|
39855
39855
|
variant: "outline",
|
|
39856
39856
|
onClick: s,
|
|
39857
39857
|
isDisabled: t === 1,
|
|
@@ -39862,7 +39862,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39862
39862
|
i1,
|
|
39863
39863
|
{
|
|
39864
39864
|
label: String(l),
|
|
39865
|
-
size: "
|
|
39865
|
+
size: "md",
|
|
39866
39866
|
variant: l === t ? "primary" : "text",
|
|
39867
39867
|
onClick: () => a(l),
|
|
39868
39868
|
isIcon: !0
|
|
@@ -39873,7 +39873,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39873
39873
|
i1,
|
|
39874
39874
|
{
|
|
39875
39875
|
leadingIcon: "ChevronRight",
|
|
39876
|
-
size: "
|
|
39876
|
+
size: "md",
|
|
39877
39877
|
variant: "outline",
|
|
39878
39878
|
onClick: d,
|
|
39879
39879
|
isDisabled: t === e,
|
|
@@ -39885,7 +39885,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39885
39885
|
i1,
|
|
39886
39886
|
{
|
|
39887
39887
|
leadingIcon: "ChevronLeft",
|
|
39888
|
-
size: "
|
|
39888
|
+
size: "md",
|
|
39889
39889
|
variant: "outline",
|
|
39890
39890
|
onClick: s,
|
|
39891
39891
|
isDisabled: t === 1,
|
|
@@ -39897,6 +39897,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39897
39897
|
{
|
|
39898
39898
|
name: "pageSize",
|
|
39899
39899
|
value: String(t),
|
|
39900
|
+
size: "sm",
|
|
39900
39901
|
options: c.map((l) => ({
|
|
39901
39902
|
value: String(l),
|
|
39902
39903
|
label: String(l)
|
|
@@ -39908,7 +39909,7 @@ const zse = (e) => `not ${e}`, Dse = (e, t) => {
|
|
|
39908
39909
|
i1,
|
|
39909
39910
|
{
|
|
39910
39911
|
leadingIcon: "ChevronRight",
|
|
39911
|
-
size: "
|
|
39912
|
+
size: "md",
|
|
39912
39913
|
variant: "outline",
|
|
39913
39914
|
onClick: d,
|
|
39914
39915
|
isDisabled: t === e,
|
package/dist/components.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Modal-CaZwhI4D.cjs");exports.Banner=e.Banner;exports.Button=e.Button;exports.Card=e.Card;exports.Checkbox=e.Checkbox;exports.Example=e.Example;exports.Footer=e.Footer;exports.FormikInput=e.FormikInput;exports.Header=e.Header;exports.Icon=e.Icon;exports.Input=e.Input;exports.Modal=e.Modal;exports.Navbar=e.Navbar;exports.Pagination=e.Pagination;exports.Projects=e.Projects;exports.Radio=e.Radio;exports.Section=e.Section;exports.Select=e.Select;exports.Stack=e.Stack;exports.Textarea=e.Textarea;exports.Timeline=e.Timeline;
|
package/dist/components.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, c as o, C as t, d as n, E as r, F as c, e as i, H as d, h as l, I as m, M as p, N as x, b as I, P as S, R as b, S as k, f as u, a as B, g as C, T as F } from "./Modal-
|
|
1
|
+
import { B as e, c as o, C as t, d as n, E as r, F as c, e as i, H as d, h as l, I as m, M as p, N as x, b as I, P as S, R as b, S as k, f as u, a as B, g as C, T as F } from "./Modal-eOCN80uG.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Banner,
|
|
4
4
|
o as Button,
|
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Modal-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Modal-CaZwhI4D.cjs");exports.Banner=e.Banner;exports.Button=e.Button;exports.Card=e.Card;exports.Checkbox=e.Checkbox;exports.Example=e.Example;exports.Footer=e.Footer;exports.FormikInput=e.FormikInput;exports.Header=e.Header;exports.Icon=e.Icon;exports.Input=e.Input;exports.Modal=e.Modal;exports.Navbar=e.Navbar;exports.Pagination=e.Pagination;exports.Projects=e.Projects;exports.Radio=e.Radio;exports.Section=e.Section;exports.Select=e.Select;exports.Stack=e.Stack;exports.Textarea=e.Textarea;exports.Timeline=e.Timeline;
|
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, c as o, C as t, d as n, E as r, F as c, e as i, H as d, h as l, I as m, M as p, N as x, b as I, P as S, R as b, S as k, f as u, a as B, g as C, T as F } from "./Modal-
|
|
1
|
+
import { B as e, c as o, C as t, d as n, E as r, F as c, e as i, H as d, h as l, I as m, M as p, N as x, b as I, P as S, R as b, S as k, f as u, a as B, g as C, T as F } from "./Modal-eOCN80uG.js";
|
|
2
2
|
export {
|
|
3
3
|
e as Banner,
|
|
4
4
|
o as Button,
|