bmi-next-brokers 2.0.4 → 2.0.6
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/components/Spinner/Spinner.js +22 -22
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/badge/index.js +2 -2
- package/dist/icons/Icon.d.ts +1 -0
- package/dist/icons/Icon.js +8 -7
- package/dist/icons/components/Dot.d.ts +4 -1
- package/dist/icons/components/Dot.js +2 -2
- package/dist/main.d.ts +2 -0
- package/dist/main.js +28 -24
- package/package.json +1 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1shlv_6", f = "_spin_1shlv_1",
|
|
2
|
+
import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1shlv_6", f = "_spin_1shlv_1", $ = "_srOnly_1shlv_17", C = "_roundedStrokeContainer_1shlv_31", x = "_roundedStrokeSpinner_1shlv_37", n = {
|
|
3
3
|
spinner: v,
|
|
4
4
|
circle: k,
|
|
5
5
|
spin: f,
|
|
6
|
-
srOnly:
|
|
7
|
-
roundedStrokeContainer:
|
|
6
|
+
srOnly: $,
|
|
7
|
+
roundedStrokeContainer: C,
|
|
8
8
|
roundedStrokeSpinner: x
|
|
9
9
|
}, w = ({
|
|
10
10
|
size: r = 24,
|
|
11
|
-
color:
|
|
12
|
-
thickness:
|
|
13
|
-
backgroundColor:
|
|
14
|
-
highlightColor:
|
|
11
|
+
color: c = "primary",
|
|
12
|
+
thickness: i = 2,
|
|
13
|
+
backgroundColor: s = "transparent",
|
|
14
|
+
highlightColor: l,
|
|
15
15
|
className: u,
|
|
16
16
|
roundedStroke: y = !1,
|
|
17
|
-
duration:
|
|
17
|
+
duration: d = "1s"
|
|
18
18
|
}) => {
|
|
19
|
-
const
|
|
19
|
+
const h = [n.spinner, n[`color_${c}`], u].filter(Boolean).join(" "), m = l || "currentColor", p = l || {
|
|
20
20
|
primary: "#2054a5",
|
|
21
21
|
secondary: "#64748b",
|
|
22
22
|
white: "white"
|
|
23
|
-
}[
|
|
23
|
+
}[c];
|
|
24
24
|
if (y) {
|
|
25
|
-
const
|
|
26
|
-
return /* @__PURE__ */ a("div", { className:
|
|
25
|
+
const o = i * 2, t = (r - o) / 2, _ = 2 * Math.PI * t, S = `${_ * 0.25} ${_}`;
|
|
26
|
+
return /* @__PURE__ */ a("div", { className: h, role: "status", "aria-label": "Cargando...", children: [
|
|
27
27
|
/* @__PURE__ */ e("div", { className: n.roundedStrokeContainer, children: /* @__PURE__ */ a(
|
|
28
28
|
"svg",
|
|
29
29
|
{
|
|
30
30
|
width: r,
|
|
31
31
|
height: r,
|
|
32
32
|
className: n.roundedStrokeSpinner,
|
|
33
|
-
style: { animationDuration:
|
|
33
|
+
style: { animationDuration: d },
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ e(
|
|
36
36
|
"circle",
|
|
@@ -38,8 +38,8 @@ import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1sh
|
|
|
38
38
|
cx: r / 2,
|
|
39
39
|
cy: r / 2,
|
|
40
40
|
r: t,
|
|
41
|
-
stroke:
|
|
42
|
-
strokeWidth:
|
|
41
|
+
stroke: s,
|
|
42
|
+
strokeWidth: o,
|
|
43
43
|
fill: "none"
|
|
44
44
|
}
|
|
45
45
|
),
|
|
@@ -49,8 +49,8 @@ import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1sh
|
|
|
49
49
|
cx: r / 2,
|
|
50
50
|
cy: r / 2,
|
|
51
51
|
r: t,
|
|
52
|
-
stroke:
|
|
53
|
-
strokeWidth:
|
|
52
|
+
stroke: p,
|
|
53
|
+
strokeWidth: o,
|
|
54
54
|
fill: "none",
|
|
55
55
|
strokeDasharray: S,
|
|
56
56
|
strokeDashoffset: 0,
|
|
@@ -63,7 +63,7 @@ import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1sh
|
|
|
63
63
|
/* @__PURE__ */ e("span", { className: n.srOnly, children: "Cargando..." })
|
|
64
64
|
] });
|
|
65
65
|
}
|
|
66
|
-
return /* @__PURE__ */ a("div", { className:
|
|
66
|
+
return /* @__PURE__ */ a("div", { className: h, role: "status", "aria-label": "Cargando...", children: [
|
|
67
67
|
/* @__PURE__ */ e(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
@@ -71,10 +71,10 @@ import '../../assets/Spinner.css';const v = "_spinner_1shlv_1", k = "_circle_1sh
|
|
|
71
71
|
style: {
|
|
72
72
|
width: `${r}px`,
|
|
73
73
|
height: `${r}px`,
|
|
74
|
-
color:
|
|
75
|
-
borderWidth: `${
|
|
76
|
-
borderColor: `${
|
|
77
|
-
animationDuration:
|
|
74
|
+
color: p,
|
|
75
|
+
borderWidth: `${i}px`,
|
|
76
|
+
borderColor: `${s} ${s} ${m} ${s}`,
|
|
77
|
+
animationDuration: d
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
),
|
|
@@ -104,7 +104,7 @@ import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5
|
|
|
104
104
|
a && /* @__PURE__ */ v(
|
|
105
105
|
s,
|
|
106
106
|
{
|
|
107
|
-
|
|
107
|
+
...a,
|
|
108
108
|
width: a.width ?? i[t],
|
|
109
109
|
height: a.height ?? i[t],
|
|
110
110
|
fill: a.fill ?? r
|
|
@@ -114,7 +114,7 @@ import '../../assets/index.css';const p = "_badge_c0j5t_1", _ = "_fullWidth_c0j5
|
|
|
114
114
|
n && /* @__PURE__ */ v(
|
|
115
115
|
s,
|
|
116
116
|
{
|
|
117
|
-
|
|
117
|
+
...n,
|
|
118
118
|
width: n.width ?? i[t],
|
|
119
119
|
height: n.height ?? i[t],
|
|
120
120
|
fill: n.fill ?? r
|
package/dist/icons/Icon.d.ts
CHANGED
package/dist/icons/Icon.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { I as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { I as p } from "../index-Bd7hp3_A.js";
|
|
3
|
+
const h = ({
|
|
4
4
|
name: o,
|
|
5
5
|
width: n = 20,
|
|
6
6
|
height: c = 20,
|
|
7
7
|
fill: e = "currentColor",
|
|
8
8
|
size: r,
|
|
9
|
-
className: l
|
|
9
|
+
className: l,
|
|
10
|
+
...s
|
|
10
11
|
}) => {
|
|
11
|
-
const t =
|
|
12
|
-
return !t && o ? (console.warn(`⚠️ El icono "${o}" no existe.`), null) : /* @__PURE__ */
|
|
12
|
+
const t = p[o];
|
|
13
|
+
return !t && o ? (console.warn(`⚠️ El icono "${o}" no existe.`), null) : /* @__PURE__ */ i(t, { width: r || n, height: r || c, style: { color: e }, className: l, ...s });
|
|
13
14
|
};
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
h as Icon
|
|
16
17
|
};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { SVGProps } from 'react';
|
|
2
|
-
|
|
2
|
+
interface DotProps extends SVGProps<SVGSVGElement> {
|
|
3
|
+
radius?: number;
|
|
4
|
+
}
|
|
5
|
+
declare const SvgDot: ({ style, radius, ...rest }: DotProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
6
|
export default SvgDot;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const c = ({ style: e, radius: l = 4, ...r }) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 18 18", width: "1em", height: "1em", style: { color: "#2054A5", ...e }, ...r, children: /* @__PURE__ */ o("circle", { cx: 9, cy: 9, r: l, fill: "currentColor" }) });
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
c as default
|
|
5
5
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -20,6 +20,8 @@ export { Modal } from './components/modal';
|
|
|
20
20
|
export { Tooltip } from './components/tooltip';
|
|
21
21
|
export { useScrollLock } from './hooks/useScrollLock';
|
|
22
22
|
export { ScrollContainer } from './components/scrollContainer';
|
|
23
|
+
export { FieldError } from './components/fieldError';
|
|
24
|
+
export { HelperText } from './components/helperText';
|
|
23
25
|
export type { ButtonProps, ButtonVariant, ButtonSize, } from './components/Button';
|
|
24
26
|
export type { ButtonGroupProps, ButtonObject } from './components/ButtonGroup';
|
|
25
27
|
export type { DialogProps, DialogState } from './components/Dialog';
|
package/dist/main.js
CHANGED
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { Icon as
|
|
1
|
+
import { Icon as e } from "./icons/Icon.js";
|
|
2
2
|
import { Badge as p } from "./components/badge/index.js";
|
|
3
|
-
import { Button as
|
|
3
|
+
import { Button as m } from "./components/Button/Button.js";
|
|
4
4
|
import { ButtonGroup as a } from "./components/ButtonGroup/ButtonGroup.js";
|
|
5
5
|
import { Dialog as n } from "./components/Dialog/Dialog.js";
|
|
6
|
-
import { FileUpload as
|
|
6
|
+
import { FileUpload as c } from "./components/FileUpload/FileUpload.js";
|
|
7
7
|
import { CompactFileUpload as d } from "./components/FileUpload/CompactFileUpload.js";
|
|
8
8
|
import { Input as S } from "./components/Input/Input.js";
|
|
9
|
-
import { Checkbox as
|
|
9
|
+
import { Checkbox as b } from "./components/Input/Checkbox/Checkbox.js";
|
|
10
10
|
import { RadioButton as g } from "./components/Input/RadioButton/RadioButton.js";
|
|
11
|
-
import { Navbar as
|
|
11
|
+
import { Navbar as F } from "./components/navbar/index.js";
|
|
12
12
|
import { ProgressBar as G } from "./components/progressBar/index.js";
|
|
13
13
|
import { Select as U } from "./components/Select/Select.js";
|
|
14
14
|
import { Spinner as v } from "./components/Spinner/Spinner.js";
|
|
15
|
-
import { Stepper as
|
|
16
|
-
import { Tab as
|
|
17
|
-
import { TabGroup as
|
|
18
|
-
import { Toast as
|
|
19
|
-
import { Modal as
|
|
20
|
-
import { Tooltip as
|
|
21
|
-
import { useScrollLock as
|
|
15
|
+
import { Stepper as E } from "./components/stepper/index.js";
|
|
16
|
+
import { Tab as L } from "./components/tab/index.js";
|
|
17
|
+
import { TabGroup as N } from "./components/tab/tabGroup/index.js";
|
|
18
|
+
import { Toast as R } from "./components/Toast/Toast.js";
|
|
19
|
+
import { Modal as q } from "./components/modal/index.js";
|
|
20
|
+
import { Tooltip as y } from "./components/tooltip/index.js";
|
|
21
|
+
import { useScrollLock as A } from "./hooks/useScrollLock.js";
|
|
22
22
|
import { ScrollContainer as K } from "./components/scrollContainer/index.js";
|
|
23
|
+
import { FieldError as Q } from "./components/fieldError/index.js";
|
|
24
|
+
import { HelperText as W } from "./components/helperText/index.js";
|
|
23
25
|
import './assets/main.css';export {
|
|
24
26
|
p as Badge,
|
|
25
|
-
|
|
27
|
+
m as Button,
|
|
26
28
|
a as ButtonGroup,
|
|
27
|
-
|
|
29
|
+
b as Checkbox,
|
|
28
30
|
d as CompactFileUpload,
|
|
29
31
|
n as Dialog,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
Q as FieldError,
|
|
33
|
+
c as FileUpload,
|
|
34
|
+
W as HelperText,
|
|
35
|
+
e as Icon,
|
|
32
36
|
S as Input,
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
q as Modal,
|
|
38
|
+
F as Navbar,
|
|
35
39
|
G as ProgressBar,
|
|
36
40
|
g as RadioButton,
|
|
37
41
|
K as ScrollContainer,
|
|
38
42
|
U as Select,
|
|
39
43
|
v as Spinner,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
E as Stepper,
|
|
45
|
+
L as Tab,
|
|
46
|
+
N as TabGroup,
|
|
47
|
+
R as Toast,
|
|
48
|
+
y as Tooltip,
|
|
49
|
+
A as useScrollLock
|
|
46
50
|
};
|
package/package.json
CHANGED