@eliseubatista99/react-scaffold-core 0.1.44 → 0.1.45

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.
@@ -7,4 +7,4 @@ export type CheckboxProps = {
7
7
  styles?: CSSProperties;
8
8
  checkedStyles?: CSSProperties;
9
9
  };
10
- export declare const Checkbox: ({ checked, onToggle, styles, customCheckedRender, customUncheckedRender, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const Checkbox: ({ checked, onToggle, styles, checkedStyles, customCheckedRender, customUncheckedRender, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ checked, onToggle, styles, customCheckedRender, customUncheckedRender, }: import('../checkbox').CheckboxProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ checked, onToggle, styles, checkedStyles, customCheckedRender, customUncheckedRender, }: import('../checkbox').CheckboxProps) => import("react/jsx-runtime").JSX.Element;
5
5
  parameters: {
6
6
  layout: string;
7
7
  };
package/dist/index.cjs.js CHANGED
@@ -112,7 +112,7 @@ React keys must be passed directly to JSX without using spread:
112
112
  box-sizing: border-box;
113
113
  display: flex;
114
114
  }
115
- `,io=({styles:e,content:t,settings:r,gap:o=15})=>{const[i,s]=Y.useState(1),l=Y.useRef(null),f=Y.useRef(null);var d={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const m=t.map((R,j)=>J.jsx(no,{ref:j===0?f:void 0,styles:{paddingRight:`${o}px`,overflow:"visible",...R.styles},"data-testid":"carousel-slide-item",children:R.content})),w=()=>{if(d.slidesToShow){s(d.slidesToShow);return}const R=(l.current?.offsetWidth||1)-o,j=f.current?.offsetWidth||1;let A=Math.floor(R/j);A<1?A=1:A>t.length&&(A=t.length),console.log("Slides to show > ",{container:R,slide:j,res:A}),s(A)};return Y.useEffect(()=>{w()},[l,f]),J.jsx(ro,{ref:l,styles:{...e},children:J.jsx(oi,{...d,slidesToShow:i,children:m})})},oo=({checked:e,onToggle:t,styles:r,customCheckedRender:o,customUncheckedRender:i})=>J.jsxs("div",{onClick:()=>t?.(!e),style:{width:"10px",height:"10px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...r},children:[e&&o,!e&&i]}),ao=e=>Y.useEffect(e,[]),Gr=()=>{const[e,t]=Y.useState({}),[r,o]=Y.useState(!1);return Y.useEffect(()=>{const i=f=>{t({x:f.clientX,y:f.clientY})},s=f=>{o(!0)},l=f=>{o(!1)};return window.addEventListener("pointermove",i),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",l),()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",l)}},[]),{pointerPosition:e,isPointerDown:r}},Kr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:o})=>{const i=Y.useRef(!1),s=Y.useRef(!1),{pointerPosition:l,isPointerDown:f}=Gr(),d=Y.useRef({isDragging:!1}),m=Y.useCallback(P=>{if(!e||!e.current||!d.current)return;const h={...d.current};return h.posY=P.y,h.posX=P.x,d.current.startPosX&&d.current.posX&&(h.distanceX=d.current.startPosX-d.current.posX),d.current.startPosY&&d.current.posY&&(h.distanceY=-(d.current.startPosY-d.current.posY)),h},[]),w=Y.useCallback(P=>{P.preventDefault(),P.stopPropagation(),d.current.isDragging=!0,d.current.startPosY=P.clientY,d.current.startPosX=P.clientX;const h=m({x:P.clientX,y:P.clientY});h&&(d.current=h,r?.(h))},[m]),R=Y.useCallback(P=>{d.current.isDragging=!1;const h=m(l);h&&(o?.(h),h.startPosX=void 0,h.startPosY=void 0,d.current=h)},[m,l]),j=Y.useCallback(P=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",d.current.isDragging),!d.current.isDragging)return;const h=m(l);console.debug("useDrag > onPointerMove > Drag Result >",h),h&&(t?.(h),d.current=h)},[m,l]),A=Y.useCallback(async()=>{if(!i.current){for(;!e?.current;)await new Promise(P=>setTimeout(P,300));i.current=!0,e.current.onpointerdown=w,e.current.style.touchAction="none"}},[e?.current,w]);Y.useEffect(()=>{A()},[A]),Y.useEffect(()=>{j()},[l]),Y.useEffect(()=>{f!==s.current&&(s.current=f,f||R())},[f,s.current])},so=()=>{const e=(r,o)=>{let i=0,s=`${r}?`;for(const l in o){const f=o[l];i>0&&(s=`${s}&`),s=`${s}${l}=${f}`,i++}return s};return async(r,o)=>{const i=e(r,o);return await(await fetch(i)).json()}};var ut={exports:{}},lo=ut.exports,kr;function uo(){return kr||(kr=1,function(e,t){(function(r,o){e.exports=o()})(lo,function(){var r=1e3,o=6e4,i=36e5,s="millisecond",l="second",f="minute",d="hour",m="day",w="week",R="month",j="quarter",A="year",P="date",h="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|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(_){var k=["th","st","nd","rd"],T=_%100;return"["+_+(k[(T-20)%10]||k[T]||k[0])+"]"}},U=function(_,k,T){var a=String(_);return!a||a.length>=k?_:""+Array(k+1-a.length).join(T)+_},V={s:U,z:function(_){var k=-_.utcOffset(),T=Math.abs(k),a=Math.floor(T/60),z=T%60;return(k<=0?"+":"-")+U(a,2,"0")+":"+U(z,2,"0")},m:function _(k,T){if(k.date()<T.date())return-_(T,k);var a=12*(T.year()-k.year())+(T.month()-k.month()),z=k.clone().add(a,R),p=T-z<0,n=k.clone().add(a+(p?-1:1),R);return+(-(a+(T-z)/(p?z-n:n-z))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:R,y:A,w,d:m,D:P,h:d,m:f,s:l,ms:s,Q:j}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},v="en",y={};y[v]=F;var b="$isDayjsObject",C=function(_){return _ instanceof I||!(!_||!_[b])},g=function _(k,T,a){var z;if(!k)return v;if(typeof k=="string"){var p=k.toLowerCase();y[p]&&(z=p),T&&(y[p]=T,z=p);var n=k.split("-");if(!z&&n.length>1)return _(n[0])}else{var u=k.name;y[u]=k,z=u}return!a&&z&&(v=z),z||!a&&v},c=function(_,k){if(C(_))return _.clone();var T=typeof k=="object"?k:{};return T.date=_,T.args=arguments,new I(T)},x=V;x.l=g,x.i=C,x.w=function(_,k){return c(_,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var I=function(){function _(T){this.$L=g(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[b]=!0}var k=_.prototype;return k.parse=function(T){this.$d=function(a){var z=a.date,p=a.utc;if(z===null)return new Date(NaN);if(x.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var n=z.match($);if(n){var u=n[2]-1||0,S=(n[7]||"0").substring(0,3);return p?new Date(Date.UTC(n[1],u,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],u,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(z)}(T),this.init()},k.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},k.$utils=function(){return x},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(T,a){var z=c(T);return this.startOf(a)<=z&&z<=this.endOf(a)},k.isAfter=function(T,a){return c(T)<this.startOf(a)},k.isBefore=function(T,a){return this.endOf(a)<c(T)},k.$g=function(T,a,z){return x.u(T)?this[a]:this.set(z,T)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(T,a){var z=this,p=!!x.u(a)||a,n=x.p(T),u=function(G,X){var K=x.w(z.$u?Date.UTC(z.$y,X,G):new Date(z.$y,X,G),z);return p?K:K.endOf(m)},S=function(G,X){return x.w(z.toDate()[G].apply(z.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(X)),z)},M=this.$W,L=this.$M,H=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case A:return p?u(1,0):u(31,11);case R:return p?u(1,L):u(0,L+1);case w:var W=this.$locale().weekStart||0,B=(M<W?M+7:M)-W;return u(p?H-B:H+(6-B),L);case m:case P:return S(N+"Hours",0);case d:return S(N+"Minutes",1);case f:return S(N+"Seconds",2);case l:return S(N+"Milliseconds",3);default:return this.clone()}},k.endOf=function(T){return this.startOf(T,!1)},k.$set=function(T,a){var z,p=x.p(T),n="set"+(this.$u?"UTC":""),u=(z={},z[m]=n+"Date",z[P]=n+"Date",z[R]=n+"Month",z[A]=n+"FullYear",z[d]=n+"Hours",z[f]=n+"Minutes",z[l]=n+"Seconds",z[s]=n+"Milliseconds",z)[p],S=p===m?this.$D+(a-this.$W):a;if(p===R||p===A){var M=this.clone().set(P,1);M.$d[u](S),M.init(),this.$d=M.set(P,Math.min(this.$D,M.daysInMonth())).$d}else u&&this.$d[u](S);return this.init(),this},k.set=function(T,a){return this.clone().$set(T,a)},k.get=function(T){return this[x.p(T)]()},k.add=function(T,a){var z,p=this;T=Number(T);var n=x.p(a),u=function(L){var H=c(p);return x.w(H.date(H.date()+Math.round(L*T)),p)};if(n===R)return this.set(R,this.$M+T);if(n===A)return this.set(A,this.$y+T);if(n===m)return u(1);if(n===w)return u(7);var S=(z={},z[f]=o,z[d]=i,z[l]=r,z)[n]||1,M=this.$d.getTime()+T*S;return x.w(M,this)},k.subtract=function(T,a){return this.add(-1*T,a)},k.format=function(T){var a=this,z=this.$locale();if(!this.isValid())return z.invalidDate||h;var p=T||"YYYY-MM-DDTHH:mm:ssZ",n=x.z(this),u=this.$H,S=this.$m,M=this.$M,L=z.weekdays,H=z.months,N=z.meridiem,W=function(X,K,te,Z){return X&&(X[K]||X(a,p))||te[K].slice(0,Z)},B=function(X){return x.s(u%12||12,X,"0")},G=N||function(X,K,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return p.replace(O,function(X,K){return K||function(te){switch(te){case"YY":return String(a.$y).slice(-2);case"YYYY":return x.s(a.$y,4,"0");case"M":return M+1;case"MM":return x.s(M+1,2,"0");case"MMM":return W(z.monthsShort,M,H,3);case"MMMM":return W(H,M);case"D":return a.$D;case"DD":return x.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return W(z.weekdaysMin,a.$W,L,2);case"ddd":return W(z.weekdaysShort,a.$W,L,3);case"dddd":return L[a.$W];case"H":return String(u);case"HH":return x.s(u,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return G(u,S,!0);case"A":return G(u,S,!1);case"m":return String(S);case"mm":return x.s(S,2,"0");case"s":return String(a.$s);case"ss":return x.s(a.$s,2,"0");case"SSS":return x.s(a.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(T,a,z){var p,n=this,u=x.p(a),S=c(T),M=(S.utcOffset()-this.utcOffset())*o,L=this-S,H=function(){return x.m(n,S)};switch(u){case A:p=H()/12;break;case R:p=H();break;case j:p=H()/3;break;case w:p=(L-M)/6048e5;break;case m:p=(L-M)/864e5;break;case d:p=L/i;break;case f:p=L/o;break;case l:p=L/r;break;default:p=L}return z?p:x.a(p)},k.daysInMonth=function(){return this.endOf(R).$D},k.$locale=function(){return y[this.$L]},k.locale=function(T,a){if(!T)return this.$L;var z=this.clone(),p=g(T,a,!0);return p&&(z.$L=p),z},k.clone=function(){return x.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},_}(),E=I.prototype;return c.prototype=E,[["$ms",s],["$s",l],["$m",f],["$H",d],["$W",m],["$M",R],["$y",A],["$D",P]].forEach(function(_){E[_[1]]=function(k){return this.$g(k,_[0],_[1])}}),c.extend=function(_,k){return _.$i||(_(k,I,c),_.$i=!0),c},c.locale=g,c.isDayjs=C,c.unix=function(_){return c(1e3*_)},c.en=y[v],c.Ls=y,c.p={},c})}(ut)),ut.exports}var co=uo();const ct=Wt(co);var ft={exports:{}},fo=ft.exports,Or;function ho(){return Or||(Or=1,function(e,t){(function(r,o){e.exports=o()})(fo,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,l,f){var d=l.prototype;f.utc=function(h){var $={date:h,utc:!0,args:arguments};return new l($)},d.utc=function(h){var $=f(this.toDate(),{locale:this.$L,utc:!0});return h?$.add(this.utcOffset(),r):$},d.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var m=d.parse;d.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),m.call(this,h)};var w=d.init;d.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else w.call(this)};var R=d.utcOffset;d.utcOffset=function(h,$){var O=this.$utils().u;if(O(h))return this.$u?0:O(this.$offset)?R.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var y=v.match(o);if(!y)return null;var b=(""+y[0]).match(i)||["-",0,0],C=b[0],g=60*+b[1]+ +b[2];return g===0?0:C==="+"?g:-g}(h),h===null))return this;var F=Math.abs(h)<=16?60*h:h;if(F===0)return this.utc($);var U=this.clone();if($)return U.$offset=F,U.$u=!1,U;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+V,r)).$offset=F,U.$x.$localOffset=V,U};var j=d.format;d.format=function(h){var $=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,$)},d.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var A=d.toDate;d.toDate=function(h){return h==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var P=d.diff;d.diff=function(h,$,O){if(h&&this.$u===h.$u)return P.call(this,h,$,O);var F=this.local(),U=f(h).local();return P.call(F,U,$,O)}}})}(ft)),ft.exports}var po=ho();const mo=Wt(po);ct.extend(mo);class Jr{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const o=()=>{t()?r():setTimeout(o,100)};o()});static waitForAsyncCondition=t=>new Promise(r=>{const o=async()=>{await t()?r():setTimeout(o,100)};o()});static differenceInMonths=(t,r)=>{let o=0;return o=(r.getFullYear()-t.getFullYear())*12,o-=t.getMonth(),o+=r.getMonth(),o};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static getDateInUTC=t=>{try{const r=ct.utc(t),o=r.date(),i=r.month(),s=r.year(),l=r.hour(),f=r.minute(),d=r.day();return{day:o,month:i,year:s,hour:l,minute:f,weekday:d}}catch{return}};static formatDateLocalTime=(t,r)=>t?ct.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?ct.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const vo=(e,t=0)=>{const r=Y.useRef(0),[o,i]=Y.useState(0),s=Y.useRef(null),[l,f]=Y.useState(!1),d=Y.useCallback(()=>{f(R=>!R)},[]),m=Y.useCallback(()=>r.current===0?!1:o>=r.current-t,[t,o]),w=Y.useCallback(()=>e.current!==null&&e.current!==void 0,[e]);return Y.useEffect(()=>{const R=()=>{if(!e.current)return;const A=e.current.scrollHeight-e.current.clientHeight;r.current=A,i(e.current.scrollTop)};return(async()=>{await Jr.waitForCondition(w),s.current=e.current,s.current?.addEventListener("scroll",R)})(),()=>{s.current?.removeEventListener("scroll",R)}},[e,r,i,o,w,l]),{isTouchingBottom:m(),refresh:d}},Zr={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},go=e=>{const t={...Zr,...e?.breakpointConfiguration},[r,o]=Y.useState(Cr(t)),i=()=>{o(Cr(t))};return Y.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]),Y.useMemo(()=>r,[r])},yo=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",bo=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Cr=e=>{const t=window.innerWidth,r=window.innerHeight,o=yo(t,e),i=bo(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:o,currentSize:i}},wo=e=>{const t=e.translations,r=e.language,o=(s,l)=>{if(!s)return;let f=s[r];if(f)return l&&Object.keys(l).forEach(d=>{const m=l[d];f=f.replaceAll(`{{${d}}}`,`${m}`)}),f};return{t:(s,l)=>{if(t[s]){const f=o(t[s],l);return f??s}return s},getTranslation:o}};var Ue={},Pr;function So(){if(Pr)return Ue;Pr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=l,Ue.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function l(j,A){const P=new s,h=j.length;if(h<2)return P;const $=A?.decode||w;let O=0;do{const F=j.indexOf("=",O);if(F===-1)break;const U=j.indexOf(";",O),V=U===-1?h:U;if(F>V){O=j.lastIndexOf(";",F-1)+1;continue}const v=f(j,O,F),y=d(j,F,v),b=j.slice(v,y);if(P[b]===void 0){let C=f(j,F+1,V),g=d(j,V,C);const c=$(j.slice(C,g));P[b]=c}O=V+1}while(O<h);return P}function f(j,A,P){do{const h=j.charCodeAt(A);if(h!==32&&h!==9)return A}while(++A<P);return P}function d(j,A,P){for(;A>P;){const h=j.charCodeAt(--A);if(h!==32&&h!==9)return A+1}return P}function m(j,A,P){const h=P?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const $=h(A);if(!t.test($))throw new TypeError(`argument val is invalid: ${A}`);let O=j+"="+$;if(!P)return O;if(P.maxAge!==void 0){if(!Number.isInteger(P.maxAge))throw new TypeError(`option maxAge is invalid: ${P.maxAge}`);O+="; Max-Age="+P.maxAge}if(P.domain){if(!r.test(P.domain))throw new TypeError(`option domain is invalid: ${P.domain}`);O+="; Domain="+P.domain}if(P.path){if(!o.test(P.path))throw new TypeError(`option path is invalid: ${P.path}`);O+="; Path="+P.path}if(P.expires){if(!R(P.expires)||!Number.isFinite(P.expires.valueOf()))throw new TypeError(`option expires is invalid: ${P.expires}`);O+="; Expires="+P.expires.toUTCString()}if(P.httpOnly&&(O+="; HttpOnly"),P.secure&&(O+="; Secure"),P.partitioned&&(O+="; Partitioned"),P.priority)switch(typeof P.priority=="string"?P.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${P.priority}`)}if(P.sameSite)switch(typeof P.sameSite=="string"?P.sameSite.toLowerCase():P.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${P.sameSite}`)}return O}function w(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function R(j){return i.call(j)==="[object Date]"}return Ue}So();/**
115
+ `,io=({styles:e,content:t,settings:r,gap:o=15})=>{const[i,s]=Y.useState(1),l=Y.useRef(null),f=Y.useRef(null);var d={dots:!1,speed:500,slidesToScroll:1,infinite:!1,variableWidth:!0,arrows:!1,rows:1,...r};const m=t.map((R,j)=>J.jsx(no,{ref:j===0?f:void 0,styles:{paddingRight:`${o}px`,overflow:"visible",...R.styles},"data-testid":"carousel-slide-item",children:R.content})),w=()=>{if(d.slidesToShow){s(d.slidesToShow);return}const R=(l.current?.offsetWidth||1)-o,j=f.current?.offsetWidth||1;let A=Math.floor(R/j);A<1?A=1:A>t.length&&(A=t.length),console.log("Slides to show > ",{container:R,slide:j,res:A}),s(A)};return Y.useEffect(()=>{w()},[l,f]),J.jsx(ro,{ref:l,styles:{...e},children:J.jsx(oi,{...d,slidesToShow:i,children:m})})},oo=({checked:e,onToggle:t,styles:r,checkedStyles:o,customCheckedRender:i,customUncheckedRender:s})=>{const l=e?{...r,...o}:{...r};return J.jsxs("div",{onClick:()=>t?.(!e),style:{width:"25px",height:"25px",borderRadius:"4px",border:"1px solid #969696ff",background:e?"#000000":"#ffffff",overflow:"hidden",objectFit:"contain",alignItems:"center",justifyContent:"center",display:"flex",...l},children:[e&&i,!e&&s]})},ao=e=>Y.useEffect(e,[]),Gr=()=>{const[e,t]=Y.useState({}),[r,o]=Y.useState(!1);return Y.useEffect(()=>{const i=f=>{t({x:f.clientX,y:f.clientY})},s=f=>{o(!0)},l=f=>{o(!1)};return window.addEventListener("pointermove",i),window.addEventListener("pointerdown",s),window.addEventListener("pointerup",l),()=>{window.removeEventListener("pointermove",i),window.removeEventListener("pointerdown",s),window.removeEventListener("pointerup",l)}},[]),{pointerPosition:e,isPointerDown:r}},Kr=({ref:e,onDrag:t,onDragStart:r,onDragEnd:o})=>{const i=Y.useRef(!1),s=Y.useRef(!1),{pointerPosition:l,isPointerDown:f}=Gr(),d=Y.useRef({isDragging:!1}),m=Y.useCallback(P=>{if(!e||!e.current||!d.current)return;const h={...d.current};return h.posY=P.y,h.posX=P.x,d.current.startPosX&&d.current.posX&&(h.distanceX=d.current.startPosX-d.current.posX),d.current.startPosY&&d.current.posY&&(h.distanceY=-(d.current.startPosY-d.current.posY)),h},[]),w=Y.useCallback(P=>{P.preventDefault(),P.stopPropagation(),d.current.isDragging=!0,d.current.startPosY=P.clientY,d.current.startPosX=P.clientX;const h=m({x:P.clientX,y:P.clientY});h&&(d.current=h,r?.(h))},[m]),R=Y.useCallback(P=>{d.current.isDragging=!1;const h=m(l);h&&(o?.(h),h.startPosX=void 0,h.startPosY=void 0,d.current=h)},[m,l]),j=Y.useCallback(P=>{if(console.debug("useDrag > onPointerMove > Is Dragging >",d.current.isDragging),!d.current.isDragging)return;const h=m(l);console.debug("useDrag > onPointerMove > Drag Result >",h),h&&(t?.(h),d.current=h)},[m,l]),A=Y.useCallback(async()=>{if(!i.current){for(;!e?.current;)await new Promise(P=>setTimeout(P,300));i.current=!0,e.current.onpointerdown=w,e.current.style.touchAction="none"}},[e?.current,w]);Y.useEffect(()=>{A()},[A]),Y.useEffect(()=>{j()},[l]),Y.useEffect(()=>{f!==s.current&&(s.current=f,f||R())},[f,s.current])},so=()=>{const e=(r,o)=>{let i=0,s=`${r}?`;for(const l in o){const f=o[l];i>0&&(s=`${s}&`),s=`${s}${l}=${f}`,i++}return s};return async(r,o)=>{const i=e(r,o);return await(await fetch(i)).json()}};var ut={exports:{}},lo=ut.exports,kr;function uo(){return kr||(kr=1,function(e,t){(function(r,o){e.exports=o()})(lo,function(){var r=1e3,o=6e4,i=36e5,s="millisecond",l="second",f="minute",d="hour",m="day",w="week",R="month",j="quarter",A="year",P="date",h="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|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(_){var k=["th","st","nd","rd"],T=_%100;return"["+_+(k[(T-20)%10]||k[T]||k[0])+"]"}},U=function(_,k,T){var a=String(_);return!a||a.length>=k?_:""+Array(k+1-a.length).join(T)+_},V={s:U,z:function(_){var k=-_.utcOffset(),T=Math.abs(k),a=Math.floor(T/60),z=T%60;return(k<=0?"+":"-")+U(a,2,"0")+":"+U(z,2,"0")},m:function _(k,T){if(k.date()<T.date())return-_(T,k);var a=12*(T.year()-k.year())+(T.month()-k.month()),z=k.clone().add(a,R),p=T-z<0,n=k.clone().add(a+(p?-1:1),R);return+(-(a+(T-z)/(p?z-n:n-z))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:R,y:A,w,d:m,D:P,h:d,m:f,s:l,ms:s,Q:j}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},v="en",y={};y[v]=F;var b="$isDayjsObject",C=function(_){return _ instanceof I||!(!_||!_[b])},g=function _(k,T,a){var z;if(!k)return v;if(typeof k=="string"){var p=k.toLowerCase();y[p]&&(z=p),T&&(y[p]=T,z=p);var n=k.split("-");if(!z&&n.length>1)return _(n[0])}else{var u=k.name;y[u]=k,z=u}return!a&&z&&(v=z),z||!a&&v},c=function(_,k){if(C(_))return _.clone();var T=typeof k=="object"?k:{};return T.date=_,T.args=arguments,new I(T)},x=V;x.l=g,x.i=C,x.w=function(_,k){return c(_,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var I=function(){function _(T){this.$L=g(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[b]=!0}var k=_.prototype;return k.parse=function(T){this.$d=function(a){var z=a.date,p=a.utc;if(z===null)return new Date(NaN);if(x.u(z))return new Date;if(z instanceof Date)return new Date(z);if(typeof z=="string"&&!/Z$/i.test(z)){var n=z.match($);if(n){var u=n[2]-1||0,S=(n[7]||"0").substring(0,3);return p?new Date(Date.UTC(n[1],u,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)):new Date(n[1],u,n[3]||1,n[4]||0,n[5]||0,n[6]||0,S)}}return new Date(z)}(T),this.init()},k.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},k.$utils=function(){return x},k.isValid=function(){return this.$d.toString()!==h},k.isSame=function(T,a){var z=c(T);return this.startOf(a)<=z&&z<=this.endOf(a)},k.isAfter=function(T,a){return c(T)<this.startOf(a)},k.isBefore=function(T,a){return this.endOf(a)<c(T)},k.$g=function(T,a,z){return x.u(T)?this[a]:this.set(z,T)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(T,a){var z=this,p=!!x.u(a)||a,n=x.p(T),u=function(G,X){var K=x.w(z.$u?Date.UTC(z.$y,X,G):new Date(z.$y,X,G),z);return p?K:K.endOf(m)},S=function(G,X){return x.w(z.toDate()[G].apply(z.toDate("s"),(p?[0,0,0,0]:[23,59,59,999]).slice(X)),z)},M=this.$W,L=this.$M,H=this.$D,N="set"+(this.$u?"UTC":"");switch(n){case A:return p?u(1,0):u(31,11);case R:return p?u(1,L):u(0,L+1);case w:var W=this.$locale().weekStart||0,B=(M<W?M+7:M)-W;return u(p?H-B:H+(6-B),L);case m:case P:return S(N+"Hours",0);case d:return S(N+"Minutes",1);case f:return S(N+"Seconds",2);case l:return S(N+"Milliseconds",3);default:return this.clone()}},k.endOf=function(T){return this.startOf(T,!1)},k.$set=function(T,a){var z,p=x.p(T),n="set"+(this.$u?"UTC":""),u=(z={},z[m]=n+"Date",z[P]=n+"Date",z[R]=n+"Month",z[A]=n+"FullYear",z[d]=n+"Hours",z[f]=n+"Minutes",z[l]=n+"Seconds",z[s]=n+"Milliseconds",z)[p],S=p===m?this.$D+(a-this.$W):a;if(p===R||p===A){var M=this.clone().set(P,1);M.$d[u](S),M.init(),this.$d=M.set(P,Math.min(this.$D,M.daysInMonth())).$d}else u&&this.$d[u](S);return this.init(),this},k.set=function(T,a){return this.clone().$set(T,a)},k.get=function(T){return this[x.p(T)]()},k.add=function(T,a){var z,p=this;T=Number(T);var n=x.p(a),u=function(L){var H=c(p);return x.w(H.date(H.date()+Math.round(L*T)),p)};if(n===R)return this.set(R,this.$M+T);if(n===A)return this.set(A,this.$y+T);if(n===m)return u(1);if(n===w)return u(7);var S=(z={},z[f]=o,z[d]=i,z[l]=r,z)[n]||1,M=this.$d.getTime()+T*S;return x.w(M,this)},k.subtract=function(T,a){return this.add(-1*T,a)},k.format=function(T){var a=this,z=this.$locale();if(!this.isValid())return z.invalidDate||h;var p=T||"YYYY-MM-DDTHH:mm:ssZ",n=x.z(this),u=this.$H,S=this.$m,M=this.$M,L=z.weekdays,H=z.months,N=z.meridiem,W=function(X,K,te,Z){return X&&(X[K]||X(a,p))||te[K].slice(0,Z)},B=function(X){return x.s(u%12||12,X,"0")},G=N||function(X,K,te){var Z=X<12?"AM":"PM";return te?Z.toLowerCase():Z};return p.replace(O,function(X,K){return K||function(te){switch(te){case"YY":return String(a.$y).slice(-2);case"YYYY":return x.s(a.$y,4,"0");case"M":return M+1;case"MM":return x.s(M+1,2,"0");case"MMM":return W(z.monthsShort,M,H,3);case"MMMM":return W(H,M);case"D":return a.$D;case"DD":return x.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return W(z.weekdaysMin,a.$W,L,2);case"ddd":return W(z.weekdaysShort,a.$W,L,3);case"dddd":return L[a.$W];case"H":return String(u);case"HH":return x.s(u,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return G(u,S,!0);case"A":return G(u,S,!1);case"m":return String(S);case"mm":return x.s(S,2,"0");case"s":return String(a.$s);case"ss":return x.s(a.$s,2,"0");case"SSS":return x.s(a.$ms,3,"0");case"Z":return n}return null}(X)||n.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(T,a,z){var p,n=this,u=x.p(a),S=c(T),M=(S.utcOffset()-this.utcOffset())*o,L=this-S,H=function(){return x.m(n,S)};switch(u){case A:p=H()/12;break;case R:p=H();break;case j:p=H()/3;break;case w:p=(L-M)/6048e5;break;case m:p=(L-M)/864e5;break;case d:p=L/i;break;case f:p=L/o;break;case l:p=L/r;break;default:p=L}return z?p:x.a(p)},k.daysInMonth=function(){return this.endOf(R).$D},k.$locale=function(){return y[this.$L]},k.locale=function(T,a){if(!T)return this.$L;var z=this.clone(),p=g(T,a,!0);return p&&(z.$L=p),z},k.clone=function(){return x.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},_}(),E=I.prototype;return c.prototype=E,[["$ms",s],["$s",l],["$m",f],["$H",d],["$W",m],["$M",R],["$y",A],["$D",P]].forEach(function(_){E[_[1]]=function(k){return this.$g(k,_[0],_[1])}}),c.extend=function(_,k){return _.$i||(_(k,I,c),_.$i=!0),c},c.locale=g,c.isDayjs=C,c.unix=function(_){return c(1e3*_)},c.en=y[v],c.Ls=y,c.p={},c})}(ut)),ut.exports}var co=uo();const ct=Wt(co);var ft={exports:{}},fo=ft.exports,Or;function ho(){return Or||(Or=1,function(e,t){(function(r,o){e.exports=o()})(fo,function(){var r="minute",o=/[+-]\d\d(?::?\d\d)?/g,i=/([+-]|\d\d)/g;return function(s,l,f){var d=l.prototype;f.utc=function(h){var $={date:h,utc:!0,args:arguments};return new l($)},d.utc=function(h){var $=f(this.toDate(),{locale:this.$L,utc:!0});return h?$.add(this.utcOffset(),r):$},d.local=function(){return f(this.toDate(),{locale:this.$L,utc:!1})};var m=d.parse;d.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),m.call(this,h)};var w=d.init;d.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else w.call(this)};var R=d.utcOffset;d.utcOffset=function(h,$){var O=this.$utils().u;if(O(h))return this.$u?0:O(this.$offset)?R.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var y=v.match(o);if(!y)return null;var b=(""+y[0]).match(i)||["-",0,0],C=b[0],g=60*+b[1]+ +b[2];return g===0?0:C==="+"?g:-g}(h),h===null))return this;var F=Math.abs(h)<=16?60*h:h;if(F===0)return this.utc($);var U=this.clone();if($)return U.$offset=F,U.$u=!1,U;var V=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(U=this.local().add(F+V,r)).$offset=F,U.$x.$localOffset=V,U};var j=d.format;d.format=function(h){var $=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return j.call(this,$)},d.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},d.isUTC=function(){return!!this.$u},d.toISOString=function(){return this.toDate().toISOString()},d.toString=function(){return this.toDate().toUTCString()};var A=d.toDate;d.toDate=function(h){return h==="s"&&this.$offset?f(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():A.call(this)};var P=d.diff;d.diff=function(h,$,O){if(h&&this.$u===h.$u)return P.call(this,h,$,O);var F=this.local(),U=f(h).local();return P.call(F,U,$,O)}}})}(ft)),ft.exports}var po=ho();const mo=Wt(po);ct.extend(mo);class Jr{static waitForMilliseconds=t=>new Promise(r=>setTimeout(r,t));static waitForCondition=t=>new Promise(r=>{const o=()=>{t()?r():setTimeout(o,100)};o()});static waitForAsyncCondition=t=>new Promise(r=>{const o=async()=>{await t()?r():setTimeout(o,100)};o()});static differenceInMonths=(t,r)=>{let o=0;return o=(r.getFullYear()-t.getFullYear())*12,o-=t.getMonth(),o+=r.getMonth(),o};static isDateOneAfterDateTwo=(t,r)=>t.getFullYear()>=r.getFullYear()&&t.getMonth()>=r.getMonth()?t.getDay()>r.getDay():!1;static getDateInUTC=t=>{try{const r=ct.utc(t),o=r.date(),i=r.month(),s=r.year(),l=r.hour(),f=r.minute(),d=r.day();return{day:o,month:i,year:s,hour:l,minute:f,weekday:d}}catch{return}};static formatDateLocalTime=(t,r)=>t?ct.utc(t).local().format(r||"DD/MM/YYYYㆍHH:mm"):"";static formatDateUTC=(t,r)=>t?ct.utc(t).format(r||"DD/MM/YYYYㆍHH:mm"):""}const vo=(e,t=0)=>{const r=Y.useRef(0),[o,i]=Y.useState(0),s=Y.useRef(null),[l,f]=Y.useState(!1),d=Y.useCallback(()=>{f(R=>!R)},[]),m=Y.useCallback(()=>r.current===0?!1:o>=r.current-t,[t,o]),w=Y.useCallback(()=>e.current!==null&&e.current!==void 0,[e]);return Y.useEffect(()=>{const R=()=>{if(!e.current)return;const A=e.current.scrollHeight-e.current.clientHeight;r.current=A,i(e.current.scrollTop)};return(async()=>{await Jr.waitForCondition(w),s.current=e.current,s.current?.addEventListener("scroll",R)})(),()=>{s.current?.removeEventListener("scroll",R)}},[e,r,i,o,w,l]),{isTouchingBottom:m(),refresh:d}},Zr={xs:0,sm:420,md:768,lg:991,xl:1200,xxl:1440},go=e=>{const t={...Zr,...e?.breakpointConfiguration},[r,o]=Y.useState(Cr(t)),i=()=>{o(Cr(t))};return Y.useEffect(()=>(window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}),[]),Y.useMemo(()=>r,[r])},yo=(e,t)=>e<t.sm?"xs":e<t.md?"sm":e<t.lg?"md":e<t.xl?"lg":e<t.xxl?"xl":"xxl",bo=(e,t)=>e<=t.sm?"mobile":e<=t.md?"tablet":"desktop",Cr=e=>{const t=window.innerWidth,r=window.innerHeight,o=yo(t,e),i=bo(t,e);return{currentWidth:t,currentHeight:r,currentBreakpoint:o,currentSize:i}},wo=e=>{const t=e.translations,r=e.language,o=(s,l)=>{if(!s)return;let f=s[r];if(f)return l&&Object.keys(l).forEach(d=>{const m=l[d];f=f.replaceAll(`{{${d}}}`,`${m}`)}),f};return{t:(s,l)=>{if(t[s]){const f=o(t[s],l);return f??s}return s},getTranslation:o}};var Ue={},Pr;function So(){if(Pr)return Ue;Pr=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.parse=l,Ue.serialize=m;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,s=(()=>{const j=function(){};return j.prototype=Object.create(null),j})();function l(j,A){const P=new s,h=j.length;if(h<2)return P;const $=A?.decode||w;let O=0;do{const F=j.indexOf("=",O);if(F===-1)break;const U=j.indexOf(";",O),V=U===-1?h:U;if(F>V){O=j.lastIndexOf(";",F-1)+1;continue}const v=f(j,O,F),y=d(j,F,v),b=j.slice(v,y);if(P[b]===void 0){let C=f(j,F+1,V),g=d(j,V,C);const c=$(j.slice(C,g));P[b]=c}O=V+1}while(O<h);return P}function f(j,A,P){do{const h=j.charCodeAt(A);if(h!==32&&h!==9)return A}while(++A<P);return P}function d(j,A,P){for(;A>P;){const h=j.charCodeAt(--A);if(h!==32&&h!==9)return A+1}return P}function m(j,A,P){const h=P?.encode||encodeURIComponent;if(!e.test(j))throw new TypeError(`argument name is invalid: ${j}`);const $=h(A);if(!t.test($))throw new TypeError(`argument val is invalid: ${A}`);let O=j+"="+$;if(!P)return O;if(P.maxAge!==void 0){if(!Number.isInteger(P.maxAge))throw new TypeError(`option maxAge is invalid: ${P.maxAge}`);O+="; Max-Age="+P.maxAge}if(P.domain){if(!r.test(P.domain))throw new TypeError(`option domain is invalid: ${P.domain}`);O+="; Domain="+P.domain}if(P.path){if(!o.test(P.path))throw new TypeError(`option path is invalid: ${P.path}`);O+="; Path="+P.path}if(P.expires){if(!R(P.expires)||!Number.isFinite(P.expires.valueOf()))throw new TypeError(`option expires is invalid: ${P.expires}`);O+="; Expires="+P.expires.toUTCString()}if(P.httpOnly&&(O+="; HttpOnly"),P.secure&&(O+="; Secure"),P.partitioned&&(O+="; Partitioned"),P.priority)switch(typeof P.priority=="string"?P.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${P.priority}`)}if(P.sameSite)switch(typeof P.sameSite=="string"?P.sameSite.toLowerCase():P.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${P.sameSite}`)}return O}function w(j){if(j.indexOf("%")===-1)return j;try{return decodeURIComponent(j)}catch{return j}}function R(j){return i.call(j)==="[object Date]"}return Ue}So();/**
116
116
  * react-router v7.6.3
117
117
  *
118
118
  * Copyright (c) Remix Software Inc.
package/dist/index.es.js CHANGED
@@ -3879,31 +3879,35 @@ const to = je.div`
3879
3879
  checked: e,
3880
3880
  onToggle: t,
3881
3881
  styles: r,
3882
- customCheckedRender: o,
3883
- customUncheckedRender: i
3884
- }) => /* @__PURE__ */ J.jsxs(
3885
- "div",
3886
- {
3887
- onClick: () => t?.(!e),
3888
- style: {
3889
- width: "10px",
3890
- height: "10px",
3891
- borderRadius: "4px",
3892
- border: "1px solid #969696ff",
3893
- background: e ? "#000000" : "#ffffff",
3894
- overflow: "hidden",
3895
- objectFit: "contain",
3896
- alignItems: "center",
3897
- justifyContent: "center",
3898
- display: "flex",
3899
- ...r
3900
- },
3901
- children: [
3902
- e && o,
3903
- !e && i
3904
- ]
3905
- }
3906
- ), Ka = (e) => Dr(e, []), no = () => {
3882
+ checkedStyles: o,
3883
+ customCheckedRender: i,
3884
+ customUncheckedRender: s
3885
+ }) => {
3886
+ const l = e ? { ...r, ...o } : { ...r };
3887
+ return /* @__PURE__ */ J.jsxs(
3888
+ "div",
3889
+ {
3890
+ onClick: () => t?.(!e),
3891
+ style: {
3892
+ width: "25px",
3893
+ height: "25px",
3894
+ borderRadius: "4px",
3895
+ border: "1px solid #969696ff",
3896
+ background: e ? "#000000" : "#ffffff",
3897
+ overflow: "hidden",
3898
+ objectFit: "contain",
3899
+ alignItems: "center",
3900
+ justifyContent: "center",
3901
+ display: "flex",
3902
+ ...l
3903
+ },
3904
+ children: [
3905
+ e && i,
3906
+ !e && s
3907
+ ]
3908
+ }
3909
+ );
3910
+ }, Ka = (e) => Dr(e, []), no = () => {
3907
3911
  const [e, t] = q.useState(
3908
3912
  {}
3909
3913
  ), [r, o] = q.useState(!1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.44",
3
+ "version": "0.1.45",
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",