bmi-next 1.0.2 → 1.0.4

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
- ._selectDrawer_3w5dw_1{position:relative;width:100%}._selected_3w5dw_6{border-radius:16px;display:flex;gap:14px;border:1px solid rgba(3,12,36,.2);padding-left:22px;padding-right:5px;height:52px;box-sizing:border-box;background-color:#fff;cursor:pointer;align-items:center;font-size:19px;font-family:Palanquin BMI;line-height:1}._selected_3w5dw_6>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;align-content:center}
1
+ ._selectDrawer_7os64_1{position:relative;width:100%}._selected_7os64_6{border-radius:16px;display:flex;gap:14px;border:1px solid rgba(3,12,36,.2);padding-left:22px;padding-right:5px;height:52px;box-sizing:border-box;background-color:#fff;cursor:pointer;align-items:center;font-size:19px;font-family:Palanquin BMI;line-height:1}._selected_7os64_6>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:100%;display:flex;align-items:center}
@@ -1,18 +1,18 @@
1
- import { jsxs as r, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as a, jsx as n } from "react/jsx-runtime";
2
2
  import "../../index-Cb7Kc3pQ.js";
3
3
  import "react";
4
- import { Icon as e } from "../../icons/icons.js";
4
+ import { Icon as r } from "../../icons/icons.js";
5
5
  import { useIsMobile as b } from "../../hooks/useIsMobile.js";
6
6
  import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_navbar_1q6yo_12", x = "_backButton_1q6yo_22", g = "_progressContainer_1q6yo_30", o = {
7
7
  containerNavbar: u,
8
8
  navbar: v,
9
9
  backButton: x,
10
10
  progressContainer: g
11
- }, f = ({
12
- progress: a,
11
+ }, C = ({
12
+ progress: t,
13
13
  handleBack: i,
14
- first: s,
15
- title: c,
14
+ first: c,
15
+ title: e,
16
16
  style: d,
17
17
  className: l,
18
18
  logo: h = !0,
@@ -23,18 +23,17 @@ import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_na
23
23
  i();
24
24
  return;
25
25
  }
26
- }, t = b("(max-width: 906px)");
27
- return /* @__PURE__ */ r(
26
+ }, s = b("(max-width: 906px)");
27
+ return /* @__PURE__ */ a(
28
28
  "nav",
29
29
  {
30
30
  className: `${o.containerNavbar} ${l}`,
31
31
  style: d,
32
32
  ...p,
33
33
  children: [
34
- /* @__PURE__ */ r("div", { className: o.navbar, children: [
35
- !s && t && /* @__PURE__ */ n("span", { onClick: i, className: o.backButton, children: /* @__PURE__ */ n(e, { name: "ArrowLeft", width: 27, height: 27 }) }),
36
- s && t && /* @__PURE__ */ n("span", { onClick: m, className: o.backButton, children: /* @__PURE__ */ n(e, { name: "Close", width: 33, height: 33 }) }),
37
- /* @__PURE__ */ n("div", { children: c ? /* @__PURE__ */ n(
34
+ /* @__PURE__ */ a("div", { className: o.navbar, children: [
35
+ c ? /* @__PURE__ */ n("span", { onClick: m, className: o.backButton, children: /* @__PURE__ */ n(r, { name: "Close", width: 33, height: 33 }) }) : /* @__PURE__ */ n("span", { onClick: i, className: o.backButton, children: /* @__PURE__ */ n(r, { name: "ArrowLeft", width: 27, height: 27 }) }),
36
+ /* @__PURE__ */ n("div", { children: e ? /* @__PURE__ */ n(
38
37
  "p",
39
38
  {
40
39
  style: {
@@ -43,18 +42,18 @@ import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_na
43
42
  fontFamily: "Palanquin BMI Bold",
44
43
  color: "#2054A5"
45
44
  },
46
- children: c
45
+ children: e
47
46
  }
48
47
  ) : h && /* @__PURE__ */ n("div", { style: { marginTop: "15px" }, children: /* @__PURE__ */ n(
49
- e,
48
+ r,
50
49
  {
51
50
  name: "LogoBMINext",
52
- width: t ? 60 : 83,
53
- height: t ? 36 : 50
51
+ width: s ? 60 : 83,
52
+ height: s ? 36 : 50
54
53
  }
55
54
  ) }) })
56
55
  ] }),
57
- a && /* @__PURE__ */ r(
56
+ t && /* @__PURE__ */ a(
58
57
  "div",
59
58
  {
60
59
  className: o.progressContainer,
@@ -65,8 +64,8 @@ import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_na
65
64
  {
66
65
  style: {
67
66
  height: "5px",
68
- backgroundColor: "#c9f3f7",
69
- width: `${a}%`,
67
+ backgroundColor: "#45c2d6",
68
+ width: `${t}%`,
70
69
  transition: "width 0.3s ease-in-out",
71
70
  borderRadius: "9px 0 0 9px"
72
71
  }
@@ -77,8 +76,8 @@ import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_na
77
76
  {
78
77
  style: {
79
78
  height: "5px",
80
- backgroundColor: "#45c2d6",
81
- width: `${100 - a}%`,
79
+ backgroundColor: "#c9f3f7",
80
+ width: `${100 - t}%`,
82
81
  transition: "width 0.3s ease-in-out",
83
82
  borderRadius: "0 9px 9px 0"
84
83
  }
@@ -92,5 +91,5 @@ import '../../assets/index13.css';const u = "_containerNavbar_1q6yo_1", v = "_na
92
91
  );
93
92
  };
94
93
  export {
95
- f as Navbar
94
+ C as Navbar
96
95
  };
@@ -1,9 +1,9 @@
1
1
  import { jsxs as v, Fragment as x, jsx as t } from "react/jsx-runtime";
2
2
  import { Icon as E } from "../../icons/icons.js";
3
- import { useState as a, useRef as w, useEffect as O } from "react";
3
+ import { useState as a, useRef as h, useEffect as O } from "react";
4
4
  import { Image as P } from "../images/index.js";
5
5
  import { DrawerPortal as R } from "../DrawerPortal/index.js";
6
- import '../../assets/index8.css';const j = "_selectDrawer_3w5dw_1", k = "_selected_3w5dw_6", h = {
6
+ import '../../assets/index8.css';const j = "_selectDrawer_7os64_1", k = "_selected_7os64_6", w = {
7
7
  selectDrawer: j,
8
8
  selected: k
9
9
  };
@@ -16,19 +16,19 @@ function T({
16
16
  onChange: i,
17
17
  ...y
18
18
  }) {
19
- const [l, d] = a(!1), [b, u] = a(!1), D = w(null), [_, f] = a(0), s = w(null);
20
- O(() => (l ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
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 = "", () => {
21
21
  document.body.style.overflow = "";
22
- }), [l]);
22
+ }), [s]);
23
23
  const m = () => {
24
- u(!0), setTimeout(() => {
25
- d(!1), u(!1), f(0);
24
+ d(!0), setTimeout(() => {
25
+ u(!1), d(!1), f(0);
26
26
  }, 350);
27
27
  }, C = (e) => {
28
- if (c(e), s.current) {
29
- s.current.value = e.value;
28
+ if (c(e), l.current) {
29
+ l.current.value = e.value;
30
30
  const n = new Event("change", { bubbles: !0 });
31
- s.current.dispatchEvent(n);
31
+ l.current.dispatchEvent(n);
32
32
  }
33
33
  m();
34
34
  };
@@ -36,7 +36,7 @@ function T({
36
36
  /* @__PURE__ */ t(
37
37
  "select",
38
38
  {
39
- ref: s,
39
+ ref: l,
40
40
  value: r.value,
41
41
  onChange: (e) => {
42
42
  const n = o.find((I) => I.value === e.target.value);
@@ -47,7 +47,7 @@ function T({
47
47
  children: o.map((e) => /* @__PURE__ */ t("option", { value: e.value, children: e.label }, e.value))
48
48
  }
49
49
  ),
50
- /* @__PURE__ */ t("div", { ref: D, className: h.selectDrawer, children: /* @__PURE__ */ v("div", { className: h.selected, onClick: () => d(!l), children: [
50
+ /* @__PURE__ */ t("div", { ref: D, className: w.selectDrawer, children: /* @__PURE__ */ v("div", { className: w.selected, onClick: () => u(!s), children: [
51
51
  r.image && /* @__PURE__ */ t(P, { src: r.image.src, width: 30, height: 30 }),
52
52
  /* @__PURE__ */ t("span", { children: r.label }),
53
53
  /* @__PURE__ */ t("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ t(E, { name: "ArrowDown" }) })
@@ -55,7 +55,7 @@ function T({
55
55
  /* @__PURE__ */ t(
56
56
  R,
57
57
  {
58
- isOpen: l,
58
+ isOpen: s,
59
59
  handleClose: m,
60
60
  dragPosition: _,
61
61
  setDragPosition: f,
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.2",
4
+ "version": "1.0.4",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",