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.
package/dist/assets/index11.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
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}}
|
package/dist/assets/index8.css
CHANGED
|
@@ -1 +1 @@
|
|
|
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
|
|
2
|
-
import { useState as
|
|
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
|
|
5
|
-
import '../../assets/index11.css';const
|
|
6
|
-
languageSelector:
|
|
7
|
-
selectedButton:
|
|
8
|
-
countrySelected:
|
|
9
|
-
arrow:
|
|
10
|
-
open:
|
|
11
|
-
fullText:
|
|
12
|
-
shortText:
|
|
13
|
-
dropdown:
|
|
14
|
-
option:
|
|
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:
|
|
16
|
+
initialLanguage: s = "es",
|
|
17
17
|
onLanguageChange: r,
|
|
18
|
-
...
|
|
18
|
+
...w
|
|
19
19
|
}) => {
|
|
20
|
-
const [l, c] =
|
|
21
|
-
|
|
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
|
-
}, []),
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
},
|
|
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 =
|
|
37
|
-
return /* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
/* @__PURE__ */ t(
|
|
41
|
-
/* @__PURE__ */ t("span", { className: e.fullText, children:
|
|
42
|
-
/* @__PURE__ */ t("span", { className: e.shortText, children:
|
|
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(
|
|
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: () =>
|
|
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 = "
|
|
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:
|
|
6
|
-
},
|
|
5
|
+
checkIcon: k
|
|
6
|
+
}, x = ({
|
|
7
7
|
style: o,
|
|
8
8
|
...t
|
|
9
9
|
}) => /* @__PURE__ */ n("label", { children: [
|
|
10
|
-
/* @__PURE__ */ c(
|
|
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
|
-
|
|
31
|
+
x as NativeCheckbox
|
|
25
32
|
};
|
package/package.json
CHANGED