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.
@@ -1 +1 @@
1
- ._menuItem_1560u_1{display:flex;justify-content:space-between;align-items:center;gap:9px;cursor:pointer;color:var(--Azul-BMI-Digital-ColorAzul-BMI-Digital, #2054a5);border:1px solid transparent;background-color:transparent;border-radius:16px;padding:8px}._menuItem_1560u_1>._contentWrapper_1560u_15{display:flex;align-items:center;gap:9px;min-width:0;width:100%}._menuItem_1560u_1>._contentWrapper_1560u_15>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._menuItem_1560u_1:not(._activeItem_1560u_29):not(._ahorro_1560u_29):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_1560u_1:not(:active):not(._activeItem_1560u_29):not(._ahorro_1560u_29):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_1560u_1._ahorro_1560u_29:not(._activeItem_1560u_29):active{border-color:#2054a5;background-color:#fffce7}._menuItem_1560u_1._ahorro_1560u_29:not(:active):not(._activeItem_1560u_29):hover{background-color:#fffce7}._activeItem_1560u_29{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_1560u_29._ahorro_1560u_29{background-color:#fff7cb}._iconBefore_1560u_76{display:flex;justify-content:center;align-items:center;margin-left:auto;flex-shrink:0}
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}
@@ -1 +1 @@
1
- ._sidebar_gnx5r_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_gnx5r_1._open_gnx5r_17{width:244px}._content_gnx5r_21{display:flex;flex-direction:column;height:100%;gap:30px}._header_gnx5r_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_gnx5r_28._open_gnx5r_17{justify-content:space-between;padding-inline:5px}._toggleButton_gnx5r_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_gnx5r_43._ahorro_gnx5r_56{background-color:#eef3fc;color:#2054a5}._toggleButton_gnx5r_43:not(._ahorro_gnx5r_56):hover{background-color:var(--Blacks-Transparencias-Black-20, rgba(0, 0, 0, .2))}._menuList_gnx5r_65{display:flex;flex-direction:column;width:100%;margin:0;padding:0;list-style:none;gap:4px;overflow-y:auto;flex:1}._menuList_gnx5r_65::-webkit-scrollbar{display:none}._bottomDiv_gnx5r_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_gnx5r_81._open_gnx5r_17{align-items:stretch}
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 n, jsxs as r } from "react/jsx-runtime";
2
- import { forwardRef as B, useState as v } from "react";
3
- import { Icon as l } from "../../icons/Icon.js";
4
- import { MenuItem as m } from "./menuItem/index.js";
5
- import '../../assets/index2.css';const N = "_sidebar_gnx5r_1", f = "_open_gnx5r_17", C = "_content_gnx5r_21", w = "_header_gnx5r_28", L = "_toggleButton_gnx5r_43", D = "_ahorro_gnx5r_56", j = "_menuList_gnx5r_65", k = "_bottomDiv_gnx5r_81", o = {
6
- sidebar: N,
7
- open: f,
8
- content: C,
9
- header: w,
10
- toggleButton: L,
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 = B(
14
+ }, I = v(
15
15
  ({
16
- options: d,
16
+ options: m,
17
17
  className: _,
18
- activeItem: c,
19
- withConfig: g = !1,
18
+ activeItem: l,
19
+ withConfig: p = !1,
20
20
  configAction: s,
21
21
  type: a = "next",
22
- ...p
22
+ ...g
23
23
  }, u) => {
24
- const [e, x] = v(!0), t = a === "ahorro", $ = t ? e ? "BmiAhorro" : "BmiCollapsed" : e ? "BmiLogo" : "BmiCollapsed", h = () => {
25
- x((i) => !i);
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__ */ n(
27
+ return /* @__PURE__ */ t(
28
28
  "aside",
29
29
  {
30
30
  ref: u,
31
31
  className: `${o.sidebar} ${e ? o.open : ""} ${_ || ""}`,
32
- ...p,
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__ */ n(
36
- l,
35
+ /* @__PURE__ */ t(
36
+ d,
37
37
  {
38
- name: $,
39
- width: e ? t ? 78 : 110 : 26.62,
40
- height: t ? 65 : 32
38
+ name: b,
39
+ width: e ? n ? 78 : 110 : 26.62,
40
+ height: n ? 65 : 32
41
41
  }
42
42
  ),
43
- e && /* @__PURE__ */ n(
43
+ e && /* @__PURE__ */ t(
44
44
  "div",
45
45
  {
46
- className: `${o.toggleButton} ${t ? o.ahorro : ""}`,
47
- onClick: h,
48
- children: /* @__PURE__ */ n(l, { name: "ClosePanel", width: 20, height: 20 })
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
- d.map((i, b) => /* @__PURE__ */ n(
54
- m,
53
+ m.map((i, B) => /* @__PURE__ */ t(
54
+ h,
55
55
  {
56
56
  option: i,
57
- activeItem: c,
57
+ activeItem: l,
58
58
  open: e,
59
59
  type: a
60
60
  },
61
- b
61
+ B
62
62
  )),
63
63
  /* @__PURE__ */ r("div", { className: `${o.bottomDiv} ${e && o.open}`, children: [
64
- !e && /* @__PURE__ */ n(
64
+ !e && /* @__PURE__ */ t(
65
65
  "div",
66
66
  {
67
- className: `${o.toggleButton} ${t ? o.ahorro : ""}`,
68
- onClick: h,
69
- children: /* @__PURE__ */ n(l, { name: "OpenPanel", width: 20, height: 20 })
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
- g && /* @__PURE__ */ n(
73
- m,
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: c,
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 = "_menuItem_1560u_1", p = "_contentWrapper_1560u_15", B = "_activeItem_1560u_29", b = "_ahorro_1560u_29", g = "_iconBefore_1560u_76", t = {
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: p,
8
- activeItem: B,
9
- ahorro: b,
10
- iconBefore: g
11
- }, y = ({
7
+ contentWrapper: b,
8
+ activeItem: p,
9
+ ahorro: y,
10
+ iconBefore: B
11
+ }, $ = ({
12
12
  option: e,
13
- activeItem: i,
13
+ activeItem: m,
14
14
  className: l,
15
- type: m = "next",
15
+ type: i = "next",
16
16
  open: o = !0
17
17
  }) => {
18
- const [u, n] = d(!1), c = v(null), h = () => e.action(), f = m === "ahorro";
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 === i ? t.activeItem : ""} ${f ? t.ahorro : ""} ${l || ""}`,
24
- onClick: h,
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: 20, height: 20 }),
30
- o && /* @__PURE__ */ r("span", { className: "bodyRegular", children: e.label }),
31
- e.iconBefore && o && /* @__PURE__ */ r("div", { className: t.iconBefore, children: /* @__PURE__ */ r(s, { name: e.iconBefore, width: 20, height: 20 }) })
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: u, gap: 20, delay: 0, children: e.label })
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
- y as MenuItem
39
+ $ as MenuItem
40
40
  };
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": "2.8.1",
4
+ "version": "2.8.2",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",