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.
@@ -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", C = "_srOnly_1shlv_17", $ = "_roundedStrokeContainer_1shlv_31", x = "_roundedStrokeSpinner_1shlv_37", n = {
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: C,
7
- roundedStrokeContainer: $,
6
+ srOnly: $,
7
+ roundedStrokeContainer: C,
8
8
  roundedStrokeSpinner: x
9
9
  }, w = ({
10
10
  size: r = 24,
11
- color: i = "primary",
12
- thickness: c = 2,
13
- backgroundColor: o = "transparent",
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: l = "1s"
17
+ duration: d = "1s"
18
18
  }) => {
19
- const d = [n.spinner, n[`color_${i}`], u].filter(Boolean).join(" "), m = _ || "currentColor", h = {
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
- }[i];
23
+ }[c];
24
24
  if (y) {
25
- const s = c * 2, t = (r - s) / 2, p = 2 * Math.PI * t, S = `${p * 0.25} ${p}`;
26
- return /* @__PURE__ */ a("div", { className: d, role: "status", "aria-label": "Cargando...", children: [
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: l },
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: o,
42
- strokeWidth: s,
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: h,
53
- strokeWidth: s,
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: d, role: "status", "aria-label": "Cargando...", children: [
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: h,
75
- borderWidth: `${c}px`,
76
- borderColor: `${o} ${o} ${m} ${o}`,
77
- animationDuration: l
74
+ color: p,
75
+ borderWidth: `${i}px`,
76
+ borderColor: `${s} ${s} ${m} ${s}`,
77
+ animationDuration: d
78
78
  }
79
79
  }
80
80
  ),
@@ -15,6 +15,7 @@ type IconProps = {
15
15
  fill?: string;
16
16
  width?: number;
17
17
  height?: number;
18
+ [key: string]: unknown;
18
19
  };
19
20
  /**
20
21
  * Props para un Badge que es solo texto, no interactivo.
@@ -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
- name: a.name,
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
- name: n.name,
117
+ ...n,
118
118
  width: n.width ?? i[t],
119
119
  height: n.height ?? i[t],
120
120
  fill: n.fill ?? r
@@ -8,6 +8,7 @@ type IconProps = {
8
8
  fill?: string;
9
9
  size?: number | string;
10
10
  className?: string;
11
+ [key: string]: unknown;
11
12
  };
12
13
  export declare const Icon: React.FC<IconProps>;
13
14
  export {};
@@ -1,16 +1,17 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { I as i } from "../index-Bd7hp3_A.js";
3
- const f = ({
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 = i[o];
12
- return !t && o ? (console.warn(`⚠️ El icono "${o}" no existe.`), null) : /* @__PURE__ */ s(t, { width: r || n, height: r || c, style: { color: e }, className: l });
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
- f as Icon
16
+ h as Icon
16
17
  };
@@ -1,3 +1,6 @@
1
1
  import { SVGProps } from 'react';
2
- declare const SvgDot: ({ style, ...rest }: SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element;
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 t = ({ style: e, ...l }) => /* @__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 }, ...l, children: /* @__PURE__ */ o("circle", { cx: 9, cy: 9, r: 2, fill: "currentColor" }) });
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
- t as default
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 t } from "./icons/Icon.js";
1
+ import { Icon as e } from "./icons/Icon.js";
2
2
  import { Badge as p } from "./components/badge/index.js";
3
- import { Button as x } from "./components/Button/Button.js";
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 i } from "./components/FileUpload/FileUpload.js";
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 s } from "./components/Input/Checkbox/Checkbox.js";
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 k } from "./components/navbar/index.js";
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 L } from "./components/stepper/index.js";
16
- import { Tab as N } from "./components/tab/index.js";
17
- import { TabGroup as R } from "./components/tab/tabGroup/index.js";
18
- import { Toast as q } from "./components/Toast/Toast.js";
19
- import { Modal as y } from "./components/modal/index.js";
20
- import { Tooltip as A } from "./components/tooltip/index.js";
21
- import { useScrollLock as H } from "./hooks/useScrollLock.js";
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
- x as Button,
27
+ m as Button,
26
28
  a as ButtonGroup,
27
- s as Checkbox,
29
+ b as Checkbox,
28
30
  d as CompactFileUpload,
29
31
  n as Dialog,
30
- i as FileUpload,
31
- t as Icon,
32
+ Q as FieldError,
33
+ c as FileUpload,
34
+ W as HelperText,
35
+ e as Icon,
32
36
  S as Input,
33
- y as Modal,
34
- k as Navbar,
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
- L as Stepper,
41
- N as Tab,
42
- R as TabGroup,
43
- q as Toast,
44
- A as Tooltip,
45
- H as useScrollLock
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bmi-next-brokers",
3
3
  "description": "Componentes de UI para proyecto BMI Next Brokers",
4
- "version": "2.0.4",
4
+ "version": "2.0.6",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",