bmi-next 1.0.71 → 1.0.72

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
- ._languageSelector_1wuba_1{-webkit-user-select:none;user-select:none;position:relative;font-size:14px;line-height:20px;height:36px}._selectedButton_1wuba_9{display:flex;padding:8px 10px;align-items:center;justify-content:space-between;gap:6px;border-radius:12px;border:1px solid rgba(0,0,0,.2);background:#fff;cursor:pointer;height:100%;box-sizing:border-box}._countrySelected_1wuba_23{display:flex;justify-content:center;align-items:center;gap:4px}._arrow_1wuba_30{display:flex;justify-content:center;align-items:center;transition:transform .2s}._arrow_1wuba_30._open_1wuba_37{transform:rotate(-180deg)}._fullText_1wuba_41{display:inline}._shortText_1wuba_45{display:none}._dropdown_1wuba_49{position:absolute;top:100%;left:0;width:100%;background:#fff;display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(0,0,0,.2);margin-top:4px;z-index:10;overflow:hidden}._option_1wuba_65{display:flex;align-items:center;padding:8px 12px 8px 18px;height:38px;cursor:pointer;width:100%;transition:background-color .2s;box-sizing:border-box}._option_1wuba_65:hover{background-color:#0000000d}@media (max-width: 440px){._fullText_1wuba_41{display:none}._shortText_1wuba_45{display:inline}._option_1wuba_65{height:34px;padding:8px 12px;gap:6px}._selectedButton_1wuba_9{padding:11px 8px}._languageSelector_1wuba_1{height:30px;font-size:12px}}@media (max-width: 390px){._selectedButton_1wuba_9{padding:0;border:none}._countrySelected_1wuba_23{margin-left:auto}._option_1wuba_65{justify-content:center}}
1
+ ._languageSelector_1nwh9_1{-webkit-user-select:none;user-select:none;position:relative;font-size:14px;line-height:20px;height:36px}._selectedButton_1nwh9_9{display:flex;padding:8px 10px;align-items:center;justify-content:space-between;gap:6px;border-radius:12px;border:1px solid rgba(0,0,0,.2);background-color:#fff;cursor:pointer;height:100%;box-sizing:border-box}._countrySelected_1nwh9_23{display:flex;justify-content:center;align-items:center;gap:4px}._arrow_1nwh9_30{display:flex;justify-content:center;align-items:center;transition:transform .2s}._arrow_1nwh9_30._open_1nwh9_37{transform:rotate(-180deg)}._fullText_1nwh9_41{display:inline}._shortText_1nwh9_45{display:none}._dropdown_1nwh9_49{position:absolute;top:100%;left:0;width:100%;background-color:#fff;display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(0,0,0,.2);margin-top:4px;z-index:10;overflow:hidden}._option_1nwh9_65{display:flex;align-items:center;padding:8px 12px 8px 18px;height:38px;cursor:pointer;width:100%;transition:background-color .2s;box-sizing:border-box}._option_1nwh9_65:hover{background-color:#0000000d}@media (max-width: 440px){._fullText_1nwh9_41{display:none}._shortText_1nwh9_45{display:inline}._option_1nwh9_65{height:34px;padding:8px 12px;gap:6px}._selectedButton_1nwh9_9{padding:11px 8px}._languageSelector_1nwh9_1{height:30px;font-size:12px}}@media (max-width: 390px){._selectedButton_1nwh9_9{padding:0;border:none;background-color:transparent}._countrySelected_1nwh9_23{margin-left:auto}._option_1nwh9_65{justify-content:center}}
@@ -1 +1 @@
1
- ._nativeCheckboxInput_w4rbf_2{display:none}._customCheckbox_w4rbf_7{width:22px;height:22px;border:2px solid #1c1b1f;border-radius:4px;background-color:transparent;display:flex;align-items:center;justify-content:center;transition:background-color .2s,border-color .2s;position:relative;cursor:pointer}._checkIcon_w4rbf_24{width:16.5px;height:16.5px;opacity:0;transition:opacity .2s}._nativeCheckboxInput_w4rbf_2:checked+._customCheckbox_w4rbf_7{background-color:#2054a5;border-color:#2054a5}._nativeCheckboxInput_w4rbf_2:checked+._customCheckbox_w4rbf_7 ._checkIcon_w4rbf_24{opacity:1}
1
+ ._nativeCheckboxInput_1t7dk_2{display:none}._customCheckbox_1t7dk_7{box-sizing:border-box;width:18px;height:18px;border:1.5px solid #1c1b1f;border-radius:4px;background-color:transparent;display:flex;align-items:center;justify-content:center;transition:background-color .2s,border-color .2s;position:relative;cursor:pointer}._checkIcon_1t7dk_25{width:12.5px;height:12.5px;opacity:0;transition:opacity .2s}._nativeCheckboxInput_1t7dk_2:checked+._customCheckbox_1t7dk_7{background-color:#2054a5;border-color:#2054a5}._nativeCheckboxInput_1t7dk_2:checked+._customCheckbox_1t7dk_7 ._checkIcon_1t7dk_25{opacity:1}@media (max-width: 720px){._customCheckbox_1t7dk_7{width:16.5px;height:16.5px}}
@@ -1,53 +1,53 @@
1
- import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
- import { useState as _, useRef as x, useEffect as p } from "react";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { useState as u, useRef as x, useEffect as _ } from "react";
3
3
  import "../../index-BDcINW1T.js";
4
- import { Icon as w } from "../../icons/icons.js";
5
- import '../../assets/index11.css';const b = "_languageSelector_1wuba_1", N = "_selectedButton_1wuba_9", T = "_countrySelected_1wuba_23", v = "_arrow_1wuba_30", E = "_open_1wuba_37", y = "_fullText_1wuba_41", B = "_shortText_1wuba_45", k = "_dropdown_1wuba_49", I = "_option_1wuba_65", e = {
6
- languageSelector: b,
7
- selectedButton: N,
8
- countrySelected: T,
9
- arrow: v,
10
- open: E,
11
- fullText: y,
12
- shortText: B,
13
- dropdown: k,
14
- option: I
4
+ import { Icon as p } from "../../icons/icons.js";
5
+ import '../../assets/index11.css';const N = "_languageSelector_1nwh9_1", T = "_selectedButton_1nwh9_9", v = "_countrySelected_1nwh9_23", E = "_arrow_1nwh9_30", y = "_open_1nwh9_37", B = "_fullText_1nwh9_41", k = "_shortText_1nwh9_45", I = "_dropdown_1nwh9_49", O = "_option_1nwh9_65", e = {
6
+ languageSelector: N,
7
+ selectedButton: T,
8
+ countrySelected: v,
9
+ arrow: E,
10
+ open: y,
11
+ fullText: B,
12
+ shortText: k,
13
+ dropdown: I,
14
+ option: O
15
15
  }, A = ({
16
- initialLanguage: n = "es",
16
+ initialLanguage: s = "es",
17
17
  onLanguageChange: r,
18
- ...m
18
+ ...w
19
19
  }) => {
20
- const [l, c] = _(!1), [s, u] = _(n), d = x(null);
21
- p(() => {
20
+ const [l, c] = u(!1), [n, a] = u(s), d = x(null);
21
+ _(() => {
22
22
  const o = (S) => {
23
23
  d.current && !d.current.contains(S.target) && c(!1);
24
24
  };
25
25
  return document.addEventListener("mousedown", o), () => {
26
26
  document.removeEventListener("mousedown", o);
27
27
  };
28
- }, []), p(() => {
29
- u(n);
30
- }, [n]);
31
- const h = (o) => {
32
- u(o), r == null || r(o), c(!1);
33
- }, i = {
28
+ }, []), _(() => {
29
+ a(s);
30
+ }, [s]);
31
+ const m = (o) => {
32
+ a(o), r == null || r(o), c(!1);
33
+ }, h = {
34
34
  es: { full: "Español", short: "ES" },
35
35
  en: { full: "English", short: "EN" }
36
- }, f = s === "es" ? "Inglés" : "Spanish";
37
- return /* @__PURE__ */ a("div", { ref: d, className: e.languageSelector, ...m, children: [
38
- /* @__PURE__ */ a("div", { className: e.selectedButton, onClick: () => c(!l), children: [
39
- /* @__PURE__ */ a("div", { className: e.countrySelected, children: [
40
- /* @__PURE__ */ t(w, { name: "Planet", width: 16, height: 16 }),
41
- /* @__PURE__ */ t("span", { className: e.fullText, children: i[s].full }),
42
- /* @__PURE__ */ t("span", { className: e.shortText, children: i[s].short })
36
+ }, f = n === "es" ? "Inglés" : "Spanish";
37
+ return /* @__PURE__ */ i("div", { ref: d, className: e.languageSelector, ...w, children: [
38
+ /* @__PURE__ */ i("div", { className: e.selectedButton, onClick: () => c(!l), children: [
39
+ /* @__PURE__ */ i("div", { className: e.countrySelected, children: [
40
+ /* @__PURE__ */ t(p, { name: "Planet", width: 16, height: 16 }),
41
+ /* @__PURE__ */ t("span", { className: e.fullText, children: h[n].full }),
42
+ /* @__PURE__ */ t("span", { className: e.shortText, children: h[n].short })
43
43
  ] }),
44
- /* @__PURE__ */ t("div", { className: `${e.arrow} ${l && e.open}`, children: /* @__PURE__ */ t(w, { name: "KeyboardArrowDown", width: 12, height: 16, fill: "#000" }) })
44
+ /* @__PURE__ */ t("div", { className: `${e.arrow} ${l && e.open}`, children: /* @__PURE__ */ t(p, { name: "KeyboardArrowDown", width: 12, height: 16, fill: "#000" }) })
45
45
  ] }),
46
46
  l && /* @__PURE__ */ t("div", { className: e.dropdown, children: /* @__PURE__ */ t(
47
47
  "li",
48
48
  {
49
49
  className: e.option,
50
- onClick: () => h(s === "es" ? "en" : "es"),
50
+ onClick: () => m(n === "es" ? "en" : "es"),
51
51
  children: f
52
52
  }
53
53
  ) })
@@ -1,13 +1,20 @@
1
1
  import { jsxs as n, jsx as c } from "react/jsx-runtime";
2
- import '../../assets/index8.css';const s = "_nativeCheckboxInput_w4rbf_2", h = "_customCheckbox_w4rbf_7", i = "_checkIcon_w4rbf_24", e = {
2
+ import '../../assets/index8.css';const s = "_nativeCheckboxInput_1t7dk_2", h = "_customCheckbox_1t7dk_7", k = "_checkIcon_1t7dk_25", e = {
3
3
  nativeCheckboxInput: s,
4
4
  customCheckbox: h,
5
- checkIcon: i
6
- }, b = ({
5
+ checkIcon: k
6
+ }, x = ({
7
7
  style: o,
8
8
  ...t
9
9
  }) => /* @__PURE__ */ n("label", { children: [
10
- /* @__PURE__ */ c("input", { type: "checkbox", className: e.nativeCheckboxInput, ...t }),
10
+ /* @__PURE__ */ c(
11
+ "input",
12
+ {
13
+ type: "checkbox",
14
+ className: e.nativeCheckboxInput,
15
+ ...t
16
+ }
17
+ ),
11
18
  /* @__PURE__ */ c("span", { className: e.customCheckbox, style: o, children: /* @__PURE__ */ c(
12
19
  "svg",
13
20
  {
@@ -21,5 +28,5 @@ import '../../assets/index8.css';const s = "_nativeCheckboxInput_w4rbf_2", h = "
21
28
  ) })
22
29
  ] });
23
30
  export {
24
- b as NativeCheckbox
31
+ x as NativeCheckbox
25
32
  };
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.71",
4
+ "version": "1.0.72",
5
5
  "author": "David Fernández Bolaños <david@bmiahorro.com>",
6
6
  "contributors": [
7
7
  "Jorge Martín <jorge@bmiahorro.com>",