@eliseubatista99/react-scaffold-core 0.1.74 → 0.1.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -226,10 +226,10 @@ function En() {
|
|
|
226
226
|
else x(V);
|
|
227
227
|
if (A.call(f, "key")) {
|
|
228
228
|
V = e(n);
|
|
229
|
-
var
|
|
229
|
+
var K = Object.keys(f).filter(function(J) {
|
|
230
230
|
return J !== "key";
|
|
231
231
|
});
|
|
232
|
-
$ = 0 <
|
|
232
|
+
$ = 0 < K.length ? "{key: someKey, " + K.join(": ..., ") + ": ...}" : "{key: someKey}", m[V + $] || (K = 0 < K.length ? "{" + K.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
233
233
|
`A props object containing a "key" prop is being spread into JSX:
|
|
234
234
|
let props = %s;
|
|
235
235
|
<%s {...props} />
|
|
@@ -238,7 +238,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
238
238
|
<%s key={someKey} {...props} />`,
|
|
239
239
|
$,
|
|
240
240
|
V,
|
|
241
|
-
|
|
241
|
+
K,
|
|
242
242
|
V
|
|
243
243
|
), m[V + $] = !0);
|
|
244
244
|
}
|
|
@@ -307,8 +307,8 @@ var ir;
|
|
|
307
307
|
function Rn() {
|
|
308
308
|
return ir || (ir = 1, process.env.NODE_ENV === "production" ? nt.exports = Pn() : nt.exports = En()), nt.exports;
|
|
309
309
|
}
|
|
310
|
-
var
|
|
311
|
-
const es = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */
|
|
310
|
+
var G = Rn();
|
|
311
|
+
const es = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ G.jsx(
|
|
312
312
|
"button",
|
|
313
313
|
{
|
|
314
314
|
style: {
|
|
@@ -383,19 +383,19 @@ function Tn() {
|
|
|
383
383
|
throw new TypeError(e);
|
|
384
384
|
b = q(b) || 0, O(w) && (C = !!w.leading, T = "maxWait" in w, d = T ? M(q(w.maxWait) || 0, b) : d, o = "trailing" in w ? !!w.trailing : o);
|
|
385
385
|
function z(W) {
|
|
386
|
-
var V = E,
|
|
387
|
-
return E = y = void 0, _ = W, k = v.apply(
|
|
386
|
+
var V = E, K = y;
|
|
387
|
+
return E = y = void 0, _ = W, k = v.apply(K, V), k;
|
|
388
388
|
}
|
|
389
389
|
function m(W) {
|
|
390
390
|
return _ = W, A = setTimeout(S, b), C ? z(W) : k;
|
|
391
391
|
}
|
|
392
392
|
function n(W) {
|
|
393
|
-
var V = W - R,
|
|
394
|
-
return T ? P(X, d -
|
|
393
|
+
var V = W - R, K = W - _, X = b - V;
|
|
394
|
+
return T ? P(X, d - K) : X;
|
|
395
395
|
}
|
|
396
396
|
function f(W) {
|
|
397
|
-
var V = W - R,
|
|
398
|
-
return R === void 0 || V >= b || V < 0 || T &&
|
|
397
|
+
var V = W - R, K = W - _;
|
|
398
|
+
return R === void 0 || V >= b || V < 0 || T && K >= d;
|
|
399
399
|
}
|
|
400
400
|
function S() {
|
|
401
401
|
var W = p();
|
|
@@ -670,7 +670,7 @@ function Ke() {
|
|
|
670
670
|
var W = n.centerMode && parseInt(n.centerPadding) * 2;
|
|
671
671
|
typeof n.centerPadding == "string" && n.centerPadding.slice(-1) === "%" && (W *= $ / 100), N = Math.ceil(($ - W) / n.slidesToShow);
|
|
672
672
|
}
|
|
673
|
-
var V = S && O(S.querySelector('[data-index="0"]')),
|
|
673
|
+
var V = S && O(S.querySelector('[data-index="0"]')), K = V * n.slidesToShow, X = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
|
|
674
674
|
n.rtl && n.currentSlide === void 0 && (X = f - 1 - n.initialSlide);
|
|
675
675
|
var J = n.lazyLoadedList || [], te = x(s(s({}, n), {}, {
|
|
676
676
|
currentSlide: X,
|
|
@@ -684,12 +684,12 @@ function Ke() {
|
|
|
684
684
|
trackWidth: H,
|
|
685
685
|
currentSlide: X,
|
|
686
686
|
slideHeight: V,
|
|
687
|
-
listHeight:
|
|
687
|
+
listHeight: K,
|
|
688
688
|
lazyLoadedList: J
|
|
689
689
|
};
|
|
690
690
|
return n.autoplaying === null && n.autoplay && (Z.autoplaying = "playing"), Z;
|
|
691
691
|
}, Y.slideHandler = function(n) {
|
|
692
|
-
var f = n.waitForAnimate, S = n.animating, $ = n.fade, L = n.infinite, H = n.index, N = n.slideCount, W = n.lazyLoad, V = n.currentSlide,
|
|
692
|
+
var f = n.waitForAnimate, S = n.animating, $ = n.fade, L = n.infinite, H = n.index, N = n.slideCount, W = n.lazyLoad, V = n.currentSlide, K = n.centerMode, X = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
|
|
693
693
|
if (f && S) return {};
|
|
694
694
|
var ee = H, ie, le, Q, oe = {}, ue = {}, ce = L ? H : h(H, 0, N - 1);
|
|
695
695
|
if ($) {
|
|
@@ -704,7 +704,7 @@ function Ke() {
|
|
|
704
704
|
targetSlide: ee
|
|
705
705
|
};
|
|
706
706
|
} else
|
|
707
|
-
ie = ee, ee < 0 ? (ie = ee + N, L ? N % X !== 0 && (ie = N - N % X) : ie = 0) : !U(n) && ee > V ? ee = ie = V :
|
|
707
|
+
ie = ee, ee < 0 ? (ie = ee + N, L ? N % X !== 0 && (ie = N - N % X) : ie = 0) : !U(n) && ee > V ? ee = ie = V : K && ee >= N ? (ee = L ? N : N - 1, ie = L ? 0 : N - 1) : ee >= N && (ie = ee - N, L ? N % X !== 0 && (ie = 0) : ie = N - J), !L && ee + J >= N && (ie = N - J), le = d(s(s({}, n), {}, {
|
|
708
708
|
slideIndex: ee
|
|
709
709
|
})), Q = d(s(s({}, n), {}, {
|
|
710
710
|
slideIndex: ie
|
|
@@ -739,11 +739,11 @@ function Ke() {
|
|
|
739
739
|
nextState: ue
|
|
740
740
|
};
|
|
741
741
|
}, Y.changeSlide = function(n, f) {
|
|
742
|
-
var S, $, L, H, N, W = n.slidesToScroll, V = n.slidesToShow,
|
|
743
|
-
if (H =
|
|
744
|
-
L = S === 0 ? W : V - S, N = X - L, te && !Z && ($ = X - L, N = $ === -1 ?
|
|
742
|
+
var S, $, L, H, N, W = n.slidesToScroll, V = n.slidesToShow, K = n.slideCount, X = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
|
|
743
|
+
if (H = K % W !== 0, S = H ? 0 : (K - X) % W, f.message === "previous")
|
|
744
|
+
L = S === 0 ? W : V - S, N = X - L, te && !Z && ($ = X - L, N = $ === -1 ? K - 1 : $), Z || (N = J - W);
|
|
745
745
|
else if (f.message === "next")
|
|
746
|
-
L = S === 0 ? W : S, N = X + L, te && !Z && (N = (X + W) %
|
|
746
|
+
L = S === 0 ? W : S, N = X + L, te && !Z && (N = (X + W) % K + S), Z || (N = J + W);
|
|
747
747
|
else if (f.message === "dots")
|
|
748
748
|
N = f.index * f.slidesToScroll;
|
|
749
749
|
else if (f.message === "children") {
|
|
@@ -751,7 +751,7 @@ function Ke() {
|
|
|
751
751
|
var ee = _(s(s({}, n), {}, {
|
|
752
752
|
targetSlide: N
|
|
753
753
|
}));
|
|
754
|
-
N > f.currentSlide && ee === "left" ? N = N -
|
|
754
|
+
N > f.currentSlide && ee === "left" ? N = N - K : N < f.currentSlide && ee === "right" && (N = N + K);
|
|
755
755
|
}
|
|
756
756
|
} else f.message === "index" && (N = Number(f.index));
|
|
757
757
|
return N;
|
|
@@ -768,7 +768,7 @@ function Ke() {
|
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
}, Y.swipeMove = function(n, f) {
|
|
771
|
-
var S = f.scrolling, $ = f.animating, L = f.vertical, H = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, V = f.currentSlide,
|
|
771
|
+
var S = f.scrolling, $ = f.animating, L = f.vertical, H = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, V = f.currentSlide, K = f.edgeFriction, X = f.edgeDragged, J = f.onEdge, te = f.swiped, Z = f.swiping, ee = f.slideCount, ie = f.slidesToScroll, le = f.infinite, Q = f.touchObject, oe = f.swipeEvent, ue = f.listHeight, ce = f.listWidth;
|
|
772
772
|
if (!S) {
|
|
773
773
|
if ($) return g(n);
|
|
774
774
|
L && H && N && g(n);
|
|
@@ -783,7 +783,7 @@ function Ke() {
|
|
|
783
783
|
var Ie = (W ? -1 : 1) * (Q.curX > Q.startX ? 1 : -1);
|
|
784
784
|
N && (Ie = Q.curY > Q.startY ? 1 : -1);
|
|
785
785
|
var On = Math.ceil(ee / ie), Ce = F(f.touchObject, N), Ae = Q.swipeLength;
|
|
786
|
-
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength *
|
|
786
|
+
return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= On && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, X === !1 && J && (J(Ce), Ee.edgeDragged = !0)), !te && oe && (oe(Ce), Ee.swiped = !0), L ? pe = tt + Ae * (ue / ce) * Ie : W ? pe = tt - Ae * Ie : pe = tt + Ae * Ie, N && (pe = tt + Ae * Ie), Ee = s(s({}, Ee), {}, {
|
|
787
787
|
touchObject: Q,
|
|
788
788
|
swipeLeft: pe,
|
|
789
789
|
trackStyle: E(s(s({}, f), {}, {
|
|
@@ -792,7 +792,7 @@ function Ke() {
|
|
|
792
792
|
}), Math.abs(Q.curX - Q.startX) < Math.abs(Q.curY - Q.startY) * 0.8 || Q.swipeLength > 10 && (Ee.swiping = !0, g(n)), Ee;
|
|
793
793
|
}
|
|
794
794
|
}, Y.swipeEnd = function(n, f) {
|
|
795
|
-
var S = f.dragging, $ = f.swipe, L = f.touchObject, H = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, V = f.listHeight,
|
|
795
|
+
var S = f.dragging, $ = f.swipe, L = f.touchObject, H = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, V = f.listHeight, K = f.swipeToSlide, X = f.scrolling, J = f.onSwipe, te = f.targetSlide, Z = f.currentSlide, ee = f.infinite;
|
|
796
796
|
if (!S)
|
|
797
797
|
return $ && g(n), {};
|
|
798
798
|
var ie = W ? V / N : H / N, le = F(L, W), Q = {
|
|
@@ -812,11 +812,11 @@ function Ke() {
|
|
|
812
812
|
switch (le) {
|
|
813
813
|
case "left":
|
|
814
814
|
case "up":
|
|
815
|
-
ue = ce + b(f), oe =
|
|
815
|
+
ue = ce + b(f), oe = K ? v(f, ue) : ue, Q.currentDirection = 0;
|
|
816
816
|
break;
|
|
817
817
|
case "right":
|
|
818
818
|
case "down":
|
|
819
|
-
ue = ce - b(f), oe =
|
|
819
|
+
ue = ce - b(f), oe = K ? v(f, ue) : ue, Q.currentDirection = 1;
|
|
820
820
|
break;
|
|
821
821
|
default:
|
|
822
822
|
oe = ce;
|
|
@@ -902,7 +902,7 @@ function Ke() {
|
|
|
902
902
|
if (n.unslick)
|
|
903
903
|
return 0;
|
|
904
904
|
w(n, ["slideIndex", "trackRef", "infinite", "centerMode", "slideCount", "slidesToShow", "slidesToScroll", "slideWidth", "listWidth", "variableWidth", "slideHeight"]);
|
|
905
|
-
var f = n.slideIndex, S = n.trackRef, $ = n.infinite, L = n.centerMode, H = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, V = n.slideWidth,
|
|
905
|
+
var f = n.slideIndex, S = n.trackRef, $ = n.infinite, L = n.centerMode, H = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, V = n.slideWidth, K = n.listWidth, X = n.variableWidth, J = n.slideHeight, te = n.fade, Z = n.vertical, ee = 0, ie, le, Q = 0;
|
|
906
906
|
if (te || n.slideCount === 1)
|
|
907
907
|
return 0;
|
|
908
908
|
var oe = 0;
|
|
@@ -912,7 +912,7 @@ function Ke() {
|
|
|
912
912
|
ue = $ ? f + k(n) : f, le = ce && ce.children[ue], ie = 0;
|
|
913
913
|
for (var pe = 0; pe < ue; pe++)
|
|
914
914
|
ie -= ce && ce.children[pe] && ce.children[pe].offsetWidth;
|
|
915
|
-
ie -= parseInt(n.centerPadding), ie += le && (
|
|
915
|
+
ie -= parseInt(n.centerPadding), ie += le && (K - le.offsetWidth) / 2;
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
return ie;
|
|
@@ -2093,9 +2093,9 @@ function ei() {
|
|
|
2093
2093
|
trackStyle: W
|
|
2094
2094
|
};
|
|
2095
2095
|
}
|
|
2096
|
-
var
|
|
2097
|
-
slideCount:
|
|
2098
|
-
}), J = (0, a.getPreClones)(X) + (0, a.getPostClones)(X) +
|
|
2096
|
+
var K = e.default.Children.count(o.props.children), X = p(p(p({}, o.props), o.state), {}, {
|
|
2097
|
+
slideCount: K
|
|
2098
|
+
}), J = (0, a.getPreClones)(X) + (0, a.getPostClones)(X) + K, te = 100 / o.props.slidesToShow * J, Z = 100 / J, ee = -Z * ((0, a.getPreClones)(X) + o.state.currentSlide) * te / 100;
|
|
2099
2099
|
o.props.centerMode && (ee += (100 - Z * te / 100) / 2);
|
|
2100
2100
|
var ie = {
|
|
2101
2101
|
width: te + "%",
|
|
@@ -2149,13 +2149,13 @@ function ei() {
|
|
|
2149
2149
|
}, o.props), o.state), {}, {
|
|
2150
2150
|
trackRef: o.track,
|
|
2151
2151
|
useCSS: o.props.useCSS && !n
|
|
2152
|
-
})),
|
|
2153
|
-
if (
|
|
2154
|
-
$ && $(W,
|
|
2155
|
-
var J =
|
|
2152
|
+
})), K = V.state, X = V.nextState;
|
|
2153
|
+
if (K) {
|
|
2154
|
+
$ && $(W, K.currentSlide);
|
|
2155
|
+
var J = K.lazyLoadedList.filter(function(te) {
|
|
2156
2156
|
return o.state.lazyLoadedList.indexOf(te) < 0;
|
|
2157
2157
|
});
|
|
2158
|
-
L && J.length > 0 && L(J), !o.props.waitForAnimate && o.animationEndCallback && (clearTimeout(o.animationEndCallback), N && N(W), delete o.animationEndCallback), o.setState(
|
|
2158
|
+
L && J.length > 0 && L(J), !o.props.waitForAnimate && o.animationEndCallback && (clearTimeout(o.animationEndCallback), N && N(W), delete o.animationEndCallback), o.setState(K, function() {
|
|
2159
2159
|
S && o.asNavForIndex !== m && (o.asNavForIndex = m, S.innerSlider.slideHandler(m)), X && (o.animationEndCallback = setTimeout(function() {
|
|
2160
2160
|
var te = X.animating, Z = j(X, ["animating"]);
|
|
2161
2161
|
o.setState(Z, function() {
|
|
@@ -2163,7 +2163,7 @@ function ei() {
|
|
|
2163
2163
|
return o.setState({
|
|
2164
2164
|
animating: te
|
|
2165
2165
|
});
|
|
2166
|
-
}, 10)), N && N(
|
|
2166
|
+
}, 10)), N && N(K.currentSlide), delete o.animationEndCallback;
|
|
2167
2167
|
});
|
|
2168
2168
|
}, H));
|
|
2169
2169
|
});
|
|
@@ -2303,8 +2303,8 @@ function ei() {
|
|
|
2303
2303
|
}
|
|
2304
2304
|
var N, W, V = (0, a.extractObject)(n, ["infinite", "centerMode", "currentSlide", "slideCount", "slidesToShow", "prevArrow", "nextArrow"]);
|
|
2305
2305
|
V.clickHandler = o.changeSlide, o.props.arrows && (N = /* @__PURE__ */ e.default.createElement(l.PrevArrow, V), W = /* @__PURE__ */ e.default.createElement(l.NextArrow, V));
|
|
2306
|
-
var
|
|
2307
|
-
o.props.vertical && (
|
|
2306
|
+
var K = null;
|
|
2307
|
+
o.props.vertical && (K = {
|
|
2308
2308
|
height: o.state.listHeight
|
|
2309
2309
|
});
|
|
2310
2310
|
var X = null;
|
|
@@ -2313,7 +2313,7 @@ function ei() {
|
|
|
2313
2313
|
}) : o.props.centerMode === !0 && (X = {
|
|
2314
2314
|
padding: o.props.centerPadding + " 0px"
|
|
2315
2315
|
});
|
|
2316
|
-
var J = p(p({},
|
|
2316
|
+
var J = p(p({}, K), X), te = o.props.touchMove, Z = {
|
|
2317
2317
|
className: "slick-list",
|
|
2318
2318
|
style: J,
|
|
2319
2319
|
onClick: o.clickHandler,
|
|
@@ -3848,7 +3848,7 @@ const na = Pe.div`
|
|
|
3848
3848
|
rows: 1,
|
|
3849
3849
|
...r
|
|
3850
3850
|
};
|
|
3851
|
-
const h = t.map((x, j) => /* @__PURE__ */
|
|
3851
|
+
const h = t.map((x, j) => /* @__PURE__ */ G.jsx(
|
|
3852
3852
|
ia,
|
|
3853
3853
|
{
|
|
3854
3854
|
ref: j === 0 ? l : void 0,
|
|
@@ -3876,7 +3876,7 @@ const na = Pe.div`
|
|
|
3876
3876
|
};
|
|
3877
3877
|
return B.useEffect(() => {
|
|
3878
3878
|
g();
|
|
3879
|
-
}, [c, l]), /* @__PURE__ */
|
|
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 = ({
|
|
3881
3881
|
checked: e,
|
|
3882
3882
|
onToggle: t,
|
|
@@ -3886,7 +3886,7 @@ const na = Pe.div`
|
|
|
3886
3886
|
customUncheckedRender: s
|
|
3887
3887
|
}) => {
|
|
3888
3888
|
const c = e ? { ...r, ...i } : { ...r };
|
|
3889
|
-
return /* @__PURE__ */
|
|
3889
|
+
return /* @__PURE__ */ G.jsxs(
|
|
3890
3890
|
"div",
|
|
3891
3891
|
{
|
|
3892
3892
|
onClick: (l) => {
|
|
@@ -5900,8 +5900,8 @@ const Sn = B.createContext({
|
|
|
5900
5900
|
), j = M[M.length - 1]), c(M), j);
|
|
5901
5901
|
}, h = (x) => {
|
|
5902
5902
|
c(x);
|
|
5903
|
-
}, g = t.map((x) => /* @__PURE__ */
|
|
5904
|
-
return /* @__PURE__ */
|
|
5903
|
+
}, g = t.map((x) => /* @__PURE__ */ G.jsx(pn, { path: x.path, element: x.render }));
|
|
5904
|
+
return /* @__PURE__ */ G.jsx(
|
|
5905
5905
|
Sn.Provider,
|
|
5906
5906
|
{
|
|
5907
5907
|
value: {
|
|
@@ -5910,9 +5910,9 @@ const Sn = B.createContext({
|
|
|
5910
5910
|
popFromHistory: u,
|
|
5911
5911
|
replaceHistory: h
|
|
5912
5912
|
},
|
|
5913
|
-
children: /* @__PURE__ */
|
|
5913
|
+
children: /* @__PURE__ */ G.jsx(Po, { children: e && /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
|
|
5914
5914
|
r,
|
|
5915
|
-
/* @__PURE__ */
|
|
5915
|
+
/* @__PURE__ */ G.jsx(eo, { children: g })
|
|
5916
5916
|
] }) })
|
|
5917
5917
|
}
|
|
5918
5918
|
);
|
|
@@ -5941,7 +5941,7 @@ const Sn = B.createContext({
|
|
|
5941
5941
|
},
|
|
5942
5942
|
[s, a]
|
|
5943
5943
|
);
|
|
5944
|
-
return /* @__PURE__ */
|
|
5944
|
+
return /* @__PURE__ */ G.jsx(
|
|
5945
5945
|
xn.Provider,
|
|
5946
5946
|
{
|
|
5947
5947
|
value: {
|
|
@@ -6001,7 +6001,7 @@ const Sn = B.createContext({
|
|
|
6001
6001
|
handleRef: u,
|
|
6002
6002
|
drawerBottomDistance: h
|
|
6003
6003
|
} = zo(e);
|
|
6004
|
-
return /* @__PURE__ */
|
|
6004
|
+
return /* @__PURE__ */ G.jsx(G.Fragment, { children: s && /* @__PURE__ */ G.jsx(
|
|
6005
6005
|
"div",
|
|
6006
6006
|
{
|
|
6007
6007
|
ref: c,
|
|
@@ -6019,7 +6019,7 @@ const Sn = B.createContext({
|
|
|
6019
6019
|
touchAction: "none",
|
|
6020
6020
|
...r
|
|
6021
6021
|
},
|
|
6022
|
-
children: /* @__PURE__ */
|
|
6022
|
+
children: /* @__PURE__ */ G.jsxs(
|
|
6023
6023
|
"div",
|
|
6024
6024
|
{
|
|
6025
6025
|
ref: l,
|
|
@@ -6045,7 +6045,7 @@ const Sn = B.createContext({
|
|
|
6045
6045
|
g.stopPropagation();
|
|
6046
6046
|
},
|
|
6047
6047
|
children: [
|
|
6048
|
-
/* @__PURE__ */
|
|
6048
|
+
/* @__PURE__ */ G.jsx(
|
|
6049
6049
|
"div",
|
|
6050
6050
|
{
|
|
6051
6051
|
ref: u,
|
|
@@ -6075,7 +6075,7 @@ const Sn = B.createContext({
|
|
|
6075
6075
|
var l = Object.keys(c.currentTarget.elements), u = Object.values(c.currentTarget.elements), h = [];
|
|
6076
6076
|
for (let g = 0; g < l.length; g++) {
|
|
6077
6077
|
const x = l[g];
|
|
6078
|
-
if (t.findIndex((M) => M.name === x) === -1)
|
|
6078
|
+
if (t.list.findIndex((M) => M.name === x) === -1)
|
|
6079
6079
|
continue;
|
|
6080
6080
|
const j = u[g].value;
|
|
6081
6081
|
h.push({
|
|
@@ -6117,8 +6117,8 @@ const Sn = B.createContext({
|
|
|
6117
6117
|
pointer-events: none;
|
|
6118
6118
|
}
|
|
6119
6119
|
`, ds = (e) => {
|
|
6120
|
-
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l = B.useCallback(() => t.map((u) => ({ ...u.content, key: u.name })), [t]);
|
|
6121
|
-
return /* @__PURE__ */
|
|
6120
|
+
const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Ho(e), l = B.useCallback(() => t.list.map((u) => ({ ...u.content, key: u.name })), [t]);
|
|
6121
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6122
6122
|
"form",
|
|
6123
6123
|
{
|
|
6124
6124
|
ref: a,
|
|
@@ -6132,8 +6132,21 @@ const Sn = B.createContext({
|
|
|
6132
6132
|
...r
|
|
6133
6133
|
},
|
|
6134
6134
|
children: [
|
|
6135
|
-
|
|
6136
|
-
|
|
6135
|
+
/* @__PURE__ */ G.jsx(
|
|
6136
|
+
"div",
|
|
6137
|
+
{
|
|
6138
|
+
style: {
|
|
6139
|
+
width: "100%",
|
|
6140
|
+
display: "flex",
|
|
6141
|
+
flexDirection: "column",
|
|
6142
|
+
gap: "8px",
|
|
6143
|
+
flex: 1,
|
|
6144
|
+
...t.styles
|
|
6145
|
+
},
|
|
6146
|
+
children: l()
|
|
6147
|
+
}
|
|
6148
|
+
),
|
|
6149
|
+
/* @__PURE__ */ G.jsx(
|
|
6137
6150
|
No,
|
|
6138
6151
|
{
|
|
6139
6152
|
onClick: c,
|
|
@@ -6146,7 +6159,7 @@ const Sn = B.createContext({
|
|
|
6146
6159
|
]
|
|
6147
6160
|
}
|
|
6148
6161
|
);
|
|
6149
|
-
}, hs = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */
|
|
6162
|
+
}, hs = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */ G.jsx(
|
|
6150
6163
|
"img",
|
|
6151
6164
|
{
|
|
6152
6165
|
src: e,
|
|
@@ -6209,7 +6222,7 @@ const Sn = B.createContext({
|
|
|
6209
6222
|
}, U = (q) => {
|
|
6210
6223
|
j?.();
|
|
6211
6224
|
};
|
|
6212
|
-
return /* @__PURE__ */
|
|
6225
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6213
6226
|
Fo,
|
|
6214
6227
|
{
|
|
6215
6228
|
style: {
|
|
@@ -6220,7 +6233,7 @@ const Sn = B.createContext({
|
|
|
6220
6233
|
},
|
|
6221
6234
|
children: [
|
|
6222
6235
|
t,
|
|
6223
|
-
/* @__PURE__ */
|
|
6236
|
+
/* @__PURE__ */ G.jsxs(
|
|
6224
6237
|
"div",
|
|
6225
6238
|
{
|
|
6226
6239
|
style: {
|
|
@@ -6245,7 +6258,7 @@ const Sn = B.createContext({
|
|
|
6245
6258
|
},
|
|
6246
6259
|
children: [
|
|
6247
6260
|
r,
|
|
6248
|
-
/* @__PURE__ */
|
|
6261
|
+
/* @__PURE__ */ G.jsx(
|
|
6249
6262
|
"input",
|
|
6250
6263
|
{
|
|
6251
6264
|
name: e,
|
|
@@ -6283,7 +6296,7 @@ const Sn = B.createContext({
|
|
|
6283
6296
|
);
|
|
6284
6297
|
}, ms = ({ id: e, styles: t, children: r }) => {
|
|
6285
6298
|
const { isItemVisible: i } = Ct();
|
|
6286
|
-
return /* @__PURE__ */
|
|
6299
|
+
return /* @__PURE__ */ G.jsx(G.Fragment, { children: i(e) && /* @__PURE__ */ G.jsx(
|
|
6287
6300
|
"div",
|
|
6288
6301
|
{
|
|
6289
6302
|
style: {
|
|
@@ -6310,7 +6323,7 @@ const Sn = B.createContext({
|
|
|
6310
6323
|
onClickOutsideModal: a
|
|
6311
6324
|
}) => {
|
|
6312
6325
|
const { isItemVisible: s } = Ct();
|
|
6313
|
-
return /* @__PURE__ */
|
|
6326
|
+
return /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|
|
6314
6327
|
"div",
|
|
6315
6328
|
{
|
|
6316
6329
|
style: {
|
|
@@ -6332,7 +6345,7 @@ const Sn = B.createContext({
|
|
|
6332
6345
|
onClick: () => {
|
|
6333
6346
|
a?.();
|
|
6334
6347
|
},
|
|
6335
|
-
children: /* @__PURE__ */
|
|
6348
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6336
6349
|
"div",
|
|
6337
6350
|
{
|
|
6338
6351
|
style: {
|
|
@@ -6419,7 +6432,7 @@ const Sn = B.createContext({
|
|
|
6419
6432
|
floatingContent: s,
|
|
6420
6433
|
reserveSpaceForScrollbar: c
|
|
6421
6434
|
} = e, { footer: l, header: u } = Wo(e);
|
|
6422
|
-
return /* @__PURE__ */
|
|
6435
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6423
6436
|
Uo,
|
|
6424
6437
|
{
|
|
6425
6438
|
id: "page-container",
|
|
@@ -6427,7 +6440,7 @@ const Sn = B.createContext({
|
|
|
6427
6440
|
...t
|
|
6428
6441
|
},
|
|
6429
6442
|
children: [
|
|
6430
|
-
u.visible && /* @__PURE__ */
|
|
6443
|
+
u.visible && /* @__PURE__ */ G.jsx(
|
|
6431
6444
|
"div",
|
|
6432
6445
|
{
|
|
6433
6446
|
ref: u.ref,
|
|
@@ -6448,7 +6461,7 @@ const Sn = B.createContext({
|
|
|
6448
6461
|
children: u.content
|
|
6449
6462
|
}
|
|
6450
6463
|
),
|
|
6451
|
-
/* @__PURE__ */
|
|
6464
|
+
/* @__PURE__ */ G.jsx(
|
|
6452
6465
|
"div",
|
|
6453
6466
|
{
|
|
6454
6467
|
id: "page-body",
|
|
@@ -6460,7 +6473,7 @@ const Sn = B.createContext({
|
|
|
6460
6473
|
marginTop: `-${u.height}px`,
|
|
6461
6474
|
marginBottom: `-${l.height}px`
|
|
6462
6475
|
},
|
|
6463
|
-
children: /* @__PURE__ */
|
|
6476
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6464
6477
|
"div",
|
|
6465
6478
|
{
|
|
6466
6479
|
id: "page-content",
|
|
@@ -6484,7 +6497,7 @@ const Sn = B.createContext({
|
|
|
6484
6497
|
)
|
|
6485
6498
|
}
|
|
6486
6499
|
),
|
|
6487
|
-
l.visible && /* @__PURE__ */
|
|
6500
|
+
l.visible && /* @__PURE__ */ G.jsx(
|
|
6488
6501
|
"div",
|
|
6489
6502
|
{
|
|
6490
6503
|
ref: l.ref,
|
|
@@ -6618,11 +6631,11 @@ function Bo() {
|
|
|
6618
6631
|
}, C.valueOf = function() {
|
|
6619
6632
|
return this.$d.getTime();
|
|
6620
6633
|
}, C.startOf = function(T, o) {
|
|
6621
|
-
var z = this, m = !!k.u(o) || o, n = k.p(T), f = function(
|
|
6622
|
-
var J = k.w(z.$u ? Date.UTC(z.$y, X,
|
|
6634
|
+
var z = this, m = !!k.u(o) || o, n = k.p(T), f = function(K, X) {
|
|
6635
|
+
var J = k.w(z.$u ? Date.UTC(z.$y, X, K) : new Date(z.$y, X, K), z);
|
|
6623
6636
|
return m ? J : J.endOf(h);
|
|
6624
|
-
}, S = function(
|
|
6625
|
-
return k.w(z.toDate()[
|
|
6637
|
+
}, S = function(K, X) {
|
|
6638
|
+
return k.w(z.toDate()[K].apply(z.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), z);
|
|
6626
6639
|
}, $ = this.$W, L = this.$M, H = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6627
6640
|
switch (n) {
|
|
6628
6641
|
case M:
|
|
@@ -6679,7 +6692,7 @@ function Bo() {
|
|
|
6679
6692
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6680
6693
|
}, V = function(X) {
|
|
6681
6694
|
return k.s(f % 12 || 12, X, "0");
|
|
6682
|
-
},
|
|
6695
|
+
}, K = N || function(X, J, te) {
|
|
6683
6696
|
var Z = X < 12 ? "AM" : "PM";
|
|
6684
6697
|
return te ? Z.toLowerCase() : Z;
|
|
6685
6698
|
};
|
|
@@ -6719,9 +6732,9 @@ function Bo() {
|
|
|
6719
6732
|
case "hh":
|
|
6720
6733
|
return V(2);
|
|
6721
6734
|
case "a":
|
|
6722
|
-
return
|
|
6735
|
+
return K(f, S, !0);
|
|
6723
6736
|
case "A":
|
|
6724
|
-
return
|
|
6737
|
+
return K(f, S, !1);
|
|
6725
6738
|
case "m":
|
|
6726
6739
|
return String(S);
|
|
6727
6740
|
case "mm":
|
|
@@ -6931,7 +6944,7 @@ const Ss = ({
|
|
|
6931
6944
|
barStyles: a
|
|
6932
6945
|
}) => {
|
|
6933
6946
|
const s = Yo.clamp(e, t, r);
|
|
6934
|
-
return /* @__PURE__ */
|
|
6947
|
+
return /* @__PURE__ */ G.jsx(
|
|
6935
6948
|
"div",
|
|
6936
6949
|
{
|
|
6937
6950
|
style: {
|
|
@@ -6942,7 +6955,7 @@ const Ss = ({
|
|
|
6942
6955
|
background: "#ffffff",
|
|
6943
6956
|
...i
|
|
6944
6957
|
},
|
|
6945
|
-
children: /* @__PURE__ */
|
|
6958
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6946
6959
|
"div",
|
|
6947
6960
|
{
|
|
6948
6961
|
style: {
|
|
@@ -6964,7 +6977,7 @@ const Ss = ({
|
|
|
6964
6977
|
customUncheckedRender: s
|
|
6965
6978
|
}) => {
|
|
6966
6979
|
const c = e ? { ...r, ...i } : { ...r };
|
|
6967
|
-
return /* @__PURE__ */
|
|
6980
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6968
6981
|
"div",
|
|
6969
6982
|
{
|
|
6970
6983
|
onClick: (l) => {
|
|
@@ -6984,8 +6997,8 @@ const Ss = ({
|
|
|
6984
6997
|
...c
|
|
6985
6998
|
},
|
|
6986
6999
|
children: [
|
|
6987
|
-
e && /* @__PURE__ */
|
|
6988
|
-
!a && /* @__PURE__ */
|
|
7000
|
+
e && /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
|
|
7001
|
+
!a && /* @__PURE__ */ G.jsx(
|
|
6989
7002
|
"div",
|
|
6990
7003
|
{
|
|
6991
7004
|
style: {
|
|
@@ -7012,7 +7025,7 @@ const Ss = ({
|
|
|
7012
7025
|
alt: c = "",
|
|
7013
7026
|
onClick: l,
|
|
7014
7027
|
styles: u
|
|
7015
|
-
}) => /* @__PURE__ */
|
|
7028
|
+
}) => /* @__PURE__ */ G.jsx(
|
|
7016
7029
|
"div",
|
|
7017
7030
|
{
|
|
7018
7031
|
style: {
|
|
@@ -7024,7 +7037,7 @@ const Ss = ({
|
|
|
7024
7037
|
...u
|
|
7025
7038
|
},
|
|
7026
7039
|
onClick: () => l?.(),
|
|
7027
|
-
children: /* @__PURE__ */
|
|
7040
|
+
children: /* @__PURE__ */ G.jsx(
|
|
7028
7041
|
"svg",
|
|
7029
7042
|
{
|
|
7030
7043
|
width: t,
|
|
@@ -7085,7 +7098,7 @@ const Ss = ({
|
|
|
7085
7098
|
}, I = (O) => {
|
|
7086
7099
|
g?.();
|
|
7087
7100
|
};
|
|
7088
|
-
return /* @__PURE__ */
|
|
7101
|
+
return /* @__PURE__ */ G.jsxs(
|
|
7089
7102
|
Zo,
|
|
7090
7103
|
{
|
|
7091
7104
|
style: {
|
|
@@ -7096,7 +7109,7 @@ const Ss = ({
|
|
|
7096
7109
|
},
|
|
7097
7110
|
children: [
|
|
7098
7111
|
t,
|
|
7099
|
-
/* @__PURE__ */
|
|
7112
|
+
/* @__PURE__ */ G.jsxs(
|
|
7100
7113
|
"div",
|
|
7101
7114
|
{
|
|
7102
7115
|
style: {
|
|
@@ -7117,7 +7130,7 @@ const Ss = ({
|
|
|
7117
7130
|
},
|
|
7118
7131
|
children: [
|
|
7119
7132
|
r,
|
|
7120
|
-
/* @__PURE__ */
|
|
7133
|
+
/* @__PURE__ */ G.jsx(
|
|
7121
7134
|
"textarea",
|
|
7122
7135
|
{
|
|
7123
7136
|
name: e,
|
|
@@ -7162,7 +7175,7 @@ const Ss = ({
|
|
|
7162
7175
|
return B.useEffect(() => {
|
|
7163
7176
|
const l = s(e);
|
|
7164
7177
|
a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
|
|
7165
|
-
}, [a, s, c]), /* @__PURE__ */
|
|
7178
|
+
}, [a, s, c]), /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|
|
7166
7179
|
"div",
|
|
7167
7180
|
{
|
|
7168
7181
|
style: {
|
|
@@ -7194,7 +7207,7 @@ const Ss = ({
|
|
|
7194
7207
|
maxNumberOfLines: t,
|
|
7195
7208
|
children: r,
|
|
7196
7209
|
styles: i
|
|
7197
|
-
}) => /* @__PURE__ */
|
|
7210
|
+
}) => /* @__PURE__ */ G.jsx(
|
|
7198
7211
|
"p",
|
|
7199
7212
|
{
|
|
7200
7213
|
style: {
|
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.75",
|
|
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",
|