@eliseubatista99/react-scaffold-core 0.1.74 → 0.1.76
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,
|
|
@@ -6073,9 +6073,10 @@ const Sn = B.createContext({
|
|
|
6073
6073
|
const r = B.useRef(null), i = B.useCallback(
|
|
6074
6074
|
(c) => {
|
|
6075
6075
|
var l = Object.keys(c.currentTarget.elements), u = Object.values(c.currentTarget.elements), h = [];
|
|
6076
|
+
console.debug("Form > ", { event: c, elementIds: l, elementValues: u });
|
|
6076
6077
|
for (let g = 0; g < l.length; g++) {
|
|
6077
6078
|
const x = l[g];
|
|
6078
|
-
if (t.findIndex((M) => M.name === x) === -1)
|
|
6079
|
+
if (t.list.findIndex((M) => M.name === x) === -1)
|
|
6079
6080
|
continue;
|
|
6080
6081
|
const j = u[g].value;
|
|
6081
6082
|
h.push({
|
|
@@ -6117,8 +6118,8 @@ const Sn = B.createContext({
|
|
|
6117
6118
|
pointer-events: none;
|
|
6118
6119
|
}
|
|
6119
6120
|
`, 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__ */
|
|
6121
|
+
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]);
|
|
6122
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6122
6123
|
"form",
|
|
6123
6124
|
{
|
|
6124
6125
|
ref: a,
|
|
@@ -6132,8 +6133,21 @@ const Sn = B.createContext({
|
|
|
6132
6133
|
...r
|
|
6133
6134
|
},
|
|
6134
6135
|
children: [
|
|
6135
|
-
|
|
6136
|
-
|
|
6136
|
+
/* @__PURE__ */ G.jsx(
|
|
6137
|
+
"div",
|
|
6138
|
+
{
|
|
6139
|
+
style: {
|
|
6140
|
+
width: "100%",
|
|
6141
|
+
display: "flex",
|
|
6142
|
+
flexDirection: "column",
|
|
6143
|
+
gap: "8px",
|
|
6144
|
+
flex: 1,
|
|
6145
|
+
...t.styles
|
|
6146
|
+
},
|
|
6147
|
+
children: l()
|
|
6148
|
+
}
|
|
6149
|
+
),
|
|
6150
|
+
/* @__PURE__ */ G.jsx(
|
|
6137
6151
|
No,
|
|
6138
6152
|
{
|
|
6139
6153
|
onClick: c,
|
|
@@ -6146,7 +6160,7 @@ const Sn = B.createContext({
|
|
|
6146
6160
|
]
|
|
6147
6161
|
}
|
|
6148
6162
|
);
|
|
6149
|
-
}, hs = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */
|
|
6163
|
+
}, hs = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */ G.jsx(
|
|
6150
6164
|
"img",
|
|
6151
6165
|
{
|
|
6152
6166
|
src: e,
|
|
@@ -6209,7 +6223,7 @@ const Sn = B.createContext({
|
|
|
6209
6223
|
}, U = (q) => {
|
|
6210
6224
|
j?.();
|
|
6211
6225
|
};
|
|
6212
|
-
return /* @__PURE__ */
|
|
6226
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6213
6227
|
Fo,
|
|
6214
6228
|
{
|
|
6215
6229
|
style: {
|
|
@@ -6220,7 +6234,7 @@ const Sn = B.createContext({
|
|
|
6220
6234
|
},
|
|
6221
6235
|
children: [
|
|
6222
6236
|
t,
|
|
6223
|
-
/* @__PURE__ */
|
|
6237
|
+
/* @__PURE__ */ G.jsxs(
|
|
6224
6238
|
"div",
|
|
6225
6239
|
{
|
|
6226
6240
|
style: {
|
|
@@ -6245,7 +6259,7 @@ const Sn = B.createContext({
|
|
|
6245
6259
|
},
|
|
6246
6260
|
children: [
|
|
6247
6261
|
r,
|
|
6248
|
-
/* @__PURE__ */
|
|
6262
|
+
/* @__PURE__ */ G.jsx(
|
|
6249
6263
|
"input",
|
|
6250
6264
|
{
|
|
6251
6265
|
name: e,
|
|
@@ -6283,7 +6297,7 @@ const Sn = B.createContext({
|
|
|
6283
6297
|
);
|
|
6284
6298
|
}, ms = ({ id: e, styles: t, children: r }) => {
|
|
6285
6299
|
const { isItemVisible: i } = Ct();
|
|
6286
|
-
return /* @__PURE__ */
|
|
6300
|
+
return /* @__PURE__ */ G.jsx(G.Fragment, { children: i(e) && /* @__PURE__ */ G.jsx(
|
|
6287
6301
|
"div",
|
|
6288
6302
|
{
|
|
6289
6303
|
style: {
|
|
@@ -6310,7 +6324,7 @@ const Sn = B.createContext({
|
|
|
6310
6324
|
onClickOutsideModal: a
|
|
6311
6325
|
}) => {
|
|
6312
6326
|
const { isItemVisible: s } = Ct();
|
|
6313
|
-
return /* @__PURE__ */
|
|
6327
|
+
return /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|
|
6314
6328
|
"div",
|
|
6315
6329
|
{
|
|
6316
6330
|
style: {
|
|
@@ -6332,7 +6346,7 @@ const Sn = B.createContext({
|
|
|
6332
6346
|
onClick: () => {
|
|
6333
6347
|
a?.();
|
|
6334
6348
|
},
|
|
6335
|
-
children: /* @__PURE__ */
|
|
6349
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6336
6350
|
"div",
|
|
6337
6351
|
{
|
|
6338
6352
|
style: {
|
|
@@ -6419,7 +6433,7 @@ const Sn = B.createContext({
|
|
|
6419
6433
|
floatingContent: s,
|
|
6420
6434
|
reserveSpaceForScrollbar: c
|
|
6421
6435
|
} = e, { footer: l, header: u } = Wo(e);
|
|
6422
|
-
return /* @__PURE__ */
|
|
6436
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6423
6437
|
Uo,
|
|
6424
6438
|
{
|
|
6425
6439
|
id: "page-container",
|
|
@@ -6427,7 +6441,7 @@ const Sn = B.createContext({
|
|
|
6427
6441
|
...t
|
|
6428
6442
|
},
|
|
6429
6443
|
children: [
|
|
6430
|
-
u.visible && /* @__PURE__ */
|
|
6444
|
+
u.visible && /* @__PURE__ */ G.jsx(
|
|
6431
6445
|
"div",
|
|
6432
6446
|
{
|
|
6433
6447
|
ref: u.ref,
|
|
@@ -6448,7 +6462,7 @@ const Sn = B.createContext({
|
|
|
6448
6462
|
children: u.content
|
|
6449
6463
|
}
|
|
6450
6464
|
),
|
|
6451
|
-
/* @__PURE__ */
|
|
6465
|
+
/* @__PURE__ */ G.jsx(
|
|
6452
6466
|
"div",
|
|
6453
6467
|
{
|
|
6454
6468
|
id: "page-body",
|
|
@@ -6460,7 +6474,7 @@ const Sn = B.createContext({
|
|
|
6460
6474
|
marginTop: `-${u.height}px`,
|
|
6461
6475
|
marginBottom: `-${l.height}px`
|
|
6462
6476
|
},
|
|
6463
|
-
children: /* @__PURE__ */
|
|
6477
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6464
6478
|
"div",
|
|
6465
6479
|
{
|
|
6466
6480
|
id: "page-content",
|
|
@@ -6484,7 +6498,7 @@ const Sn = B.createContext({
|
|
|
6484
6498
|
)
|
|
6485
6499
|
}
|
|
6486
6500
|
),
|
|
6487
|
-
l.visible && /* @__PURE__ */
|
|
6501
|
+
l.visible && /* @__PURE__ */ G.jsx(
|
|
6488
6502
|
"div",
|
|
6489
6503
|
{
|
|
6490
6504
|
ref: l.ref,
|
|
@@ -6618,11 +6632,11 @@ function Bo() {
|
|
|
6618
6632
|
}, C.valueOf = function() {
|
|
6619
6633
|
return this.$d.getTime();
|
|
6620
6634
|
}, 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,
|
|
6635
|
+
var z = this, m = !!k.u(o) || o, n = k.p(T), f = function(K, X) {
|
|
6636
|
+
var J = k.w(z.$u ? Date.UTC(z.$y, X, K) : new Date(z.$y, X, K), z);
|
|
6623
6637
|
return m ? J : J.endOf(h);
|
|
6624
|
-
}, S = function(
|
|
6625
|
-
return k.w(z.toDate()[
|
|
6638
|
+
}, S = function(K, X) {
|
|
6639
|
+
return k.w(z.toDate()[K].apply(z.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), z);
|
|
6626
6640
|
}, $ = this.$W, L = this.$M, H = this.$D, N = "set" + (this.$u ? "UTC" : "");
|
|
6627
6641
|
switch (n) {
|
|
6628
6642
|
case M:
|
|
@@ -6679,7 +6693,7 @@ function Bo() {
|
|
|
6679
6693
|
return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
|
|
6680
6694
|
}, V = function(X) {
|
|
6681
6695
|
return k.s(f % 12 || 12, X, "0");
|
|
6682
|
-
},
|
|
6696
|
+
}, K = N || function(X, J, te) {
|
|
6683
6697
|
var Z = X < 12 ? "AM" : "PM";
|
|
6684
6698
|
return te ? Z.toLowerCase() : Z;
|
|
6685
6699
|
};
|
|
@@ -6719,9 +6733,9 @@ function Bo() {
|
|
|
6719
6733
|
case "hh":
|
|
6720
6734
|
return V(2);
|
|
6721
6735
|
case "a":
|
|
6722
|
-
return
|
|
6736
|
+
return K(f, S, !0);
|
|
6723
6737
|
case "A":
|
|
6724
|
-
return
|
|
6738
|
+
return K(f, S, !1);
|
|
6725
6739
|
case "m":
|
|
6726
6740
|
return String(S);
|
|
6727
6741
|
case "mm":
|
|
@@ -6931,7 +6945,7 @@ const Ss = ({
|
|
|
6931
6945
|
barStyles: a
|
|
6932
6946
|
}) => {
|
|
6933
6947
|
const s = Yo.clamp(e, t, r);
|
|
6934
|
-
return /* @__PURE__ */
|
|
6948
|
+
return /* @__PURE__ */ G.jsx(
|
|
6935
6949
|
"div",
|
|
6936
6950
|
{
|
|
6937
6951
|
style: {
|
|
@@ -6942,7 +6956,7 @@ const Ss = ({
|
|
|
6942
6956
|
background: "#ffffff",
|
|
6943
6957
|
...i
|
|
6944
6958
|
},
|
|
6945
|
-
children: /* @__PURE__ */
|
|
6959
|
+
children: /* @__PURE__ */ G.jsx(
|
|
6946
6960
|
"div",
|
|
6947
6961
|
{
|
|
6948
6962
|
style: {
|
|
@@ -6964,7 +6978,7 @@ const Ss = ({
|
|
|
6964
6978
|
customUncheckedRender: s
|
|
6965
6979
|
}) => {
|
|
6966
6980
|
const c = e ? { ...r, ...i } : { ...r };
|
|
6967
|
-
return /* @__PURE__ */
|
|
6981
|
+
return /* @__PURE__ */ G.jsxs(
|
|
6968
6982
|
"div",
|
|
6969
6983
|
{
|
|
6970
6984
|
onClick: (l) => {
|
|
@@ -6984,8 +6998,8 @@ const Ss = ({
|
|
|
6984
6998
|
...c
|
|
6985
6999
|
},
|
|
6986
7000
|
children: [
|
|
6987
|
-
e && /* @__PURE__ */
|
|
6988
|
-
!a && /* @__PURE__ */
|
|
7001
|
+
e && /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
|
|
7002
|
+
!a && /* @__PURE__ */ G.jsx(
|
|
6989
7003
|
"div",
|
|
6990
7004
|
{
|
|
6991
7005
|
style: {
|
|
@@ -7012,7 +7026,7 @@ const Ss = ({
|
|
|
7012
7026
|
alt: c = "",
|
|
7013
7027
|
onClick: l,
|
|
7014
7028
|
styles: u
|
|
7015
|
-
}) => /* @__PURE__ */
|
|
7029
|
+
}) => /* @__PURE__ */ G.jsx(
|
|
7016
7030
|
"div",
|
|
7017
7031
|
{
|
|
7018
7032
|
style: {
|
|
@@ -7024,7 +7038,7 @@ const Ss = ({
|
|
|
7024
7038
|
...u
|
|
7025
7039
|
},
|
|
7026
7040
|
onClick: () => l?.(),
|
|
7027
|
-
children: /* @__PURE__ */
|
|
7041
|
+
children: /* @__PURE__ */ G.jsx(
|
|
7028
7042
|
"svg",
|
|
7029
7043
|
{
|
|
7030
7044
|
width: t,
|
|
@@ -7085,7 +7099,7 @@ const Ss = ({
|
|
|
7085
7099
|
}, I = (O) => {
|
|
7086
7100
|
g?.();
|
|
7087
7101
|
};
|
|
7088
|
-
return /* @__PURE__ */
|
|
7102
|
+
return /* @__PURE__ */ G.jsxs(
|
|
7089
7103
|
Zo,
|
|
7090
7104
|
{
|
|
7091
7105
|
style: {
|
|
@@ -7096,7 +7110,7 @@ const Ss = ({
|
|
|
7096
7110
|
},
|
|
7097
7111
|
children: [
|
|
7098
7112
|
t,
|
|
7099
|
-
/* @__PURE__ */
|
|
7113
|
+
/* @__PURE__ */ G.jsxs(
|
|
7100
7114
|
"div",
|
|
7101
7115
|
{
|
|
7102
7116
|
style: {
|
|
@@ -7117,7 +7131,7 @@ const Ss = ({
|
|
|
7117
7131
|
},
|
|
7118
7132
|
children: [
|
|
7119
7133
|
r,
|
|
7120
|
-
/* @__PURE__ */
|
|
7134
|
+
/* @__PURE__ */ G.jsx(
|
|
7121
7135
|
"textarea",
|
|
7122
7136
|
{
|
|
7123
7137
|
name: e,
|
|
@@ -7162,7 +7176,7 @@ const Ss = ({
|
|
|
7162
7176
|
return B.useEffect(() => {
|
|
7163
7177
|
const l = s(e);
|
|
7164
7178
|
a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
|
|
7165
|
-
}, [a, s, c]), /* @__PURE__ */
|
|
7179
|
+
}, [a, s, c]), /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
|
|
7166
7180
|
"div",
|
|
7167
7181
|
{
|
|
7168
7182
|
style: {
|
|
@@ -7194,7 +7208,7 @@ const Ss = ({
|
|
|
7194
7208
|
maxNumberOfLines: t,
|
|
7195
7209
|
children: r,
|
|
7196
7210
|
styles: i
|
|
7197
|
-
}) => /* @__PURE__ */
|
|
7211
|
+
}) => /* @__PURE__ */ G.jsx(
|
|
7198
7212
|
"p",
|
|
7199
7213
|
{
|
|
7200
7214
|
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.76",
|
|
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",
|