bmi-next 1.0.21 → 1.0.22

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
- ._container_1eef8_1{display:flex;flex-direction:column;gap:5px;width:100%}._container_1eef8_1:has(input:disabled){opacity:.4}._labelContainer_1eef8_12{display:flex;justify-content:space-between;align-items:center}._labelContainer_1eef8_12>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_1eef8_25{color:var(--rojo)}._visibilityContainer_1eef8_29{display:flex;align-items:center;gap:3px;cursor:pointer;color:var(--azul-digital);font-family:Poppins Medium;font-size:14px;line-height:16.8px}._inputContainer_1eef8_40{height:52px;box-sizing:border-box;display:flex;align-items:center;padding-inline:16px;border-radius:16px;border:1px solid var(--negro-20);gap:5px;background-color:#fff}._inputContainer_1eef8_40>svg{overflow:visible}._invalid_1eef8_25{border:solid 1px var(--rojo);transition:all .3s ease}._invalid_1eef8_25:focus{border:solid 1px var(--rojo);box-shadow:3px 3px 0 0 var(--rojo);transition:all .3s ease}._inputContainer_1eef8_40:focus:not(._invalid_1eef8_25){border:solid 1px var(--turquesa);box-shadow:3px 3px 0 0 var(--turquesa);transition:all .3s ease}._input_1eef8_40{height:100%;width:100%;font-family:Poppins Regular;font-size:16px;line-height:19.2px;border:none;box-sizing:border-box}._input_1eef8_40:focus{outline:none}._prefix_1eef8_98{font-family:Poppins Regular;font-size:16px;line-height:19.2px;color:var(--negro-40)}._input_1eef8_40:invalid{color:var(--rojo)}._input_1eef8_40:disabled{background-color:#fff}
1
+ ._container_353ry_1{display:flex;flex-direction:column;gap:5px;width:100%}._container_353ry_1:has(input:disabled){opacity:.4}._labelContainer_353ry_12{display:flex;justify-content:space-between;align-items:center}._labelContainer_353ry_12>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_353ry_25{color:var(--rojo)}._visibilityContainer_353ry_29{display:flex;align-items:center;gap:3px;cursor:pointer;color:var(--azul-digital);font-family:Poppins Medium;font-size:14px;line-height:16.8px}._inputContainer_353ry_40{height:52px;box-sizing:border-box;display:flex;align-items:center;padding-inline:16px;border-radius:16px;border:1px solid var(--negro-20);gap:5px;background-color:#fff}._inputContainer_353ry_40>svg{overflow:visible}._invalid_353ry_25{border:solid 1px var(--rojo);transition:all .3s ease}._invalid_353ry_25:has(input:focus){border:solid 1px var(--rojo);box-shadow:3px 3px 0 0 var(--rojo);transition:all .3s ease}._inputContainer_353ry_40:not(._invalid_353ry_25):has(input:focus){border:solid 1px var(--turquesa);box-shadow:3px 3px 0 0 var(--turquesa);transition:all .3s ease}._input_353ry_40{height:100%;width:100%;font-family:Poppins Regular;font-size:16px;line-height:19.2px;border:none;box-sizing:border-box}._input_353ry_40:focus{outline:none}._prefix_353ry_98{font-family:Poppins Regular;font-size:16px;line-height:19.2px;color:var(--negro-40)}._input_353ry_40:invalid{color:var(--rojo)}._input_353ry_40:disabled{background-color:#fff}
@@ -1,42 +1,42 @@
1
- import { jsxs as a, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
2
  import { Icon as l } from "../../icons/icons.js";
3
- import { FieldError as m } from "../FieldError/index.js";
4
- import { useState as b } from "react";
5
- import '../../assets/index8.css';const f = "_container_1eef8_1", C = "_labelContainer_1eef8_12", h = "_invalidLabel_1eef8_25", u = "_visibilityContainer_1eef8_29", y = "_inputContainer_1eef8_40", N = "_invalid_1eef8_25", x = "_input_1eef8_40", L = "_prefix_1eef8_98", n = {
6
- container: f,
3
+ import { FieldError as y } from "../FieldError/index.js";
4
+ import { useState as m } from "react";
5
+ import '../../assets/index8.css';const b = "_container_353ry_1", C = "_labelContainer_353ry_12", h = "_invalidLabel_353ry_25", u = "_visibilityContainer_353ry_29", N = "_inputContainer_353ry_40", x = "_invalid_353ry_25", f = "_input_353ry_40", L = "_prefix_353ry_98", n = {
6
+ container: b,
7
7
  labelContainer: C,
8
8
  invalidLabel: h,
9
9
  visibilityContainer: u,
10
- inputContainer: y,
11
- invalid: N,
12
- input: x,
10
+ inputContainer: N,
11
+ invalid: x,
12
+ input: f,
13
13
  prefix: L
14
14
  }, I = ({
15
- label: s,
16
- iconBefore: o,
17
- iconAfter: r,
18
- error: e,
15
+ label: r,
16
+ iconBefore: s,
17
+ iconAfter: o,
18
+ error: t,
19
19
  prefix: c,
20
20
  suffix: _,
21
21
  visibility: p,
22
22
  // className,
23
23
  ...d
24
24
  }) => {
25
- const [t, v] = b(!1);
26
- return /* @__PURE__ */ a("div", { className: n.container, children: [
27
- /* @__PURE__ */ a("div", { className: n.labelContainer, children: [
28
- s && /* @__PURE__ */ i("label", { className: e ? n.invalidLabel : "", children: s }),
29
- p && /* @__PURE__ */ a(
25
+ const [a, v] = m(!1);
26
+ return /* @__PURE__ */ e("div", { className: n.container, children: [
27
+ /* @__PURE__ */ e("div", { className: n.labelContainer, children: [
28
+ r && /* @__PURE__ */ i("label", { className: t ? n.invalidLabel : "", children: r }),
29
+ p && /* @__PURE__ */ e(
30
30
  "div",
31
31
  {
32
32
  className: n.visibilityContainer,
33
- onClick: () => v(!t),
33
+ onClick: () => v(!a),
34
34
  children: [
35
- /* @__PURE__ */ i("span", { children: t ? "Ocultar" : "Mostrar" }),
35
+ /* @__PURE__ */ i("span", { children: a ? "Ocultar" : "Mostrar" }),
36
36
  /* @__PURE__ */ i(
37
37
  l,
38
38
  {
39
- name: t ? "HideEye" : "ShowEye",
39
+ name: a ? "HideEye" : "ShowEye",
40
40
  width: 20,
41
41
  height: 20,
42
42
  fill: "rgb(32 84 165)"
@@ -46,27 +46,27 @@ import '../../assets/index8.css';const f = "_container_1eef8_1", C = "_labelCont
46
46
  }
47
47
  )
48
48
  ] }),
49
- /* @__PURE__ */ a(
49
+ /* @__PURE__ */ e(
50
50
  "div",
51
51
  {
52
- className: `${n.inputContainer} ${e ? n.invalid : ""}`,
52
+ className: `${n.inputContainer} ${t ? n.invalid : ""}`,
53
53
  children: [
54
- o && /* @__PURE__ */ i(l, { ...o }),
54
+ s && /* @__PURE__ */ i(l, { ...s }),
55
55
  c && /* @__PURE__ */ i("span", { className: n.prefix, children: c }),
56
56
  /* @__PURE__ */ i(
57
57
  "input",
58
58
  {
59
59
  className: n.input,
60
60
  ...d,
61
- type: t ? "text" : d.type
61
+ type: a ? "text" : d.type
62
62
  }
63
63
  ),
64
64
  _ && /* @__PURE__ */ i("span", { children: _ }),
65
- r && /* @__PURE__ */ i(l, { ...r })
65
+ o && /* @__PURE__ */ i(l, { ...o })
66
66
  ]
67
67
  }
68
68
  ),
69
- e && /* @__PURE__ */ i(m, { error: e })
69
+ t && /* @__PURE__ */ i(y, { error: t })
70
70
  ] });
71
71
  };
72
72
  export {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bmi-next",
3
3
  "description": "Componentes de UI para proyecto BMI Next",
4
- "version": "1.0.21",
4
+ "version": "1.0.22",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",