bmi-next 1.0.7 → 1.0.9

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
- ._overlay_tjb4r_1{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;animation:_fadeIn_tjb4r_1 .25s ease-in-out;z-index:2000}._overlay_tjb4r_1._closing_tjb4r_12{animation:_fadeOut_tjb4r_1 .25s ease-in-out forwards}@keyframes _fadeIn_tjb4r_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_tjb4r_1{0%{opacity:1}to{opacity:0}}._bottomDrawer_tjb4r_36{position:fixed;bottom:0;left:0;right:0;background-color:#fff;border-radius:16px 16px 0 0;z-index:2001;animation:_slideUp_tjb4r_1 .35s cubic-bezier(.4,0,.2,1);padding:7px 15px 30px;transition:transform .2s cubic-bezier(.4,0,.2,1);touch-action:none}._closing_tjb4r_12{animation:_slideDown_tjb4r_1 .35s cubic-bezier(.4,0,.2,1) forwards}@keyframes _slideUp_tjb4r_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_tjb4r_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._drawerHeader_tjb4r_74{display:flex;justify-content:center;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}._drawerHeader_tjb4r_74:active{cursor:grabbing}._drawerIndicator_tjb4r_86{width:40px;height:7px;background-color:#e5e7eb;border-radius:14px}._drawerContent_tjb4r_93{max-height:70vh;overflow-y:auto;padding-top:15px;display:flex;flex-direction:column;gap:19px}._optionCountry_tjb4r_102,._optionNormal_tjb4r_103{cursor:pointer;transition:background-color .2s;font-size:22px;font-family:Palanquin BMI;min-height:52px;padding-block:11px;display:flex;align-items:center;box-sizing:border-box;line-height:1.05}._optionCountry_tjb4r_102{gap:13px}._optionNormal_tjb4r_103:not(:last-child){border-bottom:1px solid rgba(3,12,36,.1)}._options_tjb4r_124{display:flex;flex-direction:column}._option_tjb4r_102:hover{background-color:#f3f4f6}._active_tjb4r_133{background-color:#ebf5ff;color:#2054a5;border-radius:16px;padding-inline:15px}._drawerContent_tjb4r_93 p{font-size:22px;font-family:Palanquin BMI Bold;margin:0}._closeButton_tjb4r_146{position:absolute;height:30px;width:30px;top:10px;right:10px;cursor:pointer;background-color:#030c2419;border-radius:50%;display:flex;align-items:center;justify-content:center}
1
+ ._overlay_zxyd8_1{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;animation:_fadeIn_zxyd8_1 .25s ease-in-out}._overlay_zxyd8_1._closing_zxyd8_11{animation:_fadeOut_zxyd8_1 .25s ease-in-out forwards}@keyframes _fadeIn_zxyd8_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_zxyd8_1{0%{opacity:1}to{opacity:0}}._bottomDrawer_zxyd8_35{position:fixed;bottom:0;left:0;right:0;background-color:#fff;border-radius:16px 16px 0 0;animation:_slideUp_zxyd8_1 .35s cubic-bezier(.4,0,.2,1);padding:7px 15px 30px;transition:transform .2s cubic-bezier(.4,0,.2,1);touch-action:none}._closing_zxyd8_11{animation:_slideDown_zxyd8_1 .35s cubic-bezier(.4,0,.2,1) forwards}@keyframes _slideUp_zxyd8_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_zxyd8_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._drawerHeader_zxyd8_72{display:flex;flex-direction:column;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;position:relative}._drawerHeader_zxyd8_72:active{cursor:grabbing}._drawerIndicator_zxyd8_85{width:40px;height:7px;background-color:#e5e7eb;border-radius:14px;position:absolute;left:50%;transform:translate(-50%);top:7px}._drawerContent_zxyd8_96{overflow-y:auto;padding-top:15px;display:flex;flex-direction:column;gap:19px}._optionCountry_zxyd8_104,._optionNormal_zxyd8_105{cursor:pointer;transition:background-color .2s;font-size:22px;font-family:Palanquin BMI;min-height:52px;padding-block:11px;display:flex;align-items:center;box-sizing:border-box;line-height:1.05}._optionCountry_zxyd8_104{gap:13px}._optionNormal_zxyd8_105:not(:last-child){border-bottom:1px solid rgba(3,12,36,.1)}._options_zxyd8_126{display:flex;flex-direction:column}._option_zxyd8_104:hover{background-color:#f3f4f6}._active_zxyd8_135{background-color:#ebf5ff;color:#2054a5;border-radius:16px;padding-inline:15px}._drawerHeader_zxyd8_72 p{font-size:22px;font-family:Palanquin BMI Bold;margin:0;line-height:1.2}._closeButton_zxyd8_149{cursor:pointer;display:flex;align-items:center;justify-content:end}._closeButton_zxyd8_149>svg{background-color:#030c2419;border-radius:50%;padding:2px}
@@ -1 +1 @@
1
- ._overlay_5twvs_1{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;animation:_fadeIn_5twvs_1 .25s ease-in-out;z-index:2000}._overlay_5twvs_1._closing_5twvs_12{animation:_fadeOut_5twvs_1 .25s ease-in-out forwards}@keyframes _fadeIn_5twvs_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_5twvs_1{0%{opacity:1}to{opacity:0}}._bottomDrawer_5twvs_36{position:fixed;bottom:0;left:0;right:0;background-color:#fff;border-radius:16px 16px 0 0;z-index:2001;animation:_slideUp_5twvs_1 .35s cubic-bezier(.4,0,.2,1);padding:7px 15px 30px;transition:transform .2s cubic-bezier(.4,0,.2,1);touch-action:none}._closing_5twvs_12{animation:_slideDown_5twvs_1 .35s cubic-bezier(.4,0,.2,1) forwards}@keyframes _slideUp_5twvs_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_5twvs_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._drawerHeader_5twvs_74{display:flex;justify-content:center;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}._drawerHeader_5twvs_74:active{cursor:grabbing}._drawerIndicator_5twvs_86{width:40px;height:7px;background-color:#e5e7eb;border-radius:14px}._drawerContent_5twvs_93{max-height:70vh;overflow-y:auto;padding-top:15px;display:flex;flex-direction:column;gap:19px}._drawerContent_5twvs_93 p{font-size:22px;font-family:Palanquin BMI Bold;margin:0}._closeButton_5twvs_108{position:absolute;height:30px;width:30px;top:10px;right:10px;cursor:pointer;background-color:#030c2419;border-radius:50%;display:flex;align-items:center;justify-content:center}
1
+ ._overlay_1s1em_1{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;animation:_fadeIn_1s1em_1 .25s ease-in-out;z-index:2000}._overlay_1s1em_1._closing_1s1em_12{animation:_fadeOut_1s1em_1 .25s ease-in-out forwards}@keyframes _fadeIn_1s1em_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeOut_1s1em_1{0%{opacity:1}to{opacity:0}}._bottomDrawer_1s1em_36{position:fixed;bottom:0;left:0;right:0;background-color:#fff;border-radius:16px 16px 0 0;z-index:2001;animation:_slideUp_1s1em_1 .35s cubic-bezier(.4,0,.2,1);padding:7px 15px 30px;transition:transform .2s cubic-bezier(.4,0,.2,1);touch-action:none}._closing_1s1em_12{animation:_slideDown_1s1em_1 .35s cubic-bezier(.4,0,.2,1) forwards}@keyframes _slideUp_1s1em_1{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes _slideDown_1s1em_1{0%{transform:translateY(0)}to{transform:translateY(100%)}}._drawerHeader_1s1em_74{display:flex;flex-direction:column;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;position:relative}._drawerHeader_1s1em_74:active{cursor:grabbing}._drawerIndicator_1s1em_87{width:40px;height:7px;background-color:#e5e7eb;border-radius:14px;position:absolute;left:50%;transform:translate(-50%);top:7px}._drawerContent_1s1em_98{max-height:70vh;overflow-y:auto;padding-top:15px;display:flex;flex-direction:column;gap:19px}._drawerHeader_1s1em_74 p{font-size:22px;font-family:Palanquin BMI Bold;margin:0;line-height:1.2}._closeButton_1s1em_114{cursor:pointer;display:flex;align-items:center;justify-content:end}._closeButton_1s1em_114>svg{background-color:#030c2419;border-radius:50%;padding:2px}
@@ -13,6 +13,7 @@ interface DrawerPortalProps {
13
13
  options: Option[];
14
14
  handleOptionClick: (option: Option) => void;
15
15
  countries?: boolean;
16
+ zIndex?: number;
16
17
  }
17
- export declare const DrawerPortal: ({ isOpen, handleClose, dragPosition, setDragPosition, isClosing, title, options, handleOptionClick, countries, }: DrawerPortalProps) => import('react').ReactPortal | null;
18
+ export declare const DrawerPortal: ({ isOpen, handleClose, dragPosition, setDragPosition, isClosing, title, options, handleOptionClick, countries, zIndex, }: DrawerPortalProps) => import('react').ReactPortal | null;
18
19
  export {};
@@ -1,85 +1,95 @@
1
- import { jsxs as n, Fragment as j, jsx as r } from "react/jsx-runtime";
2
- import { useRef as _ } from "react";
3
- import { r as N } from "../../index-CfzengA1.js";
4
- import { Icon as f } from "../../icons/icons.js";
5
- import { Image as E } from "../images/index.js";
6
- import '../../assets/index15.css';const D = "_overlay_tjb4r_1", Y = "_closing_tjb4r_12", C = "_bottomDrawer_tjb4r_36", L = "_drawerHeader_tjb4r_74", I = "_drawerIndicator_tjb4r_86", $ = "_drawerContent_tjb4r_93", x = "_optionCountry_tjb4r_102", B = "_optionNormal_tjb4r_103", H = "_options_tjb4r_124", k = "_closeButton_tjb4r_146", e = {
7
- overlay: D,
1
+ import { jsxs as a, Fragment as g, jsx as o } from "react/jsx-runtime";
2
+ import { useRef as E } from "react";
3
+ import { r as A } from "../../index-CfzengA1.js";
4
+ import { Icon as I } from "../../icons/icons.js";
5
+ import { Image as H } from "../images/index.js";
6
+ import '../../assets/index15.css';const B = "_overlay_zxyd8_1", Y = "_closing_zxyd8_11", f = "_bottomDrawer_zxyd8_35", z = "_drawerHeader_zxyd8_72", L = "_drawerIndicator_zxyd8_85", S = "_drawerContent_zxyd8_96", C = "_optionCountry_zxyd8_104", X = "_optionNormal_zxyd8_105", R = "_options_zxyd8_126", $ = "_closeButton_zxyd8_149", t = {
7
+ overlay: B,
8
8
  closing: Y,
9
- bottomDrawer: C,
10
- drawerHeader: L,
11
- drawerIndicator: I,
12
- drawerContent: $,
13
- optionCountry: x,
14
- optionNormal: B,
15
- options: H,
16
- closeButton: k
17
- }, T = ({
18
- isOpen: h,
9
+ bottomDrawer: f,
10
+ drawerHeader: z,
11
+ drawerIndicator: L,
12
+ drawerContent: S,
13
+ optionCountry: C,
14
+ optionNormal: X,
15
+ options: R,
16
+ closeButton: $
17
+ }, V = ({
18
+ isOpen: y,
19
19
  handleClose: s,
20
- dragPosition: p,
21
- setDragPosition: l,
22
- isClosing: m,
23
- title: w,
24
- options: b,
25
- handleOptionClick: g,
26
- countries: y
20
+ dragPosition: h,
21
+ setDragPosition: m,
22
+ isClosing: u,
23
+ title: p,
24
+ options: w,
25
+ handleOptionClick: x,
26
+ countries: D,
27
+ zIndex: d
27
28
  }) => {
28
- const d = _(0), i = _(0);
29
- if (!h) return null;
30
- const u = (t) => {
31
- const o = "touches" in t ? t.touches[0].clientY : t.clientY;
32
- d.current = o, i.current = o, document.addEventListener("mousemove", a), document.addEventListener("touchmove", a), document.addEventListener("mouseup", c), document.addEventListener("touchend", c);
33
- }, c = () => {
34
- document.removeEventListener("mousemove", a), document.removeEventListener("touchmove", a), document.removeEventListener("mouseup", c), document.removeEventListener("touchend", c), i.current - d.current > 100 ? s() : l(0);
35
- }, a = (t) => {
36
- const o = "touches" in t ? t.touches[0].clientY : t.clientY, v = o - d.current;
37
- i.current = o, v > 0 && l(v);
29
+ const N = d ? 50 : 70, l = E(0), i = E(0);
30
+ if (!y) return null;
31
+ const _ = (e) => {
32
+ const r = "touches" in e ? e.touches[0].clientY : e.clientY;
33
+ l.current = r, i.current = r, document.addEventListener("mousemove", c), document.addEventListener("touchmove", c), document.addEventListener("mouseup", n), document.addEventListener("touchend", n);
34
+ }, n = () => {
35
+ document.removeEventListener("mousemove", c), document.removeEventListener("touchmove", c), document.removeEventListener("mouseup", n), document.removeEventListener("touchend", n), i.current - l.current > 100 ? s() : m(0);
36
+ }, c = (e) => {
37
+ const r = "touches" in e ? e.touches[0].clientY : e.clientY, v = r - l.current;
38
+ i.current = r, v > 0 && m(v);
38
39
  };
39
- return N.createPortal(
40
- /* @__PURE__ */ n(j, { children: [
41
- /* @__PURE__ */ r(
40
+ return A.createPortal(
41
+ /* @__PURE__ */ a(g, { children: [
42
+ /* @__PURE__ */ o(
42
43
  "div",
43
44
  {
44
- className: `${e.overlay} ${m ? e.closing : ""}`,
45
+ style: { zIndex: 2e3 + (d || 0) },
46
+ className: `${t.overlay} ${u ? t.closing : ""}`,
45
47
  onClick: s
46
48
  }
47
49
  ),
48
- /* @__PURE__ */ n(
50
+ /* @__PURE__ */ a(
49
51
  "div",
50
52
  {
51
- className: `${e.bottomDrawer} ${m ? e.closing : ""}`,
52
- style: { transform: `translateY(${p}px)` },
53
+ className: `${t.bottomDrawer} ${u ? t.closing : ""}`,
54
+ style: {
55
+ transform: `translateY(${h ?? 0}px)`,
56
+ zIndex: 2001 + (d || 0)
57
+ },
53
58
  children: [
54
- /* @__PURE__ */ n(
55
- "div",
59
+ /* @__PURE__ */ a(
60
+ "header",
56
61
  {
57
- className: e.drawerHeader,
58
- onMouseDown: u,
59
- onTouchStart: u,
62
+ className: t.drawerHeader,
63
+ onMouseDown: _,
64
+ onTouchStart: _,
60
65
  children: [
61
- /* @__PURE__ */ r("div", { className: e.drawerIndicator }),
62
- /* @__PURE__ */ r("div", { className: e.closeButton, onClick: s, children: /* @__PURE__ */ r(f, { name: "Close", fill: "#030c2466" }) })
66
+ /* @__PURE__ */ o("div", { className: t.drawerIndicator }),
67
+ /* @__PURE__ */ o("div", { className: t.closeButton, onClick: s, children: /* @__PURE__ */ o(I, { name: "Close", fill: "#030c2466" }) }),
68
+ /* @__PURE__ */ o("p", { children: p })
63
69
  ]
64
70
  }
65
71
  ),
66
- /* @__PURE__ */ n("div", { className: e.drawerContent, children: [
67
- /* @__PURE__ */ r("p", { children: w }),
68
- /* @__PURE__ */ r("div", { className: e.options, children: b.map(
69
- (t) => t.hidden ? null : /* @__PURE__ */ n(
70
- "div",
71
- {
72
- className: `${y ? e.optionCountry : e.optionNormal}`,
73
- onClick: () => g(t),
74
- children: [
75
- t.image && /* @__PURE__ */ r(E, { width: 30, height: 30, src: t.image.src }),
76
- t.label
77
- ]
78
- },
79
- t.value
80
- )
81
- ) })
82
- ] })
72
+ /* @__PURE__ */ o(
73
+ "div",
74
+ {
75
+ className: t.drawerContent,
76
+ style: { maxHeight: `${N}vh` },
77
+ children: /* @__PURE__ */ o("div", { className: t.options, children: w.map(
78
+ (e) => e.hidden ? null : /* @__PURE__ */ a(
79
+ "div",
80
+ {
81
+ className: `${D ? t.optionCountry : t.optionNormal}`,
82
+ onClick: () => x(e),
83
+ children: [
84
+ e.image && /* @__PURE__ */ o(H, { width: 30, height: 30, src: e.image.src }),
85
+ e.label
86
+ ]
87
+ },
88
+ e.value
89
+ )
90
+ ) })
91
+ }
92
+ )
83
93
  ]
84
94
  }
85
95
  )
@@ -88,5 +98,5 @@ import '../../assets/index15.css';const D = "_overlay_tjb4r_1", Y = "_closing_tj
88
98
  );
89
99
  };
90
100
  export {
91
- T as DrawerPortal
101
+ V as DrawerPortal
92
102
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as s, Fragment as g, jsx as o } from "react/jsx-runtime";
2
- import { useRef as _ } from "react";
1
+ import { jsxs as m, Fragment as g, jsx as r } from "react/jsx-runtime";
2
+ import { useRef as w } from "react";
3
3
  import { r as p } from "../../index-CfzengA1.js";
4
4
  import { Icon as y } from "../../icons/icons.js";
5
- import '../../assets/index16.css';const D = "_overlay_5twvs_1", Y = "_closing_5twvs_12", L = "_bottomDrawer_5twvs_36", B = "_drawerHeader_5twvs_74", I = "_drawerIndicator_5twvs_86", N = "_drawerContent_5twvs_93", b = "_closeButton_5twvs_108", t = {
5
+ import '../../assets/index16.css';const D = "_overlay_1s1em_1", Y = "_closing_1s1em_12", L = "_bottomDrawer_1s1em_36", B = "_drawerHeader_1s1em_74", I = "_drawerIndicator_1s1em_87", N = "_drawerContent_1s1em_98", b = "_closeButton_1s1em_114", t = {
6
6
  overlay: D,
7
7
  closing: Y,
8
8
  bottomDrawer: L,
@@ -12,55 +12,53 @@ import '../../assets/index16.css';const D = "_overlay_5twvs_1", Y = "_closing_5t
12
12
  closeButton: b
13
13
  }, S = ({
14
14
  isOpen: h,
15
- handleClose: a,
15
+ handleClose: s,
16
16
  dragPosition: E,
17
17
  setDragPosition: l,
18
18
  isClosing: u,
19
19
  title: i,
20
20
  children: f
21
21
  }) => {
22
- const d = _(0), m = _(0);
22
+ const a = w(0), d = w(0);
23
23
  if (!h) return null;
24
24
  const v = (e) => {
25
- const r = "touches" in e ? e.touches[0].clientY : e.clientY;
26
- d.current = r, m.current = r, document.addEventListener("mousemove", c), document.addEventListener("touchmove", c), document.addEventListener("mouseup", n), document.addEventListener("touchend", n);
25
+ const o = "touches" in e ? e.touches[0].clientY : e.clientY;
26
+ a.current = o, d.current = o, document.addEventListener("mousemove", c), document.addEventListener("touchmove", c), document.addEventListener("mouseup", n), document.addEventListener("touchend", n);
27
27
  }, n = () => {
28
- document.removeEventListener("mousemove", c), document.removeEventListener("touchmove", c), document.removeEventListener("mouseup", n), document.removeEventListener("touchend", n), m.current - d.current > 100 ? a() : l(0);
28
+ document.removeEventListener("mousemove", c), document.removeEventListener("touchmove", c), document.removeEventListener("mouseup", n), document.removeEventListener("touchend", n), d.current - a.current > 100 ? s() : l(0);
29
29
  }, c = (e) => {
30
- const r = "touches" in e ? e.touches[0].clientY : e.clientY, w = r - d.current;
31
- m.current = r, w > 0 && l(w);
30
+ const o = "touches" in e ? e.touches[0].clientY : e.clientY, _ = o - a.current;
31
+ d.current = o, _ > 0 && l(_);
32
32
  };
33
33
  return p.createPortal(
34
- /* @__PURE__ */ s(g, { children: [
35
- /* @__PURE__ */ o(
34
+ /* @__PURE__ */ m(g, { children: [
35
+ /* @__PURE__ */ r(
36
36
  "div",
37
37
  {
38
38
  className: `${t.overlay} ${u ? t.closing : ""}`,
39
- onClick: a
39
+ onClick: s
40
40
  }
41
41
  ),
42
- /* @__PURE__ */ s(
42
+ /* @__PURE__ */ m(
43
43
  "div",
44
44
  {
45
45
  className: `${t.bottomDrawer} ${u ? t.closing : ""}`,
46
46
  style: { transform: `translateY(${E}px)` },
47
47
  children: [
48
- /* @__PURE__ */ s(
49
- "div",
48
+ /* @__PURE__ */ m(
49
+ "header",
50
50
  {
51
51
  className: t.drawerHeader,
52
52
  onMouseDown: v,
53
53
  onTouchStart: v,
54
54
  children: [
55
- /* @__PURE__ */ o("div", { className: t.drawerIndicator }),
56
- /* @__PURE__ */ o("div", { className: t.closeButton, onClick: a, children: /* @__PURE__ */ o(y, { name: "Close", fill: "#030c2466" }) })
55
+ /* @__PURE__ */ r("div", { className: t.drawerIndicator }),
56
+ /* @__PURE__ */ r("div", { className: t.closeButton, onClick: s, children: /* @__PURE__ */ r(y, { name: "Close", fill: "#030c2466" }) }),
57
+ i && /* @__PURE__ */ r("p", { children: i })
57
58
  ]
58
59
  }
59
60
  ),
60
- /* @__PURE__ */ s("div", { className: t.drawerContent, children: [
61
- i && /* @__PURE__ */ o("p", { children: i }),
62
- f
63
- ] })
61
+ /* @__PURE__ */ r("div", { className: t.drawerContent, children: f })
64
62
  ]
65
63
  }
66
64
  )
@@ -34,6 +34,7 @@ export interface SelectDrawerProps {
34
34
  selectProps?: SelectHTMLAttributes<HTMLSelectElement>;
35
35
  countries?: boolean;
36
36
  onChange?: (e: React.ChangeEvent<HTMLSelectElement>) => void;
37
+ zIndex?: number;
37
38
  }
38
39
  /**
39
40
  * Un componente de selección optimizado para móviles que abre un cajón inferior con opciones
@@ -63,4 +64,4 @@ export interface SelectDrawerProps {
63
64
  * - Personalizable con atributos HTML del select
64
65
  * - Previene el desplazamiento del fondo cuando está abierto
65
66
  */
66
- export declare function SelectDrawer({ options, selected, setSelected, title, countries, onChange, ...selectProps }: SelectDrawerProps): import("react/jsx-runtime").JSX.Element;
67
+ export declare function SelectDrawer({ options, selected, setSelected, title, countries, onChange, zIndex, ...selectProps }: SelectDrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,30 +1,31 @@
1
- import { jsxs as v, Fragment as x, jsx as t } from "react/jsx-runtime";
2
- import { Icon as E } from "../../icons/icons.js";
3
- import { useState as a, useRef as h, useEffect as O } from "react";
4
- import { Image as P } from "../images/index.js";
5
- import { DrawerPortal as R } from "../DrawerPortal/index.js";
6
- import '../../assets/index7.css';const j = "_selectDrawer_7os64_1", k = "_selected_7os64_6", w = {
7
- selectDrawer: j,
8
- selected: k
1
+ import { jsxs as v, Fragment as E, jsx as t } from "react/jsx-runtime";
2
+ import { Icon as O } from "../../icons/icons.js";
3
+ import { useState as a, useRef as h, 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/index7.css';const k = "_selectDrawer_7os64_1", N = "_selected_7os64_6", w = {
7
+ selectDrawer: k,
8
+ selected: N
9
9
  };
10
- function T({
10
+ function q({
11
11
  options: o,
12
12
  selected: r,
13
13
  setSelected: c,
14
14
  title: g,
15
15
  countries: p,
16
16
  onChange: i,
17
- ...y
17
+ zIndex: y,
18
+ ...b
18
19
  }) {
19
- const [s, u] = a(!1), [b, d] = a(!1), D = h(null), [_, f] = a(0), l = h(null);
20
- O(() => (s ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
20
+ const [s, u] = a(!1), [D, d] = a(!1), _ = h(null), [C, f] = a(0), l = h(null);
21
+ P(() => (s ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
21
22
  document.body.style.overflow = "";
22
23
  }), [s]);
23
24
  const m = () => {
24
25
  d(!0), setTimeout(() => {
25
26
  u(!1), d(!1), f(0);
26
27
  }, 350);
27
- }, C = (e) => {
28
+ }, I = (e) => {
28
29
  if (c(e), l.current) {
29
30
  l.current.value = e.value;
30
31
  const n = new Event("change", { bubbles: !0 });
@@ -32,42 +33,43 @@ function T({
32
33
  }
33
34
  m();
34
35
  };
35
- return /* @__PURE__ */ v(x, { children: [
36
+ return /* @__PURE__ */ v(E, { children: [
36
37
  /* @__PURE__ */ t(
37
38
  "select",
38
39
  {
39
40
  ref: l,
40
41
  value: r.value,
41
42
  onChange: (e) => {
42
- const n = o.find((I) => I.value === e.target.value);
43
+ const n = o.find((x) => x.value === e.target.value);
43
44
  n && c(n), i && i(e);
44
45
  },
45
46
  style: { display: "none" },
46
- ...y,
47
+ ...b,
47
48
  children: o.map((e) => /* @__PURE__ */ t("option", { value: e.value, children: e.label }, e.value))
48
49
  }
49
50
  ),
50
- /* @__PURE__ */ t("div", { ref: D, className: w.selectDrawer, children: /* @__PURE__ */ v("div", { className: w.selected, onClick: () => u(!s), children: [
51
- r.image && /* @__PURE__ */ t(P, { src: r.image.src, width: 30, height: 30 }),
51
+ /* @__PURE__ */ t("div", { ref: _, className: w.selectDrawer, children: /* @__PURE__ */ v("div", { className: w.selected, onClick: () => u(!s), children: [
52
+ r.image && /* @__PURE__ */ t(R, { src: r.image.src, width: 30, height: 30 }),
52
53
  /* @__PURE__ */ t("span", { children: r.label }),
53
- /* @__PURE__ */ t("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ t(E, { name: "ArrowDown" }) })
54
+ /* @__PURE__ */ t("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ t(O, { name: "ArrowDown" }) })
54
55
  ] }) }),
55
56
  /* @__PURE__ */ t(
56
- R,
57
+ j,
57
58
  {
58
59
  isOpen: s,
59
60
  handleClose: m,
60
- dragPosition: _,
61
+ dragPosition: C,
61
62
  setDragPosition: f,
62
- isClosing: b,
63
+ isClosing: D,
63
64
  title: g,
64
65
  options: o,
65
- handleOptionClick: C,
66
- countries: p
66
+ handleOptionClick: I,
67
+ countries: p,
68
+ zIndex: y
67
69
  }
68
70
  )
69
71
  ] });
70
72
  }
71
73
  export {
72
- T as SelectDrawer
74
+ q as SelectDrawer
73
75
  };
@@ -1,4 +1,4 @@
1
- export type IconName = "Exclamation" | "Email" | "Password" | "ShowEye" | "HideEye" | "ArrowDown" | "Search" | "Masculino" | "Femenino" | "Height" | "Weight" | "Smoke" | "SmokeOff" | "Upload" | "Telefono" | "EmailFill" | "Whatsapp" | "Close" | "Lock" | "Envelope" | "CollapseMenu" | "ExpandMenu" | "Notification" | "Users" | "Pagos" | "Impagos" | "Configuracion" | "LockPassword" | "Logout" | "AddCard" | "Add" | "Help" | "Unsubscribe" | "CheckCircle" | "Disable" | "Edit" | "Delete" | "Save" | "Eye" | "Mail" | "Resend" | "Reset" | "SwapVertical" | "Clip" | "Send" | "Trash" | "ReInit" | "CircleDolar" | "Sort" | "Pencil" | "Check" | "LogoBMINext" | "ArrowLeft" | "ArrowRight" | "AddDocument" | "Family" | "User" | "Carnet" | "Savings" | "History" | "Docs" | "Filters" | "DownloadDoc" | "Biometric" | "Aetna" | "BMI";
1
+ export type IconName = "Exclamation" | "Email" | "Password" | "ShowEye" | "HideEye" | "ArrowDown" | "Search" | "Masculino" | "Femenino" | "Height" | "Weight" | "Smoke" | "SmokeOff" | "Upload" | "Telefono" | "EmailFill" | "Whatsapp" | "Close" | "Lock" | "Envelope" | "CollapseMenu" | "ExpandMenu" | "Notification" | "Users" | "Pagos" | "Impagos" | "Configuracion" | "LockPassword" | "Logout" | "AddCard" | "Add" | "Help" | "Unsubscribe" | "CheckCircle" | "Disable" | "Edit" | "Delete" | "Save" | "Eye" | "Mail" | "Resend" | "Reset" | "SwapVertical" | "Clip" | "Send" | "Trash" | "ReInit" | "CircleDolar" | "Sort" | "Pencil" | "Check" | "LogoBMINext" | "ArrowLeft" | "ArrowRight" | "AddDocument" | "Family" | "User" | "Carnet" | "Savings" | "History" | "Docs" | "Filters" | "DownloadDoc" | "Biometric" | "Aetna" | "BMI" | "CircleDenied";
2
2
  interface IconProps {
3
3
  width?: number;
4
4
  height?: number;
@@ -74,4 +74,5 @@ export declare const DownloadDoc: React.FC<IconProps>;
74
74
  export declare const Biometric: React.FC<IconProps>;
75
75
  export declare const Aetna: React.FC<IconProps>;
76
76
  export declare const BMI: React.FC<IconProps>;
77
+ export declare const CircleDenied: React.FC<IconProps>;
77
78
  export {};
@@ -1,5 +1,5 @@
1
1
  import { jsx as a, jsxs as r } from "react/jsx-runtime";
2
- const g1 = ({
2
+ const k1 = ({
3
3
  name: s,
4
4
  width: e,
5
5
  height: c,
@@ -21,9 +21,9 @@ const g1 = ({
21
21
  case "Search":
22
22
  return /* @__PURE__ */ a(m, { width: e, height: c, fill: n });
23
23
  case "Masculino":
24
- return /* @__PURE__ */ a(p, { width: e, height: c, fill: n });
25
- case "Femenino":
26
24
  return /* @__PURE__ */ a(d, { width: e, height: c, fill: n });
25
+ case "Femenino":
26
+ return /* @__PURE__ */ a(p, { width: e, height: c, fill: n });
27
27
  case "Height":
28
28
  return /* @__PURE__ */ a(w, { width: e, height: c, fill: n });
29
29
  case "Weight":
@@ -41,13 +41,13 @@ const g1 = ({
41
41
  case "Whatsapp":
42
42
  return /* @__PURE__ */ a(y, { width: e, height: c, fill: n });
43
43
  case "Close":
44
- return /* @__PURE__ */ a(H, { width: e, height: c, fill: n });
44
+ return /* @__PURE__ */ a(C, { width: e, height: c, fill: n });
45
45
  case "Lock":
46
- return /* @__PURE__ */ a(C, { width: e, height: c });
46
+ return /* @__PURE__ */ a(H, { width: e, height: c });
47
47
  case "Envelope":
48
- return /* @__PURE__ */ a(A, { width: e, height: c });
49
- case "CollapseMenu":
50
48
  return /* @__PURE__ */ a(D, { width: e, height: c });
49
+ case "CollapseMenu":
50
+ return /* @__PURE__ */ a(A, { width: e, height: c });
51
51
  case "ExpandMenu":
52
52
  return /* @__PURE__ */ a(V, { width: e, height: c });
53
53
  case "Notification":
@@ -129,13 +129,15 @@ const g1 = ({
129
129
  case "Filters":
130
130
  return /* @__PURE__ */ a(m1, { width: e, height: c, fill: n });
131
131
  case "DownloadDoc":
132
- return /* @__PURE__ */ a(p1, { width: e, height: c, fill: n });
133
- case "Biometric":
134
132
  return /* @__PURE__ */ a(d1, { width: e, height: c, fill: n });
133
+ case "Biometric":
134
+ return /* @__PURE__ */ a(p1, { width: e, height: c, fill: n });
135
135
  case "BMI":
136
136
  return /* @__PURE__ */ a(z1, { width: e, height: c, fill: n });
137
137
  case "Aetna":
138
138
  return /* @__PURE__ */ a(w1, { width: e, height: c, fill: n });
139
+ case "CircleDenied":
140
+ return /* @__PURE__ */ a(u1, { width: e, height: c, fill: n });
139
141
  default:
140
142
  return null;
141
143
  }
@@ -284,7 +286,7 @@ const g1 = ({
284
286
  }
285
287
  )
286
288
  }
287
- ), p = ({
289
+ ), d = ({
288
290
  width: s = 70,
289
291
  height: e = 71,
290
292
  fill: c = "#749CFF"
@@ -304,7 +306,7 @@ const g1 = ({
304
306
  }
305
307
  )
306
308
  }
307
- ), d = ({
309
+ ), p = ({
308
310
  width: s = 56,
309
311
  height: e = 81,
310
312
  fill: c = "#749CFF"
@@ -486,7 +488,7 @@ const g1 = ({
486
488
  }
487
489
  )
488
490
  }
489
- ), H = ({
491
+ ), C = ({
490
492
  width: s = 26,
491
493
  height: e = 26,
492
494
  fill: c = "#2054A5"
@@ -506,7 +508,7 @@ const g1 = ({
506
508
  }
507
509
  )
508
510
  }
509
- ), C = ({ width: s = 53, height: e = 64 }) => /* @__PURE__ */ r(
511
+ ), H = ({ width: s = 53, height: e = 64 }) => /* @__PURE__ */ r(
510
512
  "svg",
511
513
  {
512
514
  width: s,
@@ -675,7 +677,7 @@ const g1 = ({
675
677
  ] })
676
678
  ]
677
679
  }
678
- ), A = ({ width: s = 97, height: e = 86 }) => /* @__PURE__ */ r(
680
+ ), D = ({ width: s = 97, height: e = 86 }) => /* @__PURE__ */ r(
679
681
  "svg",
680
682
  {
681
683
  width: s,
@@ -754,7 +756,7 @@ const g1 = ({
754
756
  ) }) })
755
757
  ]
756
758
  }
757
- ), D = ({
759
+ ), A = ({
758
760
  width: s = 25,
759
761
  height: e = 25
760
762
  }) => /* @__PURE__ */ r(
@@ -1482,7 +1484,7 @@ const g1 = ({
1482
1484
  ) })
1483
1485
  ]
1484
1486
  }
1485
- ), k1 = ({
1487
+ ), x1 = ({
1486
1488
  width: s = 20,
1487
1489
  height: e = 20,
1488
1490
  fill: c = "#749CFF"
@@ -2240,7 +2242,7 @@ const g1 = ({
2240
2242
  ) })
2241
2243
  ]
2242
2244
  }
2243
- ), p1 = ({
2245
+ ), d1 = ({
2244
2246
  width: s = 20,
2245
2247
  height: e = 20,
2246
2248
  fill: c = "#2054A5"
@@ -2275,7 +2277,7 @@ const g1 = ({
2275
2277
  ) })
2276
2278
  ]
2277
2279
  }
2278
- ), d1 = ({
2280
+ ), p1 = ({
2279
2281
  width: s = 20,
2280
2282
  height: e = 20,
2281
2283
  fill: c = "#2054A5"
@@ -2344,6 +2346,41 @@ const g1 = ({
2344
2346
  }
2345
2347
  )
2346
2348
  }
2349
+ ), u1 = ({
2350
+ width: s = 26,
2351
+ height: e = 26,
2352
+ fill: c = "#F64C71"
2353
+ }) => /* @__PURE__ */ r(
2354
+ "svg",
2355
+ {
2356
+ width: s,
2357
+ height: e,
2358
+ viewBox: "0 0 26 26",
2359
+ fill: "none",
2360
+ xmlns: "http://www.w3.org/2000/svg",
2361
+ children: [
2362
+ /* @__PURE__ */ a(
2363
+ "mask",
2364
+ {
2365
+ id: "xvtrndou3a",
2366
+ style: { maskType: "alpha" },
2367
+ maskUnits: "userSpaceOnUse",
2368
+ x: "0",
2369
+ y: "0",
2370
+ width: "26",
2371
+ height: "26",
2372
+ children: /* @__PURE__ */ a("path", { fill: "#D9D9D9", d: "M0 0h26v26H0z" })
2373
+ }
2374
+ ),
2375
+ /* @__PURE__ */ a("g", { mask: "url(#xvtrndou3a)", children: /* @__PURE__ */ a(
2376
+ "path",
2377
+ {
2378
+ d: "m13 14.452 3.038 3.037a.941.941 0 0 0 .726.301c.273-.011.515-.122.727-.334a1 1 0 0 0 .317-.726.995.995 0 0 0-.317-.725l-3.038-3.02L17.49 9.96a.995.995 0 0 0 .317-.725.999.999 0 0 0-.317-.726.999.999 0 0 0-.727-.318 1 1 0 0 0-.726.318L13 11.547 9.962 8.509c-.211-.212-.448-.318-.71-.318-.26 0-.497.106-.709.318a1 1 0 0 0-.317.726c0 .272.105.515.315.726L11.548 13 8.51 16.037c-.212.212-.312.448-.301.71.011.261.123.498.334.71a1 1 0 0 0 .726.316.995.995 0 0 0 .724-.315L13 14.452zm.008 9.167c-1.466 0-2.844-.276-4.134-.828a10.694 10.694 0 0 1-3.386-2.28 10.698 10.698 0 0 1-2.28-3.385 10.396 10.396 0 0 1-.828-4.14c0-1.47.276-2.846.829-4.127a10.737 10.737 0 0 1 2.28-3.372 10.698 10.698 0 0 1 3.384-2.28 10.395 10.395 0 0 1 4.14-.828c1.47 0 2.846.276 4.127.829a10.738 10.738 0 0 1 3.372 2.28 10.718 10.718 0 0 1 2.28 3.378c.552 1.284.828 2.66.828 4.126 0 1.465-.276 2.843-.829 4.133a10.695 10.695 0 0 1-2.28 3.386 10.716 10.716 0 0 1-3.377 2.28c-1.285.552-2.66.828-4.126.828zM13 21.371c2.33 0 4.308-.813 5.934-2.438 1.625-1.626 2.438-3.604 2.438-5.934s-.813-4.308-2.438-5.934C17.308 5.44 15.33 4.627 13 4.627s-4.308.813-5.934 2.438C5.441 8.691 4.628 10.67 4.628 13s.813 4.308 2.438 5.934C8.692 20.558 10.67 21.37 13 21.37z",
2379
+ fill: c
2380
+ }
2381
+ ) })
2382
+ ]
2383
+ }
2347
2384
  );
2348
2385
  export {
2349
2386
  K as Add,
@@ -2354,41 +2391,42 @@ export {
2354
2391
  n1 as ArrowLeft,
2355
2392
  r1 as ArrowRight,
2356
2393
  z1 as BMI,
2357
- d1 as Biometric,
2394
+ p1 as Biometric,
2358
2395
  h1 as Carnet,
2359
2396
  e1 as Check,
2360
2397
  j as CheckCircle,
2398
+ u1 as CircleDenied,
2361
2399
  _ as CircleDolar,
2362
2400
  Q as Clip,
2363
- H as Close,
2364
- D as CollapseMenu,
2401
+ C as Close,
2402
+ A as CollapseMenu,
2365
2403
  f as Configuracion,
2366
2404
  W as Delete,
2367
2405
  E as Disable,
2368
2406
  i1 as Docs,
2369
- p1 as DownloadDoc,
2407
+ d1 as DownloadDoc,
2370
2408
  P as Edit,
2371
2409
  t as Email,
2372
2410
  M as EmailFill,
2373
- A as Envelope,
2411
+ D as Envelope,
2374
2412
  l as Exclamation,
2375
2413
  V as ExpandMenu,
2376
2414
  I as Eye,
2377
2415
  l1 as Family,
2378
- d as Femenino,
2416
+ p as Femenino,
2379
2417
  m1 as Filters,
2380
2418
  w as Height,
2381
2419
  q as Help,
2382
2420
  o as HideEye,
2383
2421
  o1 as History,
2384
- g1 as Icon,
2422
+ k1 as Icon,
2385
2423
  B as Impagos,
2386
- C as Lock,
2424
+ H as Lock,
2387
2425
  S as LockPassword,
2388
2426
  s1 as LogoBMINext,
2389
2427
  O as Logout,
2390
2428
  N as Mail,
2391
- p as Masculino,
2429
+ d as Masculino,
2392
2430
  L as Notification,
2393
2431
  F as Pagos,
2394
2432
  h as Password,
@@ -2404,7 +2442,7 @@ export {
2404
2442
  u as Smoke,
2405
2443
  g as SmokeOff,
2406
2444
  $ as Sort,
2407
- k1 as SwapVertical,
2445
+ x1 as SwapVertical,
2408
2446
  x as Telefono,
2409
2447
  Y as Trash,
2410
2448
  b as Unsubscribe,
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.7",
4
+ "version": "1.0.9",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",