bmi-next-brokers 2.9.9 → 3.0.2

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.
@@ -0,0 +1 @@
1
+ ._switch_56b6x_1{--switch-bg: var(--ui-blue-100);--switch-active-bg: #2054A5;--switch-active-text: #ffffff;--switch-inactive-text: #2054A5;--switch-inset: 3px;--switch-pad-y: 10px;--switch-pad-x: 14px;--switch-font: 12px;--switch-radius: 20px;--switch-min-width: 52px;--switch-gap: 5px;--switch-max-height: 48px;position:relative;display:flex;flex-direction:row;gap:0;max-height:var(--switch-max-height);padding:var(--switch-inset);border-radius:var(--switch-radius);background:var(--switch-bg);width:fit-content}._small_56b6x_29{--switch-inset: 3px;--switch-pad-y: 6px;--switch-pad-x: 10px;--switch-font: 11px;--switch-radius: 16px;--switch-min-width: 40px;--switch-gap: 4px;--switch-max-height: 36px}._large_56b6x_40{--switch-inset: 4px;--switch-pad-y: 14px;--switch-pad-x: 18px;--switch-font: 14px;--switch-radius: 24px;--switch-min-width: 64px;--switch-gap: 6px;--switch-max-height: 58px}._switch_56b6x_1 ._indicator_56b6x_52{position:absolute;top:var(--switch-inset);bottom:var(--switch-inset);left:0;background:#2054a5;border-radius:var(--switch-radius);transition:transform .42s cubic-bezier(.34,1.56,.64,1),width .42s cubic-bezier(.34,1.56,.64,1);pointer-events:none;z-index:0}._switch_56b6x_1._simple_56b6x_68 ._indicator_56b6x_52{transition:transform .22s ease,width .22s ease}._switch_56b6x_1._simple_56b6x_68 ._option_56b6x_74._active_56b6x_74 ._label_56b6x_74{animation:none}._switch_56b6x_1 ._option_56b6x_74{position:relative;z-index:1;min-width:var(--switch-min-width);border:none;background:transparent;color:var(--switch-inactive-text);font-size:var(--switch-font);cursor:pointer;transition:color .25s ease,transform .25s ease;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:var(--switch-gap);padding:var(--switch-pad-y) var(--switch-pad-x);border-radius:var(--switch-radius)}._switch_56b6x_1 ._option_56b6x_74:active{transform:scale(.94)}._switch_56b6x_1 ._option_56b6x_74._active_56b6x_74{color:var(--switch-active-text)}._switch_56b6x_1 ._option_56b6x_74._active_56b6x_74 ._label_56b6x_74{animation:_pop_56b6x_1 .32s ease}@keyframes _pop_56b6x_1{0%{transform:scale(1)}45%{transform:scale(1.12)}to{transform:scale(1)}}._switch_56b6x_1 ._label_56b6x_74{line-height:5px}
@@ -0,0 +1,31 @@
1
+ import * as Icons from "../../icons/index";
2
+ export type IconName = keyof typeof Icons;
3
+ export type SwitchOption = string | {
4
+ label: string;
5
+ icon?: IconName;
6
+ };
7
+ export type SwitchSize = "small" | "medium" | "large";
8
+ export interface SwitchProps {
9
+ /** opciones a mostrar: strings u objetos { label, icon } */
10
+ options: SwitchOption[];
11
+ /** índice de la opción activa */
12
+ active?: number;
13
+ /** callback que recibe el índice seleccionado */
14
+ onChange?: (index: number) => void;
15
+ /** tamaño que determina el alto del control */
16
+ size?: SwitchSize;
17
+ /** si es true, usa un deslizamiento simple en vez del efecto rubber-band */
18
+ simpleAnimation?: boolean;
19
+ /** tamaño del icono en px; si se omite, escala según `size` */
20
+ iconSize?: number;
21
+ className?: string;
22
+ /** color de fondo del indicador activo (CSS var --switch-active-bg) */
23
+ activeColor?: string;
24
+ /** color del texto de la opción activa (CSS var --switch-active-text) */
25
+ activeTextColor?: string;
26
+ /** color del texto de las opciones inactivas (CSS var --switch-inactive-text) */
27
+ inactiveTextColor?: string;
28
+ /** color de fondo del contenedor (CSS var --switch-bg) */
29
+ background?: string;
30
+ }
31
+ export declare const Switch: ({ options, active, onChange, size, simpleAnimation, iconSize, className, activeColor, activeTextColor, inactiveTextColor, background, }: SwitchProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,108 @@
1
+ import { jsxs as E, jsx as m } from "react/jsx-runtime";
2
+ import { useRef as p, useState as M, useLayoutEffect as j } from "react";
3
+ import { Icon as k } from "../../icons/Icon.js";
4
+ import '../../assets/Switch.css';const D = "_small_56b6x_29", R = "_large_56b6x_40", T = "_indicator_56b6x_52", Z = "_simple_56b6x_68", z = "_option_56b6x_74", B = "_active_56b6x_74", K = "_label_56b6x_74", O = "_pop_56b6x_1", r = {
5
+ switch: "_switch_56b6x_1",
6
+ small: D,
7
+ large: R,
8
+ indicator: T,
9
+ simple: Z,
10
+ option: z,
11
+ active: B,
12
+ label: K,
13
+ pop: O
14
+ }, V = {
15
+ small: 12,
16
+ medium: 14,
17
+ large: 16
18
+ }, q = ({
19
+ options: d = [],
20
+ active: l = 0,
21
+ onChange: o,
22
+ size: h = "medium",
23
+ simpleAnimation: u = !1,
24
+ iconSize: L,
25
+ className: S = "",
26
+ activeColor: b,
27
+ activeTextColor: w,
28
+ inactiveTextColor: x,
29
+ background: y
30
+ }) => {
31
+ const a = p([]), $ = p(l), n = p(null), [v, I] = M({
32
+ left: 0,
33
+ width: 0
34
+ });
35
+ j(() => {
36
+ const t = a.current[l], e = a.current[$.current];
37
+ if (!t) return;
38
+ const i = a.current.filter(
39
+ (s) => s !== null
40
+ );
41
+ i.forEach((s) => s.style.width = "auto");
42
+ const _ = Math.max(...i.map((s) => s.offsetWidth));
43
+ i.forEach((s) => s.style.width = `${_}px`);
44
+ const f = () => I({ left: t.offsetLeft, width: t.offsetWidth });
45
+ if (!u && e && e !== t) {
46
+ const s = Math.min(e.offsetLeft, t.offsetLeft), c = Math.max(
47
+ e.offsetLeft + e.offsetWidth,
48
+ t.offsetLeft + t.offsetWidth
49
+ );
50
+ I({ left: s, width: c - s }), n.current && clearTimeout(n.current), n.current = setTimeout(f, 160);
51
+ } else
52
+ f();
53
+ return $.current = l, () => {
54
+ n.current && clearTimeout(n.current);
55
+ };
56
+ }, [l, d, u]);
57
+ const N = L ?? V[h], W = {
58
+ ...b && { "--switch-active-bg": b },
59
+ ...w && { "--switch-active-text": w },
60
+ ...x && { "--switch-inactive-text": x },
61
+ ...y && { "--switch-bg": y }
62
+ };
63
+ return /* @__PURE__ */ E(
64
+ "div",
65
+ {
66
+ className: `${r.switch} ${r[h]} ${u ? r.simple : ""} ${S}`,
67
+ style: W,
68
+ children: [
69
+ /* @__PURE__ */ m(
70
+ "span",
71
+ {
72
+ className: r.indicator,
73
+ style: {
74
+ transform: `translateX(${v.left}px)`,
75
+ width: `${v.width}px`
76
+ }
77
+ }
78
+ ),
79
+ d.map((t, e) => {
80
+ const i = typeof t == "string", _ = i ? t : t.label, f = i ? null : t.icon, s = l === e;
81
+ return /* @__PURE__ */ E(
82
+ "div",
83
+ {
84
+ ref: (c) => {
85
+ a.current[e] = c;
86
+ },
87
+ role: "button",
88
+ tabIndex: 0,
89
+ onClick: () => o == null ? void 0 : o(e),
90
+ onKeyDown: (c) => {
91
+ (c.key === "Enter" || c.key === " ") && (c.preventDefault(), o == null || o(e));
92
+ },
93
+ className: `${r.option} ${s ? r.active : ""}`,
94
+ children: [
95
+ f && /* @__PURE__ */ m(k, { name: f, size: N }),
96
+ _ && /* @__PURE__ */ m("p", { className: r.label, children: _ })
97
+ ]
98
+ },
99
+ e
100
+ );
101
+ })
102
+ ]
103
+ }
104
+ );
105
+ };
106
+ export {
107
+ q as Switch
108
+ };
@@ -0,0 +1,2 @@
1
+ export { Switch } from './Switch';
2
+ export type { SwitchProps, SwitchOption, SwitchSize } from './Switch';
@@ -0,0 +1,4 @@
1
+ import { Switch as t } from "./Switch.js";
2
+ export {
3
+ t as Switch
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { I as p } from "../index-DxgMLfrq.js";
2
+ import { I as p } from "../index-BxZPcrI0.js";
3
3
  const m = ({
4
4
  name: o,
5
5
  width: c = 20,
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ declare const SvgStar: (props: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default SvgStar;
@@ -0,0 +1,43 @@
1
+ import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
+ import { useId as t } from "react";
3
+ const i = (l) => {
4
+ const e = t();
5
+ return /* @__PURE__ */ r(
6
+ "svg",
7
+ {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "none",
10
+ viewBox: "0 0 18 18",
11
+ width: "1em",
12
+ height: "1em",
13
+ ...l,
14
+ children: [
15
+ /* @__PURE__ */ a(
16
+ "mask",
17
+ {
18
+ id: `${e}a`,
19
+ width: 18,
20
+ height: 18,
21
+ x: 0,
22
+ y: 0,
23
+ maskUnits: "userSpaceOnUse",
24
+ style: {
25
+ maskType: "alpha"
26
+ },
27
+ children: /* @__PURE__ */ a("path", { fill: "currentColor", d: "M0 0h18v18H0z" })
28
+ }
29
+ ),
30
+ /* @__PURE__ */ a("g", { mask: `url(#${e}a)`, children: /* @__PURE__ */ a(
31
+ "path",
32
+ {
33
+ fill: "currentColor",
34
+ d: "m9.004 12.037-2.676 2.024a.74.74 0 0 1-.478.16.84.84 0 0 1-.435-.141.738.738 0 0 1-.298-.862l1.032-3.334-2.845-2.276a.75.75 0 0 1-.274-.41.75.75 0 0 1 .028-.452.9.9 0 0 1 .268-.37.7.7 0 0 1 .468-.152h3.395l1.075-3.296a.7.7 0 0 1 .289-.412A.83.83 0 0 1 9 2.387q.242 0 .447.129a.7.7 0 0 1 .289.412l1.075 3.296h3.395q.284 0 .468.151a.9.9 0 0 1 .268.37.75.75 0 0 1 .028.453.75.75 0 0 1-.275.41L11.85 9.884l1.033 3.33a.74.74 0 0 1-.298.861.84.84 0 0 1-.434.142.74.74 0 0 1-.475-.16z"
35
+ }
36
+ ) })
37
+ ]
38
+ }
39
+ );
40
+ };
41
+ export {
42
+ i as default
43
+ };
@@ -1,90 +1,91 @@
1
- export { default as Adn } from './Adn';
2
- export { default as Argentina } from './Argentina';
1
+ export { default as Apple } from './Apple';
3
2
  export { default as ArrowDown } from './ArrowDown';
4
3
  export { default as ArrowUp } from './ArrowUp';
5
- export { default as Brasil } from './Brasil';
6
- export { default as Chile } from './Chile';
7
- export { default as Circulatorio } from './Circulatorio';
8
- export { default as Gastro } from './Gastro';
9
- export { default as Heart } from './Heart';
10
- export { default as Kidneys } from './Kidneys';
11
- export { default as MaleCopy } from './MaleCopy';
12
- export { default as Mexico } from './Mexico';
13
- export { default as Peru } from './Peru';
14
- export { default as Pincel } from './Pincel';
15
- export { default as Swich } from './Swich';
16
- export { default as Uk } from './Uk';
17
- export { default as Virus } from './Virus';
4
+ export { default as Colombia } from './Colombia';
5
+ export { default as CostaRica } from './CostaRica';
6
+ export { default as Ecuador } from './Ecuador';
7
+ export { default as Guatemala } from './Guatemala';
8
+ export { default as Internacional } from './Internacional';
9
+ export { default as Laboratory } from './Laboratory';
10
+ export { default as RepDominicana } from './RepDominicana';
11
+ export { default as AccountBalance } from './AccountBalance';
12
+ export { default as AccountCircle } from './AccountCircle';
18
13
  export { default as Add } from './Add';
19
14
  export { default as AddAPhoto } from './AddAPhoto';
20
- export { default as AddAlert } from './AddAlert';
21
15
  export { default as AddIcon } from './AddIcon';
22
- export { default as Aetna } from './Aetna';
16
+ export { default as AdminMeds } from './AdminMeds';
23
17
  export { default as AlertIcon } from './AlertIcon';
24
- export { default as AnchorEmpty } from './AnchorEmpty';
25
- export { default as AnchorFill } from './AnchorFill';
18
+ export { default as AmericanExpress } from './AmericanExpress';
19
+ export { default as AmericanExpressRounded } from './AmericanExpressRounded';
20
+ export { default as Android } from './Android';
21
+ export { default as Apagar } from './Apagar';
26
22
  export { default as Apnfd } from './Apnfd';
27
23
  export { default as Approve } from './Approve';
28
24
  export { default as ArrowBack } from './ArrowBack';
29
- export { default as ArrowForward } from './ArrowForward';
30
- export { default as ArrowTree } from './ArrowTree';
31
- export { default as ArrowTreeDown } from './ArrowTreeDown';
32
- export { default as ArrowTreeRight } from './ArrowTreeRight';
33
25
  export { default as ArrowsOutward } from './ArrowsOutward';
34
- export { default as Assignment } from './Assignment';
26
+ export { default as Article } from './Article';
35
27
  export { default as AttachFile } from './AttachFile';
36
- export { default as BmiLogo } from './BmiLogo';
28
+ export { default as Autorenew } from './Autorenew';
29
+ export { default as BmiAhorro } from './BmiAhorro';
30
+ export { default as BmiAhorroBackoffice } from './BmiAhorroBackoffice';
31
+ export { default as BmiCompaniesLogo } from './BmiCompaniesLogo';
32
+ export { default as BmiLogoWhite } from './BmiLogoWhite';
33
+ export { default as BrokenImage } from './BrokenImage';
37
34
  export { default as BusinessCenter } from './BusinessCenter';
38
35
  export { default as CalendarIcon } from './CalendarIcon';
39
36
  export { default as Call } from './Call';
40
37
  export { default as CancelIcon } from './CancelIcon';
41
- export { default as Cerebro } from './Cerebro';
42
38
  export { default as Certificado } from './Certificado';
43
39
  export { default as ChatBubble } from './ChatBubble';
44
40
  export { default as CheckIcon } from './CheckIcon';
45
- export { default as CheckCircle } from './CheckCircle';
41
+ export { default as Checkbook } from './Checkbook';
46
42
  export { default as ChevronLeft } from './ChevronLeft';
47
43
  export { default as ChromeReaderMode } from './ChromeReaderMode';
48
44
  export { default as Circle } from './Circle';
49
45
  export { default as Close } from './Close';
50
46
  export { default as CloseDrawer } from './CloseDrawer';
51
47
  export { default as ColectivosIcon } from './ColectivosIcon';
52
- export { default as ChevronRight } from './ChevronRight';
53
48
  export { default as Comisiones } from './Comisiones';
54
- export { default as Comunicaciones } from './Comunicaciones';
49
+ export { default as CompareArrows } from './CompareArrows';
50
+ export { default as ComputerCancel } from './ComputerCancel';
55
51
  export { default as ComunicacionesIcon } from './ComunicacionesIcon';
52
+ export { default as Contacto } from './Contacto';
56
53
  export { default as ContentCopy } from './ContentCopy';
57
54
  export { default as ConyugeIcon } from './ConyugeIcon';
55
+ export { default as CorporateFare } from './CorporateFare';
58
56
  export { default as CotizacionesIcon } from './CotizacionesIcon';
59
57
  export { default as Credentials } from './Credentials';
60
58
  export { default as CreditCard } from './CreditCard';
61
- export { default as CruzGrafica } from './CruzGrafica';
59
+ export { default as CurrencyExchange } from './CurrencyExchange';
62
60
  export { default as DashboardIcon } from './DashboardIcon';
63
- export { default as Deducible } from './Deducible';
61
+ export { default as DatosIcon } from './DatosIcon';
64
62
  export { default as Delete } from './Delete';
65
63
  export { default as DeniedIcon } from './DeniedIcon';
66
- export { default as DirectorioMedico } from './DirectorioMedico';
64
+ export { default as Diagnosis } from './Diagnosis';
65
+ export { default as Diners } from './Diners';
66
+ export { default as DinersRounded } from './DinersRounded';
67
+ export { default as Discover } from './Discover';
68
+ export { default as DiscoverRounded } from './DiscoverRounded';
67
69
  export { default as Distance } from './Distance';
68
70
  export { default as Documentos } from './Documentos';
71
+ export { default as Dot } from './Dot';
72
+ export { default as DoubleArrowLeft } from './DoubleArrowLeft';
73
+ export { default as DoubleArrowRight } from './DoubleArrowRight';
69
74
  export { default as DownloadIcon } from './DownloadIcon';
70
75
  export { default as EditIcon } from './EditIcon';
71
- export { default as Eye } from './Eye';
72
- export { default as Facturas } from './Facturas';
76
+ export { default as EstadosUnidos } from './EstadosUnidos';
77
+ export { default as Europa } from './Europa';
78
+ export { default as FallbackCardRounded } from './FallbackCardRounded';
73
79
  export { default as Female } from './Female';
74
80
  export { default as Filter } from './Filter';
81
+ export { default as FilterAlt } from './FilterAlt';
75
82
  export { default as Folder } from './Folder';
76
83
  export { default as FondosExtranjero } from './FondosExtranjero';
77
84
  export { default as Fumador } from './Fumador';
78
- export { default as Ginecologia } from './Ginecologia';
79
- export { default as Handshake } from './Handshake';
80
- export { default as Headset } from './Headset';
81
85
  export { default as HeadsetMic } from './HeadsetMic';
82
- export { default as Healing } from './Healing';
83
86
  export { default as HeightIcon } from './HeightIcon';
84
87
  export { default as Help } from './Help';
85
88
  export { default as HistorialIcon } from './HistorialIcon';
86
- export { default as Home } from './Home';
87
- export { default as Hospital } from './Hospital';
88
89
  export { default as IdCodigoBroker } from './IdCodigoBroker';
89
90
  export { default as Info } from './Info';
90
91
  export { default as InfoFinanciera } from './InfoFinanciera';
@@ -93,52 +94,66 @@ export { default as KeyboardArrowUp } from './KeyboardArrowUp';
93
94
  export { default as LocationOn } from './LocationOn';
94
95
  export { default as LocationSearching } from './LocationSearching';
95
96
  export { default as LockIcon } from './LockIcon';
97
+ export { default as LogOut } from './LogOut';
96
98
  export { default as MailIcon } from './MailIcon';
97
99
  export { default as Male } from './Male';
98
- export { default as Mancuerna } from './Mancuerna';
99
100
  export { default as MasAcciones } from './MasAcciones';
100
- export { default as Medicacion } from './Medicacion';
101
+ export { default as Mastercard } from './Mastercard';
102
+ export { default as MastercardRounded } from './MastercardRounded';
101
103
  export { default as Medical } from './Medical';
102
104
  export { default as Menu } from './Menu';
103
105
  export { default as MobiledataArrowsHorizontal } from './MobiledataArrowsHorizontal';
104
- export { default as MonitorHeart } from './MonitorHeart';
105
106
  export { default as MoreVert } from './MoreVert';
106
- export { default as Musculo } from './Musculo';
107
+ export { default as Mouse } from './Mouse';
107
108
  export { default as NextIcon } from './NextIcon';
108
109
  export { default as Notes } from './Notes';
110
+ export { default as Notifications } from './Notifications';
109
111
  export { default as NumPolizaIcon } from './NumPolizaIcon';
110
- export { default as Objective } from './Objective';
111
112
  export { default as OpenInFull } from './OpenInFull';
113
+ export { default as Paid } from './Paid';
114
+ export { default as Password } from './Password';
112
115
  export { default as Pep } from './Pep';
113
116
  export { default as Person } from './Person';
114
117
  export { default as PersonCancel } from './PersonCancel';
118
+ export { default as PersonRemove } from './PersonRemove';
119
+ export { default as PetSupplies } from './PetSupplies';
115
120
  export { default as PhotoLibrary } from './PhotoLibrary';
116
- export { default as Piel } from './Piel';
117
121
  export { default as Planet } from './Planet';
118
122
  export { default as PolizaIcon } from './PolizaIcon';
123
+ export { default as PriceChange } from './PriceChange';
124
+ export { default as ProductIcon } from './ProductIcon';
125
+ export { default as ProveedorMedico } from './ProveedorMedico';
119
126
  export { default as Public } from './Public';
120
- export { default as Pulmones } from './Pulmones';
127
+ export { default as Redirect } from './Redirect';
121
128
  export { default as ReembolsosIcon } from './ReembolsosIcon';
129
+ export { default as Reenviar } from './Reenviar';
122
130
  export { default as Refresh } from './Refresh';
123
131
  export { default as Renovaciones } from './Renovaciones';
124
132
  export { default as Replay } from './Replay';
125
133
  export { default as Reply } from './Reply';
126
- export { default as Riñones } from './Riñones';
127
- export { default as Schedule } from './Schedule';
134
+ export { default as RestoreFromTrash } from './RestoreFromTrash';
128
135
  export { default as SearchIcon } from './SearchIcon';
129
136
  export { default as Send } from './Send';
130
137
  export { default as Share } from './Share';
138
+ export { default as ShieldWithHeart } from './ShieldWithHeart';
131
139
  export { default as SmallFamily } from './SmallFamily';
132
140
  export { default as Smartphone } from './Smartphone';
133
- export { default as Stethoscope } from './Stethoscope';
134
- export { default as TrendingDown } from './TrendingDown';
135
- export { default as TrendingUp } from './TrendingUp';
141
+ export { default as SortArrowsAsc } from './SortArrowsAsc';
142
+ export { default as SortArrowsDefault } from './SortArrowsDefault';
143
+ export { default as SortArrowsDesc } from './SortArrowsDesc';
144
+ export { default as Star } from './Star';
145
+ export { default as StepBlocked } from './StepBlocked';
146
+ export { default as StepDone } from './StepDone';
147
+ export { default as StepInProgress } from './StepInProgress';
148
+ export { default as StepPending } from './StepPending';
136
149
  export { default as Tutoriales } from './Tutoriales';
137
150
  export { default as UnfoldMore } from './UnfoldMore';
151
+ export { default as Upload } from './Upload';
138
152
  export { default as VerifiedUser } from './VerifiedUser';
153
+ export { default as Visa } from './Visa';
154
+ export { default as VisaRounded } from './VisaRounded';
139
155
  export { default as Visibility } from './Visibility';
140
156
  export { default as VisibilityOff } from './VisibilityOff';
141
157
  export { default as Warning } from './Warning';
142
- export { default as WavingHand } from './WavingHand';
143
158
  export { default as WeightIcon } from './WeightIcon';
144
159
  export { default as Whatsapp } from './Whatsapp';