bmi-next-brokers 2.5.1 → 2.5.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
- ._badge_c0j5t_1{display:flex;justify-content:center;align-items:center;width:fit-content;gap:4px;border-radius:28px;box-sizing:border-box;padding:4px 12px;transition:128ms cubic-bezier(.6,0,.4,1);position:relative}._fullWidth_c0j5t_14{width:100%}._medium_c0j5t_18{padding:3px 8px}._small_c0j5t_22{padding:2px 4px}
1
+ ._badge_1pm65_1{display:flex;justify-content:center;align-items:center;width:fit-content;gap:4px;border-radius:28px;box-sizing:border-box;padding:4px 8px;transition:128ms cubic-bezier(.6,0,.4,1);position:relative}._badge_1pm65_1._disabled_1pm65_14{opacity:.3}._fullWidth_1pm65_18{width:100%}._medium_1pm65_22{padding:3px 10px}._small_1pm65_26{padding:2px 8px}
@@ -1 +1 @@
1
- ._menuItem_16vvj_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_16vvj_1>._contentWrapper_16vvj_15{display:flex;align-items:center;gap:9px;min-width:0;width:100%}._menuItem_16vvj_1>._contentWrapper_16vvj_15>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._menuItem_16vvj_1:not(._activeItem_16vvj_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_16vvj_1:not(:active):not(._activeItem_16vvj_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 )}._activeItem_16vvj_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_16vvj_29._ahorro_16vvj_63{background-color:#fff7cb}._iconBefore_16vvj_67{display:flex;justify-content:center;align-items:center;margin-left:auto;flex-shrink:0}
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}
@@ -65,10 +65,10 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
65
65
  f(c);
