@eliseubatista99/react-scaffold-core 0.1.80 → 0.1.81
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.
|
@@ -10,6 +10,7 @@ export interface InputFieldProps {
|
|
|
10
10
|
autoComplete?: HTMLInputAutoCompleteAttribute;
|
|
11
11
|
value?: string;
|
|
12
12
|
initialValue?: string;
|
|
13
|
+
maxLength?: number;
|
|
13
14
|
type?: HTMLInputTypeAttribute;
|
|
14
15
|
onChange?: (value: string) => void;
|
|
15
16
|
onFocus?: () => void;
|
|
@@ -18,4 +19,4 @@ export interface InputFieldProps {
|
|
|
18
19
|
containerStyles?: CSSProperties;
|
|
19
20
|
styles?: CSSProperties;
|
|
20
21
|
}
|
|
21
|
-
export declare const InputField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, step, }: InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const InputField: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, maxLength, inputStyles, containerStyles, styles, step, }: InputFieldProps) => 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: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, inputStyles, containerStyles, styles, step, }: import('../inputField').InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
component: ({ name, label, leftIcon, rightIcon, bottomMessage, placeHolder, autoComplete, value, initialValue, type, onChange, onFocus, onBlur, maxLength, inputStyles, containerStyles, styles, step, }: import('../inputField').InputFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
package/dist/index.cjs.js
CHANGED
|
@@ -156,7 +156,7 @@ Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}
|
|
|
156
156
|
input:-webkit-autofill {
|
|
157
157
|
background-color: #00000000;
|
|
158
158
|
}
|
|
159
|
-
`,Zo=({name:e,label:t,leftIcon:r,rightIcon:i,bottomMessage:a,placeHolder:s,autoComplete:c="off",value:l,initialValue:u,type:h="text",onChange:g,onFocus:k,onBlur:j,
|
|
159
|
+
`,Zo=({name:e,label:t,leftIcon:r,rightIcon:i,bottomMessage:a,placeHolder:s,autoComplete:c="off",value:l,initialValue:u,type:h="text",onChange:g,onFocus:k,onBlur:j,maxLength:M,inputStyles:P,containerStyles:p,styles:I,step:x})=>{const F=v=>{g?.(v.currentTarget.value)},U=v=>{v.preventDefault(),v.stopPropagation(),k?.()},B=v=>{j?.()};return G.jsxs(Jo,{style:{width:"100%",maxWidth:"357px",gap:"8px",...I},children:[t,G.jsxs("div",{style:{display:"flex",flexDirection:"row",width:"100%",height:"47px",margin:"8px auto 0 auto",border:"2px solid #000000",borderRadius:"5px",padding:"5px 15px",color:"#000000",fontFamily:"inherit",fontStyle:"normal",fontWeight:400,fontSize:"16px",lineHeight:"24px",outline:"none",alignItems:"center",gap:"10px",...p},children:[r,G.jsx("input",{name:e,type:h,autoComplete:c,step:x,maxLength:M,style:{flex:1,border:"none",color:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",outline:"inherit",background:"none",...P},placeholder:s,value:l,defaultValue:u,onChange:F,onFocus:U,onBlur:B}),i]}),a]})},Qo=({id:e,styles:t,children:r})=>{const{isItemVisible:i}=et();return G.jsx(G.Fragment,{children:i(e)&&G.jsx("div",{style:{width:"100%",minHeight:"100%",left:0,top:0,position:"fixed",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...t},children:r})})},es=({id:e,children:t,backgroundStyles:r,contentStyles:i,onClickOutsideModal:a})=>{const{isItemVisible:s}=et();return G.jsx(G.Fragment,{children:s(e)&&G.jsx("div",{style:{width:"100%",height:"100%",minHeight:"100vh",background:"#00000068",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:1e3,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",...r},onClick:()=>{a?.()},children:G.jsx("div",{style:{width:"90%",maxWidth:"375px",height:"fit-content",minHeight:"80px",maxHeight:"50%",background:"#ffffff",borderRadius:"16px",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",zIndex:1001,position:"relative",padding:"24px",...i},onClick:c=>{c.stopPropagation()},children:t})})})},ts=e=>{const t=Y.useRef(null),r=Y.useRef(null),[i,a]=Y.useState(24),[s,c]=Y.useState(24),l=Y.useCallback(()=>{t.current&&a(t.current.clientHeight)},[t,t.current]),u=Y.useCallback(()=>{r.current&&c(r.current.clientHeight)},[r,r.current]),h=Y.useCallback(()=>{let g=0;return e.header?.visibility==="always"&&(g=g+(i||0)),e.footer?.visibility==="always"&&(g=g+(s||0)),g},[r,r.current]);return Y.useEffect(()=>{l()},[l,t,t.current]),Y.useEffect(()=>{u()},[u,r,r.current]),{header:{...e.header,visible:e.header!==void 0,height:e.header?.visibility==="fixed"?0:i,ref:t},footer:{...e.footer,visible:e.footer!==void 0,height:e.footer?.visibility==="fixed"?0:s,ref:r},page:{extraHeight:h()}}},rs=Pe.div`
|
|
160
160
|
min-height: 100%;
|
|
161
161
|
max-height: 100%;
|
|
162
162
|
width: 100%;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as D from "react";
|
|
2
|
-
import
|
|
2
|
+
import q, { forwardRef as kn, useContext as Yt, useEffect as Ir, useState as Ar, useMemo as zr, useCallback as _e } from "react";
|
|
3
3
|
var rt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
4
4
|
function qt(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -102,7 +102,7 @@ function En() {
|
|
|
102
102
|
return (n.displayName || "Context") + ".Provider";
|
|
103
103
|
case F:
|
|
104
104
|
return (n._context.displayName || "Context") + ".Consumer";
|
|
105
|
-
case
|
|
105
|
+
case B:
|
|
106
106
|
var f = n.render;
|
|
107
107
|
return n = n.displayName, n || (n = f.displayName || f.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
108
108
|
case w:
|
|
@@ -264,7 +264,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
function O(n) {
|
|
265
265
|
typeof n == "object" && n !== null && n.$$typeof === M && n._store && (n._store.validated = 1);
|
|
266
266
|
}
|
|
267
|
-
var j =
|
|
267
|
+
var j = q, M = Symbol.for("react.transitional.element"), P = Symbol.for("react.portal"), p = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), F = Symbol.for("react.consumer"), U = Symbol.for("react.context"), B = Symbol.for("react.forward_ref"), v = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), y = Symbol.for("react.activity"), d = Symbol.for("react.client.reference"), k = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, A = Object.prototype.hasOwnProperty, R = Array.isArray, _ = console.createTask ? console.createTask : function() {
|
|
268
268
|
return null;
|
|
269
269
|
};
|
|
270
270
|
j = {
|
|
@@ -381,7 +381,7 @@ function Tn() {
|
|
|
381
381
|
var E, y, d, k, A, R, _ = 0, C = !1, T = !1, o = !0;
|
|
382
382
|
if (typeof v != "function")
|
|
383
383
|
throw new TypeError(e);
|
|
384
|
-
b =
|
|
384
|
+
b = B(b) || 0, x(w) && (C = !!w.leading, T = "maxWait" in w, d = T ? M(B(w.maxWait) || 0, b) : d, o = "trailing" in w ? !!w.trailing : o);
|
|
385
385
|
function z(W) {
|
|
386
386
|
var V = E, K = y;
|
|
387
387
|
return E = y = void 0, _ = W, k = v.apply(K, V), k;
|
|
@@ -434,7 +434,7 @@ function Tn() {
|
|
|
434
434
|
function U(v) {
|
|
435
435
|
return typeof v == "symbol" || F(v) && j.call(v) == r;
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function B(v) {
|
|
438
438
|
if (typeof v == "number")
|
|
439
439
|
return v;
|
|
440
440
|
if (U(v))
|
|
@@ -496,7 +496,7 @@ function Hr() {
|
|
|
496
496
|
Object.defineProperty(e, "__esModule", {
|
|
497
497
|
value: !0
|
|
498
498
|
}), e.default = void 0;
|
|
499
|
-
var t = r(
|
|
499
|
+
var t = r(q);
|
|
500
500
|
function r(a) {
|
|
501
501
|
return a && a.__esModule ? a : { default: a };
|
|
502
502
|
}
|
|
@@ -572,7 +572,7 @@ function Ke() {
|
|
|
572
572
|
ur = 1, Object.defineProperty(Y, "__esModule", {
|
|
573
573
|
value: !0
|
|
574
574
|
}), Y.checkSpecKeys = Y.checkNavigable = Y.changeSlide = Y.canUseDOM = Y.canGoNext = void 0, Y.clamp = h, Y.extractObject = void 0, Y.filterSettings = z, Y.validSettings = Y.swipeStart = Y.swipeMove = Y.swipeEnd = Y.slidesOnRight = Y.slidesOnLeft = Y.slideHandler = Y.siblingDirection = Y.safePreventDefault = Y.lazyStartIndex = Y.lazySlidesOnRight = Y.lazySlidesOnLeft = Y.lazyEndIndex = Y.keyHandler = Y.initializedState = Y.getWidth = Y.getTrackLeft = Y.getTrackCSS = Y.getTrackAnimateCSS = Y.getTotalSlides = Y.getSwipeDirection = Y.getSlideCount = Y.getRequiredLazySlides = Y.getPreClones = Y.getPostClones = Y.getOnDemandLazySlides = Y.getNavigableIndexes = Y.getHeight = void 0;
|
|
575
|
-
var e = r(
|
|
575
|
+
var e = r(q), t = r(Hr());
|
|
576
576
|
function r(m) {
|
|
577
577
|
return m && m.__esModule ? m : { default: m };
|
|
578
578
|
}
|
|
@@ -830,12 +830,12 @@ function Ke() {
|
|
|
830
830
|
}
|
|
831
831
|
return Q;
|
|
832
832
|
};
|
|
833
|
-
var
|
|
833
|
+
var B = Y.getNavigableIndexes = function(n) {
|
|
834
834
|
for (var f = n.infinite ? n.slideCount * 2 : n.slideCount, S = n.infinite ? n.slidesToShow * -1 : 0, $ = n.infinite ? n.slidesToShow * -1 : 0, L = []; S < f; )
|
|
835
835
|
L.push(S), S = $ + n.slidesToScroll, $ += Math.min(n.slidesToScroll, n.slidesToShow);
|
|
836
836
|
return L;
|
|
837
837
|
}, v = Y.checkNavigable = function(n, f) {
|
|
838
|
-
var S =
|
|
838
|
+
var S = B(n), $ = 0;
|
|
839
839
|
if (f > S[S.length - 1])
|
|
840
840
|
f = S[S.length - 1];
|
|
841
841
|
else
|
|
@@ -956,7 +956,7 @@ function jn() {
|
|
|
956
956
|
cr = 1, Object.defineProperty(Fe, "__esModule", {
|
|
957
957
|
value: !0
|
|
958
958
|
}), Fe.Track = void 0;
|
|
959
|
-
var e = i(
|
|
959
|
+
var e = i(q), t = i(yt()), r = Ke();
|
|
960
960
|
function i(y) {
|
|
961
961
|
return y && y.__esModule ? y : { default: y };
|
|
962
962
|
}
|
|
@@ -1059,10 +1059,10 @@ function jn() {
|
|
|
1059
1059
|
return (d = U(d)) in y ? Object.defineProperty(y, d, { value: k, enumerable: !0, configurable: !0, writable: !0 }) : y[d] = k, y;
|
|
1060
1060
|
}
|
|
1061
1061
|
function U(y) {
|
|
1062
|
-
var d =
|
|
1062
|
+
var d = B(y, "string");
|
|
1063
1063
|
return a(d) == "symbol" ? d : d + "";
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function B(y, d) {
|
|
1066
1066
|
if (a(y) != "object" || !y) return y;
|
|
1067
1067
|
var k = y[Symbol.toPrimitive];
|
|
1068
1068
|
if (k !== void 0) {
|
|
@@ -1192,7 +1192,7 @@ function Ln() {
|
|
|
1192
1192
|
Object.defineProperty(We, "__esModule", {
|
|
1193
1193
|
value: !0
|
|
1194
1194
|
}), We.Dots = void 0;
|
|
1195
|
-
var t = a(
|
|
1195
|
+
var t = a(q), r = a(yt()), i = Ke();
|
|
1196
1196
|
function a(v) {
|
|
1197
1197
|
return v && v.__esModule ? v : { default: v };
|
|
1198
1198
|
}
|
|
@@ -1290,7 +1290,7 @@ function Ln() {
|
|
|
1290
1290
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
1291
1291
|
}, U(v);
|
|
1292
1292
|
}
|
|
1293
|
-
var
|
|
1293
|
+
var B = function(b) {
|
|
1294
1294
|
var w;
|
|
1295
1295
|
return b.infinite ? w = Math.ceil(b.slideCount / b.slidesToScroll) : w = Math.ceil((b.slideCount - b.slidesToShow) / b.slidesToScroll) + 1, w;
|
|
1296
1296
|
};
|
|
@@ -1308,7 +1308,7 @@ function Ln() {
|
|
|
1308
1308
|
}, {
|
|
1309
1309
|
key: "render",
|
|
1310
1310
|
value: function() {
|
|
1311
|
-
for (var y = this.props, d = y.onMouseEnter, k = y.onMouseOver, A = y.onMouseLeave, R = y.infinite, _ = y.slidesToScroll, C = y.slidesToShow, T = y.slideCount, o = y.currentSlide, z =
|
|
1311
|
+
for (var y = this.props, d = y.onMouseEnter, k = y.onMouseOver, A = y.onMouseLeave, R = y.infinite, _ = y.slidesToScroll, C = y.slidesToShow, T = y.slideCount, o = y.currentSlide, z = B({
|
|
1312
1312
|
slideCount: T,
|
|
1313
1313
|
slidesToScroll: _,
|
|
1314
1314
|
slidesToShow: C,
|
|
@@ -1355,7 +1355,7 @@ function Dn() {
|
|
|
1355
1355
|
Object.defineProperty(Re, "__esModule", {
|
|
1356
1356
|
value: !0
|
|
1357
1357
|
}), Re.PrevArrow = Re.NextArrow = void 0;
|
|
1358
|
-
var t = a(
|
|
1358
|
+
var t = a(q), r = a(yt()), i = Ke();
|
|
1359
1359
|
function a(v) {
|
|
1360
1360
|
return v && v.__esModule ? v : { default: v };
|
|
1361
1361
|
}
|
|
@@ -1431,9 +1431,9 @@ function Dn() {
|
|
|
1431
1431
|
function I(v) {
|
|
1432
1432
|
var b = U();
|
|
1433
1433
|
return function() {
|
|
1434
|
-
var w, E =
|
|
1434
|
+
var w, E = B(v);
|
|
1435
1435
|
if (b) {
|
|
1436
|
-
var y =
|
|
1436
|
+
var y = B(this).constructor;
|
|
1437
1437
|
w = Reflect.construct(E, arguments, y);
|
|
1438
1438
|
} else w = E.apply(this, arguments);
|
|
1439
1439
|
return x(this, w);
|
|
@@ -1458,10 +1458,10 @@ function Dn() {
|
|
|
1458
1458
|
return !!v;
|
|
1459
1459
|
})();
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return
|
|
1461
|
+
function B(v) {
|
|
1462
|
+
return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(b) {
|
|
1463
1463
|
return b.__proto__ || Object.getPrototypeOf(b);
|
|
1464
|
-
},
|
|
1464
|
+
}, B(v);
|
|
1465
1465
|
}
|
|
1466
1466
|
return Re.PrevArrow = /* @__PURE__ */ function(v) {
|
|
1467
1467
|
P(w, v);
|
|
@@ -1840,7 +1840,7 @@ function ei() {
|
|
|
1840
1840
|
pr = 1, Object.defineProperty(Ne, "__esModule", {
|
|
1841
1841
|
value: !0
|
|
1842
1842
|
}), Ne.InnerSlider = void 0;
|
|
1843
|
-
var e = h(
|
|
1843
|
+
var e = h(q), t = h(_n()), r = h(Tn()), i = h(yt()), a = Ke(), s = jn(), c = Ln(), l = Dn(), u = h(Qn);
|
|
1844
1844
|
function h(R) {
|
|
1845
1845
|
return R && R.__esModule ? R : { default: R };
|
|
1846
1846
|
}
|
|
@@ -1917,12 +1917,12 @@ function ei() {
|
|
|
1917
1917
|
}
|
|
1918
1918
|
function U(R, _) {
|
|
1919
1919
|
if (typeof _ != "function" && _ !== null) throw new TypeError("Super expression must either be null or a function");
|
|
1920
|
-
R.prototype = Object.create(_ && _.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), _ &&
|
|
1920
|
+
R.prototype = Object.create(_ && _.prototype, { constructor: { value: R, writable: !0, configurable: !0 } }), Object.defineProperty(R, "prototype", { writable: !1 }), _ && B(R, _);
|
|
1921
1921
|
}
|
|
1922
|
-
function
|
|
1923
|
-
return
|
|
1922
|
+
function B(R, _) {
|
|
1923
|
+
return B = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(C, T) {
|
|
1924
1924
|
return C.__proto__ = T, C;
|
|
1925
|
-
},
|
|
1925
|
+
}, B(R, _);
|
|
1926
1926
|
}
|
|
1927
1927
|
function v(R) {
|
|
1928
1928
|
var _ = E();
|
|
@@ -2406,7 +2406,7 @@ function ni() {
|
|
|
2406
2406
|
Object.defineProperty(e, "__esModule", {
|
|
2407
2407
|
value: !0
|
|
2408
2408
|
}), e.default = void 0;
|
|
2409
|
-
var t = c(
|
|
2409
|
+
var t = c(q), r = ei(), i = c(ri()), a = c(Hr()), s = Ke();
|
|
2410
2410
|
function c(E) {
|
|
2411
2411
|
return E && E.__esModule ? E : { default: E };
|
|
2412
2412
|
}
|
|
@@ -2473,9 +2473,9 @@ function ni() {
|
|
|
2473
2473
|
function I(E) {
|
|
2474
2474
|
var y = U();
|
|
2475
2475
|
return function() {
|
|
2476
|
-
var d, k =
|
|
2476
|
+
var d, k = B(E);
|
|
2477
2477
|
if (y) {
|
|
2478
|
-
var A =
|
|
2478
|
+
var A = B(this).constructor;
|
|
2479
2479
|
d = Reflect.construct(k, arguments, A);
|
|
2480
2480
|
} else d = k.apply(this, arguments);
|
|
2481
2481
|
return x(this, d);
|
|
@@ -2500,10 +2500,10 @@ function ni() {
|
|
|
2500
2500
|
return !!E;
|
|
2501
2501
|
})();
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2504
|
-
return
|
|
2503
|
+
function B(E) {
|
|
2504
|
+
return B = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(y) {
|
|
2505
2505
|
return y.__proto__ || Object.getPrototypeOf(y);
|
|
2506
|
-
},
|
|
2506
|
+
}, B(E);
|
|
2507
2507
|
}
|
|
2508
2508
|
function v(E, y, d) {
|
|
2509
2509
|
return (y = b(y)) in E ? Object.defineProperty(E, y, { value: d, enumerable: !0, configurable: !0, writable: !0 }) : E[y] = d, E;
|
|
@@ -2866,7 +2866,7 @@ function Oi(e) {
|
|
|
2866
2866
|
return Kr(lt("", null, null, null, [""], e = Gr(e), 0, [0], e));
|
|
2867
2867
|
}
|
|
2868
2868
|
function lt(e, t, r, i, a, s, c, l, u) {
|
|
2869
|
-
for (var h = 0, g = 0, O = c, j = 0, M = 0, P = 0, p = 1, I = 1, x = 1, F = 0, U = "",
|
|
2869
|
+
for (var h = 0, g = 0, O = c, j = 0, M = 0, P = 0, p = 1, I = 1, x = 1, F = 0, U = "", B = a, v = s, b = i, w = U; I; )
|
|
2870
2870
|
switch (P = F, F = me()) {
|
|
2871
2871
|
// (
|
|
2872
2872
|
case 40:
|
|
@@ -2923,9 +2923,9 @@ function lt(e, t, r, i, a, s, c, l, u) {
|
|
|
2923
2923
|
w += ";";
|
|
2924
2924
|
// { rule/at-rule
|
|
2925
2925
|
default:
|
|
2926
|
-
if (it(b = br(w, t, r, h, g, a, l, U,
|
|
2926
|
+
if (it(b = br(w, t, r, h, g, a, l, U, B = [], v = [], O), s), F === 123)
|
|
2927
2927
|
if (g === 0)
|
|
2928
|
-
lt(w, t, b, b,
|
|
2928
|
+
lt(w, t, b, b, B, s, O, l, v);
|
|
2929
2929
|
else
|
|
2930
2930
|
switch (j === 99 && fe(w, 3) === 110 ? 100 : j) {
|
|
2931
2931
|
// d l m s
|
|
@@ -2933,7 +2933,7 @@ function lt(e, t, r, i, a, s, c, l, u) {
|
|
|
2933
2933
|
case 108:
|
|
2934
2934
|
case 109:
|
|
2935
2935
|
case 115:
|
|
2936
|
-
lt(e, b, b, i && it(br(e, b, b, 0, 0, a, l, U, a,
|
|
2936
|
+
lt(e, b, b, i && it(br(e, b, b, 0, 0, a, l, U, a, B = [], O), v), a, v, O, l, i ? B : v);
|
|
2937
2937
|
break;
|
|
2938
2938
|
default:
|
|
2939
2939
|
lt(w, b, b, b, [""], v, 0, l, v);
|
|
@@ -3572,20 +3572,20 @@ var Xi = function(t) {
|
|
|
3572
3572
|
O.push(g[P], j[P]);
|
|
3573
3573
|
}
|
|
3574
3574
|
var p = Xi(function(I, x, F) {
|
|
3575
|
-
var U = h && I.as || a,
|
|
3575
|
+
var U = h && I.as || a, B = "", v = [], b = I;
|
|
3576
3576
|
if (I.theme == null) {
|
|
3577
3577
|
b = {};
|
|
3578
3578
|
for (var w in I)
|
|
3579
3579
|
b[w] = I[w];
|
|
3580
3580
|
b.theme = D.useContext(Gi);
|
|
3581
3581
|
}
|
|
3582
|
-
typeof I.className == "string" ?
|
|
3582
|
+
typeof I.className == "string" ? B = Ai(x.registered, v, I.className) : I.className != null && (B = I.className + " ");
|
|
3583
3583
|
var E = Yi(O.concat(v), x.registered, b);
|
|
3584
|
-
|
|
3584
|
+
B += x.key + "-" + E.name, c !== void 0 && (B += " " + c);
|
|
3585
3585
|
var y = h && l === void 0 ? Cr(U) : u, d = {};
|
|
3586
3586
|
for (var k in I)
|
|
3587
3587
|
h && k === "as" || y(k) && (d[k] = I[k]);
|
|
3588
|
-
return d.className =
|
|
3588
|
+
return d.className = B, F && (d.ref = F), /* @__PURE__ */ D.createElement(D.Fragment, null, /* @__PURE__ */ D.createElement(ea, {
|
|
3589
3589
|
cache: x,
|
|
3590
3590
|
serialized: E,
|
|
3591
3591
|
isStringTag: typeof U == "string"
|
|
@@ -3837,7 +3837,7 @@ const na = Pe.div`
|
|
|
3837
3837
|
settings: r,
|
|
3838
3838
|
gap: i = 15
|
|
3839
3839
|
}) => {
|
|
3840
|
-
const [a, s] =
|
|
3840
|
+
const [a, s] = q.useState(1), c = q.useRef(null), l = q.useRef(null);
|
|
3841
3841
|
var u = {
|
|
3842
3842
|
dots: !1,
|
|
3843
3843
|
speed: 500,
|
|
@@ -3874,7 +3874,7 @@ const na = Pe.div`
|
|
|
3874
3874
|
res: M
|
|
3875
3875
|
}), s(M);
|
|
3876
3876
|
};
|
|
3877
|
-
return
|
|
3877
|
+
return q.useEffect(() => {
|
|
3878
3878
|
g();
|
|
3879
3879
|
}, [c, l]), /* @__PURE__ */ G.jsx(na, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ G.jsx(oi, { ...u, slidesToShow: a, children: h }) });
|
|
3880
3880
|
}, rs = ({
|
|
@@ -3912,10 +3912,10 @@ const na = Pe.div`
|
|
|
3912
3912
|
}
|
|
3913
3913
|
);
|
|
3914
3914
|
}, ns = (e) => Ir(e, []), aa = () => {
|
|
3915
|
-
const [e, t] =
|
|
3915
|
+
const [e, t] = q.useState(
|
|
3916
3916
|
{}
|
|
3917
|
-
), [r, i] =
|
|
3918
|
-
return
|
|
3917
|
+
), [r, i] = q.useState(!1);
|
|
3918
|
+
return q.useEffect(() => {
|
|
3919
3919
|
const a = (l) => {
|
|
3920
3920
|
t({ x: l.clientX, y: l.clientY });
|
|
3921
3921
|
}, s = (l) => {
|
|
@@ -3936,9 +3936,9 @@ const na = Pe.div`
|
|
|
3936
3936
|
onDragStart: r,
|
|
3937
3937
|
onDragEnd: i
|
|
3938
3938
|
}) => {
|
|
3939
|
-
const a =
|
|
3939
|
+
const a = q.useRef(!1), s = q.useRef(!1), { pointerPosition: c, isPointerDown: l } = aa(), u = q.useRef({
|
|
3940
3940
|
isDragging: !1
|
|
3941
|
-
}), h =
|
|
3941
|
+
}), h = q.useCallback(
|
|
3942
3942
|
(P) => {
|
|
3943
3943
|
if (!e || !e.current || !u.current)
|
|
3944
3944
|
return;
|
|
@@ -3946,21 +3946,21 @@ const na = Pe.div`
|
|
|
3946
3946
|
return p.posY = P.y, p.posX = P.x, u.current.startPosX && u.current.posX && (p.distanceX = u.current.startPosX - u.current.posX), u.current.startPosY && u.current.posY && (p.distanceY = -(u.current.startPosY - u.current.posY)), p;
|
|
3947
3947
|
},
|
|
3948
3948
|
[]
|
|
3949
|
-
), g =
|
|
3949
|
+
), g = q.useCallback(
|
|
3950
3950
|
(P) => {
|
|
3951
3951
|
P.preventDefault(), P.stopPropagation(), u.current.isDragging = !0, u.current.startPosY = P.clientY, u.current.startPosX = P.clientX;
|
|
3952
3952
|
const p = h({ x: P.clientX, y: P.clientY });
|
|
3953
3953
|
p && (u.current = p, r?.(p));
|
|
3954
3954
|
},
|
|
3955
3955
|
[h]
|
|
3956
|
-
), O =
|
|
3956
|
+
), O = q.useCallback(
|
|
3957
3957
|
(P) => {
|
|
3958
3958
|
u.current.isDragging = !1;
|
|
3959
3959
|
const p = h(c);
|
|
3960
3960
|
p && (i?.(p), p.startPosX = void 0, p.startPosY = void 0, u.current = p);
|
|
3961
3961
|
},
|
|
3962
3962
|
[h, c]
|
|
3963
|
-
), j =
|
|
3963
|
+
), j = q.useCallback(
|
|
3964
3964
|
(P) => {
|
|
3965
3965
|
if (console.debug(
|
|
3966
3966
|
"useDrag > onPointerMove > Is Dragging >",
|
|
@@ -3971,18 +3971,18 @@ const na = Pe.div`
|
|
|
3971
3971
|
console.debug("useDrag > onPointerMove > Drag Result >", p), p && (t?.(p), u.current = p);
|
|
3972
3972
|
},
|
|
3973
3973
|
[h, c]
|
|
3974
|
-
), M =
|
|
3974
|
+
), M = q.useCallback(async () => {
|
|
3975
3975
|
if (!a.current) {
|
|
3976
3976
|
for (; !e?.current; )
|
|
3977
3977
|
await new Promise((P) => setTimeout(P, 300));
|
|
3978
3978
|
a.current = !0, e.current.onpointerdown = g, e.current.style.touchAction = "none";
|
|
3979
3979
|
}
|
|
3980
3980
|
}, [e?.current, g]);
|
|
3981
|
-
|
|
3981
|
+
q.useEffect(() => {
|
|
3982
3982
|
M();
|
|
3983
|
-
}, [M]),
|
|
3983
|
+
}, [M]), q.useEffect(() => {
|
|
3984
3984
|
j();
|
|
3985
|
-
}, [c]),
|
|
3985
|
+
}, [c]), q.useEffect(() => {
|
|
3986
3986
|
l !== s.current && (s.current = l, l || O());
|
|
3987
3987
|
}, [l, s.current]);
|
|
3988
3988
|
}, is = () => {
|
|
@@ -4030,13 +4030,13 @@ const na = Pe.div`
|
|
|
4030
4030
|
};
|
|
4031
4031
|
};
|
|
4032
4032
|
function as(e) {
|
|
4033
|
-
const [t, r] = Ar(!1), i =
|
|
4033
|
+
const [t, r] = Ar(!1), i = q.useMemo(
|
|
4034
4034
|
() => new IntersectionObserver(
|
|
4035
4035
|
([a]) => r(a.isIntersecting)
|
|
4036
4036
|
),
|
|
4037
4037
|
[]
|
|
4038
4038
|
);
|
|
4039
|
-
return
|
|
4039
|
+
return q.useEffect(() => (e?.current && i.observe(e?.current), () => i.disconnect()), [e, i.disconnect, i.observe]), t;
|
|
4040
4040
|
}
|
|
4041
4041
|
const sa = {
|
|
4042
4042
|
xs: 0,
|
|
@@ -4101,18 +4101,18 @@ function ca() {
|
|
|
4101
4101
|
const F = j.indexOf("=", x);
|
|
4102
4102
|
if (F === -1)
|
|
4103
4103
|
break;
|
|
4104
|
-
const U = j.indexOf(";", x),
|
|
4105
|
-
if (F >
|
|
4104
|
+
const U = j.indexOf(";", x), B = U === -1 ? p : U;
|
|
4105
|
+
if (F > B) {
|
|
4106
4106
|
x = j.lastIndexOf(";", F - 1) + 1;
|
|
4107
4107
|
continue;
|
|
4108
4108
|
}
|
|
4109
4109
|
const v = l(j, x, F), b = u(j, F, v), w = j.slice(v, b);
|
|
4110
4110
|
if (P[w] === void 0) {
|
|
4111
|
-
let E = l(j, F + 1,
|
|
4111
|
+
let E = l(j, F + 1, B), y = u(j, B, E);
|
|
4112
4112
|
const d = I(j.slice(E, y));
|
|
4113
4113
|
P[w] = d;
|
|
4114
4114
|
}
|
|
4115
|
-
x =
|
|
4115
|
+
x = B + 1;
|
|
4116
4116
|
} while (x < p);
|
|
4117
4117
|
return P;
|
|
4118
4118
|
}
|
|
@@ -4309,13 +4309,13 @@ function ha(e, t, r, i = {}) {
|
|
|
4309
4309
|
l = "PUSH";
|
|
4310
4310
|
let F = Ft(p.location, I, x);
|
|
4311
4311
|
h = g() + 1;
|
|
4312
|
-
let U = Tr(F, h),
|
|
4312
|
+
let U = Tr(F, h), B = p.createHref(F);
|
|
4313
4313
|
try {
|
|
4314
|
-
c.pushState(U, "",
|
|
4314
|
+
c.pushState(U, "", B);
|
|
4315
4315
|
} catch (v) {
|
|
4316
4316
|
if (v instanceof DOMException && v.name === "DataCloneError")
|
|
4317
4317
|
throw v;
|
|
4318
|
-
a.location.assign(
|
|
4318
|
+
a.location.assign(B);
|
|
4319
4319
|
}
|
|
4320
4320
|
s && u && u({ action: l, location: p.location, delta: 1 });
|
|
4321
4321
|
}
|
|
@@ -4323,8 +4323,8 @@ function ha(e, t, r, i = {}) {
|
|
|
4323
4323
|
l = "REPLACE";
|
|
4324
4324
|
let F = Ft(p.location, I, x);
|
|
4325
4325
|
h = g();
|
|
4326
|
-
let U = Tr(F, h),
|
|
4327
|
-
c.replaceState(U, "",
|
|
4326
|
+
let U = Tr(F, h), B = p.createHref(F);
|
|
4327
|
+
c.replaceState(U, "", B), s && u && u({ action: l, location: p.location, delta: 0 });
|
|
4328
4328
|
}
|
|
4329
4329
|
function P(I) {
|
|
4330
4330
|
return pa(I);
|
|
@@ -5527,7 +5527,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5527
5527
|
`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
5528
5528
|
);
|
|
5529
5529
|
}
|
|
5530
|
-
let F = za(h, { relative: a }), [U,
|
|
5530
|
+
let F = za(h, { relative: a }), [U, B, v] = So(
|
|
5531
5531
|
i,
|
|
5532
5532
|
j
|
|
5533
5533
|
), b = To(h, {
|
|
@@ -5550,7 +5550,7 @@ var yn = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, bn = D.forwardRef(
|
|
|
5550
5550
|
...v,
|
|
5551
5551
|
href: I || F,
|
|
5552
5552
|
onClick: x || s ? t : w,
|
|
5553
|
-
ref: Co(M,
|
|
5553
|
+
ref: Co(M, B),
|
|
5554
5554
|
target: u,
|
|
5555
5555
|
"data-discover": !p && r === "render" ? "true" : void 0
|
|
5556
5556
|
}
|
|
@@ -5576,8 +5576,8 @@ var Eo = D.forwardRef(
|
|
|
5576
5576
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
5577
5577
|
Io(O) && l === !0, x = P.encodeLocation ? P.encodeLocation(O).pathname : O.pathname, F = j.pathname, U = M && M.navigation && M.navigation.location ? M.navigation.location.pathname : null;
|
|
5578
5578
|
r || (F = F.toLowerCase(), U = U ? U.toLowerCase() : null, x = x.toLowerCase()), U && p && (U = xe(U, p) || U);
|
|
5579
|
-
const
|
|
5580
|
-
let v = F === x || !a && F.startsWith(x) && F.charAt(
|
|
5579
|
+
const B = x !== "/" && x.endsWith("/") ? x.length - 1 : x.length;
|
|
5580
|
+
let v = F === x || !a && F.startsWith(x) && F.charAt(B) === "/", b = U != null && (U === x || !a && U.startsWith(x) && U.charAt(x.length) === "/"), w = {
|
|
5581
5581
|
isActive: v,
|
|
5582
5582
|
isPending: b,
|
|
5583
5583
|
isTransitioning: I
|
|
@@ -5624,8 +5624,8 @@ var Ro = D.forwardRef(
|
|
|
5624
5624
|
let P = Mo(), p = $o(l, { relative: h }), I = c.toLowerCase() === "get" ? "get" : "post", x = typeof l == "string" && yn.test(l), F = (U) => {
|
|
5625
5625
|
if (u && u(U), U.defaultPrevented) return;
|
|
5626
5626
|
U.preventDefault();
|
|
5627
|
-
let
|
|
5628
|
-
P(
|
|
5627
|
+
let B = U.nativeEvent.submitter, v = B?.getAttribute("formmethod") || c;
|
|
5628
|
+
P(B || U.currentTarget, {
|
|
5629
5629
|
fetcherKey: t,
|
|
5630
5630
|
method: v,
|
|
5631
5631
|
navigate: r,
|
|
@@ -5793,7 +5793,7 @@ function Io(e, t = {}) {
|
|
|
5793
5793
|
[
|
|
5794
5794
|
...yo
|
|
5795
5795
|
];
|
|
5796
|
-
const Sn =
|
|
5796
|
+
const Sn = q.createContext({
|
|
5797
5797
|
history: [],
|
|
5798
5798
|
addToHistory: () => {
|
|
5799
5799
|
},
|
|
@@ -5862,13 +5862,13 @@ const Sn = B.createContext({
|
|
|
5862
5862
|
return l.params && Object.entries(l.params).forEach(([h, g]) => {
|
|
5863
5863
|
g != null && u.searchParams.set(h, String(g));
|
|
5864
5864
|
}), u.pathname + u.search;
|
|
5865
|
-
}, s =
|
|
5865
|
+
}, s = q.useCallback(
|
|
5866
5866
|
(l) => {
|
|
5867
5867
|
const u = a(l);
|
|
5868
5868
|
l.addToHistory !== !1 ? (e(u), i.addToHistory(u)) : (e(u, { replace: !0 }), i.popFromHistory(1), i.addToHistory(u));
|
|
5869
5869
|
},
|
|
5870
5870
|
[e]
|
|
5871
|
-
), c =
|
|
5871
|
+
), c = q.useCallback(
|
|
5872
5872
|
(l) => {
|
|
5873
5873
|
const u = l || 1;
|
|
5874
5874
|
e(-u), i.popFromHistory(u);
|
|
@@ -5887,7 +5887,7 @@ const Sn = B.createContext({
|
|
|
5887
5887
|
routes: t,
|
|
5888
5888
|
children: r
|
|
5889
5889
|
}) => {
|
|
5890
|
-
const i =
|
|
5890
|
+
const i = q.useRef([]), [a, s] = q.useState([]), c = q.useCallback((O) => {
|
|
5891
5891
|
i.current = O, s(O);
|
|
5892
5892
|
}, []), l = (O, j = !1) => {
|
|
5893
5893
|
let M = [...i.current];
|
|
@@ -5916,7 +5916,7 @@ const Sn = B.createContext({
|
|
|
5916
5916
|
] }) })
|
|
5917
5917
|
}
|
|
5918
5918
|
);
|
|
5919
|
-
}, xn =
|
|
5919
|
+
}, xn = q.createContext(
|
|
5920
5920
|
{
|
|
5921
5921
|
visibleItems: [],
|
|
5922
5922
|
isItemVisible: () => !1,
|
|
@@ -5926,14 +5926,14 @@ const Sn = B.createContext({
|
|
|
5926
5926
|
}
|
|
5927
5927
|
}
|
|
5928
5928
|
), cs = ({ children: e }) => {
|
|
5929
|
-
const t =
|
|
5929
|
+
const t = q.useRef([]), [r, i] = q.useState([]), a = q.useCallback((u) => {
|
|
5930
5930
|
t.current = u, i(u);
|
|
5931
|
-
}, []), s =
|
|
5931
|
+
}, []), s = q.useCallback((u) => t.current.some((h) => h === u), []), c = q.useCallback(
|
|
5932
5932
|
(u) => {
|
|
5933
5933
|
s(u) || a([...t.current, u]);
|
|
5934
5934
|
},
|
|
5935
5935
|
[s, a]
|
|
5936
|
-
), l =
|
|
5936
|
+
), l = q.useCallback(
|
|
5937
5937
|
(u) => {
|
|
5938
5938
|
s(u) && a(
|
|
5939
5939
|
t.current.filter((g) => g !== u)
|
|
@@ -5970,9 +5970,9 @@ const Sn = B.createContext({
|
|
|
5970
5970
|
onCloseDrawer: t,
|
|
5971
5971
|
drawerCloseOffset: r = 15
|
|
5972
5972
|
}) => {
|
|
5973
|
-
const { isItemVisible: i } = Ct(), [a, s] =
|
|
5973
|
+
const { isItemVisible: i } = Ct(), [a, s] = q.useState({
|
|
5974
5974
|
isDragging: !1
|
|
5975
|
-
}), c =
|
|
5975
|
+
}), c = q.useRef(null), l = q.useRef(null), u = q.useRef(null), [h, g] = q.useState(0), O = (P) => {
|
|
5976
5976
|
s(P);
|
|
5977
5977
|
}, j = (P) => {
|
|
5978
5978
|
s(P), g(0);
|
|
@@ -6070,7 +6070,7 @@ const Sn = B.createContext({
|
|
|
6070
6070
|
}
|
|
6071
6071
|
) });
|
|
6072
6072
|
}, Ho = ({ onSubmit: e, fields: t }) => {
|
|
6073
|
-
const r =
|
|
6073
|
+
const r = q.useRef(null), i = q.useCallback(
|
|
6074
6074
|
(c) => {
|
|
6075
6075
|
const l = Array.from(c.currentTarget.elements).filter(
|
|
6076
6076
|
(h) => !!h.getAttribute("name")
|
|
@@ -6085,7 +6085,7 @@ const Sn = B.createContext({
|
|
|
6085
6085
|
return u;
|
|
6086
6086
|
},
|
|
6087
6087
|
[e]
|
|
6088
|
-
), a =
|
|
6088
|
+
), a = q.useCallback(
|
|
6089
6089
|
(c) => {
|
|
6090
6090
|
c.preventDefault(), c.stopPropagation();
|
|
6091
6091
|
const l = i(c);
|
|
@@ -6116,7 +6116,7 @@ const Sn = B.createContext({
|
|
|
6116
6116
|
pointer-events: none;
|
|
6117
6117
|
}
|
|
6118
6118
|
`, ds = (e) => {
|
|
6119
|
-
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l =
|
|
6119
|
+
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l = q.useCallback(() => t.list.map((u) => ({ ...u.content, key: u.name })), [t]);
|
|
6120
6120
|
return /* @__PURE__ */ G.jsxs(
|
|
6121
6121
|
"form",
|
|
6122
6122
|
{
|
|
@@ -6209,16 +6209,17 @@ const Sn = B.createContext({
|
|
|
6209
6209
|
onChange: g,
|
|
6210
6210
|
onFocus: O,
|
|
6211
6211
|
onBlur: j,
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6212
|
+
maxLength: M,
|
|
6213
|
+
inputStyles: P,
|
|
6214
|
+
containerStyles: p,
|
|
6215
|
+
styles: I,
|
|
6216
|
+
step: x
|
|
6216
6217
|
}) => {
|
|
6217
|
-
const
|
|
6218
|
-
g?.(
|
|
6219
|
-
},
|
|
6220
|
-
|
|
6221
|
-
},
|
|
6218
|
+
const F = (v) => {
|
|
6219
|
+
g?.(v.currentTarget.value);
|
|
6220
|
+
}, U = (v) => {
|
|
6221
|
+
v.preventDefault(), v.stopPropagation(), O?.();
|
|
6222
|
+
}, B = (v) => {
|
|
6222
6223
|
j?.();
|
|
6223
6224
|
};
|
|
6224
6225
|
return /* @__PURE__ */ G.jsxs(
|
|
@@ -6228,7 +6229,7 @@ const Sn = B.createContext({
|
|
|
6228
6229
|
width: "100%",
|
|
6229
6230
|
maxWidth: "357px",
|
|
6230
6231
|
gap: "8px",
|
|
6231
|
-
...
|
|
6232
|
+
...I
|
|
6232
6233
|
},
|
|
6233
6234
|
children: [
|
|
6234
6235
|
t,
|
|
@@ -6253,7 +6254,7 @@ const Sn = B.createContext({
|
|
|
6253
6254
|
outline: "none",
|
|
6254
6255
|
alignItems: "center",
|
|
6255
6256
|
gap: "10px",
|
|
6256
|
-
...
|
|
6257
|
+
...p
|
|
6257
6258
|
},
|
|
6258
6259
|
children: [
|
|
6259
6260
|
r,
|
|
@@ -6263,7 +6264,8 @@ const Sn = B.createContext({
|
|
|
6263
6264
|
name: e,
|
|
6264
6265
|
type: h,
|
|
6265
6266
|
autoComplete: c,
|
|
6266
|
-
step:
|
|
6267
|
+
step: x,
|
|
6268
|
+
maxLength: M,
|
|
6267
6269
|
style: {
|
|
6268
6270
|
flex: 1,
|
|
6269
6271
|
border: "none",
|
|
@@ -6275,14 +6277,14 @@ const Sn = B.createContext({
|
|
|
6275
6277
|
lineHeight: "inherit",
|
|
6276
6278
|
outline: "inherit",
|
|
6277
6279
|
background: "none",
|
|
6278
|
-
...
|
|
6280
|
+
...P
|
|
6279
6281
|
},
|
|
6280
6282
|
placeholder: s,
|
|
6281
6283
|
value: l,
|
|
6282
6284
|
defaultValue: u,
|
|
6283
|
-
onChange:
|
|
6284
|
-
onFocus:
|
|
6285
|
-
onBlur:
|
|
6285
|
+
onChange: F,
|
|
6286
|
+
onFocus: U,
|
|
6287
|
+
onBlur: B
|
|
6286
6288
|
}
|
|
6287
6289
|
),
|
|
6288
6290
|
i
|
|
@@ -6373,17 +6375,17 @@ const Sn = B.createContext({
|
|
|
6373
6375
|
}
|
|
6374
6376
|
) });
|
|
6375
6377
|
}, Wo = (e) => {
|
|
6376
|
-
const t =
|
|
6378
|
+
const t = q.useRef(null), r = q.useRef(null), [i, a] = q.useState(24), [s, c] = q.useState(24), l = q.useCallback(() => {
|
|
6377
6379
|
t.current && a(t.current.clientHeight);
|
|
6378
|
-
}, [t, t.current]), u =
|
|
6380
|
+
}, [t, t.current]), u = q.useCallback(() => {
|
|
6379
6381
|
r.current && c(r.current.clientHeight);
|
|
6380
|
-
}, [r, r.current]), h =
|
|
6382
|
+
}, [r, r.current]), h = q.useCallback(() => {
|
|
6381
6383
|
let g = 0;
|
|
6382
6384
|
return e.header?.visibility === "always" && (g = g + (i || 0)), e.footer?.visibility === "always" && (g = g + (s || 0)), g;
|
|
6383
6385
|
}, [r, r.current]);
|
|
6384
|
-
return
|
|
6386
|
+
return q.useEffect(() => {
|
|
6385
6387
|
l();
|
|
6386
|
-
}, [l, t, t.current]),
|
|
6388
|
+
}, [l, t, t.current]), q.useEffect(() => {
|
|
6387
6389
|
u();
|
|
6388
6390
|
}, [u, r, r.current]), {
|
|
6389
6391
|
header: {
|
|
@@ -6551,7 +6553,7 @@ function Bo() {
|
|
|
6551
6553
|
} }, U = function(_, C, T) {
|
|
6552
6554
|
var o = String(_);
|
|
6553
6555
|
return !o || o.length >= C ? _ : "" + Array(C + 1 - o.length).join(T) + _;
|
|
6554
|
-
},
|
|
6556
|
+
}, B = { s: U, z: function(_) {
|
|
6555
6557
|
var C = -_.utcOffset(), T = Math.abs(C), o = Math.floor(T / 60), z = T % 60;
|
|
6556
6558
|
return (C <= 0 ? "+" : "-") + U(o, 2, "0") + ":" + U(z, 2, "0");
|
|
6557
6559
|
}, m: function _(C, T) {
|
|
@@ -6585,7 +6587,7 @@ function Bo() {
|
|
|
6585
6587
|
if (E(_)) return _.clone();
|
|
6586
6588
|
var T = typeof C == "object" ? C : {};
|
|
6587
6589
|
return T.date = _, T.args = arguments, new A(T);
|
|
6588
|
-
}, k =
|
|
6590
|
+
}, k = B;
|
|
6589
6591
|
k.l = y, k.i = E, k.w = function(_, C) {
|
|
6590
6592
|
return d(_, { locale: C.$L, utc: C.$u, x: C.$x, $offset: C.$offset });
|
|
6591
6593
|
};
|
|
@@ -6863,8 +6865,8 @@ function Go() {
|
|
|
6863
6865
|
if (F === 0) return this.utc(I);
|
|
6864
6866
|
var U = this.clone();
|
|
6865
6867
|
if (I) return U.$offset = F, U.$u = !1, U;
|
|
6866
|
-
var
|
|
6867
|
-
return (U = this.local().add(F +
|
|
6868
|
+
var B = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
6869
|
+
return (U = this.local().add(F + B, r)).$offset = F, U.$x.$localOffset = B, U;
|
|
6868
6870
|
};
|
|
6869
6871
|
var j = u.format;
|
|
6870
6872
|
u.format = function(p) {
|
|
@@ -7170,8 +7172,8 @@ const Ss = ({
|
|
|
7170
7172
|
styles: r,
|
|
7171
7173
|
durationInSeconds: i = 3
|
|
7172
7174
|
}) => {
|
|
7173
|
-
const a =
|
|
7174
|
-
return
|
|
7175
|
+
const a = q.useRef(!1), { isItemVisible: s, hideItem: c } = Ct();
|
|
7176
|
+
return q.useEffect(() => {
|
|
7175
7177
|
const l = s(e);
|
|
7176
7178
|
a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
|
|
7177
7179
|
}, [a, s, c]), /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eliseubatista99/react-scaffold-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.81",
|
|
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",
|