bmi-next-brokers 2.0.0 → 2.0.1

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,23 +1,23 @@
1
- import { jsxs as I, Fragment as N, jsx as v } from "react/jsx-runtime";
2
- import { Icon as s } from "../../icons/Icon.js";
1
+ import { jsxs as I, Fragment as N, jsx as r } from "react/jsx-runtime";
2
+ import { Icon as c } from "../../icons/Icon.js";
3
3
  import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5t_14", k = "_medium_c0j5t_18", P = "_small_c0j5t_22", o = {
4
4
  badge: p,
5
5
  fullWidth: _,
6
6
  medium: k,
7
7
  small: P
8
8
  }, $ = ({
9
- variant: e,
9
+ variant: t,
10
10
  style: f,
11
- size: t = "large",
11
+ size: e = "large",
12
12
  iconAfter: n,
13
13
  iconBefore: a,
14
14
  outline: l = !1,
15
15
  className: d,
16
16
  children: g,
17
17
  fullWidth: C = !1,
18
- ...A
18
+ ...m
19
19
  }) => {
20
- const m = {
20
+ const A = {
21
21
  small: "small5Medium",
22
22
  medium: "small3Medium",
23
23
  large: "small3Medium"
@@ -58,33 +58,33 @@ import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5
58
58
  default: "var(--Content-Disabled-Default, #CBD5E1)",
59
59
  outline: "var(--Fill-Disabled-Default, #F8FAFC)"
60
60
  }
61
- }, c = {
61
+ }, s = {
62
62
  brand: {
63
63
  default: "var(--Content-Brand-Inverted-Active)",
64
64
  outline: "var(--Content-Brand-Default-Active)"
65
65
  },
66
66
  info: {
67
- default: "var(--Content-Neutral-Inverted-Active)",
67
+ default: "var(--Content-Negative-Inverted-Hover)",
68
68
  outline: "var(--Content-Info-Default-Active)"
69
69
  },
70
70
  new: {
71
- default: "var(--Content-Neutral-Inverted-Active)",
71
+ default: "var(--Content-Negative-Inverted-Hover)",
72
72
  outline: "var(--Content-New-Active)"
73
73
  },
74
74
  pending: {
75
- default: "var(--Content-Neutral-Inverted-Active)",
75
+ default: "var(--Content-Negative-Inverted-Hover)",
76
76
  outline: "var(--Content-Pending-Active)"
77
77
  },
78
78
  positive: {
79
- default: "var(--Content-Neutral-Inverted-Active)",
79
+ default: "var(--Content-Negative-Inverted-Hover)",
80
80
  outline: "var(--Content-Positive-Active)"
81
81
  },
82
82
  warning: {
83
- default: "var(--Content-Neutral-Inverted-Active)",
83
+ default: "var(--Content-Negative-Inverted-Hover)",
84
84
  outline: "var(--Content-Warning-Active)"
85
85
  },
86
86
  negative: {
87
- default: "var(--Content-Neutral-Inverted-Active)",
87
+ default: "var(--Content-Neutral-Inverted-Active, #fff)",
88
88
  outline: "var(--Content-Negative-Default-Active)"
89
89
  },
90
90
  disabled: {
@@ -100,38 +100,38 @@ import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5
100
100
  warning: "var(--Stroke-Warning-Active)",
101
101
  negative: "var(--Stroke-Negative-Active)",
102
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,
103
+ }, b = l ? u[t].outline : u[t].default, v = l ? s[t].outline : s[t].default, w = l ? h[t] : "transparent", D = `${A[e]} ${o.badge} ${o[e]} ${l ? o.outline : ""} ${C ? o.fullWidth : ""} ${d || ""}`, F = /* @__PURE__ */ I(N, { children: [
104
+ a && /* @__PURE__ */ r(
105
+ c,
106
106
  {
107
107
  name: a.name,
108
- width: a.width ?? i[t],
109
- height: a.height ?? i[t],
110
- fill: a.fill ?? r
108
+ width: a.width ?? i[e],
109
+ height: a.height ?? i[e],
110
+ fill: a.fill ?? v
111
111
  }
112
112
  ),
113
113
  g,
114
- n && /* @__PURE__ */ v(
115
- s,
114
+ n && /* @__PURE__ */ r(
115
+ c,
116
116
  {
117
117
  name: n.name,
118
- width: n.width ?? i[t],
119
- height: n.height ?? i[t],
120
- fill: n.fill ?? r
118
+ width: n.width ?? i[e],
119
+ height: n.height ?? i[e],
120
+ fill: n.fill ?? v
121
121
  }
122
122
  )
123
123
  ] });
124
- return /* @__PURE__ */ v(
124
+ return /* @__PURE__ */ r(
125
125
  "span",
126
126
  {
127
127
  className: D,
128
128
  style: {
129
- color: r,
129
+ color: v,
130
130
  backgroundColor: b,
131
131
  border: `1px solid ${w}`,
132
132
  ...f
133
133
  },
134
- ...A,
134
+ ...m,
135
135
  children: F
136
136
  }
137
137
  );
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.0.0",
4
+ "version": "2.0.1",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",