bmi-next 1.0.25 → 1.0.27
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/index.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Drawer/DrawerPortalBase/index.js +1 -1
- package/dist/components/Drawer/index.js +9 -9
- package/dist/components/Input/index.js +19 -19
- package/dist/components/Navbar/index.js +1 -1
- package/dist/components/Select/DrawerPortal/index.js +51 -37
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/index.js +46 -45
- package/dist/components/TextArea/index.js +25 -25
- package/dist/{index-Cp_B-Y3h.js → index-BTmWXehE.js} +440 -440
- package/dist/main.js +1 -1
- package/package.json +1 -1
package/dist/assets/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_nqpxl_1{display:flex;flex-direction:column;gap:5px;width:100%}._textareaContainer_nqpxl_8{box-sizing:border-box;display:flex;align-items:flex-start;padding-inline:16px;border-radius:16px;border:solid 1px rgba(3,12,36,.2);gap:16px;padding-bottom:4px;background-color:#fff}._textareaContainer_nqpxl_8:has(textarea:invalid){border:solid 1px #f64c71;transition:all .3s ease}._textareaContainer_nqpxl_8:has(textarea:focus:not(:invalid)),._textareaContainer_nqpxl_8:hover:has(textarea:valid){border:solid 1px #45c2d6;box-shadow:3px 3px #45c2d6;transition:all .3s ease}._textarea_nqpxl_8{width:100%;font-size:16px;border:none;font-family:Poppins Regular;box-sizing:border-box;resize:none;min-height:140px;max-height:550px;padding-top:12px;padding-bottom:12px;line-height:24px;overflow-y:auto;field-sizing:content}._textarea_nqpxl_8:focus{outline:none}._prefix_nqpxl_52{opacity:.6;font-size:19px;font-family:Palaquin BMI}._textarea_nqpxl_8:invalid{color:#f64c71}._textarea_nqpxl_8:disabled{background-color:#fff}._labelContainer_nqpxl_66{display:flex;justify-content:space-between;align-items:center}._labelContainer_nqpxl_66>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_nqpxl_79{color:var(--rojo)}
|
package/dist/assets/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_1l4wa_1{display:flex;flex-direction:column;gap:5px;width:100%}._container_1l4wa_1:has(input:disabled){opacity:.4}._labelContainer_1l4wa_12{display:flex;justify-content:space-between;align-items:center}._labelContainer_1l4wa_12>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_1l4wa_25{color:var(--rojo)}._visibilityContainer_1l4wa_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_1l4wa_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_1l4wa_40>svg{overflow:visible}._invalid_1l4wa_25{border:solid 1px var(--rojo);transition:all .3s ease}._invalid_1l4wa_25:has(input:focus){border:solid 1px var(--rojo);box-shadow:3px 3px 0 0 var(--rojo);transition:all .3s ease}._inputContainer_1l4wa_40:not(._invalid_1l4wa_25):has(input:focus){border:solid 1px var(--turquesa);box-shadow:3px 3px 0 0 var(--turquesa);transition:all .3s ease;margin-right:3px}._input_1l4wa_40{height:100%;width:100%;font-family:Poppins Regular;font-size:16px;line-height:19.2px;border:none;box-sizing:border-box}._input_1l4wa_40:focus{outline:none}._prefix_1l4wa_99{font-family:Poppins Regular;font-size:16px;line-height:19.2px;color:var(--negro-40)}._invalid_1l4wa_25 ._input_1l4wa_40{color:var(--rojo)}._input_1l4wa_40:disabled{background-color:#fff}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as u, Fragment as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as w } from "react";
|
|
3
|
-
import { r as g } from "../../../index-
|
|
3
|
+
import { r as g } from "../../../index-BTmWXehE.js";
|
|
4
4
|
import { Icon as p } from "../../../icons/icons.js";
|
|
5
5
|
import '../../../assets/index6.css';const y = "_overlay_1b37u_1", D = "_closing_1b37u_12", Y = "_bottomDrawer_1b37u_36", L = "_drawerHeader_1b37u_76", B = "_drawerIndicator_1b37u_89", I = "_drawerContent_1b37u_100", N = "_closeButton_1b37u_116", t = {
|
|
6
6
|
overlay: y,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import { useState as r, useEffect as a } from "react";
|
|
3
|
-
import { DrawerPortalBase as
|
|
4
|
-
function g({ isOpen:
|
|
5
|
-
const [i,
|
|
6
|
-
return a(() => (
|
|
3
|
+
import { DrawerPortalBase as u } from "./DrawerPortalBase/index.js";
|
|
4
|
+
function g({ isOpen: e, onClose: s, title: l, children: n }) {
|
|
5
|
+
const [i, o] = r(!1), [d, t] = r(0);
|
|
6
|
+
return a(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
7
7
|
document.body.style.overflow = "";
|
|
8
|
-
}), [
|
|
9
|
-
|
|
8
|
+
}), [e]), /* @__PURE__ */ f(
|
|
9
|
+
u,
|
|
10
10
|
{
|
|
11
|
-
isOpen:
|
|
11
|
+
isOpen: e,
|
|
12
12
|
handleClose: () => {
|
|
13
|
-
|
|
14
|
-
s(),
|
|
13
|
+
o(!0), setTimeout(() => {
|
|
14
|
+
s(), o(!1), t(0);
|
|
15
15
|
}, 350);
|
|
16
16
|
},
|
|
17
17
|
dragPosition: d,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
1
|
+
import { jsxs as l, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as e } from "../../icons/icons.js";
|
|
3
3
|
import { FieldError as m } from "../FieldError/index.js";
|
|
4
4
|
import { useState as b } from "react";
|
|
5
|
-
import '../../assets/index8.css';const C = "
|
|
5
|
+
import '../../assets/index8.css';const C = "_container_1l4wa_1", h = "_labelContainer_1l4wa_12", u = "_invalidLabel_1l4wa_25", w = "_visibilityContainer_1l4wa_29", y = "_inputContainer_1l4wa_40", N = "_invalid_1l4wa_25", x = "_input_1l4wa_40", f = "_prefix_1l4wa_99", n = {
|
|
6
6
|
container: C,
|
|
7
7
|
labelContainer: h,
|
|
8
8
|
invalidLabel: u,
|
|
9
|
-
visibilityContainer:
|
|
10
|
-
inputContainer:
|
|
11
|
-
invalid:
|
|
12
|
-
input:
|
|
13
|
-
prefix:
|
|
9
|
+
visibilityContainer: w,
|
|
10
|
+
inputContainer: y,
|
|
11
|
+
invalid: N,
|
|
12
|
+
input: x,
|
|
13
|
+
prefix: f
|
|
14
14
|
}, I = ({
|
|
15
|
-
label:
|
|
16
|
-
iconBefore:
|
|
17
|
-
iconAfter:
|
|
15
|
+
label: s,
|
|
16
|
+
iconBefore: o,
|
|
17
|
+
iconAfter: r,
|
|
18
18
|
error: a,
|
|
19
19
|
prefix: c,
|
|
20
20
|
suffix: _,
|
|
@@ -23,10 +23,10 @@ import '../../assets/index8.css';const C = "_container_a555r_1", h = "_labelCont
|
|
|
23
23
|
...d
|
|
24
24
|
}) => {
|
|
25
25
|
const [t, v] = b(!1);
|
|
26
|
-
return /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
p && /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ l("div", { className: n.container, children: [
|
|
27
|
+
/* @__PURE__ */ l("div", { className: n.labelContainer, children: [
|
|
28
|
+
s && /* @__PURE__ */ i("label", { className: a ? n.invalidLabel : "", children: s }),
|
|
29
|
+
p && /* @__PURE__ */ l(
|
|
30
30
|
"div",
|
|
31
31
|
{
|
|
32
32
|
className: n.visibilityContainer,
|
|
@@ -34,7 +34,7 @@ import '../../assets/index8.css';const C = "_container_a555r_1", h = "_labelCont
|
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ i("span", { children: t ? "Ocultar" : "Mostrar" }),
|
|
36
36
|
/* @__PURE__ */ i(
|
|
37
|
-
|
|
37
|
+
e,
|
|
38
38
|
{
|
|
39
39
|
name: t ? "HideEye" : "ShowEye",
|
|
40
40
|
width: 20,
|
|
@@ -46,12 +46,12 @@ import '../../assets/index8.css';const C = "_container_a555r_1", h = "_labelCont
|
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
] }),
|
|
49
|
-
/* @__PURE__ */
|
|
49
|
+
/* @__PURE__ */ l(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
52
|
className: `${n.inputContainer} ${a ? n.invalid : ""}`,
|
|
53
53
|
children: [
|
|
54
|
-
|
|
54
|
+
o && /* @__PURE__ */ i(e, { ...o }),
|
|
55
55
|
c && /* @__PURE__ */ i("span", { className: n.prefix, children: c }),
|
|
56
56
|
/* @__PURE__ */ i(
|
|
57
57
|
"input",
|
|
@@ -62,7 +62,7 @@ import '../../assets/index8.css';const C = "_container_a555r_1", h = "_labelCont
|
|
|
62
62
|
}
|
|
63
63
|
),
|
|
64
64
|
_ && /* @__PURE__ */ i("span", { children: _ }),
|
|
65
|
-
|
|
65
|
+
r && /* @__PURE__ */ i(e, { ...r })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as o, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import "../../index-
|
|
2
|
+
import "../../index-BTmWXehE.js";
|
|
3
3
|
import { Icon as i } from "../../icons/icons.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import '../../assets/index4.css';const m = "_containerNavbar_1m98h_1", b = "_navbar_1m98h_12", v = "_backButton_1m98h_22", u = "_progressContainer_1m98h_30", t = {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as o, Fragment as D, jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { r as
|
|
1
|
+
import { jsxs as o, Fragment as D, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as v, Fragment as I } from "react";
|
|
3
|
+
import { r as A } from "../../../index-BTmWXehE.js";
|
|
4
4
|
import { Icon as j } from "../../../icons/icons.js";
|
|
5
5
|
import { Image as H } from "../../images/index.js";
|
|
6
|
-
import '../../../assets/index3.css';const B = "_overlay_f1ngj_1", Y = "_closing_f1ngj_11",
|
|
6
|
+
import '../../../assets/index3.css';const B = "_overlay_f1ngj_1", Y = "_closing_f1ngj_11", x = "_bottomDrawer_f1ngj_35", L = "_drawerHeader_f1ngj_73", S = "_drawerIndicator_f1ngj_87", C = "_drawerContent_f1ngj_98", b = "_optionCountry_f1ngj_106", R = "_optionNormal_f1ngj_107", X = "_options_f1ngj_125", $ = "_closeButton_f1ngj_137", M = "_separator_f1ngj_150", r = {
|
|
7
7
|
overlay: B,
|
|
8
8
|
closing: Y,
|
|
9
|
-
bottomDrawer:
|
|
10
|
-
drawerHeader:
|
|
11
|
-
drawerIndicator:
|
|
12
|
-
drawerContent:
|
|
13
|
-
optionCountry:
|
|
14
|
-
optionNormal:
|
|
15
|
-
options:
|
|
16
|
-
closeButton:
|
|
9
|
+
bottomDrawer: x,
|
|
10
|
+
drawerHeader: L,
|
|
11
|
+
drawerIndicator: S,
|
|
12
|
+
drawerContent: C,
|
|
13
|
+
optionCountry: b,
|
|
14
|
+
optionNormal: R,
|
|
15
|
+
options: X,
|
|
16
|
+
closeButton: $,
|
|
17
17
|
separator: M
|
|
18
|
-
},
|
|
18
|
+
}, W = ({
|
|
19
19
|
isOpen: E,
|
|
20
20
|
handleClose: s,
|
|
21
|
-
dragPosition:
|
|
21
|
+
dragPosition: f,
|
|
22
22
|
setDragPosition: m,
|
|
23
23
|
isClosing: u,
|
|
24
|
-
title:
|
|
24
|
+
title: p,
|
|
25
25
|
options: _,
|
|
26
26
|
handleOptionClick: y,
|
|
27
27
|
countries: w,
|
|
28
28
|
zIndex: l
|
|
29
29
|
}) => {
|
|
30
|
-
const N = l ? 50 : 70, d =
|
|
30
|
+
const N = l ? 50 : 70, d = v(0), i = v(0);
|
|
31
31
|
if (!E) return null;
|
|
32
32
|
const g = (e) => {
|
|
33
33
|
const n = "touches" in e ? e.touches[0].clientY : e.clientY;
|
|
@@ -35,58 +35,72 @@ import '../../../assets/index3.css';const B = "_overlay_f1ngj_1", Y = "_closing_
|
|
|
35
35
|
}, c = () => {
|
|
36
36
|
document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", c), document.removeEventListener("touchend", c), i.current - d.current > 100 ? s() : m(0);
|
|
37
37
|
}, a = (e) => {
|
|
38
|
-
const n = "touches" in e ? e.touches[0].clientY : e.clientY,
|
|
39
|
-
i.current = n,
|
|
38
|
+
const n = "touches" in e ? e.touches[0].clientY : e.clientY, h = n - d.current;
|
|
39
|
+
i.current = n, h > 0 && m(h);
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return A.createPortal(
|
|
42
42
|
/* @__PURE__ */ o(D, { children: [
|
|
43
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ t(
|
|
44
44
|
"div",
|
|
45
45
|
{
|
|
46
46
|
style: { zIndex: 2e3 + (l || 0) },
|
|
47
|
-
className: `${
|
|
47
|
+
className: `${r.overlay} ${u ? r.closing : ""}`,
|
|
48
48
|
onClick: s
|
|
49
49
|
}
|
|
50
50
|
),
|
|
51
51
|
/* @__PURE__ */ o(
|
|
52
52
|
"div",
|
|
53
53
|
{
|
|
54
|
-
className: `${
|
|
54
|
+
className: `${r.bottomDrawer} ${u ? r.closing : ""}`,
|
|
55
55
|
style: {
|
|
56
|
-
transform: `translateY(${
|
|
56
|
+
transform: `translateY(${f ?? 0}px)`,
|
|
57
57
|
zIndex: 2001 + (l || 0)
|
|
58
58
|
},
|
|
59
59
|
children: [
|
|
60
60
|
/* @__PURE__ */ o(
|
|
61
61
|
"header",
|
|
62
62
|
{
|
|
63
|
-
className:
|
|
63
|
+
className: r.drawerHeader,
|
|
64
64
|
onMouseDown: g,
|
|
65
65
|
onTouchStart: g,
|
|
66
66
|
children: [
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ t("div", { className: r.drawerIndicator }),
|
|
68
|
+
/* @__PURE__ */ t("div", { className: r.closeButton, onClick: s, children: /* @__PURE__ */ t(j, { name: "Close", fill: "rgb(0 0 0/40%)" }) }),
|
|
69
|
+
/* @__PURE__ */ t("p", { children: p })
|
|
70
70
|
]
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
/* @__PURE__ */
|
|
73
|
+
/* @__PURE__ */ t(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
className:
|
|
76
|
+
className: r.drawerContent,
|
|
77
77
|
style: { maxHeight: `${N}vh` },
|
|
78
|
-
children: /* @__PURE__ */
|
|
79
|
-
(e, n) => e.hidden ? null : /* @__PURE__ */ o(
|
|
78
|
+
children: /* @__PURE__ */ t("div", { className: r.options, children: _.map(
|
|
79
|
+
(e, n) => e.hidden ? null : /* @__PURE__ */ o(I, { children: [
|
|
80
80
|
/* @__PURE__ */ o(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
83
|
-
className: `${w ?
|
|
83
|
+
className: `${w ? r.optionCountry : r.optionNormal}`,
|
|
84
84
|
onClick: () => y(e),
|
|
85
85
|
children: [
|
|
86
|
-
e.image && /* @__PURE__ */
|
|
86
|
+
e.image && /* @__PURE__ */ t(H, { width: 30, height: 30, src: e.image.src }),
|
|
87
87
|
/* @__PURE__ */ o("div", { style: { display: "flex", flexDirection: "column" }, children: [
|
|
88
|
-
/* @__PURE__ */
|
|
89
|
-
|
|
88
|
+
/* @__PURE__ */ o(
|
|
89
|
+
"div",
|
|
90
|
+
{
|
|
91
|
+
style: {
|
|
92
|
+
display: "flex",
|
|
93
|
+
alignItems: "center",
|
|
94
|
+
gap: "10px"
|
|
95
|
+
},
|
|
96
|
+
children: [
|
|
97
|
+
e.countryFlag && /* @__PURE__ */ t("span", { children: e.countryFlag }),
|
|
98
|
+
/* @__PURE__ */ t("span", { children: e.label }),
|
|
99
|
+
e.countryPrefix && /* @__PURE__ */ t("span", { style: { color: "rgb(0 0 0/60%)" }, children: e.countryPrefix })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
),
|
|
103
|
+
e.description && /* @__PURE__ */ t(
|
|
90
104
|
"p",
|
|
91
105
|
{
|
|
92
106
|
className: "small2Regular",
|
|
@@ -99,7 +113,7 @@ import '../../../assets/index3.css';const B = "_overlay_f1ngj_1", Y = "_closing_
|
|
|
99
113
|
},
|
|
100
114
|
e.value
|
|
101
115
|
),
|
|
102
|
-
n < _.length - 1 && /* @__PURE__ */
|
|
116
|
+
n < _.length - 1 && /* @__PURE__ */ t("div", { className: r.separator })
|
|
103
117
|
] }, n)
|
|
104
118
|
) })
|
|
105
119
|
}
|
|
@@ -112,5 +126,5 @@ import '../../../assets/index3.css';const B = "_overlay_f1ngj_1", Y = "_closing_
|
|
|
112
126
|
);
|
|
113
127
|
};
|
|
114
128
|
export {
|
|
115
|
-
|
|
129
|
+
W as DrawerPortal
|
|
116
130
|
};
|
|
@@ -1,75 +1,76 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
3
|
-
import { useState as c, useRef as
|
|
4
|
-
import { Image as
|
|
5
|
-
import { DrawerPortal as
|
|
6
|
-
import '../../assets/index2.css';const
|
|
7
|
-
selectDrawer:
|
|
8
|
-
label:
|
|
9
|
-
selected:
|
|
1
|
+
import { jsxs as a, Fragment as R, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as E } from "../../icons/icons.js";
|
|
3
|
+
import { useState as c, useRef as g, useEffect as F } from "react";
|
|
4
|
+
import { Image as N } from "../images/index.js";
|
|
5
|
+
import { DrawerPortal as O } from "./DrawerPortal/index.js";
|
|
6
|
+
import '../../assets/index2.css';const j = "_selectDrawer_1o9yc_1", k = "_label_1o9yc_9", S = "_selected_1o9yc_16", i = {
|
|
7
|
+
selectDrawer: j,
|
|
8
|
+
label: k,
|
|
9
|
+
selected: S
|
|
10
10
|
};
|
|
11
11
|
function B({
|
|
12
|
-
options:
|
|
13
|
-
selected:
|
|
12
|
+
options: o,
|
|
13
|
+
selected: r,
|
|
14
14
|
setSelected: u,
|
|
15
|
-
title:
|
|
16
|
-
countries:
|
|
17
|
-
onChange:
|
|
15
|
+
title: w,
|
|
16
|
+
countries: b,
|
|
17
|
+
onChange: f,
|
|
18
18
|
zIndex: p,
|
|
19
|
-
label:
|
|
19
|
+
label: d,
|
|
20
20
|
..._
|
|
21
21
|
}) {
|
|
22
|
-
const [
|
|
23
|
-
|
|
22
|
+
const [t, m] = c(!1), [D, v] = c(!1), x = g(null), [C, h] = c(0), n = g(null);
|
|
23
|
+
F(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
24
24
|
document.body.style.overflow = "";
|
|
25
|
-
}), [
|
|
26
|
-
const
|
|
25
|
+
}), [t]);
|
|
26
|
+
const y = () => {
|
|
27
27
|
v(!0), setTimeout(() => {
|
|
28
28
|
m(!1), v(!1), h(0);
|
|
29
29
|
}, 350);
|
|
30
|
-
},
|
|
31
|
-
if (u(e),
|
|
32
|
-
|
|
33
|
-
const
|
|
34
|
-
|
|
30
|
+
}, P = (e) => {
|
|
31
|
+
if (u(e), n.current) {
|
|
32
|
+
n.current.value = e.value;
|
|
33
|
+
const s = new Event("change", { bubbles: !0 });
|
|
34
|
+
n.current.dispatchEvent(s);
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
y();
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ a(R, { children: [
|
|
39
39
|
/* @__PURE__ */ l(
|
|
40
40
|
"select",
|
|
41
41
|
{
|
|
42
|
-
ref:
|
|
43
|
-
value:
|
|
42
|
+
ref: n,
|
|
43
|
+
value: r.value,
|
|
44
44
|
onChange: (e) => {
|
|
45
|
-
const
|
|
46
|
-
|
|
45
|
+
const s = o.find((I) => I.value === e.target.value);
|
|
46
|
+
s && u(s), f && f(e);
|
|
47
47
|
},
|
|
48
48
|
style: { display: "none" },
|
|
49
49
|
..._,
|
|
50
|
-
children:
|
|
50
|
+
children: o.map((e) => /* @__PURE__ */ l("option", { value: e.value, children: e.label }, e.value))
|
|
51
51
|
}
|
|
52
52
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */ l(
|
|
58
|
-
/* @__PURE__ */ l("
|
|
53
|
+
/* @__PURE__ */ a("div", { ref: x, className: i.selectDrawer, children: [
|
|
54
|
+
d && /* @__PURE__ */ l("label", { className: i.label, children: d }),
|
|
55
|
+
/* @__PURE__ */ a("div", { className: i.selected, onClick: () => m(!t), children: [
|
|
56
|
+
r.countryFlag && /* @__PURE__ */ l("div", { style: { marginRight: "auto", fontSize: "22px" }, children: r.countryFlag }),
|
|
57
|
+
r.image && /* @__PURE__ */ l(N, { src: r.image.src, width: 30, height: 30 }),
|
|
58
|
+
/* @__PURE__ */ l("span", { children: r.countryPrefix ? r.countryPrefix : r.label }),
|
|
59
|
+
/* @__PURE__ */ l("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ l(E, { name: "ArrowDown" }) })
|
|
59
60
|
] })
|
|
60
61
|
] }),
|
|
61
62
|
/* @__PURE__ */ l(
|
|
62
|
-
|
|
63
|
+
O,
|
|
63
64
|
{
|
|
64
|
-
isOpen:
|
|
65
|
-
handleClose:
|
|
66
|
-
dragPosition:
|
|
65
|
+
isOpen: t,
|
|
66
|
+
handleClose: y,
|
|
67
|
+
dragPosition: C,
|
|
67
68
|
setDragPosition: h,
|
|
68
69
|
isClosing: D,
|
|
69
|
-
title:
|
|
70
|
-
options:
|
|
71
|
-
handleOptionClick:
|
|
72
|
-
countries:
|
|
70
|
+
title: w,
|
|
71
|
+
options: o,
|
|
72
|
+
handleOptionClick: P,
|
|
73
|
+
countries: b,
|
|
73
74
|
zIndex: p
|
|
74
75
|
}
|
|
75
76
|
)
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Icon as
|
|
1
|
+
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as f } from "../../icons/icons.js";
|
|
3
3
|
import { FieldError as h } from "../FieldError/index.js";
|
|
4
|
-
import { useRef as
|
|
5
|
-
import '../../assets/index.css';const
|
|
6
|
-
container:
|
|
7
|
-
textareaContainer:
|
|
8
|
-
textarea:
|
|
9
|
-
prefix:
|
|
10
|
-
labelContainer:
|
|
11
|
-
invalidLabel:
|
|
12
|
-
},
|
|
4
|
+
import { useRef as b } from "react";
|
|
5
|
+
import '../../assets/index.css';const v = "_container_nqpxl_1", C = "_textareaContainer_nqpxl_8", q = "_textarea_nqpxl_8", y = "_prefix_nqpxl_52", N = "_labelContainer_nqpxl_66", L = "_invalidLabel_nqpxl_79", a = {
|
|
6
|
+
container: v,
|
|
7
|
+
textareaContainer: C,
|
|
8
|
+
textarea: q,
|
|
9
|
+
prefix: y,
|
|
10
|
+
labelContainer: N,
|
|
11
|
+
invalidLabel: L
|
|
12
|
+
}, T = ({
|
|
13
13
|
icon: t,
|
|
14
14
|
error: n,
|
|
15
|
-
prefix:
|
|
15
|
+
prefix: i,
|
|
16
16
|
className: r,
|
|
17
|
-
onChange:
|
|
17
|
+
onChange: l,
|
|
18
18
|
label: s,
|
|
19
19
|
...o
|
|
20
20
|
}) => {
|
|
21
|
-
var
|
|
22
|
-
const d =
|
|
23
|
-
|
|
21
|
+
var x;
|
|
22
|
+
const d = b(null), _ = `${a.textarea} ${r || ""}`, p = (m) => {
|
|
23
|
+
l == null || l(m);
|
|
24
24
|
};
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ c(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
className: a.container,
|
|
29
|
-
style: ((
|
|
29
|
+
style: ((x = o.style) == null ? void 0 : x.display) === "none" ? { display: "none" } : {},
|
|
30
30
|
children: [
|
|
31
31
|
/* @__PURE__ */ e("div", { className: a.labelContainer, children: s && /* @__PURE__ */ e("label", { className: n ? a.invalidLabel : "", children: s }) }),
|
|
32
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ c("div", { className: a.textareaContainer, children: [
|
|
33
33
|
t && /* @__PURE__ */ e("div", { style: { marginTop: "9px" }, children: /* @__PURE__ */ e(
|
|
34
|
-
|
|
34
|
+
f,
|
|
35
35
|
{
|
|
36
36
|
name: t.name,
|
|
37
37
|
fill: t.fill,
|
|
@@ -39,19 +39,19 @@ import '../../assets/index.css';const b = "_container_1y71m_1", v = "_textareaCo
|
|
|
39
39
|
height: t.height
|
|
40
40
|
}
|
|
41
41
|
) }),
|
|
42
|
-
|
|
42
|
+
i && /* @__PURE__ */ e(
|
|
43
43
|
"span",
|
|
44
44
|
{
|
|
45
45
|
className: a.prefix,
|
|
46
|
-
children:
|
|
46
|
+
children: i
|
|
47
47
|
}
|
|
48
48
|
),
|
|
49
49
|
/* @__PURE__ */ e(
|
|
50
50
|
"textarea",
|
|
51
51
|
{
|
|
52
52
|
ref: d,
|
|
53
|
-
className:
|
|
54
|
-
onChange:
|
|
53
|
+
className: _,
|
|
54
|
+
onChange: p,
|
|
55
55
|
...o
|
|
56
56
|
}
|
|
57
57
|
)
|
|
@@ -62,5 +62,5 @@ import '../../assets/index.css';const b = "_container_1y71m_1", v = "_textareaCo
|
|
|
62
62
|
);
|
|
63
63
|
};
|
|
64
64
|
export {
|
|
65
|
-
|
|
65
|
+
T as TextArea
|
|
66
66
|
};
|