@eliseubatista99/react-scaffold-core 0.1.90 → 0.1.91

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
@@ -244,8 +244,8 @@ React keys must be passed directly to JSX without using spread:
244
244
  }
245
245
  if (V = null, S !== void 0 && (r(S), V = "" + S), c(f) && (r(f.key), V = "" + f.key), "key" in f) {
246
246
  S = {};
247
- for (var X in f)
248
- X !== "key" && (S[X] = f[X]);
247
+ for (var G in f)
248
+ G !== "key" && (S[G] = f[G]);
249
249
  } else S = f;
250
250
  return V && l(
251
251
  S,
@@ -307,8 +307,8 @@ var ir;
307
307
  function Tn() {
308
308
  return ir || (ir = 1, process.env.NODE_ENV === "production" ? nt.exports = Rn() : nt.exports = _n()), nt.exports;
309
309
  }
310
- var G = Tn();
311
- const as = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ G.jsx(
310
+ var X = Tn();
311
+ const as = ({ children: e, onClick: t, styles: r }) => /* @__PURE__ */ X.jsx(
312
312
  "button",
313
313
  {
314
314
  style: {
@@ -390,8 +390,8 @@ function Dn() {
390
390
  return _ = W, A = setTimeout(S, b), C ? H(W) : k;
391
391
  }
392
392
  function n(W) {
393
- var V = W - R, K = W - _, X = b - V;
394
- return j ? P(X, d - K) : X;
393
+ var V = W - R, K = W - _, G = b - V;
394
+ return j ? P(G, d - K) : G;
395
395
  }
396
396
  function f(W) {
397
397
  var V = W - R, K = W - _;
@@ -670,10 +670,10 @@ 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"]')), K = V * n.slidesToShow, X = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
674
- n.rtl && n.currentSlide === void 0 && (X = f - 1 - n.initialSlide);
673
+ var V = S && O(S.querySelector('[data-index="0"]')), K = V * n.slidesToShow, G = n.currentSlide === void 0 ? n.initialSlide : n.currentSlide;
674
+ n.rtl && n.currentSlide === void 0 && (G = f - 1 - n.initialSlide);
675
675
  var J = n.lazyLoadedList || [], te = x(s(s({}, n), {}, {
676
- currentSlide: X,
676
+ currentSlide: G,
677
677
  lazyLoadedList: J
678
678
  }));
679
679
  J = J.concat(te);
@@ -682,14 +682,14 @@ function Ke() {
682
682
  slideWidth: N,
683
683
  listWidth: $,
684
684
  trackWidth: z,
685
- currentSlide: X,
685
+ currentSlide: G,
686
686
  slideHeight: V,
687
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, z = 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;
692
+ var f = n.waitForAnimate, S = n.animating, $ = n.fade, L = n.infinite, z = n.index, N = n.slideCount, W = n.lazyLoad, V = n.currentSlide, K = n.centerMode, G = n.slidesToScroll, J = n.slidesToShow, te = n.useCSS, Z = n.lazyLoadedList;
693
693
  if (f && S) return {};
694
694
  var ee = z, ie, le, Q, oe = {}, ue = {}, ce = L ? z : h(z, 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 : 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), {}, {
707
+ ie = ee, ee < 0 ? (ie = ee + N, L ? N % G !== 0 && (ie = N - N % G) : 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 % G !== 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, z, N, W = n.slidesToScroll, V = n.slidesToShow, K = n.slideCount, X = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
743
- if (z = K % W !== 0, S = z ? 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);
742
+ var S, $, L, z, N, W = n.slidesToScroll, V = n.slidesToShow, K = n.slideCount, G = n.currentSlide, J = n.targetSlide, te = n.lazyLoad, Z = n.infinite;
743
+ if (z = K % W !== 0, S = z ? 0 : (K - G) % W, f.message === "previous")
744
+ L = S === 0 ? W : V - S, N = G - L, te && !Z && ($ = G - 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) % K + S), Z || (N = J + W);
746
+ L = S === 0 ? W : S, N = G + L, te && !Z && (N = (G + 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") {
@@ -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, z = 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;
771
+ var S = f.scrolling, $ = f.animating, L = f.vertical, z = f.swipeToSlide, N = f.verticalSwiping, W = f.rtl, V = f.currentSlide, K = f.edgeFriction, G = 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 && z && 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 kn = Math.ceil(ee / ie), Ce = F(f.touchObject, N), Ae = Q.swipeLength;
786
- return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= kn && (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), {}, {
786
+ return le || (V === 0 && (Ce === "right" || Ce === "down") || V + 1 >= kn && (Ce === "left" || Ce === "up") || !U(f) && (Ce === "left" || Ce === "up")) && (Ae = Q.swipeLength * K, G === !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, z = 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;
795
+ var S = f.dragging, $ = f.swipe, L = f.touchObject, z = f.listWidth, N = f.touchThreshold, W = f.verticalSwiping, V = f.listHeight, K = f.swipeToSlide, G = 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 : z / N, le = F(L, W), Q = {
@@ -804,7 +804,7 @@ function Ke() {
804
804
  swipeLeft: null,
805
805
  touchObject: {}
806
806
  };
807
- if (X || !L.swipeLength)
807
+ if (G || !L.swipeLength)
808
808
  return Q;
809
809
  if (L.swipeLength > ie) {
810
810
  g(n), J && J(le);
@@ -902,11 +902,11 @@ 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, z = 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;
905
+ var f = n.slideIndex, S = n.trackRef, $ = n.infinite, L = n.centerMode, z = n.slideCount, N = n.slidesToShow, W = n.slidesToScroll, V = n.slideWidth, K = n.listWidth, G = 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;
909
- if ($ ? (oe = -k(n), z % W !== 0 && f + W > z && (oe = -(f > z ? N - (f - z) : z % W)), L && (oe += parseInt(N / 2))) : (z % W !== 0 && f + W > z && (oe = N - z % W), L && (oe = parseInt(N / 2))), ee = oe * V, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * V * -1 + ee, X === !0) {
909
+ if ($ ? (oe = -k(n), z % W !== 0 && f + W > z && (oe = -(f > z ? N - (f - z) : z % W)), L && (oe += parseInt(N / 2))) : (z % W !== 0 && f + W > z && (oe = N - z % W), L && (oe = parseInt(N / 2))), ee = oe * V, Q = oe * J, Z ? ie = f * J * -1 + Q : ie = f * V * -1 + ee, G === !0) {
910
910
  var ue, ce = S && S.node;
911
911
  if (ue = f + k(n), le = ce && ce.childNodes[ue], ie = le ? le.offsetLeft * -1 : 0, L === !0) {
912
912
  ue = $ ? f + k(n) : f, le = ce && ce.children[ue], ie = 0;
@@ -2093,9 +2093,9 @@ function ri() {
2093
2093
  trackStyle: W
2094
2094
  };
2095
2095
  }
2096
- var K = e.default.Children.count(o.props.children), X = p(p(p({}, o.props), o.state), {}, {
2096
+ var K = e.default.Children.count(o.props.children), G = p(p(p({}, o.props), o.state), {}, {
2097
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;
2098
+ }), J = (0, a.getPreClones)(G) + (0, a.getPostClones)(G) + K, te = 100 / o.props.slidesToShow * J, Z = 100 / J, ee = -Z * ((0, a.getPreClones)(G) + 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,15 +2149,15 @@ function ri() {
2149
2149
  }, o.props), o.state), {}, {
2150
2150
  trackRef: o.track,
2151
2151
  useCSS: o.props.useCSS && !n
2152
- })), K = V.state, X = V.nextState;
2152
+ })), K = V.state, G = V.nextState;
2153
2153
  if (K) {
2154
2154
  $ && $(W, K.currentSlide);
2155
2155
  var J = K.lazyLoadedList.filter(function(te) {
2156
2156
  return o.state.lazyLoadedList.indexOf(te) < 0;
2157
2157
  });
2158
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
- S && o.asNavForIndex !== m && (o.asNavForIndex = m, S.innerSlider.slideHandler(m)), X && (o.animationEndCallback = setTimeout(function() {
2160
- var te = X.animating, Z = T(X, ["animating"]);
2159
+ S && o.asNavForIndex !== m && (o.asNavForIndex = m, S.innerSlider.slideHandler(m)), G && (o.animationEndCallback = setTimeout(function() {
2160
+ var te = G.animating, Z = T(G, ["animating"]);
2161
2161
  o.setState(Z, function() {
2162
2162
  o.callbackTimers.push(setTimeout(function() {
2163
2163
  return o.setState({
@@ -2307,13 +2307,13 @@ function ri() {
2307
2307
  o.props.vertical && (K = {
2308
2308
  height: o.state.listHeight
2309
2309
  });
2310
- var X = null;
2311
- o.props.vertical === !1 ? o.props.centerMode === !0 && (X = {
2310
+ var G = null;
2311
+ o.props.vertical === !1 ? o.props.centerMode === !0 && (G = {
2312
2312
  padding: "0px " + o.props.centerPadding
2313
- }) : o.props.centerMode === !0 && (X = {
2313
+ }) : o.props.centerMode === !0 && (G = {
2314
2314
  padding: o.props.centerPadding + " 0px"
2315
2315
  });
2316
- var J = p(p({}, K), X), te = o.props.touchMove, Z = {
2316
+ var J = p(p({}, K), G), te = o.props.touchMove, Z = {
2317
2317
  className: "slick-list",
2318
2318
  style: J,
2319
2319
  onClick: o.clickHandler,
@@ -3848,7 +3848,7 @@ const aa = Pe.div`
3848
3848
  rows: 1,
3849
3849
  ...r
3850
3850
  };
3851
- const h = t.map((x, T) => /* @__PURE__ */ G.jsx(
3851
+ const h = t.map((x, T) => /* @__PURE__ */ X.jsx(
3852
3852
  oa,
3853
3853
  {
3854
3854
  ref: T === 0 ? l : void 0,
@@ -3876,38 +3876,72 @@ const aa = Pe.div`
3876
3876
  };
3877
3877
  return q.useEffect(() => {
3878
3878
  g();
3879
- }, [c, l]), /* @__PURE__ */ G.jsx(aa, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ G.jsx(li, { ...u, slidesToShow: a, children: h }) });
3879
+ }, [c, l]), /* @__PURE__ */ X.jsx(aa, { ref: c, styles: { ...e }, children: h.length > 0 && /* @__PURE__ */ X.jsx(li, { ...u, slidesToShow: a, children: h }) });
3880
3880
  }, ss = ({
3881
- checked: e,
3882
- onToggle: t,
3883
- styles: r,
3884
- checkedStyles: i,
3885
- customCheckedRender: a,
3886
- customUncheckedRender: s
3881
+ name: e,
3882
+ checked: t,
3883
+ onToggle: r,
3884
+ styles: i,
3885
+ checkedStyles: a,
3886
+ customCheckedRender: s,
3887
+ customUncheckedRender: c
3887
3888
  }) => {
3888
- const c = e ? { ...r, ...i } : { ...r };
3889
- return /* @__PURE__ */ G.jsxs(
3889
+ const l = t ? { ...i, ...a } : { ...i };
3890
+ return /* @__PURE__ */ X.jsxs(
3890
3891
  "div",
3891
3892
  {
3892
- onClick: (l) => {
3893
- l.preventDefault(), l.stopPropagation(), t?.(!e);
3894
- },
3895
3893
  style: {
3896
- width: "25px",
3897
- height: "25px",
3898
- borderRadius: "4px",
3899
- border: "1px solid #969696ff",
3900
- background: e ? "#000000" : "#ffffff",
3901
- overflow: "hidden",
3902
- objectFit: "contain",
3903
- alignItems: "center",
3904
- justifyContent: "center",
3905
- display: "flex",
3906
- ...c
3894
+ width: "fit-content",
3895
+ height: "fit-content",
3896
+ position: "relative",
3897
+ display: "flex"
3907
3898
  },
3908
3899
  children: [
3909
- e && a,
3910
- !e && s
3900
+ /* @__PURE__ */ X.jsx(
3901
+ "input",
3902
+ {
3903
+ name: e,
3904
+ type: "checkbox",
3905
+ onChange: (u) => {
3906
+ u.stopPropagation(), r?.(u.currentTarget.checked);
3907
+ },
3908
+ checked: t,
3909
+ style: {
3910
+ appearance: "none",
3911
+ width: "25px",
3912
+ height: "25px",
3913
+ borderRadius: "4px",
3914
+ border: "1px solid #969696ff",
3915
+ background: t ? "#000000" : "#ffffff",
3916
+ overflow: "hidden",
3917
+ objectFit: "contain",
3918
+ alignItems: "center",
3919
+ justifyContent: "center",
3920
+ display: "flex",
3921
+ ...l
3922
+ }
3923
+ }
3924
+ ),
3925
+ /* @__PURE__ */ X.jsxs(
3926
+ "div",
3927
+ {
3928
+ style: {
3929
+ display: "flex",
3930
+ position: "absolute",
3931
+ top: 0,
3932
+ left: 0,
3933
+ width: "100%",
3934
+ height: "100%",
3935
+ alignItems: "center",
3936
+ justifyContent: "center",
3937
+ pointerEvents: "none"
3938
+ },
3939
+ children: [
3940
+ t && s,
3941
+ !t && c
3942
+ ]
3943
+ }
3944
+ )
3911
3945
  ]
3912
3946
  }
3913
3947
  );
@@ -5900,8 +5934,8 @@ const Sn = q.createContext({
5900
5934
  ), T = D[D.length - 1]), c(D), T);
5901
5935
  }, h = (x) => {
5902
5936
  c(x);
5903
- }, g = t.map((x) => /* @__PURE__ */ G.jsx(pn, { path: x.path, element: x.render }));
5904
- return /* @__PURE__ */ G.jsx(
5937
+ }, g = t.map((x) => /* @__PURE__ */ X.jsx(pn, { path: x.path, element: x.render }));
5938
+ return /* @__PURE__ */ X.jsx(
5905
5939
  Sn.Provider,
5906
5940
  {
5907
5941
  value: {
@@ -5910,9 +5944,9 @@ const Sn = q.createContext({
5910
5944
  popFromHistory: u,
5911
5945
  replaceHistory: h
5912
5946
  },
5913
- children: /* @__PURE__ */ G.jsx(Ro, { children: e && /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
5947
+ children: /* @__PURE__ */ X.jsx(Ro, { children: e && /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
5914
5948
  r,
5915
- /* @__PURE__ */ G.jsx(ro, { children: g })
5949
+ /* @__PURE__ */ X.jsx(ro, { children: g })
5916
5950
  ] }) })
5917
5951
  }
5918
5952
  );
@@ -5941,7 +5975,7 @@ const Sn = q.createContext({
5941
5975
  },
5942
5976
  [s, a]
5943
5977
  );
5944
- return /* @__PURE__ */ G.jsx(
5978
+ return /* @__PURE__ */ X.jsx(
5945
5979
  xn.Provider,
5946
5980
  {
5947
5981
  value: {
@@ -6001,7 +6035,7 @@ const Sn = q.createContext({
6001
6035
  handleRef: u,
6002
6036
  drawerBottomDistance: h
6003
6037
  } = No(e);
6004
- return /* @__PURE__ */ G.jsx(G.Fragment, { children: s && /* @__PURE__ */ G.jsx(
6038
+ return /* @__PURE__ */ X.jsx(X.Fragment, { children: s && /* @__PURE__ */ X.jsx(
6005
6039
  "div",
6006
6040
  {
6007
6041
  ref: c,
@@ -6019,7 +6053,7 @@ const Sn = q.createContext({
6019
6053
  touchAction: "none",
6020
6054
  ...r
6021
6055
  },
6022
- children: /* @__PURE__ */ G.jsxs(
6056
+ children: /* @__PURE__ */ X.jsxs(
6023
6057
  "div",
6024
6058
  {
6025
6059
  ref: l,
@@ -6045,7 +6079,7 @@ const Sn = q.createContext({
6045
6079
  g.stopPropagation();
6046
6080
  },
6047
6081
  children: [
6048
- /* @__PURE__ */ G.jsx(
6082
+ /* @__PURE__ */ X.jsx(
6049
6083
  "div",
6050
6084
  {
6051
6085
  ref: u,
@@ -6117,7 +6151,7 @@ const Sn = q.createContext({
6117
6151
  }
6118
6152
  `, gs = (e) => {
6119
6153
  const { fields: t, styles: r, submitButton: i } = e, { ref: a, handleFormSubmission: s, submitForm: c } = Fo(e), l = q.useCallback(() => t.list.map((u) => ({ ...u.content, key: u.name })), [t]);
6120
- return /* @__PURE__ */ G.jsxs(
6154
+ return /* @__PURE__ */ X.jsxs(
6121
6155
  "form",
6122
6156
  {
6123
6157
  ref: a,
@@ -6131,7 +6165,7 @@ const Sn = q.createContext({
6131
6165
  ...r
6132
6166
  },
6133
6167
  children: [
6134
- /* @__PURE__ */ G.jsx(
6168
+ /* @__PURE__ */ X.jsx(
6135
6169
  "div",
6136
6170
  {
6137
6171
  style: {
@@ -6145,7 +6179,7 @@ const Sn = q.createContext({
6145
6179
  children: l()
6146
6180
  }
6147
6181
  ),
6148
- /* @__PURE__ */ G.jsx(
6182
+ /* @__PURE__ */ X.jsx(
6149
6183
  Wo,
6150
6184
  {
6151
6185
  onClick: c,
@@ -6158,7 +6192,7 @@ const Sn = q.createContext({
6158
6192
  ]
6159
6193
  }
6160
6194
  );
6161
- }, ys = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */ G.jsx(
6195
+ }, ys = ({ src: e, alt: t = "", onClick: r, styles: i }) => /* @__PURE__ */ X.jsx(
6162
6196
  "img",
6163
6197
  {
6164
6198
  src: e,
@@ -6225,7 +6259,7 @@ const Sn = q.createContext({
6225
6259
  pattern: U,
6226
6260
  onInput: B
6227
6261
  } = e;
6228
- return /* @__PURE__ */ G.jsxs(
6262
+ return /* @__PURE__ */ X.jsxs(
6229
6263
  Yo,
6230
6264
  {
6231
6265
  style: {
@@ -6236,7 +6270,7 @@ const Sn = q.createContext({
6236
6270
  },
6237
6271
  children: [
6238
6272
  s,
6239
- /* @__PURE__ */ G.jsxs(
6273
+ /* @__PURE__ */ X.jsxs(
6240
6274
  "div",
6241
6275
  {
6242
6276
  style: {
@@ -6261,7 +6295,7 @@ const Sn = q.createContext({
6261
6295
  },
6262
6296
  children: [
6263
6297
  c,
6264
- /* @__PURE__ */ G.jsx(
6298
+ /* @__PURE__ */ X.jsx(
6265
6299
  "input",
6266
6300
  {
6267
6301
  name: a,
@@ -6302,7 +6336,7 @@ const Sn = q.createContext({
6302
6336
  );
6303
6337
  }, bs = ({ id: e, styles: t, children: r }) => {
6304
6338
  const { isItemVisible: i } = Ct();
6305
- return /* @__PURE__ */ G.jsx(G.Fragment, { children: i(e) && /* @__PURE__ */ G.jsx(
6339
+ return /* @__PURE__ */ X.jsx(X.Fragment, { children: i(e) && /* @__PURE__ */ X.jsx(
6306
6340
  "div",
6307
6341
  {
6308
6342
  style: {
@@ -6329,7 +6363,7 @@ const Sn = q.createContext({
6329
6363
  onClickOutsideModal: a
6330
6364
  }) => {
6331
6365
  const { isItemVisible: s } = Ct();
6332
- return /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
6366
+ return /* @__PURE__ */ X.jsx(X.Fragment, { children: s(e) && /* @__PURE__ */ X.jsx(
6333
6367
  "div",
6334
6368
  {
6335
6369
  style: {
@@ -6351,7 +6385,7 @@ const Sn = q.createContext({
6351
6385
  onClick: () => {
6352
6386
  a?.();
6353
6387
  },
6354
- children: /* @__PURE__ */ G.jsx(
6388
+ children: /* @__PURE__ */ X.jsx(
6355
6389
  "div",
6356
6390
  {
6357
6391
  style: {
@@ -6428,7 +6462,7 @@ const Sn = q.createContext({
6428
6462
  decimalScale: r,
6429
6463
  ...i
6430
6464
  });
6431
- return /* @__PURE__ */ G.jsx(qo, { type: "text", ...a });
6465
+ return /* @__PURE__ */ X.jsx(qo, { type: "text", ...a });
6432
6466
  }, Vo = (e) => {
6433
6467
  const t = q.useRef(null), r = q.useRef(null), [i, a] = q.useState(24), [s, c] = q.useState(24), l = q.useCallback(() => {
6434
6468
  t.current && a(t.current.clientHeight);
@@ -6488,7 +6522,7 @@ const Sn = q.createContext({
6488
6522
  floatingContent: s,
6489
6523
  reserveSpaceForScrollbar: c
6490
6524
  } = e, { footer: l, header: u } = Vo(e);
6491
- return /* @__PURE__ */ G.jsxs(
6525
+ return /* @__PURE__ */ X.jsxs(
6492
6526
  Xo,
6493
6527
  {
6494
6528
  id: "page-container",
@@ -6496,7 +6530,7 @@ const Sn = q.createContext({
6496
6530
  ...t
6497
6531
  },
6498
6532
  children: [
6499
- u.visible && /* @__PURE__ */ G.jsx(
6533
+ u.visible && /* @__PURE__ */ X.jsx(
6500
6534
  "div",
6501
6535
  {
6502
6536
  ref: u.ref,
@@ -6517,7 +6551,7 @@ const Sn = q.createContext({
6517
6551
  children: u.content
6518
6552
  }
6519
6553
  ),
6520
- /* @__PURE__ */ G.jsx(
6554
+ /* @__PURE__ */ X.jsx(
6521
6555
  "div",
6522
6556
  {
6523
6557
  id: "page-body",
@@ -6529,7 +6563,7 @@ const Sn = q.createContext({
6529
6563
  marginTop: `-${u.height}px`,
6530
6564
  marginBottom: `-${l.height}px`
6531
6565
  },
6532
- children: /* @__PURE__ */ G.jsx(
6566
+ children: /* @__PURE__ */ X.jsx(
6533
6567
  "div",
6534
6568
  {
6535
6569
  id: "page-content",
@@ -6553,7 +6587,7 @@ const Sn = q.createContext({
6553
6587
  )
6554
6588
  }
6555
6589
  ),
6556
- l.visible && /* @__PURE__ */ G.jsx(
6590
+ l.visible && /* @__PURE__ */ X.jsx(
6557
6591
  "div",
6558
6592
  {
6559
6593
  ref: l.ref,
@@ -6698,11 +6732,11 @@ function Jo() {
6698
6732
  }, C.valueOf = function() {
6699
6733
  return this.$d.getTime();
6700
6734
  }, C.startOf = function(j, o) {
6701
- var H = this, m = !!k.u(o) || o, n = k.p(j), f = function(K, X) {
6702
- var J = k.w(H.$u ? Date.UTC(H.$y, X, K) : new Date(H.$y, X, K), H);
6735
+ var H = this, m = !!k.u(o) || o, n = k.p(j), f = function(K, G) {
6736
+ var J = k.w(H.$u ? Date.UTC(H.$y, G, K) : new Date(H.$y, G, K), H);
6703
6737
  return m ? J : J.endOf(h);
6704
- }, S = function(K, X) {
6705
- return k.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(X)), H);
6738
+ }, S = function(K, G) {
6739
+ return k.w(H.toDate()[K].apply(H.toDate("s"), (m ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(G)), H);
6706
6740
  }, $ = this.$W, L = this.$M, z = this.$D, N = "set" + (this.$u ? "UTC" : "");
6707
6741
  switch (n) {
6708
6742
  case D:
@@ -6755,15 +6789,15 @@ function Jo() {
6755
6789
  }, C.format = function(j) {
6756
6790
  var o = this, H = this.$locale();
6757
6791
  if (!this.isValid()) return H.invalidDate || p;
6758
- var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M, L = H.weekdays, z = H.months, N = H.meridiem, W = function(X, J, te, Z) {
6759
- return X && (X[J] || X(o, m)) || te[J].slice(0, Z);
6760
- }, V = function(X) {
6761
- return k.s(f % 12 || 12, X, "0");
6762
- }, K = N || function(X, J, te) {
6763
- var Z = X < 12 ? "AM" : "PM";
6792
+ var m = j || "YYYY-MM-DDTHH:mm:ssZ", n = k.z(this), f = this.$H, S = this.$m, $ = this.$M, L = H.weekdays, z = H.months, N = H.meridiem, W = function(G, J, te, Z) {
6793
+ return G && (G[J] || G(o, m)) || te[J].slice(0, Z);
6794
+ }, V = function(G) {
6795
+ return k.s(f % 12 || 12, G, "0");
6796
+ }, K = N || function(G, J, te) {
6797
+ var Z = G < 12 ? "AM" : "PM";
6764
6798
  return te ? Z.toLowerCase() : Z;
6765
6799
  };
6766
- return m.replace(O, function(X, J) {
6800
+ return m.replace(O, function(G, J) {
6767
6801
  return J || function(te) {
6768
6802
  switch (te) {
6769
6803
  case "YY":
@@ -6816,7 +6850,7 @@ function Jo() {
6816
6850
  return n;
6817
6851
  }
6818
6852
  return null;
6819
- }(X) || n.replace(":", "");
6853
+ }(G) || n.replace(":", "");
6820
6854
  });
6821
6855
  }, C.utcOffset = function() {
6822
6856
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
@@ -7011,7 +7045,7 @@ const Ps = ({
7011
7045
  barStyles: a
7012
7046
  }) => {
7013
7047
  const s = Go.clamp(e, t, r);
7014
- return /* @__PURE__ */ G.jsx(
7048
+ return /* @__PURE__ */ X.jsx(
7015
7049
  "div",
7016
7050
  {
7017
7051
  style: {
@@ -7022,7 +7056,7 @@ const Ps = ({
7022
7056
  background: "#ffffff",
7023
7057
  ...i
7024
7058
  },
7025
- children: /* @__PURE__ */ G.jsx(
7059
+ children: /* @__PURE__ */ X.jsx(
7026
7060
  "div",
7027
7061
  {
7028
7062
  style: {
@@ -7044,7 +7078,7 @@ const Ps = ({
7044
7078
  customUncheckedRender: s
7045
7079
  }) => {
7046
7080
  const c = e ? { ...r, ...i } : { ...r };
7047
- return /* @__PURE__ */ G.jsxs(
7081
+ return /* @__PURE__ */ X.jsxs(
7048
7082
  "div",
7049
7083
  {
7050
7084
  onClick: (l) => {
@@ -7064,8 +7098,8 @@ const Ps = ({
7064
7098
  ...c
7065
7099
  },
7066
7100
  children: [
7067
- e && /* @__PURE__ */ G.jsxs(G.Fragment, { children: [
7068
- !a && /* @__PURE__ */ G.jsx(
7101
+ e && /* @__PURE__ */ X.jsxs(X.Fragment, { children: [
7102
+ !a && /* @__PURE__ */ X.jsx(
7069
7103
  "div",
7070
7104
  {
7071
7105
  style: {
@@ -7092,7 +7126,7 @@ const Ps = ({
7092
7126
  alt: c = "",
7093
7127
  onClick: l,
7094
7128
  styles: u
7095
- }) => /* @__PURE__ */ G.jsx(
7129
+ }) => /* @__PURE__ */ X.jsx(
7096
7130
  "div",
7097
7131
  {
7098
7132
  style: {
@@ -7104,7 +7138,7 @@ const Ps = ({
7104
7138
  ...u
7105
7139
  },
7106
7140
  onClick: () => l?.(),
7107
- children: /* @__PURE__ */ G.jsx(
7141
+ children: /* @__PURE__ */ X.jsx(
7108
7142
  "svg",
7109
7143
  {
7110
7144
  width: t,
@@ -7165,7 +7199,7 @@ const Ps = ({
7165
7199
  }, I = (O) => {
7166
7200
  g?.();
7167
7201
  };
7168
- return /* @__PURE__ */ G.jsxs(
7202
+ return /* @__PURE__ */ X.jsxs(
7169
7203
  ns,
7170
7204
  {
7171
7205
  style: {
@@ -7176,7 +7210,7 @@ const Ps = ({
7176
7210
  },
7177
7211
  children: [
7178
7212
  t,
7179
- /* @__PURE__ */ G.jsxs(
7213
+ /* @__PURE__ */ X.jsxs(
7180
7214
  "div",
7181
7215
  {
7182
7216
  style: {
@@ -7197,7 +7231,7 @@ const Ps = ({
7197
7231
  },
7198
7232
  children: [
7199
7233
  r,
7200
- /* @__PURE__ */ G.jsx(
7234
+ /* @__PURE__ */ X.jsx(
7201
7235
  "textarea",
7202
7236
  {
7203
7237
  name: e,
@@ -7242,7 +7276,7 @@ const Ps = ({
7242
7276
  return q.useEffect(() => {
7243
7277
  const l = s(e);
7244
7278
  a.current !== l && (a.current = l, l && setTimeout(() => c(e), i * 1e3));
7245
- }, [a, s, c]), /* @__PURE__ */ G.jsx(G.Fragment, { children: s(e) && /* @__PURE__ */ G.jsx(
7279
+ }, [a, s, c]), /* @__PURE__ */ X.jsx(X.Fragment, { children: s(e) && /* @__PURE__ */ X.jsx(
7246
7280
  "div",
7247
7281
  {
7248
7282
  style: {
@@ -7274,7 +7308,7 @@ const Ps = ({
7274
7308
  maxNumberOfLines: t,
7275
7309
  children: r,
7276
7310
  styles: i
7277
- }) => /* @__PURE__ */ G.jsx(
7311
+ }) => /* @__PURE__ */ X.jsx(
7278
7312
  "p",
7279
7313
  {
7280
7314
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eliseubatista99/react-scaffold-core",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
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",