@eliseubatista99/react-scaffold-core 0.1.72 → 0.1.73

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.
@@ -4,7 +4,7 @@ export declare class TimeHelper {
4
4
  static waitForAsyncCondition: (condition: () => Promise<boolean>) => Promise<void>;
5
5
  static differenceInMonths: (d1: Date, d2: Date) => number;
6
6
  static isDateOneAfterDateTwo: (d1: Date, d2: Date) => boolean;
7
- static isSameDate: (d1: Date, d2: Date) => boolean;
7
+ static isSameDate: (d1: Date | undefined, d2: Date | undefined) => boolean;
8
8
  static getDateInUTC: (date: string | null | undefined) => {
9
9
  day: number;
10
10
  month: number;
package/dist/index.cjs.js CHANGED
@@ -176,7 +176,7 @@ Please change the parent <Route path="${k}"> to <Route path="${k==="/"?"*":`${k}
176
176
  box-sizing: border-box;
177
177
  position: relative;
178
178
  }
179
- `,ns=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:l,header:u}=ts(e);return K.jsxs(rs,{id:"page-container",styles:{...t},children:[u.visible&&K.jsx("div",{ref:u.ref,id:"page-header",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${u.height}px`,marginBottom:`-${l.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${u.height}px`,paddingBottom:`${l.height}px`,...r},children:i})}),l.visible&&K.jsx("div",{ref:l.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content})]})};class Sn{static clamp=(t,r,i)=>t>i?i:t<r?r:t}class is{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class as{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}var ft={exports:{}},os=ft.exports,Dr;function ss(){return Dr||(Dr=1,function(e,t){(function(r,i){e.exports=i()})(os,function(){var r=1e3,i=6e4,a=36e5,s="millisecond",c="second",l="minute",u="hour",h="day",g="week",x="month",j="quarter",M="year",P="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var C=["th","st","nd","rd"],_=T%100;return"["+T+(C[(_-20)%10]||C[_]||C[0])+"]"}},U=function(T,C,_){var o=String(T);return!o||o.length>=C?T:""+Array(C+1-o.length).join(_)+T},B={s:U,z:function(T){var C=-T.utcOffset(),_=Math.abs(C),o=Math.floor(_/60),H=_%60;return(C<=0?"+":"-")+U(o,2,"0")+":"+U(H,2,"0")},m:function T(C,_){if(C.date()<_.date())return-T(_,C);var o=12*(_.year()-C.year())+(_.month()-C.month()),H=C.clone().add(o,x),m=_-H<0,n=C.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:x,y:M,w:g,d:h,D:P,h:u,m:l,s:c,ms:s,Q:j}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",E=function(T){return T instanceof A||!(!T||!T[w])},y=function T(C,_,o){var H;if(!C)return v;if(typeof C=="string"){var m=C.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=C.split("-");if(!H&&n.length>1)return T(n[0])}else{var f=C.name;b[f]=C,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(T,C){if(E(T))return T.clone();var _=typeof C=="object"?C:{};return _.date=T,_.args=arguments,new A(_)},O=B;O.l=y,O.i=E,O.w=function(T,C){return d(T,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var A=function(){function T(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var C=T.prototype;return C.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(O.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},C.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},C.$utils=function(){return O},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},C.isAfter=function(_,o){return d(_)<this.startOf(o)},C.isBefore=function(_,o){return this.endOf(o)<d(_)},C.$g=function(_,o,H){return O.u(_)?this[o]:this.set(H,_)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(_,o){var H=this,m=!!O.u(o)||o,n=O.p(_),f=function(G,X){var J=O.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return O.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,D=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,D):f(0,D+1);case g:var W=this.$locale().weekStart||0,V=($<W?$+7:$)-W;return f(m?z-V:z+(6-V),D);case h:case P:return S(N+"Hours",0);case u:return S(N+"Minutes",1);case l:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},C.endOf=function(_){return this.startOf(_,!1)},C.$set=function(_,o){var H,m=O.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[P]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[u]=n+"Hours",H[l]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(P,1);$.$d[f](S),$.init(),this.$d=$.set(P,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},C.set=function(_,o){return this.clone().$set(_,o)},C.get=function(_){return this[O.p(_)]()},C.add=function(_,o){var H,m=this;_=Number(_);var n=O.p(o),f=function(D){var z=d(m);return O.w(z.date(z.date()+Math.round(D*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[l]=i,H[u]=a,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return O.w($,this)},C.subtract=function(_,o){return this.add(-1*_,o)},C.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=O.z(this),f=this.$H,S=this.$m,$=this.$M,D=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},V=function(X){return O.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(k,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return O.s(o.$y,4,"0");case"M":return $+1;case"MM":return O.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return O.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,D,2);case"ddd":return W(H.weekdaysShort,o.$W,D,3);case"dddd":return D[o.$W];case"H":return String(f);case"HH":return O.s(f,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return O.s(S,2,"0");case"s":return String(o.$s);case"ss":return O.s(o.$s,2,"0");case"SSS":return O.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(_,o,H){var m,n=this,f=O.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*i,D=this-S,z=function(){return O.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(D-$)/6048e5;break;case h:m=(D-$)/864e5;break;case u:m=D/a;break;case l:m=D/i;break;case c:m=D/r;break;default:m=D}return H?m:O.a(m)},C.daysInMonth=function(){return this.endOf(x).$D},C.$locale=function(){return b[this.$L]},C.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},C.clone=function(){return O.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},T}(),R=A.prototype;return d.prototype=R,[["$ms",s],["$s",c],["$m",l],["$H",u],["$W",h],["$M",x],["$y",M],["$D",P]].forEach(function(T){R[T[1]]=function(C){return this.$g(C,T[0],T[1])}}),d.extend=function(T,C){return T.$i||(T(C,A,d),T.$i=!0),d},d.locale=y,d.isDayjs=E,d.unix=function(T){return d(1e3*T)},d.en=b[v],d.Ls=b,d.p={},d})}(ft)),ft.exports}var ls=ss();const dt=Ut(ls);var ht={exports:{}},us=ht.exports,Lr;function cs(){return Lr||(Lr=1,function(e,t){(function(r,i){e.exports=i()})(us,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,l){var u=c.prototype;l.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},u.utc=function(p){var I=l(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=u.parse;u.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=u.init;u.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=u.utcOffset;u.utcOffset=function(p,I){var k=this.$utils().u;if(k(p))return this.$u?0:k(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(i);if(!b)return null;var w=(""+b[0]).match(a)||["-",0,0],E=w[0],y=60*+w[1]+ +w[2];return y===0?0:E==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var U=this.clone();if(I)return U.$offset=F,U.$u=!1,U;var B=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+B,r)).$offset=F,U.$x.$localOffset=B,U};var j=u.format;u.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},u.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var M=u.toDate;u.toDate=function(p){return p==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var P=u.diff;u.diff=function(p,I,k){if(p&&this.$u===p.$u)return P.call(this,p,I,k);var F=this.local(),U=l(p).local();return P.call(F,U,I,k)}}})}(ht)),ht.exports}var fs=cs();const ds=Ut(fs);dt.extend(ds);class hs{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const i=()=>{t()?r():setTimeout(i,100)};i()});static waitForAsyncCondition=t=>new Promise(r=>{const i=async()=>{await t()?r():setTimeout(i,100)};i()});static differenceInMonths=(t,r)=>{let i=0;return i=(r.getFullYear()-t.getFullYear())*12,i-=t.getMonth(),i+=r.getMonth(),i};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static isSameDate=(t,r)=>t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()&&t.getDate()===r.getDate();static getDateInUTC=t=>{try{const r=dt.utc(t),i=r.date(),a=r.month(),s=r.year(),c=r.hour(),l=r.minute(),u=r.day();return{day:i,month:a,year:s,hour:c,minute:l,weekday:u}}catch{return}};static formatDateLocalTime=(t,r)=>t?dt.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?dt.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const ps=({percentage:e,min:t=0,max:r=100,styles:i,barStyles:a})=>{const s=Sn.clamp(e,t,r);return K.jsx("div",{style:{width:"90%",height:"30px",border:"1px solid #000000",borderRadius:"3px",background:"#ffffff",...i},children:K.jsx("div",{style:{width:`${s}%`,height:"100%",background:"#f58b00ff",...a}})})},ms=({checked:e,onClick:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.()},style:{width:"25px",height:"25px",borderRadius:"50%",border:e?"2px solid #000000":"2px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&K.jsxs(K.Fragment,{children:[!a&&K.jsx("div",{style:{borderRadius:"50%",aspectRatio:"1/1",width:"40%",background:"#ffffff"}}),a]}),!e&&s]})},vs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:l,styles:u})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...u},onClick:()=>l?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),gs=Pe.div`
179
+ `,ns=e=>{const{containerStyles:t,pageStyles:r,children:i,allowScroll:a=!0,floatingContent:s,reserveSpaceForScrollbar:c}=e,{footer:l,header:u}=ts(e);return K.jsxs(rs,{id:"page-container",styles:{...t},children:[u.visible&&K.jsx("div",{ref:u.ref,id:"page-header",style:{width:"100%",zIndex:99,position:u.visibility==="fixed"?"relative":"sticky",top:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...u.styles},children:u.content}),K.jsx("div",{id:"page-body",style:{width:"100%",overflow:"hidden",display:"flex",flex:1,marginTop:`-${u.height}px`,marginBottom:`-${l.height}px`},children:K.jsx("div",{id:"page-content",style:{width:"100%",overflowX:"hidden",overflowY:a?"auto":"hidden",display:"flex",flexDirection:"column",flex:1,minHeight:"100%",scrollbarGutter:c?"stable":void 0,paddingLeft:"0px",paddingRight:"0px",paddingTop:`${u.height}px`,paddingBottom:`${l.height}px`,...r},children:i})}),l.visible&&K.jsx("div",{ref:l.ref,id:"page-footer",style:{width:"100%",zIndex:99,position:l.visibility==="fixed"?"relative":"sticky",bottom:0,left:0,right:0,display:"flex",flexDirection:"row",height:"fit-content",boxSizing:"border-box",...l.styles},children:l.content})]})};class Sn{static clamp=(t,r,i)=>t>i?i:t<r?r:t}class is{static isScrollEnabled=()=>document.body.style.overflow==="unset"||document.body.style.overflow==="auto";static disableScroll=()=>{document.body.style.overflow="hidden"};static enableScroll=()=>{document.body.style.overflow="unset"}}class as{static getPascalCase=t=>t.replace(/\w+/g,function(r){return r[0].toUpperCase()+r.slice(1).toLowerCase()});static isEqual=(t,r,i=!0)=>i?t===r:t.toUpperCase()===r.toUpperCase()}var ft={exports:{}},os=ft.exports,Dr;function ss(){return Dr||(Dr=1,function(e,t){(function(r,i){e.exports=i()})(os,function(){var r=1e3,i=6e4,a=36e5,s="millisecond",c="second",l="minute",u="hour",h="day",g="week",x="month",j="quarter",M="year",P="date",p="Invalid Date",I=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,F={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var C=["th","st","nd","rd"],_=T%100;return"["+T+(C[(_-20)%10]||C[_]||C[0])+"]"}},U=function(T,C,_){var o=String(T);return!o||o.length>=C?T:""+Array(C+1-o.length).join(_)+T},B={s:U,z:function(T){var C=-T.utcOffset(),_=Math.abs(C),o=Math.floor(_/60),H=_%60;return(C<=0?"+":"-")+U(o,2,"0")+":"+U(H,2,"0")},m:function T(C,_){if(C.date()<_.date())return-T(_,C);var o=12*(_.year()-C.year())+(_.month()-C.month()),H=C.clone().add(o,x),m=_-H<0,n=C.clone().add(o+(m?-1:1),x);return+(-(o+(_-H)/(m?H-n:n-H))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:x,y:M,w:g,d:h,D:P,h:u,m:l,s:c,ms:s,Q:j}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},v="en",b={};b[v]=F;var w="$isDayjsObject",E=function(T){return T instanceof A||!(!T||!T[w])},y=function T(C,_,o){var H;if(!C)return v;if(typeof C=="string"){var m=C.toLowerCase();b[m]&&(H=m),_&&(b[m]=_,H=m);var n=C.split("-");if(!H&&n.length>1)return T(n[0])}else{var f=C.name;b[f]=C,H=f}return!o&&H&&(v=H),H||!o&&v},d=function(T,C){if(E(T))return T.clone();var _=typeof C=="object"?C:{};return _.date=T,_.args=arguments,new A(_)},O=B;O.l=y,O.i=E,O.w=function(T,C){return d(T,{locale:C.$L,utc:C.$u,x:C.$x,$offset:C.$offset})};var A=function(){function T(_){this.$L=y(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[w]=!0}var C=T.prototype;return C.parse=function(_){this.$d=function(o){var H=o.date,m=o.utc;if(H===null)return new Date(NaN);if(O.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var n=H.match(I);if(n){var f=n[2]-1||0,S=(n[7]||"0").substring(0,3);return m?new Date(Date.UTC(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],f,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(H)}(_),this.init()},C.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},C.$utils=function(){return O},C.isValid=function(){return this.$d.toString()!==p},C.isSame=function(_,o){var H=d(_);return this.startOf(o)<=H&&H<=this.endOf(o)},C.isAfter=function(_,o){return d(_)<this.startOf(o)},C.isBefore=function(_,o){return this.endOf(o)<d(_)},C.$g=function(_,o,H){return O.u(_)?this[o]:this.set(H,_)},C.unix=function(){return Math.floor(this.valueOf()/1e3)},C.valueOf=function(){return this.$d.getTime()},C.startOf=function(_,o){var H=this,m=!!O.u(o)||o,n=O.p(_),f=function(G,X){var J=O.w(H.$u?Date.UTC(H.$y,X,G):new Date(H.$y,X,G),H);return m?J:J.endOf(h)},S=function(G,X){return O.w(H.toDate()[G].apply(H.toDate("s"),(m?[0,0,0,0]:[23,59,59,999]).slice(X)),H)},$=this.$W,D=this.$M,z=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case M:return m?f(1,0):f(31,11);case x:return m?f(1,D):f(0,D+1);case g:var W=this.$locale().weekStart||0,V=($<W?$+7:$)-W;return f(m?z-V:z+(6-V),D);case h:case P:return S(N+"Hours",0);case u:return S(N+"Minutes",1);case l:return S(N+"Seconds",2);case c:return S(N+"Milliseconds",3);default:return this.clone()}},C.endOf=function(_){return this.startOf(_,!1)},C.$set=function(_,o){var H,m=O.p(_),n="set"+(this.$u?"UTC":""),f=(H={},H[h]=n+"Date",H[P]=n+"Date",H[x]=n+"Month",H[M]=n+"FullYear",H[u]=n+"Hours",H[l]=n+"Minutes",H[c]=n+"Seconds",H[s]=n+"Milliseconds",H)[m],S=m===h?this.$D+(o-this.$W):o;if(m===x||m===M){var $=this.clone().set(P,1);$.$d[f](S),$.init(),this.$d=$.set(P,Math.min(this.$D,$.daysInMonth())).$d}else f&&this.$d[f](S);return this.init(),this},C.set=function(_,o){return this.clone().$set(_,o)},C.get=function(_){return this[O.p(_)]()},C.add=function(_,o){var H,m=this;_=Number(_);var n=O.p(o),f=function(D){var z=d(m);return O.w(z.date(z.date()+Math.round(D*_)),m)};if(n===x)return this.set(x,this.$M+_);if(n===M)return this.set(M,this.$y+_);if(n===h)return f(1);if(n===g)return f(7);var S=(H={},H[l]=i,H[u]=a,H[c]=r,H)[n]||1,$=this.$d.getTime()+_*S;return O.w($,this)},C.subtract=function(_,o){return this.add(-1*_,o)},C.format=function(_){var o=this,H=this.$locale();if(!this.isValid())return H.invalidDate||p;var m=_||"YYYY-MM-DDTHH:mm:ssZ",n=O.z(this),f=this.$H,S=this.$m,$=this.$M,D=H.weekdays,z=H.months,N=H.meridiem,W=function(X,J,te,Z){return X&&(X[J]||X(o,m))||te[J].slice(0,Z)},V=function(X){return O.s(f%12||12,X,"0")},G=N||function(X,J,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return m.replace(k,function(X,J){return J||function(te){switch(te){case"YY":return String(o.$y).slice(-2);case"YYYY":return O.s(o.$y,4,"0");case"M":return $+1;case"MM":return O.s($+1,2,"0");case"MMM":return W(H.monthsShort,$,z,3);case"MMMM":return W(z,$);case"D":return o.$D;case"DD":return O.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return W(H.weekdaysMin,o.$W,D,2);case"ddd":return W(H.weekdaysShort,o.$W,D,3);case"dddd":return D[o.$W];case"H":return String(f);case"HH":return O.s(f,2,"0");case"h":return V(1);case"hh":return V(2);case"a":return G(f,S,!0);case"A":return G(f,S,!1);case"m":return String(S);case"mm":return O.s(S,2,"0");case"s":return String(o.$s);case"ss":return O.s(o.$s,2,"0");case"SSS":return O.s(o.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},C.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},C.diff=function(_,o,H){var m,n=this,f=O.p(o),S=d(_),$=(S.utcOffset()-this.utcOffset())*i,D=this-S,z=function(){return O.m(n,S)};switch(f){case M:m=z()/12;break;case x:m=z();break;case j:m=z()/3;break;case g:m=(D-$)/6048e5;break;case h:m=(D-$)/864e5;break;case u:m=D/a;break;case l:m=D/i;break;case c:m=D/r;break;default:m=D}return H?m:O.a(m)},C.daysInMonth=function(){return this.endOf(x).$D},C.$locale=function(){return b[this.$L]},C.locale=function(_,o){if(!_)return this.$L;var H=this.clone(),m=y(_,o,!0);return m&&(H.$L=m),H},C.clone=function(){return O.w(this.$d,this)},C.toDate=function(){return new Date(this.valueOf())},C.toJSON=function(){return this.isValid()?this.toISOString():null},C.toISOString=function(){return this.$d.toISOString()},C.toString=function(){return this.$d.toUTCString()},T}(),R=A.prototype;return d.prototype=R,[["$ms",s],["$s",c],["$m",l],["$H",u],["$W",h],["$M",x],["$y",M],["$D",P]].forEach(function(T){R[T[1]]=function(C){return this.$g(C,T[0],T[1])}}),d.extend=function(T,C){return T.$i||(T(C,A,d),T.$i=!0),d},d.locale=y,d.isDayjs=E,d.unix=function(T){return d(1e3*T)},d.en=b[v],d.Ls=b,d.p={},d})}(ft)),ft.exports}var ls=ss();const dt=Ut(ls);var ht={exports:{}},us=ht.exports,Lr;function cs(){return Lr||(Lr=1,function(e,t){(function(r,i){e.exports=i()})(us,function(){var r="minute",i=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,c,l){var u=c.prototype;l.utc=function(p){var I={date:p,utc:!0,args:arguments};return new c(I)},u.utc=function(p){var I=l(this.toDate(),{locale:this.$L,utc:!0});return p?I.add(this.utcOffset(),r):I},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var h=u.parse;u.parse=function(p){p.utc&&(this.$u=!0),this.$utils().u(p.$offset)||(this.$offset=p.$offset),h.call(this,p)};var g=u.init;u.init=function(){if(this.$u){var p=this.$d;this.$y=p.getUTCFullYear(),this.$M=p.getUTCMonth(),this.$D=p.getUTCDate(),this.$W=p.getUTCDay(),this.$H=p.getUTCHours(),this.$m=p.getUTCMinutes(),this.$s=p.getUTCSeconds(),this.$ms=p.getUTCMilliseconds()}else g.call(this)};var x=u.utcOffset;u.utcOffset=function(p,I){var k=this.$utils().u;if(k(p))return this.$u?0:k(this.$offset)?x.call(this):this.$offset;if(typeof p=="string"&&(p=function(v){v===void 0&&(v="");var b=v.match(i);if(!b)return null;var w=(""+b[0]).match(a)||["-",0,0],E=w[0],y=60*+w[1]+ +w[2];return y===0?0:E==="+"?y:-y}(p),p===null))return this;var F=Math.abs(p)<=16?60*p:p;if(F===0)return this.utc(I);var U=this.clone();if(I)return U.$offset=F,U.$u=!1,U;var B=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+B,r)).$offset=F,U.$x.$localOffset=B,U};var j=u.format;u.format=function(p){var I=p||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,I)},u.valueOf=function(){var p=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*p},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var M=u.toDate;u.toDate=function(p){return p==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():M.call(this)};var P=u.diff;u.diff=function(p,I,k){if(p&&this.$u===p.$u)return P.call(this,p,I,k);var F=this.local(),U=l(p).local();return P.call(F,U,I,k)}}})}(ht)),ht.exports}var fs=cs();const ds=Ut(fs);dt.extend(ds);class hs{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const i=()=>{t()?r():setTimeout(i,100)};i()});static waitForAsyncCondition=t=>new Promise(r=>{const i=async()=>{await t()?r():setTimeout(i,100)};i()});static differenceInMonths=(t,r)=>{let i=0;return i=(r.getFullYear()-t.getFullYear())*12,i-=t.getMonth(),i+=r.getMonth(),i};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static isSameDate=(t,r)=>t?.getFullYear()===r?.getFullYear()&&t?.getMonth()===r?.getMonth()&&t?.getDate()===r?.getDate();static getDateInUTC=t=>{try{const r=dt.utc(t),i=r.date(),a=r.month(),s=r.year(),c=r.hour(),l=r.minute(),u=r.day();return{day:i,month:a,year:s,hour:c,minute:l,weekday:u}}catch{return}};static formatDateLocalTime=(t,r)=>t?dt.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?dt.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const ps=({percentage:e,min:t=0,max:r=100,styles:i,barStyles:a})=>{const s=Sn.clamp(e,t,r);return K.jsx("div",{style:{width:"90%",height:"30px",border:"1px solid #000000",borderRadius:"3px",background:"#ffffff",...i},children:K.jsx("div",{style:{width:`${s}%`,height:"100%",background:"#f58b00ff",...a}})})},ms=({checked:e,onClick:t,styles:r,checkedStyles:i,customCheckedRender:a,customUncheckedRender:s})=>{const c=e?{...r,...i}:{...r};return K.jsxs("div",{onClick:l=>{l.preventDefault(),l.stopPropagation(),t?.()},style:{width:"25px",height:"25px",borderRadius:"50%",border:e?"2px solid #000000":"2px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...c},children:[e&&K.jsxs(K.Fragment,{children:[!a&&K.jsx("div",{style:{borderRadius:"50%",aspectRatio:"1/1",width:"40%",background:"#ffffff"}}),a]}),!e&&s]})},vs=({src:e,width:t="22",height:r="28",stroke:i,viewBox:a="0 0 22 28",fill:s="#000000",alt:c="",onClick:l,styles:u})=>K.jsx("div",{style:{width:"fit-content",height:"fit-content",display:"flex",alignItems:"center",justifyContent:"center",...u},onClick:()=>l?.(),children:K.jsx("svg",{width:t,height:r,viewBox:a,fill:s,stroke:i,xmlns:"http://www.w3.org/2000/svg",style:{display:"flex"},children:e})}),gs=Pe.div`
180
180
  display: flex;
181
181
  flex-direction: column;
182
182
  font-family: inherit;
package/dist/index.es.js CHANGED
@@ -6904,7 +6904,7 @@ class ws {
6904
6904
  return i = (r.getFullYear() - t.getFullYear()) * 12, i -= t.getMonth(), i += r.getMonth(), i;
6905
6905
  };
6906
6906
  static isDateOneAfterDateTwo = (t, r) => t.getFullYear() >= r.getFullYear() && t.getMonth() >= r.getMonth() ? t.getDay() > r.getDay() : !1;
6907
- static isSameDate = (t, r) => t.getFullYear() === r.getFullYear() && t.getMonth() === r.getMonth() && t.getDate() === r.getDate();
6907
+ static isSameDate = (t, r) => t?.getFullYear() === r?.getFullYear() && t?.getMonth() === r?.getMonth() && t?.getDate() === r?.getDate();
6908
6908
  static getDateInUTC = (t) => {
6909
6909
  try {
6910
6910
  const r = dt.utc(t), i = r.date(), a = r.month(), s = r.year(), c = r.hour(), l = r.minute(), u = r.day();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.72",
3
+ "version": "0.1.73",
4
4
  "private": false,
5
5
  "description": "A library which provides basic components, hooks, helpers and providers to easily build a React application and avoid repeating the usual code.",
6
6
  "main": "dist/index.cjs.js",