bmi-next 1.0.37 → 1.0.39

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.
@@ -8,6 +8,7 @@ interface NavProps extends React.HTMLAttributes<HTMLDivElement> {
8
8
  style?: React.CSSProperties;
9
9
  logo?: boolean;
10
10
  className?: string;
11
+ desktop?: boolean;
11
12
  }
12
13
  /**
13
14
  * Navbar component for displaying navigation with progress and steps.
@@ -1,37 +1,38 @@
1
- import { jsxs as o, jsx as n } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
2
  import "../../index-Cp_B-Y3h.js";
3
- import { Icon as a } from "../../icons/icons.js";
3
+ import { Icon as o } from "../../icons/icons.js";
4
4
  import "react";
5
- import '../../assets/index4.css';const m = "_containerNavbar_1m98h_1", b = "_navbar_1m98h_12", u = "_backButton_1m98h_22", v = "_progressContainer_1m98h_30", t = {
6
- containerNavbar: m,
7
- navbar: b,
8
- backButton: u,
9
- progressContainer: v
10
- }, f = ({
5
+ import '../../assets/index4.css';const b = "_containerNavbar_1m98h_1", u = "_navbar_1m98h_12", v = "_backButton_1m98h_22", x = "_progressContainer_1m98h_30", t = {
6
+ containerNavbar: b,
7
+ navbar: u,
8
+ backButton: v,
9
+ progressContainer: x
10
+ }, w = ({
11
11
  progress: r,
12
- handleBack: i,
12
+ handleBack: a,
13
13
  first: c,
14
14
  title: e,
15
15
  style: d,
16
16
  className: s,
17
17
  logo: h = !0,
18
- ...l
18
+ desktop: l = !1,
19
+ ...p
19
20
  }) => {
20
- const p = () => {
21
- if (i) {
22
- i();
21
+ const m = () => {
22
+ if (a) {
23
+ a();
23
24
  return;
24
25
  }
25
26
  };
26
- return /* @__PURE__ */ o(
27
+ return /* @__PURE__ */ i(
27
28
  "nav",
28
29
  {
29
30
  className: `${t.containerNavbar} ${s || ""}`,
30
31
  style: d,
31
- ...l,
32
+ ...p,
32
33
  children: [
33
- /* @__PURE__ */ o("div", { className: t.navbar, children: [
34
- c ? /* @__PURE__ */ n("span", { onClick: p, className: t.backButton, children: /* @__PURE__ */ n(a, { name: "Close", width: 33, height: 33 }) }) : /* @__PURE__ */ n("span", { onClick: i, className: t.backButton, children: /* @__PURE__ */ n(a, { name: "ArrowLeft", width: 27, height: 27 }) }),
34
+ /* @__PURE__ */ i("div", { className: t.navbar, children: [
35
+ c ? /* @__PURE__ */ n("span", { onClick: m, className: t.backButton, children: /* @__PURE__ */ n(o, { name: "Close", width: 33, height: 33 }) }) : /* @__PURE__ */ n("span", { onClick: a, className: t.backButton, children: /* @__PURE__ */ n(o, { name: "ArrowLeft", width: 27, height: 27 }) }),
35
36
  /* @__PURE__ */ n("div", { children: e ? /* @__PURE__ */ n(
36
37
  "p",
37
38
  {
@@ -42,13 +43,13 @@ import '../../assets/index4.css';const m = "_containerNavbar_1m98h_1", b = "_nav
42
43
  },
43
44
  children: e
44
45
  }
45
- ) : h && /* @__PURE__ */ n("div", { style: { marginTop: "15px", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ n(a, { name: "LogoBMIHorizontal", width: 135, height: 28 }) }) })
46
+ ) : h && /* @__PURE__ */ n("div", { style: { marginTop: "15px", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ n(o, { name: "LogoBMIHorizontal", width: 135, height: 28 }) }) })
46
47
  ] }),
47
- r && /* @__PURE__ */ o(
48
+ r && /* @__PURE__ */ i(
48
49
  "div",
49
50
  {
50
51
  className: t.progressContainer,
51
- style: { width: "93%", margin: "0 auto" },
52
+ style: { width: l ? "100%" : "93%", margin: "0 auto" },
52
53
  children: [
53
54
  /* @__PURE__ */ n(
54
55
  "div",
@@ -82,5 +83,5 @@ import '../../assets/index4.css';const m = "_containerNavbar_1m98h_1", b = "_nav
82
83
  );
83
84
  };
84
85
  export {
85
- f as Navbar
86
+ w as Navbar
86
87
  };
@@ -77,7 +77,7 @@ function Q({
77
77
  ] }),
78
78
  /* @__PURE__ */ n("div", { style: { marginLeft: "auto" }, children: /* @__PURE__ */ n(D, { name: "ArrowDown" }) })
79
79
  ] }),
80
- c && /* @__PURE__ */ n("div", { className: a.desktopDropdown, children: i.map((e) => /* @__PURE__ */ t(
80
+ c && /* @__PURE__ */ n("div", { className: a.desktopDropdown, children: i.filter((e) => !e.hidden).map((e) => /* @__PURE__ */ t(
81
81
  "div",
82
82
  {
83
83
  className: a.desktopOption,
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.37",
4
+ "version": "1.0.39",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",