bmi-next-brokers 3.1.2 → 3.1.4

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.
@@ -1 +1 @@
1
- ._overlay_q0941_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center;z-index:2000;animation:_fadeIn_q0941_1 .25s ease-in-out;overflow:hidden}._overlay_q0941_1._closing_q0941_16{animation:_fadeOut_q0941_1 .25s ease-in-out forwards}._nav_q0941_20{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;gap:10px;margin-block:16px;color:#2054a5;padding-inline:16px}._arrowBack_q0941_32{cursor:pointer}._title_q0941_36{font-family:var(--font-medium);font-size:22px;font-weight:600;line-height:normal}._content_q0941_43{width:100%;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);background-color:#fff}._mainContent_q0941_51{display:flex;height:100%;width:100%;animation:_slideIn_q0941_1 .45s cubic-bezier(.4,0,.2,1) forwards;transform:translate(0)}._closing_q0941_16{animation:_slideOut_q0941_1 .45s cubic-bezier(.4,0,.2,1) forwards}._contentInner_q0941_63{display:flex;flex-direction:column;align-items:center;box-sizing:border-box;overflow-y:auto;overscroll-behavior:none;flex:1;padding-inline:16px;padding-bottom:16px}._contentInner_q0941_63::-webkit-scrollbar{display:none}@keyframes _fadeIn_q0941_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_q0941_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_q0941_1{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes _slideOut_q0941_1{0%{transform:translate(0)}to{transform:translate(100%)}}@media (max-width: 440px){._title_q0941_36{font-size:16px}}
1
+ ._overlay_bbapj_1{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#fff;display:flex;justify-content:center;align-items:center;z-index:2000;animation:_fadeIn_bbapj_1 .25s ease-in-out;overflow:hidden}._overlay_bbapj_1._closing_bbapj_16{animation:_fadeOut_bbapj_1 .25s ease-in-out forwards}._nav_bbapj_20{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;width:100%;gap:10px;margin-block:16px;color:#2054a5;padding-inline:16px}._arrowBack_bbapj_32{cursor:pointer}._title_bbapj_36{font-family:var(--font-medium);font-size:22px;font-weight:600;line-height:normal}._content_bbapj_43{width:100%;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom);background-color:#fff}._mainContent_bbapj_51{display:flex;height:100%;width:100%;animation:_slideIn_bbapj_1 .45s cubic-bezier(.4,0,.2,1) forwards;transform:translate(0)}._closing_bbapj_16{animation:_slideOut_bbapj_1 .45s cubic-bezier(.4,0,.2,1) forwards}._contentInner_bbapj_63{display:flex;flex-direction:column;align-items:center;box-sizing:border-box;overflow-y:auto;overscroll-behavior:none;flex:1;padding-inline:16px;padding-bottom:16px}._contentInner_bbapj_63::-webkit-scrollbar{display:none}@keyframes _fadeIn_bbapj_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_bbapj_1{0%{opacity:1}to{opacity:0}}@keyframes _slideIn_bbapj_1{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes _slideOut_bbapj_1{0%{transform:translate(0)}to{transform:translate(100%)}}@media (max-width: 439px){._title_bbapj_36{font-size:16px}}
@@ -36,7 +36,7 @@ const nr = ({
36
36
  customBorderColor: Z,
37
37
  responsive: ge = !1,
38
38
  title: $e,
39
- responsiveQuery: we = 1024,
39
+ responsiveQuery: we = 1023,
40
40
  highlightMatch: Ne = !1,
41
41
  ...Se
42
42
  }) => {
@@ -1,53 +1,53 @@
1
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
- import { useState as h } from "react";
3
- import { CloseContext as y } from "../../hooks/useClose.js";
4
- import { useScrollLock as g } from "../../hooks/useScrollLock.js";
5
- import { Icon as p } from "../../icons/Icon.js";
6
- import { createPortal as q } from "react-dom";
7
- import '../../assets/index14.css';const I = "_overlay_q0941_1", N = "_closing_q0941_16", $ = "_nav_q0941_20", w = "_arrowBack_q0941_32", k = "_title_q0941_36", x = "_content_q0941_43", B = "_mainContent_q0941_51", S = "_contentInner_q0941_63", n = {
8
- overlay: I,
9
- closing: N,
10
- nav: $,
11
- arrowBack: w,
12
- title: k,
13
- content: x,
14
- mainContent: B,
15
- contentInner: S
16
- }, L = ({
1
+ import { jsx as t, jsxs as c } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ import { CloseContext as C } from "../../hooks/useClose.js";
4
+ import { useScrollLock as j } from "../../hooks/useScrollLock.js";
5
+ import { Icon as h } from "../../icons/Icon.js";
6
+ import { createPortal as y } from "react-dom";
7
+ import '../../assets/index14.css';const g = "_overlay_bbapj_1", I = "_closing_bbapj_16", N = "_nav_bbapj_20", $ = "_arrowBack_bbapj_32", w = "_title_bbapj_36", k = "_content_bbapj_43", x = "_mainContent_bbapj_51", B = "_contentInner_bbapj_63", n = {
8
+ overlay: g,
9
+ closing: I,
10
+ nav: N,
11
+ arrowBack: $,
12
+ title: w,
13
+ content: k,
14
+ mainContent: x,
15
+ contentInner: B
16
+ }, T = ({
17
17
  isOpen: o,
18
18
  setIsOpen: l,
19
19
  title: i,
20
20
  children: m,
21
21
  navClassName: _,
22
22
  className: d,
23
- withAutoClose: f = !0,
23
+ withAutoClose: b = !0,
24
24
  onBack: e,
25
- navIcon: v = "ArrowBackIosNew",
26
- ...u
25
+ navIcon: f = "ArrowBackIosNew",
26
+ ...p
27
27
  }) => {
28
- const [s, r] = h(!1);
29
- g(o);
30
- const c = () => {
31
- f && (r(!0), setTimeout(() => {
32
- l(!1), r(!1);
28
+ const [a, s] = u(!1);
29
+ j(o);
30
+ const r = () => {
31
+ b && (s(!0), setTimeout(() => {
32
+ l(!1), s(!1);
33
33
  }, 450));
34
- }, C = async () => {
35
- e !== !1 && (typeof e == "function" && await e(), c());
34
+ }, v = async () => {
35
+ e !== !1 && (typeof e == "function" && await e(), r());
36
36
  };
37
- return o ? q(
38
- /* @__PURE__ */ t("div", { className: `${n.overlay} ${s ? n.closing : ""}`, children: /* @__PURE__ */ t(
37
+ return o ? y(
38
+ /* @__PURE__ */ t("div", { className: `${n.overlay} ${a ? n.closing : ""}`, children: /* @__PURE__ */ t(
39
39
  "div",
40
40
  {
41
- className: `${n.mainContent} ${s ? n.closing : ""}`,
42
- children: /* @__PURE__ */ a("div", { className: n.content, children: [
43
- /* @__PURE__ */ a("div", { className: `${n.nav} ${_ || ""}`, children: [
41
+ className: `${n.mainContent} ${a ? n.closing : ""}`,
42
+ children: /* @__PURE__ */ c("div", { className: n.content, children: [
43
+ /* @__PURE__ */ c("div", { className: `${n.nav} ${_ || ""}`, children: [
44
44
  e !== !1 && /* @__PURE__ */ t(
45
- p,
45
+ h,
46
46
  {
47
- name: v,
47
+ name: f,
48
48
  size: 24,
49
49
  className: n.arrowBack,
50
- onClick: C
50
+ onClick: v
51
51
  }
52
52
  ),
53
53
  /* @__PURE__ */ t("span", { className: n.title, children: i })
@@ -56,8 +56,8 @@ import '../../assets/index14.css';const I = "_overlay_q0941_1", N = "_closing_q0
56
56
  "div",
57
57
  {
58
58
  className: `${n.contentInner} ${d || ""}`,
59
- ...u,
60
- children: /* @__PURE__ */ t(y.Provider, { value: c, children: m })
59
+ ...p,
60
+ children: /* @__PURE__ */ t(C.Provider, { value: r, children: m })
61
61
  }
62
62
  )
63
63
  ] })
@@ -67,5 +67,5 @@ import '../../assets/index14.css';const I = "_overlay_q0941_1", N = "_closing_q0
67
67
  ) : null;
68
68
  };
69
69
  export {
70
- L as Sheet
70
+ T as Sheet
71
71
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bmi-next-brokers",
3
3
  "description": "Componentes de UI para proyecto BMI Next Brokers",
4
- "version": "3.1.2",
4
+ "version": "3.1.4",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",