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.
@@ -1 +1 @@
1
- ._container_1y71m_1{display:flex;flex-direction:column;gap:5px;width:100%}._textareaContainer_1y71m_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_1y71m_8:has(textarea:invalid){border:solid 1px #f64c71;transition:all .3s ease}._textareaContainer_1y71m_8:has(textarea:focus:not(:invalid)),._textareaContainer_1y71m_8:hover:has(textarea:valid){border:solid 1px #45c2d6;box-shadow:3px 3px #45c2d6;transition:all .3s ease}._textarea_1y71m_8{width:100%;font-size:19px;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_1y71m_8:focus{outline:none}._prefix_1y71m_52{opacity:.6;font-size:19px;font-family:Palaquin BMI}._textarea_1y71m_8:invalid{color:#f64c71}._textarea_1y71m_8:disabled{background-color:#fff}._labelContainer_1y71m_66{display:flex;justify-content:space-between;align-items:center}._labelContainer_1y71m_66>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_1y71m_79{color:var(--rojo)}
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)}
@@ -1 +1 @@
1
- ._container_a555r_1{display:flex;flex-direction:column;gap:5px;width:100%}._container_a555r_1:has(input:disabled){opacity:.4}._labelContainer_a555r_12{display:flex;justify-content:space-between;align-items:center}._labelContainer_a555r_12>label{margin-left:9px;font-family:Poppins Medium;font-size:14px;line-height:16.8px}._invalidLabel_a555r_25{color:var(--rojo)}._visibilityContainer_a555r_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_a555r_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_a555r_40>svg{overflow:visible}._invalid_a555r_25{border:solid 1px var(--rojo);transition:all .3s ease}._invalid_a555r_25:has(input:focus){border:solid 1px var(--rojo);box-shadow:3px 3px 0 0 var(--rojo);transition:all .3s ease}._inputContainer_a555r_40:not(._invalid_a555r_25):has(input:focus){border:solid 1px var(--turquesa);box-shadow:3px 3px 0 0 var(--turquesa);transition:all .3s ease}._input_a555r_40{height:100%;width:100%;font-family:Poppins Regular;font-size:16px;line-height:19.2px;border:none;box-sizing:border-box}._input_a555r_40:focus{outline:none}._prefix_a555r_98{font-family:Poppins Regular;font-size:16px;line-height:19.2px;color:var(--negro-40)}._invalid_a555r_25 ._input_a555r_40{color:var(--rojo)}._input_a555r_40:disabled{background-color:#fff}
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,5 +1,5 @@
1
1
  import { jsx as e, jsxs as d, Fragment as p } from "react/jsx-runtime";
2
- import "../../index-Cp_B-Y3h.js";
2
+ import "../../index-BTmWXehE.js";
3
3
  import { Icon as l } from "../../icons/icons.js";
4
4
  import "react";
5
5
  import { Spinner as h } from "../Spinner/index.js";
@@ -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-Cp_B-Y3h.js";
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 m } from "./DrawerPortalBase/index.js";
4
- function g({ isOpen: o, onClose: s, title: l, children: n }) {
5
- const [i, e] = r(!1), [d, t] = r(0);
6
- return a(() => (o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
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
- }), [o]), /* @__PURE__ */ f(
9
- m,
8
+ }), [e]), /* @__PURE__ */ f(
9
+ u,
10
10
  {
11
- isOpen: o,
11
+ isOpen: e,
12
12
  handleClose: () => {
13
- e(!0), setTimeout(() => {
14
- s(), e(!1), t(0);
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 e, jsx as i } from "react/jsx-runtime";
2
- import { Icon as l } from "../../icons/icons.js";
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 = "_container_a555r_1", h = "_labelContainer_a555r_12", u = "_invalidLabel_a555r_25", y = "_visibilityContainer_a555r_29", N = "_inputContainer_a555r_40", x = "_invalid_a555r_25", f = "_input_a555r_40", L = "_prefix_a555r_98", n = {
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: y,
10
- inputContainer: N,
11
- invalid: x,
12
- input: f,
13
- prefix: L
9
+ visibilityContainer: w,
10
+ inputContainer: y,
11
+ invalid: N,
12
+ input: x,
13
+ prefix: f
14
14
  }, I = ({
15
- label: r,
16
- iconBefore: s,
17
- iconAfter: o,
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__ */ e("div", { className: n.container, children: [
27
- /* @__PURE__ */ e("div", { className: n.labelContainer, children: [
28
- r && /* @__PURE__ */ i("label", { className: a ? n.invalidLabel : "", children: r }),
29
- p && /* @__PURE__ */ e(
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
- l,
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__ */ e(
49
+ /* @__PURE__ */ l(
50
50
  "div",
51
51
  {
52
52
  className: `${n.inputContainer} ${a ? n.invalid : ""}`,
53
53
  children: [
54
- s && /* @__PURE__ */ i(l, { ...s }),
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
- o && /* @__PURE__ */ i(l, { ...o })
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-Cp_B-Y3h.js";
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 r } from "react/jsx-runtime";
2
- import { useRef as h, Fragment as A } from "react";
3
- import { r as I } from "../../../index-Cp_B-Y3h.js";
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", L = "_bottomDrawer_f1ngj_35", S = "_drawerHeader_f1ngj_73", C = "_drawerIndicator_f1ngj_87", R = "_drawerContent_f1ngj_98", X = "_optionCountry_f1ngj_106", $ = "_optionNormal_f1ngj_107", b = "_options_f1ngj_125", x = "_closeButton_f1ngj_137", M = "_separator_f1ngj_150", t = {
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: L,
10
- drawerHeader: S,
11
- drawerIndicator: C,
12
- drawerContent: R,
13
- optionCountry: X,
14
- optionNormal: $,
15
- options: b,
16
- closeButton: x,
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
- }, P = ({
18
+ }, W = ({
19
19
  isOpen: E,
20
20
  handleClose: s,
21
- dragPosition: p,
21
+ dragPosition: f,
22
22
  setDragPosition: m,
23
23
  isClosing: u,
24
- title: f,
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 = h(0), i = h(0);
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, v = n - d.current;
39
- i.current = n, v > 0 && m(v);
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 I.createPortal(
41
+ return A.createPortal(
42
42
  /* @__PURE__ */ o(D, { children: [
43
- /* @__PURE__ */ r(
43
+ /* @__PURE__ */ t(
44
44
  "div",
45
45
  {
46
46
  style: { zIndex: 2e3 + (l || 0) },
47
- className: `${t.overlay} ${u ? t.closing : ""}`,
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: `${t.bottomDrawer} ${u ? t.closing : ""}`,
54
+ className: `${r.bottomDrawer} ${u ? r.closing : ""}`,
55
55
  style: {
56
- transform: `translateY(${p ?? 0}px)`,
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: t.drawerHeader,
63
+ className: r.drawerHeader,
64
64
  onMouseDown: g,
65
65
  onTouchStart: g,
66
66
  children: [
67
- /* @__PURE__ */ r("div", { className: t.drawerIndicator }),
68
- /* @__PURE__ */ r("div", { className: t.closeButton, onClick: s, children: /* @__PURE__ */ r(j, { name: "Close", fill: "rgb(0 0 0/40%)" }) }),
69
- /* @__PURE__ */ r("p", { children: f })
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__ */ r(
73
+ /* @__PURE__ */ t(
74
74
  "div",
75
75
  {
76
- className: t.drawerContent,
76
+ className: r.drawerContent,
77
77
  style: { maxHeight: `${N}vh` },
78
- children: /* @__PURE__ */ r("div", { className: t.options, children: _.map(
79
- (e, n) => e.hidden ? null : /* @__PURE__ */ o(A, { children: [
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 ? t.optionCountry : t.optionNormal}`,
83
+ className: `${w ? r.optionCountry : r.optionNormal}`,
84
84
  onClick: () => y(e),
85
85
  children: [
86
- e.image && /* @__PURE__ */ r(H, { width: 30, height: 30, src: e.image.src }),
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__ */ r("p", { style: { margin: 0 }, children: e.label }),
89
- e.description && /* @__PURE__ */ r(
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__ */ r("div", { className: t.separator })
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
- P as DrawerPortal
129
+ W as DrawerPortal
116
130
  };
@@ -25,6 +25,8 @@ export interface Option {
25
25
  hidden?: boolean;
26
26
  /** Descripción opcional para mostrar junto a la opción */
27
27
  description?: string;
28
+ countryFlag?: string;
29
+ countryPrefix?: string;
28
30
  }
29
31
  /**
30
32
  * Props del componente Select.
@@ -1,75 +1,76 @@
1
- import { jsxs as o, Fragment as N, jsx as l } from "react/jsx-runtime";
2
- import { Icon as O } from "../../icons/icons.js";
3
- import { useState as c, useRef as y, useEffect as P } from "react";
4
- import { Image as R } from "../images/index.js";
5
- import { DrawerPortal as j } from "./DrawerPortal/index.js";
6
- import '../../assets/index2.css';const k = "_selectDrawer_1o9yc_1", A = "_label_1o9yc_9", F = "_selected_1o9yc_16", i = {
7
- selectDrawer: k,
8
- label: A,
9
- selected: F
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: a,
13
- selected: t,
12
+ options: o,
13
+ selected: r,
14
14
  setSelected: u,
15
- title: b,
16
- countries: g,
17
- onChange: d,
15
+ title: w,
16
+ countries: b,
17
+ onChange: f,
18
18
  zIndex: p,
19
- label: f,
19
+ label: d,
20
20
  ..._
21
21
  }) {
22
- const [s, m] = c(!1), [D, v] = c(!1), C = y(null), [I, h] = c(0), r = y(null);
23
- P(() => (s ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
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
- }), [s]);
26
- const w = () => {
25
+ }), [t]);
26
+ const y = () => {
27
27
  v(!0), setTimeout(() => {
28
28
  m(!1), v(!1), h(0);
29
29
  }, 350);
30
- }, x = (e) => {
31
- if (u(e), r.current) {
32
- r.current.value = e.value;
33
- const n = new Event("change", { bubbles: !0 });
34
- r.current.dispatchEvent(n);
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
- w();
36
+ y();
37
37
  };
38
- return /* @__PURE__ */ o(N, { children: [
38
+ return /* @__PURE__ */ a(R, { children: [
39
39
  /* @__PURE__ */ l(
40
40
  "select",
41
41
  {
42
- ref: r,
43
- value: t.value,
42
+ ref: n,
43
+ value: r.value,
44
44
  onChange: (e) => {
45
- const n = a.find((E) => E.value === e.target.value);
46
- n && u(n), d && d(e);
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: a.map((e) => /* @__PURE__ */ l("option", { value: e.value, children: e.label }, e.value))
50
+ children: o.map((e) => /* @__PURE__ */ l("option", { value: e.value, children: e.label }, e.value))
51
51
  }
52
52
  ),
53
- /* @__PURE__ */ o("div", { ref: C, className: i.selectDrawer, children: [
54
- f && /* @__PURE__ */ l("label", { className: i.label, children: f }),
55
- /* @__PURE__ */ o("div", { className: i.selected, onClick: () => m(!s), children: [
56
- t.image && /* @__PURE__ */ l(R, { src: t.image.src, width: 30, height: 30 }),
57
- /* @__PURE__ */ l("span", { children: t.label }),
58
- /* @__PURE__ */ l("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ l(O, { name: "ArrowDown" }) })
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
- j,
63
+ O,
63
64
  {
64
- isOpen: s,
65
- handleClose: w,
66
- dragPosition: I,
65
+ isOpen: t,
66
+ handleClose: y,
67
+ dragPosition: C,
67
68
  setDragPosition: h,
68
69
  isClosing: D,
69
- title: b,
70
- options: a,
71
- handleOptionClick: x,
72
- countries: g,
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 m, jsx as e } from "react/jsx-runtime";
2
- import { Icon as y } from "../../icons/icons.js";
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 p } from "react";
5
- import '../../assets/index.css';const b = "_container_1y71m_1", v = "_textareaContainer_1y71m_8", C = "_textarea_1y71m_8", N = "_prefix_1y71m_52", L = "_labelContainer_1y71m_66", u = "_invalidLabel_1y71m_79", a = {
6
- container: b,
7
- textareaContainer: v,
8
- textarea: C,
9
- prefix: N,
10
- labelContainer: L,
11
- invalidLabel: u
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: l,
15
+ prefix: i,
16
16
  className: r,
17
- onChange: i,
17
+ onChange: l,
18
18
  label: s,
19
19
  ...o
20
20
  }) => {
21
- var c;
22
- const d = p(null), x = `${a.textarea} ${r || ""}`, _ = (f) => {
23
- i == null || i(f);
21
+ var x;
22
+ const d = b(null), _ = `${a.textarea} ${r || ""}`, p = (m) => {
23
+ l == null || l(m);
24
24
  };
25
- return /* @__PURE__ */ m(
25
+ return /* @__PURE__ */ c(
26
26
  "div",
27
27
  {
28
28
  className: a.container,
29
- style: ((c = o.style) == null ? void 0 : c.display) === "none" ? { display: "none" } : {},
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__ */ m("div", { className: a.textareaContainer, children: [
32
+ /* @__PURE__ */ c("div", { className: a.textareaContainer, children: [
33
33
  t && /* @__PURE__ */ e("div", { style: { marginTop: "9px" }, children: /* @__PURE__ */ e(
34
- y,
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
- l && /* @__PURE__ */ e(
42
+ i && /* @__PURE__ */ e(
43
43
  "span",
44
44
  {
45
45
  className: a.prefix,
46
- children: l
46
+ children: i
47
47
  }
48
48
  ),
49
49
  /* @__PURE__ */ e(
50
50
  "textarea",
51
51
  {
52
52
  ref: d,
53
- className: x,
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
- $ as TextArea
65
+ T as TextArea
66
66
  };