66
66
  }, [c]), k(() => {
67
67
  if (p && g && _ > 0) {
68
- const d = setTimeout(() => {
68
+ const l = setTimeout(() => {
69
69
  h();
70
70
  }, _);
71
- return () => clearTimeout(d);
71
+ return () => clearTimeout(l);
72
72
  }
73
73
  }, [g, _, p]);
74
74
  const h = () => {
@@ -87,8 +87,8 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
87
87
  small: { title: "small2Bold", body: "small5Regular" },
88
88
  medium: { title: "bodyBold", body: "small2Medium" },
89
89
  large: { title: "title6Bold", body: "bodyMedium" }
90
- }, a = (d, o) => {
91
- switch (d) {
90
+ }, d = (l, o) => {
91
+ switch (l) {
92
92
  case "brand":
93
93
  return {
94
94
  borderColor: "var(--Badge-Toasts-Stroke, #2054A5)",
@@ -146,8 +146,8 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
146
146
  borderRadius: i[o]
147
147
  };
148
148
  }
149
- }, F = (d, o) => {
150
- const R = a(d, o).borderColor.match(/#([0-9A-Fa-f]{6})/);
149
+ }, F = (l, o) => {
150
+ const R = d(l, o).borderColor.match(/#([0-9A-Fa-f]{6})/);
151
151
  return R ? R[0] : null;
152
152
  };
153
153
  if (!g) return null;
@@ -157,17 +157,15 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
157
157
  t[`position_${I.replace("-", "_")}`],
158
158
  T ? t.exiting : t.entering,
159
159
  E
160
- ].filter(Boolean).join(" "), l = a(r, n);
161
- console.log(l, "properties");
162
- const N = /* @__PURE__ */ u(
160
+ ].filter(Boolean).join(" "), a = d(r, n), N = /* @__PURE__ */ u(
163
161
  "div",
164
162
  {
165
163
  className: A,
166
164
  style: {
167
- border: "1px solid " + l.borderColor,
168
- background: l.background,
169
- padding: l.padding,
170
- borderRadius: l.borderRadius
165
+ border: "1px solid " + a.borderColor,
166
+ background: a.background,
167
+ padding: a.padding,
168
+ borderRadius: a.borderRadius
171
169
  },
172
170
  role: "alert",
173
171
  "aria-live": "polite",
@@ -188,7 +186,7 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
188
186
  "div",
189
187
  {
190
188
  className: t[v[n].body],
191
- style: { color: a(r, n).borderColor },
189
+ style: { color: d(r, n).borderColor },
192
190
  children: y
193
191
  }
194
192
  )
@@ -198,7 +196,7 @@ import '../../assets/Toast.css';const D = "_toast_ni2sb_1", j = "_topRow_ni2sb_1
198
196
  {
199
197
  className: t.closeButton,
200
198
  style: {
201
- borderLeft: "1px solid " + a(r, n).borderColor
199
+ borderLeft: "1px solid " + d(r, n).borderColor
202
200
  },
203
201
  onClick: h,
204
202
  "aria-label": "Cerrar notificación",
@@ -3,7 +3,7 @@ import { IconName } from '../../icons/Icon';
3
3
  /**
4
4
  * Variantes de estilo para el Badge.
5
5
  */
6
- type BadgeVariant = "brand" | "info" | "new" | "pending" | "positive" | "warning" | "negative" | "disabled";
6
+ type BadgeVariant = "brand" | "info" | "new" | "pending" | "positive" | "warning" | "negative" | "disabled" | "inactive";
7
7
  /**
8
8
  * Tamaños disponibles para el Badge.
9
9
  */
@@ -1,141 +1,151 @@
1
- import { jsxs as I, Fragment as N, jsx as v } from "react/jsx-runtime";
2
- import { Icon as s } from "../../icons/Icon.js";
3
- import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5t_14", k = "_medium_c0j5t_18", P = "_small_c0j5t_22", o = {
4
- badge: p,
5
- fullWidth: _,
6
- medium: k,
7
- small: P
8
- }, $ = ({
9
- variant: e,
10
- style: f,
1
+ import { jsxs as D, Fragment as w, jsx as u } from "react/jsx-runtime";
2
+ import { Icon as f } from "../../icons/Icon.js";
3
+ import '../../assets/index.css';const $ = "_badge_1pm65_1", k = "_disabled_1pm65_14", v = "_fullWidth_1pm65_18", x = "_medium_1pm65_22", W = "_small_1pm65_26", d = {
4
+ badge: $,
5
+ disabled: k,
6
+ fullWidth: v,
7
+ medium: x,
8
+ small: W
9
+ }, j = ({
10
+ variant: l,
11
+ style: g,
11
12
  size: t = "large",
12
- iconAfter: n,
13
- iconBefore: a,
14
- outline: l = !1,
15
- className: d,
16
- children: g,
17
- fullWidth: C = !1,
18
- ...A
13
+ iconAfter: e,
14
+ iconBefore: n,
15
+ outline: i = !1,
16
+ className: s,
17
+ children: r,
18
+ fullWidth: c = !1,
19
+ ...C
19
20
  }) => {
20
- const m = {
21
+ const E = {
21
22
  small: "small4Medium",
22
23
  medium: "small3Medium",
23
24
  large: "small3Medium"
24
- }, i = {
25
+ }, a = {
25
26
  small: 16,
26
27
  medium: 18,
27
28
  large: 20
28
- }, u = {
29
+ }, F = {
29
30
  brand: {
30
- default: "var(--Fill-Brand-Inverted-Active)",
31
- outline: "var(--Fill-Brand-Default-Hover)"
31
+ default: "#2054A5",
32
+ outline: "#EEF3FC"
32
33
  },
33
34
  info: {
34
- default: "var(--Content-Info-Default-Active)",
35
- outline: "var(--Fill-Info-Default-Active)"
35
+ default: "#2054A5",
36
+ outline: "#EEF3FC"
36
37
  },
37
38
  new: {
38
- default: "var(--Content-New-Active)",
39
- outline: "var(--Fill-New-Active)"
39
+ default: "#0F93A8",
40
+ outline: "#D6F4F8"
40
41
  },
41
42
  pending: {
42
- default: "var(--Content-Pending-Active)",
43
- outline: "var(--Fill-Pending-Active)"
43
+ default: "#CA8A04",
44
+ outline: "#FEFDE8"
44
45
  },
45
46
  positive: {
46
- default: "var(--Content-Positive-Active)",
47
- outline: "var(--Fill-Positive-Active)"
47
+ default: "#65A30D",
48
+ outline: "#F7FEE7"
48
49
  },
49
50
  warning: {
50
- default: "var(--Content-Warning-Active)",
51
- outline: "var(--Fill-Warning-Default-Active)"
51
+ default: "#EA580C",
52
+ outline: "#FFEDD5"
52
53
  },
53
54
  negative: {
54
- default: "var(--Content-Negative-Default-Active)",
55
- outline: "var(--Fill-Negative-Default-Active)"
55
+ default: "#DC2626",
56
+ outline: "#FEF2F2"
56
57
  },
57
58
  disabled: {
58
- default: "var(--Content-Disabled-Default, #CBD5E1)",
59
- outline: "var(--Fill-Disabled-Default, #F8FAFC)"
59
+ default: "#2054A5",
60
+ outline: "#EEF3FC"
61
+ },
62
+ inactive: {
63
+ default: "#64748B",
64
+ outline: "#F1F5F9"
60
65
  }
61
- }, c = {
66
+ }, m = {
62
67
  brand: {
63
- default: "var(--Content-Brand-Inverted-Active)",
64
- outline: "var(--Content-Brand-Default-Active)"
68
+ default: "#FFF",
69
+ outline: "#2054A5"
65
70
  },
66
71
  info: {
67
- default: "var(--Content-Neutral-Inverted-Active)",
68
- outline: "var(--Content-Info-Default-Active)"
72
+ default: "#FFF",
73
+ outline: "#2054A5"
69
74
  },
70
75
  new: {
71
- default: "var(--Content-Neutral-Inverted-Active)",
72
- outline: "var(--Content-New-Active)"
76
+ default: "#F0FAFC",
77
+ outline: "#065564"
73
78
  },
74
79
  pending: {
75
- default: "var(--Content-Neutral-Inverted-Active)",
76
- outline: "var(--Content-Pending-Active)"
80
+ default: "#FEFDE8",
81
+ outline: "#713F12"
77
82
  },
78
83
  positive: {
79
- default: "var(--Content-Neutral-Inverted-Active)",
80
- outline: "var(--Content-Positive-Active)"
84
+ default: "#F7FEE7",
85
+ outline: "#365314"
81
86
  },
82
87
  warning: {
83
- default: "var(--Content-Neutral-Inverted-Active)",
84
- outline: "var(--Content-Warning-Active)"
88
+ default: "#FFF7ED",
89
+ outline: "#7C2D12"
85
90
  },
86
91
  negative: {
87
- default: "var(--Content-Neutral-Inverted-Active, #fff)",
88
- outline: "var(--Content-Negative-Default-Active)"
92
+ default: "#FEF2F2",
93
+ outline: "#DC2626"
89
94
  },
90
95
  disabled: {
91
- default: "var(--ui-slate-600)",
92
- outline: "var(--ui-slate-600)"
96
+ default: "#FFF",
97
+ outline: "#2054A5"
98
+ },
99
+ inactive: {
100
+ default: "#F1F5F9",
101
+ outline: "#475569"
93
102
  }
94
103
  }, h = {
95
- brand: "var(--Stroke-Brand-Active)",
96
- info: "var(--Stroke-Info-Active)",
97
- new: "var(--Stroke-New-Active)",
98
- pending: "var(--Stroke-Pending-Active)",
99
- positive: "var(--Stroke-Positive-Active)",
100
- warning: "var(--Stroke-Warning-Active)",
101
- negative: "var(--Stroke-Negative-Active)",
102
- disabled: "var(--ui-slate-600)"
103
- }, b = l ? u[e].outline : u[e].default, r = l ? c[e].outline : c[e].default, w = l ? h[e] : "transparent", D = `${m[t]} ${o.badge} ${o[t]} ${l ? o.outline : ""} ${C ? o.fullWidth : ""} ${d || ""}`, F = /* @__PURE__ */ I(N, { children: [
104
- a && /* @__PURE__ */ v(
105
- s,
104
+ brand: "#2054A5",
105
+ info: "#2054A5",
106
+ new: "#0F93A8",
107
+ pending: " #CA8A04",
108
+ positive: "#65A30D",
109
+ warning: "#EA580C",
110
+ negative: "#DC2626",
111
+ disabled: "#2054A5",
112
+ inactive: "#475569"
113
+ }, b = i ? F[l].outline : F[l].default, o = i ? m[l].outline : m[l].default, p = i ? h[l] : "transparent", A = `${E[t]} ${d.badge} ${d[l]} ${d[t]} ${i ? d.outline : ""} ${c ? d.fullWidth : ""} ${s || ""}`, _ = /* @__PURE__ */ D(w, { children: [
114
+ n && /* @__PURE__ */ u(
115
+ f,
106
116
  {
107
- ...a,
108
- width: a.width ?? i[t],
109
- height: a.height ?? i[t],
110
- fill: a.fill ?? r
117
+ ...n,
118
+ width: n.width ?? a[t],
119
+ height: n.height ?? a[t],
120
+ fill: n.fill ?? o
111
121
  }
112
122
  ),
113
- g,
114
- n && /* @__PURE__ */ v(
115
- s,
123
+ r,
124
+ e && /* @__PURE__ */ u(
125
+ f,
116
126
  {
117
- ...n,
118
- width: n.width ?? i[t],
119
- height: n.height ?? i[t],
120
- fill: n.fill ?? r
127
+ ...e,
128
+ width: e.width ?? a[t],
129
+ height: e.height ?? a[t],
130
+ fill: e.fill ?? o
121
131
  }
122
132
  )
123
133
  ] });
124
- return /* @__PURE__ */ v(
134
+ return /* @__PURE__ */ u(
125
135
  "span",
126
136
  {
127
- className: D,
137
+ className: A,
128
138
  style: {
129
- color: r,
139
+ color: o,
130
140
  backgroundColor: b,
131
- border: `1px solid ${w}`,
132
- ...f
141
+ border: `1px solid ${p}`,
142
+ ...g
133
143
  },
134
- ...A,
135
- children: F
144
+ ...C,
145
+ children: _
136
146
  }
137
147
  );
138
148
  };
139
149
  export {
140
- $ as Badge
150
+ j as Badge
141
151
  };
@@ -1,21 +1,21 @@
1
1
  import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
2
  import { Icon as s } from "../../../icons/Icon.js";
3
- import { Tooltip as u } from "../../tooltip/index.js";
4
- import { useState as _, useRef as d } from "react";
5
- import '../../../assets/index14.css';const I = "_menuItem_16vvj_1", p = "_contentWrapper_16vvj_15", j = "_activeItem_16vvj_29", B = "_ahorro_16vvj_63", b = "_iconBefore_16vvj_67", t = {
3
+ import { Tooltip as _ } from "../../tooltip/index.js";
4
+ import { useState as d, useRef as v } from "react";
5
+ import '../../../assets/index14.css';const I = "_menuItem_1560u_1", p = "_contentWrapper_1560u_15", B = "_activeItem_1560u_29", b = "_ahorro_1560u_29", g = "_iconBefore_1560u_76", t = {
6
6
  menuItem: I,
7
7
  contentWrapper: p,
8
- activeItem: j,
9
- ahorro: B,
10
- iconBefore: b
11
- }, $ = ({
8
+ activeItem: B,
9
+ ahorro: b,
10
+ iconBefore: g
11
+ }, y = ({
12
12
  option: e,
13
13
  activeItem: i,
14
14
  className: l,
15
15
  type: m = "next",
16
16
  open: o = !0
17
17
  }) => {
18
- const [v, n] = _(!1), c = d(null), h = () => e.action(), f = m === "ahorro";
18
+ const [u, n] = d(!1), c = v(null), h = () => e.action(), f = m === "ahorro";
19
19
  return /* @__PURE__ */ a(
20
20
  "li",
21
21
  {
@@ -30,11 +30,11 @@ import '../../../assets/index14.css';const I = "_menuItem_16vvj_1", p = "_conten
30
30
  o && /* @__PURE__ */ r("span", { className: "bodyRegular", children: e.label }),
31
31
  e.iconBefore && o && /* @__PURE__ */ r("div", { className: t.iconBefore, children: /* @__PURE__ */ r(s, { name: e.iconBefore, width: 20, height: 20 }) })
32
32
  ] }),
33
- !o && /* @__PURE__ */ r(u, { target: c.current, visible: v, gap: 20, delay: 0, children: e.label })
33
+ !o && /* @__PURE__ */ r(_, { target: c.current, visible: u, gap: 20, delay: 0, children: e.label })
34
34
  ]
35
35
  }
36
36
  );
37
37
  };
38
38
  export {
39
- $ as MenuItem
39
+ y 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.5.1",
4
+ "version": "2.5.4",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",