bmi-next 1.0.0
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/README.md +2 -0
- package/dist/Contratacion.module-DVSWILuV.js +26 -0
- package/dist/assets/Contratacion.css +1 -0
- package/dist/assets/constantes.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/index10.css +1 -0
- package/dist/assets/index11.css +1 -0
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index14.css +1 -0
- package/dist/assets/index15.css +1 -0
- package/dist/assets/index16.css +1 -0
- package/dist/assets/index17.css +1 -0
- package/dist/assets/index18.css +1 -0
- package/dist/assets/index19.css +1 -0
- package/dist/assets/index2.css +1 -0
- package/dist/assets/index20.css +1 -0
- package/dist/assets/index21.css +1 -0
- package/dist/assets/index22.css +1 -0
- package/dist/assets/index23.css +1 -0
- package/dist/assets/index24.css +1 -0
- package/dist/assets/index3.css +1 -0
- package/dist/assets/index4.css +1 -0
- package/dist/assets/index5.css +1 -0
- package/dist/assets/index6.css +1 -0
- package/dist/assets/index7.css +1 -0
- package/dist/assets/index8.css +1 -0
- package/dist/assets/index9.css +1 -0
- package/dist/assets/styles.css +1 -0
- package/dist/components/Alert/index.d.ts +64 -0
- package/dist/components/Alert/index.js +50 -0
- package/dist/components/Button/index.d.ts +37 -0
- package/dist/components/Button/index.js +61 -0
- package/dist/components/Checkbox/index.d.ts +20 -0
- package/dist/components/Checkbox/index.js +16 -0
- package/dist/components/ContratacionPage/Link.d.ts +9 -0
- package/dist/components/ContratacionPage/Link.js +19 -0
- package/dist/components/ContratacionPage/SelectorA/303/261osCobertura.d.ts +8 -0
- package/dist/components/ContratacionPage/SelectorA/303/261osCobertura.js +44 -0
- package/dist/components/ContratacionPage/Slider.d.ts +9 -0
- package/dist/components/ContratacionPage/Slider.js +32 -0
- package/dist/components/ContratacionPage/index.d.ts +24 -0
- package/dist/components/ContratacionPage/index.js +460 -0
- package/dist/components/DatePicker/index.d.ts +16 -0
- package/dist/components/DatePicker/index.js +169 -0
- package/dist/components/Drawer/index.d.ts +39 -0
- package/dist/components/Drawer/index.js +27 -0
- package/dist/components/DrawerPortal/index.d.ts +18 -0
- package/dist/components/DrawerPortal/index.js +92 -0
- package/dist/components/DrawerPortalBase/index.d.ts +16 -0
- package/dist/components/DrawerPortalBase/index.js +73 -0
- package/dist/components/ExclusionPage/constantes.d.ts +7 -0
- package/dist/components/ExclusionPage/constantes.js +5 -0
- package/dist/components/ExclusionPage/index.d.ts +14 -0
- package/dist/components/ExclusionPage/index.js +61 -0
- package/dist/components/ExclusionPage/texto.d.ts +4 -0
- package/dist/components/ExclusionPage/texto.js +11 -0
- package/dist/components/FakeLoader/index.d.ts +5 -0
- package/dist/components/FakeLoader/index.js +16 -0
- package/dist/components/FieldError/index.d.ts +19 -0
- package/dist/components/FieldError/index.js +11 -0
- package/dist/components/Input/index.d.ts +47 -0
- package/dist/components/Input/index.js +67 -0
- package/dist/components/Label/index.d.ts +23 -0
- package/dist/components/Label/index.js +16 -0
- package/dist/components/Navbar/index.d.ts +34 -0
- package/dist/components/Navbar/index.js +88 -0
- package/dist/components/PasswordVisibility/index.d.ts +28 -0
- package/dist/components/PasswordVisibility/index.js +14 -0
- package/dist/components/Popup/index.d.ts +53 -0
- package/dist/components/Popup/index.js +26 -0
- package/dist/components/Radio/index.d.ts +27 -0
- package/dist/components/Radio/index.js +17 -0
- package/dist/components/Search/index.d.ts +53 -0
- package/dist/components/Search/index.js +82 -0
- package/dist/components/Select/index.d.ts +54 -0
- package/dist/components/Select/index.js +98 -0
- package/dist/components/SelectDrawer/index.d.ts +66 -0
- package/dist/components/SelectDrawer/index.js +73 -0
- package/dist/components/Spinner/index.d.ts +1 -0
- package/dist/components/Spinner/index.js +8 -0
- package/dist/components/Steps/index.d.ts +36 -0
- package/dist/components/Steps/index.js +136 -0
- package/dist/components/TextArea/index.d.ts +37 -0
- package/dist/components/TextArea/index.js +64 -0
- package/dist/components/h1/index.d.ts +8 -0
- package/dist/components/h1/index.js +11 -0
- package/dist/components/h2/index.d.ts +8 -0
- package/dist/components/h2/index.js +11 -0
- package/dist/components/h3/index.d.ts +8 -0
- package/dist/components/h3/index.js +11 -0
- package/dist/components/h4/index.d.ts +8 -0
- package/dist/components/h4/index.js +11 -0
- package/dist/components/h5/index.d.ts +8 -0
- package/dist/components/h5/index.js +11 -0
- package/dist/components/images/index.d.ts +7 -0
- package/dist/components/images/index.js +5 -0
- package/dist/constantes-PXVssL1x.js +52 -0
- package/dist/hooks/useIsMobile.d.ts +20 -0
- package/dist/hooks/useIsMobile.js +17 -0
- package/dist/icons/icons.d.ts +104 -0
- package/dist/icons/icons.js +4216 -0
- package/dist/index-Cb7Kc3pQ.js +19065 -0
- package/dist/main.d.ts +27 -0
- package/dist/main.js +57 -0
- package/dist/styles.module-Cv_LNFFk.js +6 -0
- package/package.json +54 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
+
import { useState as r, useEffect as a } from "react";
|
|
3
|
+
import { DrawerPortalBase as u } from "../DrawerPortalBase/index.js";
|
|
4
|
+
function g({ isOpen: e, onClose: s, title: l, children: n }) {
|
|
5
|
+
const [i, o] = r(!1), [d, t] = r(0);
|
|
6
|
+
return a(() => (e ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
7
|
+
document.body.style.overflow = "";
|
|
8
|
+
}), [e]), /* @__PURE__ */ f(
|
|
9
|
+
u,
|
|
10
|
+
{
|
|
11
|
+
isOpen: e,
|
|
12
|
+
handleClose: () => {
|
|
13
|
+
o(!0), setTimeout(() => {
|
|
14
|
+
s(), o(!1), t(0);
|
|
15
|
+
}, 350);
|
|
16
|
+
},
|
|
17
|
+
dragPosition: d,
|
|
18
|
+
setDragPosition: t,
|
|
19
|
+
isClosing: i,
|
|
20
|
+
title: l || void 0,
|
|
21
|
+
children: n
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
g as Drawer
|
|
27
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Option } from '../SelectDrawer';
|
|
2
|
+
/**
|
|
3
|
+
* Props para el componente DrawerPortal
|
|
4
|
+
* @interface DrawerPortalProps
|
|
5
|
+
*/
|
|
6
|
+
interface DrawerPortalProps {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
dragPosition: number;
|
|
10
|
+
setDragPosition: (position: number) => void;
|
|
11
|
+
isClosing: boolean;
|
|
12
|
+
title: string;
|
|
13
|
+
options: Option[];
|
|
14
|
+
handleOptionClick: (option: Option) => void;
|
|
15
|
+
countries?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const DrawerPortal: ({ isOpen, handleClose, dragPosition, setDragPosition, isClosing, title, options, handleOptionClick, countries, }: DrawerPortalProps) => import('react').ReactPortal | null;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,92 @@
|
|
|
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-Cb7Kc3pQ.js";
|
|
4
|
+
import { Icon as f } from "../../icons/icons.js";
|
|
5
|
+
import { Image as E } from "../images/index.js";
|
|
6
|
+
import '../../assets/index16.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,
|
|
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,
|
|
19
|
+
handleClose: s,
|
|
20
|
+
dragPosition: p,
|
|
21
|
+
setDragPosition: l,
|
|
22
|
+
isClosing: m,
|
|
23
|
+
title: w,
|
|
24
|
+
options: b,
|
|
25
|
+
handleOptionClick: g,
|
|
26
|
+
countries: y
|
|
27
|
+
}) => {
|
|
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);
|
|
38
|
+
};
|
|
39
|
+
return N.createPortal(
|
|
40
|
+
/* @__PURE__ */ n(j, { children: [
|
|
41
|
+
/* @__PURE__ */ r(
|
|
42
|
+
"div",
|
|
43
|
+
{
|
|
44
|
+
className: `${e.overlay} ${m ? e.closing : ""}`,
|
|
45
|
+
onClick: s
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ n(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: `${e.bottomDrawer} ${m ? e.closing : ""}`,
|
|
52
|
+
style: { transform: `translateY(${p}px)` },
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ n(
|
|
55
|
+
"div",
|
|
56
|
+
{
|
|
57
|
+
className: e.drawerHeader,
|
|
58
|
+
onMouseDown: u,
|
|
59
|
+
onTouchStart: u,
|
|
60
|
+
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" }) })
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
),
|
|
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
|
+
] })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
86
|
+
] }),
|
|
87
|
+
document.getElementById("root") || document.body
|
|
88
|
+
);
|
|
89
|
+
};
|
|
90
|
+
export {
|
|
91
|
+
T as DrawerPortal
|
|
92
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Props para el componente DrawerPortalBase
|
|
4
|
+
* @interface DrawerPortalBaseProps
|
|
5
|
+
*/
|
|
6
|
+
interface DrawerPortalBaseProps {
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
handleClose: () => void;
|
|
9
|
+
dragPosition: number;
|
|
10
|
+
setDragPosition: (position: number) => void;
|
|
11
|
+
isClosing: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const DrawerPortalBase: ({ isOpen, handleClose, dragPosition, setDragPosition, isClosing, title, children, }: DrawerPortalBaseProps) => import('react').ReactPortal | null;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { jsxs as s, Fragment as g, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as _ } from "react";
|
|
3
|
+
import { r as p } from "../../index-Cb7Kc3pQ.js";
|
|
4
|
+
import { Icon as y } from "../../icons/icons.js";
|
|
5
|
+
import '../../assets/index17.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 = {
|
|
6
|
+
overlay: D,
|
|
7
|
+
closing: Y,
|
|
8
|
+
bottomDrawer: L,
|
|
9
|
+
drawerHeader: B,
|
|
10
|
+
drawerIndicator: I,
|
|
11
|
+
drawerContent: N,
|
|
12
|
+
closeButton: b
|
|
13
|
+
}, S = ({
|
|
14
|
+
isOpen: h,
|
|
15
|
+
handleClose: a,
|
|
16
|
+
dragPosition: E,
|
|
17
|
+
setDragPosition: l,
|
|
18
|
+
isClosing: u,
|
|
19
|
+
title: i,
|
|
20
|
+
children: f
|
|
21
|
+
}) => {
|
|
22
|
+
const d = _(0), m = _(0);
|
|
23
|
+
if (!h) return null;
|
|
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);
|
|
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);
|
|
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);
|
|
32
|
+
};
|
|
33
|
+
return p.createPortal(
|
|
34
|
+
/* @__PURE__ */ s(g, { children: [
|
|
35
|
+
/* @__PURE__ */ o(
|
|
36
|
+
"div",
|
|
37
|
+
{
|
|
38
|
+
className: `${t.overlay} ${u ? t.closing : ""}`,
|
|
39
|
+
onClick: a
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ s(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
className: `${t.bottomDrawer} ${u ? t.closing : ""}`,
|
|
46
|
+
style: { transform: `translateY(${E}px)` },
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ s(
|
|
49
|
+
"div",
|
|
50
|
+
{
|
|
51
|
+
className: t.drawerHeader,
|
|
52
|
+
onMouseDown: v,
|
|
53
|
+
onTouchStart: v,
|
|
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" }) })
|
|
57
|
+
]
|
|
58
|
+
}
|
|
59
|
+
),
|
|
60
|
+
/* @__PURE__ */ s("div", { className: t.drawerContent, children: [
|
|
61
|
+
i && /* @__PURE__ */ o("p", { children: i }),
|
|
62
|
+
f
|
|
63
|
+
] })
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
)
|
|
67
|
+
] }),
|
|
68
|
+
document.getElementById("root") || document.body
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
export {
|
|
72
|
+
S as DrawerPortalBase
|
|
73
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
interface ExclusionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
idResultado: 1 | 2 | 5;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Representa el tipo de un resultado en la página de exclusión.
|
|
6
|
+
*
|
|
7
|
+
* @typedef {Object} ExclusionProps
|
|
8
|
+
* @property {1 | 2 | 5} idResultado - El identificador del resultado.
|
|
9
|
+
* @property {string} [className] - Clases adicionales para el contenedor.
|
|
10
|
+
*
|
|
11
|
+
* @example <ExclusionPage idResultado={1} />
|
|
12
|
+
*/
|
|
13
|
+
export declare const ExclusionPage: React.FC<ExclusionProps>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { jsxs as n, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-Cb7Kc3pQ.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Icon as r } from "../../icons/icons.js";
|
|
5
|
+
import { T as t, s as i } from "../../constantes-PXVssL1x.js";
|
|
6
|
+
import d from "./texto.js";
|
|
7
|
+
const v = ({
|
|
8
|
+
idResultado: o,
|
|
9
|
+
className: c,
|
|
10
|
+
...s
|
|
11
|
+
}) => {
|
|
12
|
+
const a = t.find((l) => l.id === o);
|
|
13
|
+
return a ? /* @__PURE__ */ n(
|
|
14
|
+
"div",
|
|
15
|
+
{
|
|
16
|
+
className: `${i.contenedorResultado} ${c || ""}`,
|
|
17
|
+
...s,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ n("section", { children: [
|
|
20
|
+
/* @__PURE__ */ n("div", { children: [
|
|
21
|
+
/* @__PURE__ */ e("h1", { className: i.title, children: a && a.title }),
|
|
22
|
+
/* @__PURE__ */ e(d, { id: o })
|
|
23
|
+
] }),
|
|
24
|
+
/* @__PURE__ */ e(r, { name: a.iconName })
|
|
25
|
+
] }),
|
|
26
|
+
/* @__PURE__ */ n("div", { className: i.contactoContainer, children: [
|
|
27
|
+
/* @__PURE__ */ n("div", { className: i.contacto, children: [
|
|
28
|
+
/* @__PURE__ */ e(r, { name: "Telefono" }),
|
|
29
|
+
/* @__PURE__ */ e("h2", { children: "Atención telefónica" }),
|
|
30
|
+
/* @__PURE__ */ e("h3", { children: "Atendemos de lunes a viernes de 9am a 5pm" }),
|
|
31
|
+
/* @__PURE__ */ n("h4", { style: { marginTop: "33px" }, children: [
|
|
32
|
+
/* @__PURE__ */ e("span", { style: { marginRight: "5px" }, children: "Llámanos al (601) 5087736" }),
|
|
33
|
+
/* @__PURE__ */ e(r, { name: "ArrowForwardExclusion" })
|
|
34
|
+
] })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ n("div", { className: i.contacto, children: [
|
|
37
|
+
/* @__PURE__ */ e(r, { name: "EmailFill" }),
|
|
38
|
+
/* @__PURE__ */ e("h2", { children: "Correo electrónico" }),
|
|
39
|
+
/* @__PURE__ */ e("h3", { children: "Escríbenos a contacto@bmivida.com" }),
|
|
40
|
+
/* @__PURE__ */ n("h4", { style: { marginTop: "52px" }, children: [
|
|
41
|
+
/* @__PURE__ */ e("span", { style: { marginRight: "5px" }, children: "Escríbenos" }),
|
|
42
|
+
/* @__PURE__ */ e(r, { name: "ArrowForwardExclusion" })
|
|
43
|
+
] })
|
|
44
|
+
] }),
|
|
45
|
+
/* @__PURE__ */ n("div", { className: i.contacto, children: [
|
|
46
|
+
/* @__PURE__ */ e(r, { name: "Whatsapp" }),
|
|
47
|
+
/* @__PURE__ */ e("h2", { children: "Whatsapp" }),
|
|
48
|
+
/* @__PURE__ */ e("h3", { children: "Chatea con nuestros asesores de lunes a viernes de 9 a 5pm" }),
|
|
49
|
+
/* @__PURE__ */ n("h4", { children: [
|
|
50
|
+
/* @__PURE__ */ e("span", { style: { marginRight: "5px" }, children: "Contáctanos" }),
|
|
51
|
+
/* @__PURE__ */ e(r, { name: "ArrowForwardExclusion" })
|
|
52
|
+
] })
|
|
53
|
+
] })
|
|
54
|
+
] })
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
) : null;
|
|
58
|
+
};
|
|
59
|
+
export {
|
|
60
|
+
v as ExclusionPage
|
|
61
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { T as r, s as a } from "../../constantes-PXVssL1x.js";
|
|
3
|
+
const c = ({ id: s }) => {
|
|
4
|
+
const { description: t } = r.find(
|
|
5
|
+
(e) => e.id === s
|
|
6
|
+
);
|
|
7
|
+
return /* @__PURE__ */ o("span", { className: a.texto, children: t() });
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
c as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Image as o } from "../images/index.js";
|
|
3
|
+
import '../../assets/index15.css';const s = "_spinnerContainer_x3x4n_1", t = "_spinner_x3x4n_1", a = "_iconContainer_x3x4n_22", i = {
|
|
4
|
+
spinnerContainer: s,
|
|
5
|
+
spinner: t,
|
|
6
|
+
iconContainer: a
|
|
7
|
+
};
|
|
8
|
+
function x({ src: e }) {
|
|
9
|
+
return /* @__PURE__ */ r("div", { className: i.spinnerContainer, children: [
|
|
10
|
+
/* @__PURE__ */ n("div", { className: i.spinner }),
|
|
11
|
+
/* @__PURE__ */ n("div", { className: i.iconContainer, children: /* @__PURE__ */ n(o, { src: e, width: 200, height: 200 }) })
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
x as FakeLoader
|
|
16
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface DivProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2
|
+
error: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* FieldError component to display an error message with an optional icon.
|
|
6
|
+
*
|
|
7
|
+
* @param {string} props.error - The error message to display. If empty, no message or icon will be shown.
|
|
8
|
+
* @param {React.HTMLAttributes<HTMLDivElement>} [props] - Additional standard div attributes.
|
|
9
|
+
*
|
|
10
|
+
* @returns {JSX.Element} The styled FieldError component displaying the error message and icon.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* <FieldError error="This field is required" />
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <FieldError error="Invalid email address" className="custom-error" />
|
|
17
|
+
*/
|
|
18
|
+
export declare const FieldError: React.FC<DivProps>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsxs as e, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Exclamation as o } from "../../icons/icons.js";
|
|
3
|
+
import '../../assets/index20.css';const a = "_errorMessage_1sb2p_1", n = {
|
|
4
|
+
errorMessage: a
|
|
5
|
+
}, l = ({ error: s }) => /* @__PURE__ */ e("div", { className: n.errorMessage, children: [
|
|
6
|
+
s !== "" && /* @__PURE__ */ r("div", { style: { marginTop: "5px" }, children: /* @__PURE__ */ r(o, {}) }),
|
|
7
|
+
/* @__PURE__ */ r("span", { style: { fontFamily: "Palanquin BMI" }, children: s })
|
|
8
|
+
] });
|
|
9
|
+
export {
|
|
10
|
+
l as FieldError
|
|
11
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { IconPropsWithIconName } from '../../icons/icons.tsx';
|
|
2
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
icon?: IconPropsWithIconName | null;
|
|
4
|
+
error?: string | null;
|
|
5
|
+
prefix?: string;
|
|
6
|
+
suffix?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Input component with optional icon and error message.
|
|
10
|
+
*
|
|
11
|
+
* @param {IconPropsWithIconName | null} [props.icon] - Optional icon to display inside the input field.
|
|
12
|
+
* @param {string | null} [props.error] - Optional error message to display below the input field.
|
|
13
|
+
* @param {string} [props.className] - Additional CSS class names to style the input.
|
|
14
|
+
* @param {string} [props.prefix] - Optional prefix to display before the input field.
|
|
15
|
+
* @param {React.InputHTMLAttributes<HTMLInputElement>} [props] - Additional standard input attributes.
|
|
16
|
+
*
|
|
17
|
+
* @returns {JSX.Element} The styled Input component with optional icon and error message.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* // Basic Input with placeholder
|
|
21
|
+
* <Input placeholder="Enter your name" />
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* // Input with an icon
|
|
25
|
+
* <Input
|
|
26
|
+
* icon={{ name: 'Search', fill: '#000', width: 20, height: 20 }}
|
|
27
|
+
* placeholder="Search here"
|
|
28
|
+
* />
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* // Input with an error message
|
|
32
|
+
* <Input
|
|
33
|
+
* error="This field is required"
|
|
34
|
+
* placeholder="Enter your email"
|
|
35
|
+
* />
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* // Fully customized Input with icon, error, and additional className
|
|
39
|
+
* <Input
|
|
40
|
+
* icon={{ name: 'User', fill: '#555', width: 18, height: 18 }}
|
|
41
|
+
* error="Invalid username"
|
|
42
|
+
* className="custom-input"
|
|
43
|
+
* placeholder="Username"
|
|
44
|
+
* />
|
|
45
|
+
*/
|
|
46
|
+
export declare const Input: React.FC<InputProps>;
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { jsxs as p, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { Icon as m } from "../../icons/icons.js";
|
|
3
|
+
import { FieldError as h } from "../FieldError/index.js";
|
|
4
|
+
import '../../assets/index19.css';const u = "_container_16ehs_1", d = "_inputContainer_16ehs_8", y = "_input_16ehs_8", _ = "_prefix_16ehs_45", i = {
|
|
5
|
+
container: u,
|
|
6
|
+
inputContainer: d,
|
|
7
|
+
input: y,
|
|
8
|
+
prefix: _
|
|
9
|
+
}, I = ({
|
|
10
|
+
icon: t,
|
|
11
|
+
error: e,
|
|
12
|
+
prefix: s,
|
|
13
|
+
suffix: a,
|
|
14
|
+
className: l,
|
|
15
|
+
...r
|
|
16
|
+
}) => {
|
|
17
|
+
var o;
|
|
18
|
+
const c = `${i.input} ${l || ""}`;
|
|
19
|
+
return /* @__PURE__ */ p(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
className: i.container,
|
|
23
|
+
style: ((o = r.style) == null ? void 0 : o.display) === "none" ? { display: "none" } : {},
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ p("div", { className: i.inputContainer, children: [
|
|
26
|
+
t && /* @__PURE__ */ n("div", { style: { marginTop: "9px" }, children: /* @__PURE__ */ n(
|
|
27
|
+
m,
|
|
28
|
+
{
|
|
29
|
+
name: t.name,
|
|
30
|
+
fill: t.fill,
|
|
31
|
+
width: t.width,
|
|
32
|
+
height: t.height
|
|
33
|
+
}
|
|
34
|
+
) }),
|
|
35
|
+
s && /* @__PURE__ */ n(
|
|
36
|
+
"span",
|
|
37
|
+
{
|
|
38
|
+
className: i.prefix,
|
|
39
|
+
style: { fontFamily: "Palanquin BMI" },
|
|
40
|
+
children: s
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ n(
|
|
44
|
+
"input",
|
|
45
|
+
{
|
|
46
|
+
className: c,
|
|
47
|
+
...r,
|
|
48
|
+
style: { fontFamily: "Palanquin BMI" }
|
|
49
|
+
}
|
|
50
|
+
),
|
|
51
|
+
a && /* @__PURE__ */ n(
|
|
52
|
+
"span",
|
|
53
|
+
{
|
|
54
|
+
className: i.prefix,
|
|
55
|
+
style: { fontFamily: "Palanquin BMI" },
|
|
56
|
+
children: a
|
|
57
|
+
}
|
|
58
|
+
)
|
|
59
|
+
] }),
|
|
60
|
+
e && /* @__PURE__ */ n(h, { error: e })
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
I as Input
|
|
67
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Label component for wrapping or describing form inputs.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} [props.className] - Additional CSS class names to style the label.
|
|
5
|
+
* @param {React.LabelHTMLAttributes<HTMLLabelElement>} [props] - Additional standard label attributes.
|
|
6
|
+
*
|
|
7
|
+
* @returns {JSX.Element} The styled Label component.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* // Basic Label with a "for" attribute
|
|
11
|
+
* <Label htmlFor="username">Username</Label>
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* // Label with additional styling
|
|
15
|
+
* <Label className="custom-label">Email</Label>
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* // Label wrapping an input
|
|
19
|
+
* <Label>
|
|
20
|
+
* <input type="checkbox" /> Accept Terms and Conditions
|
|
21
|
+
* </Label>
|
|
22
|
+
*/
|
|
23
|
+
export declare const Label: React.FC<React.LabelHTMLAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/index14.css';const t = "_label_11xb1_1", a = {
|
|
3
|
+
label: t
|
|
4
|
+
}, s = ({
|
|
5
|
+
className: l,
|
|
6
|
+
...e
|
|
7
|
+
}) => /* @__PURE__ */ b(
|
|
8
|
+
"label",
|
|
9
|
+
{
|
|
10
|
+
className: `${l || ""} ${a.label}`,
|
|
11
|
+
...e
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
s as Label
|
|
16
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { stepType } from '../Steps';
|
|
3
|
+
type zeroToHundred = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100;
|
|
4
|
+
interface NavProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
step?: stepType;
|
|
6
|
+
progress: zeroToHundred;
|
|
7
|
+
handleBack?: () => void;
|
|
8
|
+
first: boolean;
|
|
9
|
+
bmiNext?: boolean;
|
|
10
|
+
title?: string;
|
|
11
|
+
style?: React.CSSProperties;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Navbar component for displaying navigation with progress and steps.
|
|
16
|
+
*
|
|
17
|
+
* @param {number} props.step - The current step in the navigation process (1-3).
|
|
18
|
+
* @param {number} props.progress - The progress percentage (0-100) for the navigation.
|
|
19
|
+
* @param {() => void} props.handleBack - Callback function to handle the "back" action.
|
|
20
|
+
* @param {boolean} props.first - Determines if this is the first step in the process.
|
|
21
|
+
* @param {React.HTMLAttributes<HTMLElement>} [props] - Additional HTML attributes for the nav element.
|
|
22
|
+
*
|
|
23
|
+
* @returns {JSX.Element} The Navbar component.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <Navbar
|
|
27
|
+
* step={2}
|
|
28
|
+
* progress={50}
|
|
29
|
+
* handleBack={() => console.log('Back')}
|
|
30
|
+
* first={false}
|
|
31
|
+
* />
|
|
32
|
+
*/
|
|
33
|
+
export declare const Navbar: React.FC<NavProps>;
|
|
34
|
+
export {};
|