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.
- package/dist/assets/index8.css +1 -1
- package/dist/components/Input/index.js +26 -26
- package/package.json +1 -1
package/dist/assets/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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
|
|
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
|
|
4
|
-
import { useState as
|
|
5
|
-
import '../../assets/index8.css';const
|
|
6
|
-
container:
|
|
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:
|
|
11
|
-
invalid:
|
|
12
|
-
input:
|
|
10
|
+
inputContainer: N,
|
|
11
|
+
invalid: x,
|
|
12
|
+
input: f,
|
|
13
13
|
prefix: L
|
|
14
14
|
}, I = ({
|
|
15
|
-
label:
|
|
16
|
-
iconBefore:
|
|
17
|
-
iconAfter:
|
|
18
|
-
error:
|
|
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 [
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
p && /* @__PURE__ */
|
|
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(!
|
|
33
|
+
onClick: () => v(!a),
|
|
34
34
|
children: [
|
|
35
|
-
/* @__PURE__ */ i("span", { children:
|
|
35
|
+
/* @__PURE__ */ i("span", { children: a ? "Ocultar" : "Mostrar" }),
|
|
36
36
|
/* @__PURE__ */ i(
|
|
37
37
|
l,
|
|
38
38
|
{
|
|
39
|
-
name:
|
|
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__ */
|
|
49
|
+
/* @__PURE__ */ e(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
|
-
className: `${n.inputContainer} ${
|
|
52
|
+
className: `${n.inputContainer} ${t ? n.invalid : ""}`,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
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:
|
|
61
|
+
type: a ? "text" : d.type
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
_ && /* @__PURE__ */ i("span", { children: _ }),
|
|
65
|
-
|
|
65
|
+
o && /* @__PURE__ */ i(l, { ...o })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
|
|
69
|
+
t && /* @__PURE__ */ i(y, { error: t })
|
|
70
70
|
] });
|
|
71
71
|
};
|
|
72
72
|
export {
|
package/package.json
CHANGED