bmi-next-brokers 2.8.1 → 2.8.2
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/assets/index15.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._menuItem_m64by_1{display:flex;justify-content:space-between;align-items:center;gap:4px;border-radius:12px;cursor:pointer;color:var(--Azul-BMI-Digital-ColorAzul-BMI-Digital, #2054a5);border:1px solid transparent;background-color:transparent;padding:8px}._menuItem_m64by_1>._contentWrapper_m64by_14{display:flex;align-items:center;gap:4px;min-width:0;width:100%}._menuItem_m64by_1>._contentWrapper_m64by_14>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._menuItem_m64by_1:not(._activeItem_m64by_28):not(._ahorro_m64by_28):active{color:var( --Complementarios-Azul-BMI-Oscuro-Compl-1-Azul-BMI-Oscuro, #003a70 );border-color:var( --Complementarios-Azul-BMI-Oscuro-Compl-1-Azul-BMI-Oscuro, #003a70 );background-color:var( --Complementarios-Turquesa-Compl-2-Transparencias-Turquesa-20, rgba(69, 194, 214, .2) )}._menuItem_m64by_1:not(:active):not(._activeItem_m64by_28):not(._ahorro_m64by_28):hover{background-color:var( --Complementarios-Turquesa-Compl-2-Transparencias-Turquesa-10, rgba(69, 194, 214, .1) );color:var( --Complementarios-Azul-BMI-Oscuro-Compl-1-Azul-BMI-Oscuro, #003a70 )}._menuItem_m64by_1._ahorro_m64by_28:not(._activeItem_m64by_28):active{border-color:#2054a5;background-color:#fffce7}._menuItem_m64by_1._ahorro_m64by_28:not(:active):not(._activeItem_m64by_28):hover{background-color:#fffce7}._activeItem_m64by_28{background-color:var( --Complementarios-Turquesa-Compl-2-Transparencias-Turquesa-20, rgba(69, 194, 214, .2) );color:var(--Azul-BMI-Digital-ColorAzul-BMI-Digital, #2054a5)}._activeItem_m64by_28._ahorro_m64by_28{background-color:#fff7cb}._iconBefore_m64by_75{display:flex;justify-content:center;align-items:center;margin-left:auto;flex-shrink:0}
|
package/dist/assets/index2.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._sidebar_1d097_1{position:fixed;top:0;left:0;height:100dvh;width:62px;background-color:#fff;border-right:1px solid rgba(0,0,0,.2);display:flex;flex-direction:column;padding:17px 12px 21px;overflow:hidden;box-sizing:border-box;transition:width .3s cubic-bezier(.4,0,.2,1)}._sidebar_1d097_1._open_1d097_17{width:200px}._content_1d097_21{display:flex;flex-direction:column;height:100%;gap:30px}._header_1d097_28{display:flex;align-items:center;justify-content:center;max-width:100%;transition:justify-content .3s cubic-bezier(.4,0,.2,1),padding-inline .3s cubic-bezier(.4,0,.2,1)}._header_1d097_28._open_1d097_17{justify-content:space-between;padding-inline:5px}._toggleButton_1d097_43{background-color:var(--Blacks-Transparencias-Black-10, rgba(0, 0, 0, .1));border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;width:28px;height:28px;transition:background-color .2s ease;color:#000}._toggleButton_1d097_43._ahorro_1d097_56{background-color:#eef3fc;color:#2054a5}._toggleButton_1d097_43:not(._ahorro_1d097_56):hover{background-color:var(--Blacks-Transparencias-Black-20, rgba(0, 0, 0, .2))}._menuList_1d097_65{display:flex;flex-direction:column;width:100%;margin:0;padding:0;list-style:none;gap:4px;overflow-y:auto;flex:1}._menuList_1d097_65::-webkit-scrollbar{display:none}._bottomDiv_1d097_81{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:auto;gap:9px;width:100%;transition:align-items .3s cubic-bezier(.4,0,.2,1)}._bottomDiv_1d097_81._open_1d097_17{align-items:stretch}
|
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import { MenuItem as
|
|
5
|
-
import '../../assets/index2.css';const
|
|
6
|
-
sidebar:
|
|
7
|
-
open:
|
|
8
|
-
content:
|
|
9
|
-
header:
|
|
10
|
-
toggleButton:
|
|
1
|
+
import { jsx as t, jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as v, useState as N } from "react";
|
|
3
|
+
import { Icon as d } from "../../icons/Icon.js";
|
|
4
|
+
import { MenuItem as h } from "./menuItem/index.js";
|
|
5
|
+
import '../../assets/index2.css';const f = "_sidebar_1d097_1", C = "_open_1d097_17", w = "_content_1d097_21", L = "_header_1d097_28", x = "_toggleButton_1d097_43", D = "_ahorro_1d097_56", j = "_menuList_1d097_65", k = "_bottomDiv_1d097_81", o = {
|
|
6
|
+
sidebar: f,
|
|
7
|
+
open: C,
|
|
8
|
+
content: w,
|
|
9
|
+
header: L,
|
|
10
|
+
toggleButton: x,
|
|
11
11
|
ahorro: D,
|
|
12
12
|
menuList: j,
|
|
13
13
|
bottomDiv: k
|
|
14
|
-
}, I =
|
|
14
|
+
}, I = v(
|
|
15
15
|
({
|
|
16
|
-
options:
|
|
16
|
+
options: m,
|
|
17
17
|
className: _,
|
|
18
|
-
activeItem:
|
|
19
|
-
withConfig:
|
|
18
|
+
activeItem: l,
|
|
19
|
+
withConfig: p = !1,
|
|
20
20
|
configAction: s,
|
|
21
21
|
type: a = "next",
|
|
22
|
-
...
|
|
22
|
+
...g
|
|
23
23
|
}, u) => {
|
|
24
|
-
const [e,
|
|
25
|
-
|
|
24
|
+
const [e, $] = N(!0), n = a === "ahorro", b = n ? e ? "BmiAhorro" : "BmiCollapsed" : e ? "BmiLogo" : "BmiCollapsed", c = () => {
|
|
25
|
+
$((i) => !i);
|
|
26
26
|
};
|
|
27
|
-
return /* @__PURE__ */
|
|
27
|
+
return /* @__PURE__ */ t(
|
|
28
28
|
"aside",
|
|
29
29
|
{
|
|
30
30
|
ref: u,
|
|
31
31
|
className: `${o.sidebar} ${e ? o.open : ""} ${_ || ""}`,
|
|
32
|
-
...
|
|
32
|
+
...g,
|
|
33
33
|
children: /* @__PURE__ */ r("div", { className: o.content, children: [
|
|
34
34
|
/* @__PURE__ */ r("header", { className: `${o.header} ${e && o.open}`, children: [
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
35
|
+
/* @__PURE__ */ t(
|
|
36
|
+
d,
|
|
37
37
|
{
|
|
38
|
-
name:
|
|
39
|
-
width: e ?
|
|
40
|
-
height:
|
|
38
|
+
name: b,
|
|
39
|
+
width: e ? n ? 78 : 110 : 26.62,
|
|
40
|
+
height: n ? 65 : 32
|
|
41
41
|
}
|
|
42
42
|
),
|
|
43
|
-
e && /* @__PURE__ */
|
|
43
|
+
e && /* @__PURE__ */ t(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
|
-
className: `${o.toggleButton} ${
|
|
47
|
-
onClick:
|
|
48
|
-
children: /* @__PURE__ */
|
|
46
|
+
className: `${o.toggleButton} ${n ? o.ahorro : ""}`,
|
|
47
|
+
onClick: c,
|
|
48
|
+
children: /* @__PURE__ */ t(d, { name: "ClosePanel", width: 20, height: 20 })
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
] }),
|
|
52
52
|
/* @__PURE__ */ r("ul", { className: o.menuList, children: [
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
m.map((i, B) => /* @__PURE__ */ t(
|
|
54
|
+
h,
|
|
55
55
|
{
|
|
56
56
|
option: i,
|
|
57
|
-
activeItem:
|
|
57
|
+
activeItem: l,
|
|
58
58
|
open: e,
|
|
59
59
|
type: a
|
|
60
60
|
},
|
|
61
|
-
|
|
61
|
+
B
|
|
62
62
|
)),
|
|
63
63
|
/* @__PURE__ */ r("div", { className: `${o.bottomDiv} ${e && o.open}`, children: [
|
|
64
|
-
!e && /* @__PURE__ */
|
|
64
|
+
!e && /* @__PURE__ */ t(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
67
|
-
className: `${o.toggleButton} ${
|
|
68
|
-
onClick:
|
|
69
|
-
children: /* @__PURE__ */
|
|
67
|
+
className: `${o.toggleButton} ${n ? o.ahorro : ""}`,
|
|
68
|
+
onClick: c,
|
|
69
|
+
children: /* @__PURE__ */ t(d, { name: "OpenPanel", width: 20, height: 20 })
|
|
70
70
|
}
|
|
71
71
|
),
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
p && /* @__PURE__ */ t(
|
|
73
|
+
h,
|
|
74
74
|
{
|
|
75
75
|
option: {
|
|
76
76
|
label: "Configuración",
|
|
@@ -79,7 +79,7 @@ import '../../assets/index2.css';const N = "_sidebar_gnx5r_1", f = "_open_gnx5r_
|
|
|
79
79
|
iconBefore: "ArrowRight"
|
|
80
80
|
},
|
|
81
81
|
open: e,
|
|
82
|
-
activeItem:
|
|
82
|
+
activeItem: l,
|
|
83
83
|
type: a
|
|
84
84
|
}
|
|
85
85
|
)
|
|
@@ -2,39 +2,39 @@ import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { Icon as s } from "../../../icons/Icon.js";
|
|
3
3
|
import { Tooltip as _ } from "../../tooltip/index.js";
|
|
4
4
|
import { useState as d, useRef as v } from "react";
|
|
5
|
-
import '../../../assets/index15.css';const I = "
|
|
5
|
+
import '../../../assets/index15.css';const I = "_menuItem_m64by_1", b = "_contentWrapper_m64by_14", p = "_activeItem_m64by_28", y = "_ahorro_m64by_28", B = "_iconBefore_m64by_75", t = {
|
|
6
6
|
menuItem: I,
|
|
7
|
-
contentWrapper:
|
|
8
|
-
activeItem:
|
|
9
|
-
ahorro:
|
|
10
|
-
iconBefore:
|
|
11
|
-
},
|
|
7
|
+
contentWrapper: b,
|
|
8
|
+
activeItem: p,
|
|
9
|
+
ahorro: y,
|
|
10
|
+
iconBefore: B
|
|
11
|
+
}, $ = ({
|
|
12
12
|
option: e,
|
|
13
|
-
activeItem:
|
|
13
|
+
activeItem: m,
|
|
14
14
|
className: l,
|
|
15
|
-
type:
|
|
15
|
+
type: i = "next",
|
|
16
16
|
open: o = !0
|
|
17
17
|
}) => {
|
|
18
|
-
const [
|
|
18
|
+
const [h, n] = d(!1), c = v(null), f = () => e.action(), u = i === "ahorro";
|
|
19
19
|
return /* @__PURE__ */ a(
|
|
20
20
|
"li",
|
|
21
21
|
{
|
|
22
22
|
ref: c,
|
|
23
|
-
className: `${t.menuItem} ${e.label ===
|
|
24
|
-
onClick:
|
|
23
|
+
className: `${t.menuItem} ${e.label === m ? t.activeItem : ""} ${u ? t.ahorro : ""} ${l || ""}`,
|
|
24
|
+
onClick: f,
|
|
25
25
|
onMouseEnter: () => n(!0),
|
|
26
26
|
onMouseLeave: () => n(!1),
|
|
27
27
|
children: [
|
|
28
28
|
/* @__PURE__ */ a("div", { className: t.contentWrapper, children: [
|
|
29
|
-
/* @__PURE__ */ r(s, { name: e.iconAfter, width:
|
|
30
|
-
o && /* @__PURE__ */ r("span", { className: "
|
|
31
|
-
e.iconBefore && o && /* @__PURE__ */ r("div", { className: t.iconBefore, children: /* @__PURE__ */ r(s, { name: e.iconBefore, width:
|
|
29
|
+
/* @__PURE__ */ r(s, { name: e.iconAfter, width: 16, height: 16 }),
|
|
30
|
+
o && /* @__PURE__ */ r("span", { className: "small2Regular", children: e.label }),
|
|
31
|
+
e.iconBefore && o && /* @__PURE__ */ r("div", { className: t.iconBefore, children: /* @__PURE__ */ r(s, { name: e.iconBefore, width: 16, height: 16 }) })
|
|
32
32
|
] }),
|
|
33
|
-
!o && /* @__PURE__ */ r(_, { target: c.current, visible:
|
|
33
|
+
!o && /* @__PURE__ */ r(_, { target: c.current, visible: h, gap: 20, delay: 0, children: e.label })
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
37
|
};
|
|
38
38
|
export {
|
|
39
|
-
|
|
39
|
+
$ as MenuItem
|
|
40
40
|
};
|
package/package.json
CHANGED