bmi-next-brokers 2.9.0 → 2.9.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.
@@ -1 +1 @@
1
- ._toast_1nqnj_2{position:relative;width:100%;min-width:0;border-radius:12px;align-items:center;border-left:4px solid;overflow:hidden;cursor:default;display:flex;flex-direction:column;gap:.75em;box-sizing:border-box}._topRow_1nqnj_18{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%}._topRow_1nqnj_18._large_1nqnj_26{gap:14px}._iconAndContent_1nqnj_30{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_1nqnj_30._medium_1nqnj_39{gap:6px}._iconContainer_1nqnj_44{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_1nqnj_55{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1;min-width:0;gap:2px;overflow:visible;word-break:break-word}._actionButton_1nqnj_68{background:transparent;border:none;border-radius:1000px;cursor:pointer;font-family:var(--font-regular);display:flex;flex-direction:row;align-items:center;gap:6px;justify-content:space-between}._closeButton_1nqnj_82{flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;padding-inline:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}._closeButton_1nqnj_82:active{transform:scale(.95)}._entering_1nqnj_100{animation:_staticToastIn_1nqnj_1 .3s cubic-bezier(.16,1,.3,1) forwards}._exiting_1nqnj_104{animation:_staticToastOut_1nqnj_1 .3s cubic-bezier(.4,0,1,1) forwards}@keyframes _staticToastIn_1nqnj_1{0%{opacity:0;transform:translateY(-6px) scale(.98);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes _staticToastOut_1nqnj_1{0%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}to{opacity:0;transform:translateY(-6px) scale(.98);filter:blur(3px)}}@media (prefers-reduced-motion: reduce){._toast_1nqnj_2,._entering_1nqnj_100,._exiting_1nqnj_104{animation:none!important}}._content_1nqnj_55:only-child,._content_1nqnj_55:not(:has(._body_1nqnj_145)){justify-content:center}@media (max-width: 720px){._topRow_1nqnj_18{align-items:flex-start}._topRow_1nqnj_18._small_1nqnj_154{align-items:center}._iconAndContent_1nqnj_30{align-items:flex-start}._iconAndContent_1nqnj_30._small_1nqnj_154{align-items:center}._closeButton_1nqnj_82{order:2}._actionButton_1nqnj_68{order:3;width:100%;justify-content:center}._actionButton_1nqnj_68._small_1nqnj_154{margin-right:4px}._actionButton_1nqnj_68._medium_1nqnj_39{margin-right:6px}._actionButton_1nqnj_68._large_1nqnj_26{margin-right:8px}}
1
+ ._toast_fnryu_2{position:relative;width:100%;min-width:0;border-radius:12px;align-items:center;border-left:4px solid;overflow:hidden;cursor:default;display:flex;flex-direction:column;gap:.75em;box-sizing:border-box}._topRow_fnryu_18{display:flex;align-items:center;flex-wrap:wrap;width:100%}._iconAndContent_fnryu_25{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_fnryu_25._medium_fnryu_34{gap:6px}._iconContainer_fnryu_39{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_fnryu_50{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1;min-width:0;gap:2px;overflow:visible;word-break:break-word}._actionButton_fnryu_63{background:transparent;border:none;border-radius:1000px;cursor:pointer;font-family:var(--font-regular);display:flex;flex-direction:row;align-items:center;gap:6px;justify-content:center;margin-left:10px}._actionButton_fnryu_63._withIcon_fnryu_77{justify-content:space-between}._actionButton_fnryu_63._small_fnryu_81{margin-right:4px}._actionButton_fnryu_63._medium_fnryu_34{margin-right:6px}._actionButton_fnryu_63._large_fnryu_89{margin-right:8px;margin-left:14px}._closeButton_fnryu_95{flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;padding-inline:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}._closeButton_fnryu_95:active{transform:scale(.95)}._entering_fnryu_113{animation:_staticToastIn_fnryu_1 .3s cubic-bezier(.16,1,.3,1) forwards}._exiting_fnryu_117{animation:_staticToastOut_fnryu_1 .3s cubic-bezier(.4,0,1,1) forwards}@keyframes _staticToastIn_fnryu_1{0%{opacity:0;transform:translateY(-6px) scale(.98);filter:blur(3px)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}}@keyframes _staticToastOut_fnryu_1{0%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}to{opacity:0;transform:translateY(-6px) scale(.98);filter:blur(3px)}}@media (prefers-reduced-motion: reduce){._toast_fnryu_2,._entering_fnryu_113,._exiting_fnryu_117{animation:none!important}}._content_fnryu_50:only-child,._content_fnryu_50:not(:has(._body_fnryu_158)){justify-content:center}@media (max-width: 720px){._topRow_fnryu_18._withAction_fnryu_163{align-items:flex-start}._topRow_fnryu_18._small_fnryu_81{align-items:center}._iconAndContent_fnryu_25._withAction_fnryu_163{align-items:flex-start}._iconAndContent_fnryu_25._small_fnryu_81{align-items:center}._closeButton_fnryu_95{order:2}._actionButton_fnryu_63{order:3;width:100%;margin-top:10px;margin-left:0}._actionButton_fnryu_63._large_fnryu_89{margin-top:14px}}
@@ -1 +1 @@
1
- ._toast_14awx_1{position:fixed;min-width:320px;max-width:420px;border-radius:12px;align-items:center;z-index:9000;border-left:4px solid;overflow:hidden;cursor:default;display:flex;flex-direction:column;gap:.75em}._topRow_14awx_17{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%}._topRow_14awx_17._large_14awx_25{gap:14px}._iconAndContent_14awx_29{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_14awx_29._medium_14awx_38{gap:6px}._position_top_right_14awx_43{top:1rem;right:1rem}._position_top_left_14awx_48{top:1rem;left:1rem}._position_bottom_right_14awx_53{bottom:1rem;right:1rem}._position_bottom_left_14awx_58{bottom:1rem;left:1rem}._position_top_center_14awx_63{top:1rem;left:50%;transform:translate(-50%)}._position_bottom_center_14awx_69{bottom:1rem;left:50%;transform:translate(-50%)}._iconContainer_14awx_76{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_14awx_87{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1;min-width:0;gap:2px;overflow:visible;word-break:break-word}._title_14awx_99{font-weight:600;font-size:.9rem;color:#000}._actionButton_14awx_106{background:transparent;border:none;border-radius:1000px;cursor:pointer;font-family:var(--font-regular);flex-shrink:0}._closeButton_14awx_116{flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;padding-inline:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}._closeButton_14awx_116:active{transform:scale(.95)}._position_top_right_14awx_43._exiting_14awx_134,._position_bottom_right_14awx_53._exiting_14awx_134{animation:_slideOutToRight_14awx_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_right_14awx_43._entering_14awx_140,._position_bottom_right_14awx_53._entering_14awx_140{animation:_slideInFromRight_14awx_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_left_14awx_48._exiting_14awx_134,._position_bottom_left_14awx_58._exiting_14awx_134{animation:_slideOutToLeft_14awx_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_left_14awx_48._entering_14awx_140,._position_bottom_left_14awx_58._entering_14awx_140{animation:_slideInFromLeft_14awx_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_center_14awx_63._exiting_14awx_134{animation:_slideOutToTop_14awx_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_center_14awx_63._entering_14awx_140{animation:_slideInFromTop_14awx_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_bottom_center_14awx_69._exiting_14awx_134{animation:_slideOutToBottom_14awx_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_bottom_center_14awx_69._entering_14awx_140{animation:_slideInFromBottom_14awx_1 .4s cubic-bezier(.16,1,.3,1) forwards}@keyframes _slideInFromRight_14awx_1{0%{transform:translate(100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromLeft_14awx_1{0%{transform:translate(-100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromTop_14awx_1{0%{transform:translate(-50%) translateY(-100%);opacity:0;filter:blur(4px)}to{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromBottom_14awx_1{0%{transform:translate(-50%) translateY(100%);opacity:0;filter:blur(4px)}to{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0)}}@keyframes _slideOutToRight_14awx_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToLeft_14awx_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(-120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToTop_14awx_1{0%{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0px)}to{transform:translate(-50%) translateY(-120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToBottom_14awx_1{0%{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0px)}to{transform:translate(-50%) translateY(120%);opacity:0;filter:blur(4px)}}._toast_14awx_1:hover{transition:all .2s cubic-bezier(.4,0,.2,1)}@media (max-width: 905px){._toast_14awx_1{min-width:unset;max-width:unset;width:calc(100% - 1rem);left:0;right:0;margin-inline:auto}._toast_14awx_1._position_top_center_14awx_63,._toast_14awx_1._position_bottom_center_14awx_69{left:50%}}@media (max-width: 720px){._topRow_14awx_17{align-items:flex-start}._topRow_14awx_17._small_14awx_312{align-items:center}._iconAndContent_14awx_29{align-items:flex-start}._iconAndContent_14awx_29._small_14awx_312{align-items:center}._closeButton_14awx_116{order:2}._actionButton_14awx_106{order:3;width:100%;flex-shrink:unset;display:flex;align-items:center;justify-content:center}._actionButton_14awx_106._small_14awx_312{margin-right:4px}._actionButton_14awx_106._medium_14awx_38{margin-right:6px}._actionButton_14awx_106._large_14awx_25{margin-right:8px}}@media (prefers-reduced-motion: reduce){._toast_14awx_1{animation:none!important}._toast_14awx_1:hover{transition:none}}._content_14awx_87:only-child,._content_14awx_87:not(:has(._body_14awx_363)){justify-content:center}
1
+ ._toast_ni99f_1{position:fixed;min-width:320px;max-width:420px;border-radius:12px;align-items:center;z-index:9000;border-left:4px solid;overflow:hidden;cursor:default;display:flex;flex-direction:column;gap:.75em}._topRow_ni99f_17{display:flex;align-items:center;flex-wrap:wrap;width:100%}._iconAndContent_ni99f_24{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_ni99f_24._medium_ni99f_33{gap:6px}._position_top_right_ni99f_38{top:1rem;right:1rem}._position_top_left_ni99f_43{top:1rem;left:1rem}._position_bottom_right_ni99f_48{bottom:1rem;right:1rem}._position_bottom_left_ni99f_53{bottom:1rem;left:1rem}._position_top_center_ni99f_58{top:1rem;left:50%;transform:translate(-50%)}._position_bottom_center_ni99f_64{bottom:1rem;left:50%;transform:translate(-50%)}._iconContainer_ni99f_71{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_ni99f_82{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;flex:1;min-width:0;gap:2px;overflow:visible;word-break:break-word}._title_ni99f_94{font-weight:600;font-size:.9rem;color:#000}._actions_ni99f_100{display:flex;justify-content:center;align-items:center}._actionButton_ni99f_107{background:transparent;border:none;border-radius:1000px;cursor:pointer;font-family:var(--font-regular);display:flex;flex-direction:row;align-items:center;gap:6px;justify-content:center;margin-left:10px}._actionButton_ni99f_107._withIcon_ni99f_121{justify-content:space-between}._actionButton_ni99f_107._small_ni99f_125{margin-right:4px}._actionButton_ni99f_107._medium_ni99f_33{margin-right:6px}._actionButton_ni99f_107._large_ni99f_133{margin-right:8px;margin-left:14px}._closeButton_ni99f_139{flex-shrink:0;background:none;border:none;cursor:pointer;padding:0;padding-inline:10px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}._closeButton_ni99f_139:active{transform:scale(.95)}._position_top_right_ni99f_38._exiting_ni99f_157,._position_bottom_right_ni99f_48._exiting_ni99f_157{animation:_slideOutToRight_ni99f_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_right_ni99f_38._entering_ni99f_163,._position_bottom_right_ni99f_48._entering_ni99f_163{animation:_slideInFromRight_ni99f_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_left_ni99f_43._exiting_ni99f_157,._position_bottom_left_ni99f_53._exiting_ni99f_157{animation:_slideOutToLeft_ni99f_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_left_ni99f_43._entering_ni99f_163,._position_bottom_left_ni99f_53._entering_ni99f_163{animation:_slideInFromLeft_ni99f_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_center_ni99f_58._exiting_ni99f_157{animation:_slideOutToTop_ni99f_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_center_ni99f_58._entering_ni99f_163{animation:_slideInFromTop_ni99f_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_bottom_center_ni99f_64._exiting_ni99f_157{animation:_slideOutToBottom_ni99f_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_bottom_center_ni99f_64._entering_ni99f_163{animation:_slideInFromBottom_ni99f_1 .4s cubic-bezier(.16,1,.3,1) forwards}@keyframes _slideInFromRight_ni99f_1{0%{transform:translate(100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromLeft_ni99f_1{0%{transform:translate(-100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromTop_ni99f_1{0%{transform:translate(-50%) translateY(-100%);opacity:0;filter:blur(4px)}to{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromBottom_ni99f_1{0%{transform:translate(-50%) translateY(100%);opacity:0;filter:blur(4px)}to{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0)}}@keyframes _slideOutToRight_ni99f_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToLeft_ni99f_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(-120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToTop_ni99f_1{0%{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0px)}to{transform:translate(-50%) translateY(-120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToBottom_ni99f_1{0%{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0px)}to{transform:translate(-50%) translateY(120%);opacity:0;filter:blur(4px)}}._toast_ni99f_1:hover{transition:all .2s cubic-bezier(.4,0,.2,1)}@media (max-width: 905px){._toast_ni99f_1{min-width:unset;max-width:unset;width:calc(100% - 1rem);left:0;right:0;margin-inline:auto}._toast_ni99f_1._position_top_center_ni99f_58,._toast_ni99f_1._position_bottom_center_ni99f_64{left:50%}}@media (max-width: 720px){._topRow_ni99f_17._withAction_ni99f_331{align-items:flex-start}._topRow_ni99f_17._small_ni99f_125{align-items:center}._iconAndContent_ni99f_24._withAction_ni99f_331{align-items:flex-start}._iconAndContent_ni99f_24._small_ni99f_125{align-items:center}._closeButton_ni99f_139{order:2}._actionButton_ni99f_107{order:3;width:100%;margin-top:10px;margin-left:0}._actionButton_ni99f_107._large_ni99f_133{margin-top:14px}}@media (prefers-reduced-motion: reduce){._toast_ni99f_1{animation:none!important}._toast_ni99f_1:hover{transition:none}}._content_ni99f_82:only-child,._content_ni99f_82:not(:has(._body_ni99f_376)){justify-content:center}
@@ -1,53 +1,55 @@
1
- import { jsx as a, jsxs as s } from "react/jsx-runtime";
2
- import { useState as j, useEffect as y } from "react";
3
- import { Icon as x } from "../../icons/Icon.js";
4
- import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1nqnj_18", $ = "_large_1nqnj_26", D = "_iconAndContent_1nqnj_30", H = "_medium_1nqnj_39", M = "_iconContainer_1nqnj_44", O = "_content_1nqnj_55", P = "_actionButton_1nqnj_68", W = "_closeButton_1nqnj_82", G = "_entering_1nqnj_100", J = "_staticToastIn_1nqnj_1", K = "_exiting_1nqnj_104", L = "_staticToastOut_1nqnj_1", Q = "_body_1nqnj_145", U = "_small_1nqnj_154", t = {
5
- toast: w,
6
- topRow: N,
7
- large: $,
8
- iconAndContent: D,
1
+ import { jsx as i, jsxs as s } from "react/jsx-runtime";
2
+ import { useState as A, useEffect as F } from "react";
3
+ import { Icon as y } from "../../icons/Icon.js";
4
+ import '../../assets/StaticToast.css';const N = "_toast_fnryu_2", D = "_topRow_fnryu_18", j = "_iconAndContent_fnryu_25", H = "_medium_fnryu_34", M = "_iconContainer_fnryu_39", O = "_content_fnryu_50", P = "_actionButton_fnryu_63", W = "_withIcon_fnryu_77", q = "_small_fnryu_81", G = "_large_fnryu_89", J = "_closeButton_fnryu_95", K = "_entering_fnryu_113", L = "_staticToastIn_fnryu_1", Q = "_exiting_fnryu_117", U = "_staticToastOut_fnryu_1", X = "_body_fnryu_158", Y = "_withAction_fnryu_163", t = {
5
+ toast: N,
6
+ topRow: D,
7
+ iconAndContent: j,
9
8
  medium: H,
10
9
  iconContainer: M,
11
10
  content: O,
12
11
  actionButton: P,
13
- closeButton: W,
14
- entering: G,
15
- staticToastIn: J,
16
- exiting: K,
17
- staticToastOut: L,
18
- body: Q,
19
- small: U
20
- }, V = ({
21
- type: q = "info",
22
- title: C,
23
- body: f,
12
+ withIcon: W,
13
+ small: q,
14
+ large: G,
15
+ closeButton: J,
16
+ entering: K,
17
+ staticToastIn: L,
18
+ exiting: Q,
19
+ staticToastOut: U,
20
+ body: X,
21
+ withAction: Y
22
+ }, z = ({
23
+ type: w = "info",
24
+ title: p,
25
+ body: x,
24
26
  size: e = "small",
25
- icon: A,
27
+ icon: B,
26
28
  isVisible: u = !0,
27
- closable: B = !1,
29
+ closable: E = !1,
28
30
  onClose: g,
29
31
  autoClose: h = !1,
30
32
  duration: m = 5e3,
31
- className: E,
33
+ className: I,
32
34
  style: k,
33
- action: d
35
+ action: r
34
36
  }) => {
35
- const [i, R] = j(u), [b, F] = j(!1);
36
- y(() => {
37
- u ? (F(!1), R(!0)) : i && _();
38
- }, [u]), y(() => {
39
- if (h && i && !b && m > 0) {
40
- const c = setTimeout(() => {
41
- _();
37
+ const [a, C] = A(u), [_, R] = A(!1);
38
+ F(() => {
39
+ u ? (R(!1), C(!0)) : a && b();
40
+ }, [u]), F(() => {
41
+ if (h && a && !_ && m > 0) {
42
+ const d = setTimeout(() => {
43
+ b();
42
44
  }, m);
43
- return () => clearTimeout(c);
45
+ return () => clearTimeout(d);
44
46
  }
45
- }, [i, m, h, b]);
46
- const _ = () => {
47
- F(!0), setTimeout(() => {
48
- R(!1), g == null || g();
47
+ }, [a, m, h, _]);
48
+ const b = () => {
49
+ R(!0), setTimeout(() => {
50
+ C(!1), g == null || g();
49
51
  }, 300);
50
- }, r = {
52
+ }, c = {
51
53
  small: "10px 4px 10px 8px",
52
54
  medium: "14px 10px",
53
55
  large: "14px 7px 14px 14px"
@@ -68,7 +70,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
68
70
  minHeight: "42px",
69
71
  paddingInline: "14px"
70
72
  }
71
- }, p = {
73
+ }, f = {
72
74
  small: {
73
75
  title: "small2Medium",
74
76
  actionButton: "small2Regular",
@@ -84,14 +86,14 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
84
86
  actionButton: "title6Regular",
85
87
  body: "bodyRegular"
86
88
  }
87
- }, I = (c, o) => {
88
- switch (c) {
89
+ }, $ = (d, o) => {
90
+ switch (d) {
89
91
  case "brand":
90
92
  return {
91
93
  borderColor: "#2054A5",
92
94
  background: "#FFF",
93
95
  color: "#2054A5",
94
- padding: r[o],
96
+ padding: c[o],
95
97
  borderRadius: l[o]
96
98
  };
97
99
  case "info":
@@ -99,7 +101,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
99
101
  borderColor: "#2054A5",
100
102
  background: "#EEF3FC",
101
103
  color: "#2054A5",
102
- padding: r[o],
104
+ padding: c[o],
103
105
  borderRadius: l[o]
104
106
  };
105
107
  case "new":
@@ -107,7 +109,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
107
109
  borderColor: "#0F93A8",
108
110
  background: "#D6F4F8",
109
111
  color: "#065564",
110
- padding: r[o],
112
+ padding: c[o],
111
113
  borderRadius: l[o]
112
114
  };
113
115
  case "pending":
@@ -115,7 +117,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
115
117
  borderColor: "#CA8A04",
116
118
  background: "#FEFDE8",
117
119
  color: "#713F12",
118
- padding: r[o],
120
+ padding: c[o],
119
121
  borderRadius: l[o]
120
122
  };
121
123
  case "positive":
@@ -123,7 +125,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
123
125
  borderColor: "#65A30D",
124
126
  background: "#F7FEE7",
125
127
  color: "#365314",
126
- padding: r[o],
128
+ padding: c[o],
127
129
  borderRadius: l[o]
128
130
  };
129
131
  case "warning":
@@ -131,7 +133,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
131
133
  borderColor: "#EA580C",
132
134
  background: "#FFEDD5",
133
135
  color: "#7C2D12",
134
- padding: r[o],
136
+ padding: c[o],
135
137
  borderRadius: l[o]
136
138
  };
137
139
  case "negative":
@@ -139,7 +141,7 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
139
141
  borderColor: "#DC2626",
140
142
  background: "#FEF2F2",
141
143
  color: "#B91C1C",
142
- padding: r[o],
144
+ padding: c[o],
143
145
  borderRadius: l[o]
144
146
  };
145
147
  default:
@@ -147,18 +149,18 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
147
149
  borderColor: "#2054A5",
148
150
  background: "#EEF3FC",
149
151
  color: "#2054A5",
150
- padding: r[o],
152
+ padding: c[o],
151
153
  borderRadius: l[o]
152
154
  };
153
155
  }
154
156
  };
155
- if (!i) return null;
157
+ if (!a) return null;
156
158
  const T = [
157
159
  t.toast,
158
- b ? t.exiting : t.entering,
159
- E
160
- ].filter(Boolean).join(" "), n = I(q, e);
161
- return /* @__PURE__ */ a(
160
+ _ ? t.exiting : t.entering,
161
+ I
162
+ ].filter(Boolean).join(" "), n = $(w, e);
163
+ return /* @__PURE__ */ i(
162
164
  "div",
163
165
  {
164
166
  className: T,
@@ -171,78 +173,90 @@ import '../../assets/StaticToast.css';const w = "_toast_1nqnj_2", N = "_topRow_1
171
173
  },
172
174
  role: "alert",
173
175
  "aria-live": "polite",
174
- children: /* @__PURE__ */ s("div", { className: `${t.topRow} ${t[e]}`, children: [
175
- /* @__PURE__ */ s("div", { className: `${t.iconAndContent} ${t[e]}`, children: [
176
- /* @__PURE__ */ a("div", { className: t.iconContainer, children: /* @__PURE__ */ a(
177
- x,
178
- {
179
- name: A || "Info",
180
- fill: n == null ? void 0 : n.color,
181
- width: 25,
182
- height: 25
183
- }
184
- ) }),
185
- /* @__PURE__ */ s("div", { className: t.content, children: [
186
- C && /* @__PURE__ */ a(
176
+ children: /* @__PURE__ */ s(
177
+ "div",
178
+ {
179
+ className: `${t.topRow} ${r ? t.withAction : ""} ${t[e]}`,
180
+ children: [
181
+ /* @__PURE__ */ s(
187
182
  "div",
188
183
  {
189
- className: p[e].title,
190
- style: { fontWeight: 600 },
191
- children: C
184
+ className: `${t.iconAndContent} ${r ? t.withAction : ""} ${t[e]}`,
185
+ children: [
186
+ /* @__PURE__ */ i("div", { className: t.iconContainer, children: /* @__PURE__ */ i(
187
+ y,
188
+ {
189
+ name: B || "Info",
190
+ fill: n == null ? void 0 : n.color,
191
+ width: 25,
192
+ height: 25
193
+ }
194
+ ) }),
195
+ /* @__PURE__ */ s("div", { className: t.content, children: [
196
+ p && /* @__PURE__ */ i(
197
+ "div",
198
+ {
199
+ className: f[e].title,
200
+ style: { fontWeight: 600 },
201
+ children: p
202
+ }
203
+ ),
204
+ x && /* @__PURE__ */ i(
205
+ "div",
206
+ {
207
+ className: f[e].body,
208
+ style: { color: n == null ? void 0 : n.color },
209
+ children: x
210
+ }
211
+ )
212
+ ] })
213
+ ]
192
214
  }
193
215
  ),
194
- f && /* @__PURE__ */ a(
195
- "div",
216
+ r && /* @__PURE__ */ s(
217
+ "button",
196
218
  {
197
- className: p[e].body,
198
- style: { color: n == null ? void 0 : n.color },
199
- children: f
219
+ type: "button",
220
+ onClick: () => {
221
+ var d;
222
+ return (d = r.function) == null ? void 0 : d.call(r);
223
+ },
224
+ className: `${f[e].actionButton} ${t.actionButton} ${r.icon ? t.withIcon : ""} ${t[e]}`,
225
+ style: {
226
+ border: `1px solid ${n == null ? void 0 : n.color}`,
227
+ color: n == null ? void 0 : n.color,
228
+ ...v[e]
229
+ },
230
+ children: [
231
+ r.label,
232
+ r.icon && /* @__PURE__ */ i(y, { ...r.icon })
233
+ ]
200
234
  }
201
- )
202
- ] })
203
- ] }),
204
- d && /* @__PURE__ */ s(
205
- "button",
206
- {
207
- type: "button",
208
- onClick: () => {
209
- var c;
210
- return (c = d.function) == null ? void 0 : c.call(d);
211
- },
212
- className: `${p[e].actionButton} ${t.actionButton} ${t[e]}`,
213
- style: {
214
- border: `1px solid ${n == null ? void 0 : n.color}`,
215
- color: n == null ? void 0 : n.color,
216
- ...v[e]
217
- },
218
- children: [
219
- d.label,
220
- d.icon && /* @__PURE__ */ a(x, { ...d.icon })
221
- ]
222
- }
223
- ),
224
- B && /* @__PURE__ */ a(
225
- "button",
226
- {
227
- type: "button",
228
- className: t.closeButton,
229
- onClick: _,
230
- "aria-label": "Cerrar notificación",
231
- children: /* @__PURE__ */ a(
232
- x,
235
+ ),
236
+ E && /* @__PURE__ */ i(
237
+ "button",
233
238
  {
234
- name: "CancelIcon",
235
- fill: n == null ? void 0 : n.color,
236
- width: 20,
237
- height: 20
239
+ type: "button",
240
+ className: t.closeButton,
241
+ onClick: b,
242
+ "aria-label": "Cerrar notificación",
243
+ children: /* @__PURE__ */ i(
244
+ y,
245
+ {
246
+ name: "CancelIcon",
247
+ fill: n == null ? void 0 : n.color,
248
+ width: 20,
249
+ height: 20
250
+ }
251
+ )
238
252
  }
239
253
  )
240
- }
241
- )
242
- ] })
254
+ ]
255
+ }
256
+ )
243
257
  }
244
258
  );
245
259
  };
246
260
  export {
247
- V as StaticToast
261
+ z as StaticToast
248
262
  };
@@ -1,71 +1,74 @@
1
- import { jsx as r, jsxs as c } from "react/jsx-runtime";
2
- import { useState as C, useEffect as R } from "react";
3
- import { createPortal as D } from "react-dom";
4
- import { Icon as x } from "../../icons/Icon.js";
5
- import '../../assets/Toast.css';const $ = "_toast_14awx_1", L = "_topRow_14awx_17", P = "_large_14awx_25", j = "_iconAndContent_14awx_29", H = "_medium_14awx_38", M = "_position_top_right_14awx_43", W = "_position_top_left_14awx_48", q = "_position_bottom_right_14awx_53", G = "_position_bottom_left_14awx_58", J = "_position_top_center_14awx_63", K = "_position_bottom_center_14awx_69", Q = "_iconContainer_14awx_76", U = "_content_14awx_87", X = "_title_14awx_99", Y = "_actionButton_14awx_106", Z = "_closeButton_14awx_116", V = "_exiting_14awx_134", S = "_slideOutToRight_14awx_1", z = "_entering_14awx_140", oo = "_slideInFromRight_14awx_1", to = "_slideOutToLeft_14awx_1", no = "_slideInFromLeft_14awx_1", eo = "_slideOutToTop_14awx_1", io = "_slideInFromTop_14awx_1", ro = "_slideOutToBottom_14awx_1", lo = "_slideInFromBottom_14awx_1", so = "_small_14awx_312", ao = "_body_14awx_363", n = {
6
- toast: $,
1
+ import { jsx as c, jsxs as _ } from "react/jsx-runtime";
2
+ import { useState as R, useEffect as I } from "react";
3
+ import { createPortal as N } from "react-dom";
4
+ import { Icon as f } from "../../icons/Icon.js";
5
+ import '../../assets/Toast.css';const D = "_toast_ni99f_1", L = "_topRow_ni99f_17", P = "_iconAndContent_ni99f_24", j = "_medium_ni99f_33", H = "_position_top_right_ni99f_38", M = "_position_top_left_ni99f_43", W = "_position_bottom_right_ni99f_48", q = "_position_bottom_left_ni99f_53", G = "_position_top_center_ni99f_58", J = "_position_bottom_center_ni99f_64", K = "_iconContainer_ni99f_71", Q = "_content_ni99f_82", U = "_title_ni99f_94", X = "_actions_ni99f_100", Y = "_actionButton_ni99f_107", Z = "_withIcon_ni99f_121", V = "_small_ni99f_125", S = "_large_ni99f_133", z = "_closeButton_ni99f_139", oo = "_exiting_ni99f_157", to = "_slideOutToRight_ni99f_1", no = "_entering_ni99f_163", io = "_slideInFromRight_ni99f_1", eo = "_slideOutToLeft_ni99f_1", ro = "_slideInFromLeft_ni99f_1", lo = "_slideOutToTop_ni99f_1", co = "_slideInFromTop_ni99f_1", so = "_slideOutToBottom_ni99f_1", _o = "_slideInFromBottom_ni99f_1", ao = "_withAction_ni99f_331", uo = "_body_ni99f_376", n = {
6
+ toast: D,
7
7
  topRow: L,
8
- large: P,
9
- iconAndContent: j,
10
- medium: H,
11
- position_top_right: M,
12
- position_top_left: W,
13
- position_bottom_right: q,
14
- position_bottom_left: G,
15
- position_top_center: J,
16
- position_bottom_center: K,
17
- iconContainer: Q,
18
- content: U,
19
- title: X,
8
+ iconAndContent: P,
9
+ medium: j,
10
+ position_top_right: H,
11
+ position_top_left: M,
12
+ position_bottom_right: W,
13
+ position_bottom_left: q,
14
+ position_top_center: G,
15
+ position_bottom_center: J,
16
+ iconContainer: K,
17
+ content: Q,
18
+ title: U,
19
+ actions: X,
20
20
  actionButton: Y,
21
- closeButton: Z,
22
- exiting: V,
23
- slideOutToRight: S,
24
- entering: z,
25
- slideInFromRight: oo,
26
- slideOutToLeft: to,
27
- slideInFromLeft: no,
28
- slideOutToTop: eo,
29
- slideInFromTop: io,
30
- slideOutToBottom: ro,
31
- slideInFromBottom: lo,
32
- small: so,
33
- body: ao
34
- }, go = ({
21
+ withIcon: Z,
22
+ small: V,
23
+ large: S,
24
+ closeButton: z,
25
+ exiting: oo,
26
+ slideOutToRight: to,
27
+ entering: no,
28
+ slideInFromRight: io,
29
+ slideOutToLeft: eo,
30
+ slideInFromLeft: ro,
31
+ slideOutToTop: lo,
32
+ slideInFromTop: co,
33
+ slideOutToBottom: so,
34
+ slideInFromBottom: _o,
35
+ withAction: ao,
36
+ body: uo
37
+ }, bo = ({
35
38
  type: B = "info",
36
39
  title: b,
37
- body: w,
38
- duration: _ = 5e3,
40
+ body: h,
41
+ duration: a = 5e3,
39
42
  icon: T,
40
- size: l = "small",
41
- position: I = "top-right",
42
- isVisible: a = !0,
43
+ size: e = "small",
44
+ position: A = "top-right",
45
+ isVisible: d = !0,
43
46
  onClose: u,
44
- autoClose: f = !0,
45
- closable: y = !1,
46
- className: A,
47
- action: d
47
+ autoClose: F = !0,
48
+ closable: w = !1,
49
+ className: y,
50
+ action: i
48
51
  }) => {
49
- const [m, h] = C(a), [E, F] = C(!1), g = () => {
50
- F(!0), setTimeout(() => {
51
- h(!1), u == null || u();
52
+ const [m, x] = R(d), [E, C] = R(!1), g = () => {
53
+ C(!0), setTimeout(() => {
54
+ x(!1), u == null || u();
52
55
  }, 300);
53
56
  };
54
- R(() => {
55
- h(a), a && F(!1);
56
- }, [a]), R(() => {
57
- if (f && m && _ > 0) {
57
+ I(() => {
58
+ x(d), d && C(!1);
59
+ }, [d]), I(() => {
60
+ if (F && m && a > 0) {
58
61
  const s = setTimeout(() => {
59
62
  g();
60
- }, _);
63
+ }, a);
61
64
  return () => clearTimeout(s);
62
65
  }
63
- }, [m, _, f]);
64
- const e = {
66
+ }, [m, a, F]);
67
+ const r = {
65
68
  small: "10px 4px 10px 8px",
66
69
  medium: "14px 10px",
67
70
  large: "14px 7px 14px 14px"
68
- }, i = {
71
+ }, l = {
69
72
  small: "16px",
70
73
  medium: "16px",
71
74
  large: "24px"
@@ -105,77 +108,77 @@ import '../../assets/Toast.css';const $ = "_toast_14awx_1", L = "_topRow_14awx_1
105
108
  borderColor: "#2054A5",
106
109
  background: "#FFF",
107
110
  color: "#2054A5",
108
- padding: e[t],
109
- borderRadius: i[t]
111
+ padding: r[t],
112
+ borderRadius: l[t]
110
113
  };
111
114
  case "info":
112
115
  return {
113
116
  borderColor: "#2054A5",
114
117
  background: "#EEF3FC",
115
118
  color: "#2054A5",
116
- padding: e[t],
117
- borderRadius: i[t]
119
+ padding: r[t],
120
+ borderRadius: l[t]
118
121
  };
119
122
  case "new":
120
123
  return {
121
124
  borderColor: "#0F93A8",
122
125
  background: "#D6F4F8",
123
126
  color: "#065564",
124
- padding: e[t],
125
- borderRadius: i[t]
127
+ padding: r[t],
128
+ borderRadius: l[t]
126
129
  };
127
130
  case "pending":
128
131
  return {
129
132
  borderColor: "#CA8A04",
130
133
  background: "#FEFDE8",
131
134
  color: "#713F12",
132
- padding: e[t],
133
- borderRadius: i[t]
135
+ padding: r[t],
136
+ borderRadius: l[t]
134
137
  };
135
138
  case "positive":
136
139
  return {
137
140
  borderColor: "#65A30D",
138
141
  background: "#F7FEE7",
139
142
  color: "#365314",
140
- padding: e[t],
141
- borderRadius: i[t]
143
+ padding: r[t],
144
+ borderRadius: l[t]
142
145
  };
143
146
  case "warning":
144
147
  return {
145
148
  borderColor: "#EA580C",
146
149
  background: "#FFEDD5",
147
150
  color: "#7C2D12",
148
- padding: e[t],
149
- borderRadius: i[t]
151
+ padding: r[t],
152
+ borderRadius: l[t]
150
153
  };
151
154
  case "negative":
152
155
  return {
153
156
  borderColor: "#DC2626",
154
157
  background: "#FEF2F2",
155
158
  color: "#B91C1C",
156
- padding: e[t],
157
- borderRadius: i[t]
159
+ padding: r[t],
160
+ borderRadius: l[t]
158
161
  };
159
162
  default:
160
163
  return {
161
164
  borderColor: "#2054A5",
162
165
  background: "#EEF3FC",
163
166
  color: "#2054A5",
164
- padding: e[t],
165
- borderRadius: i[t]
167
+ padding: r[t],
168
+ borderRadius: l[t]
166
169
  };
167
170
  }
168
171
  };
169
172
  if (!m) return null;
170
- const v = [
173
+ const $ = [
171
174
  n.toast,
172
- n[`position_${I.replace("-", "_")}`],
175
+ n[`position_${A.replace("-", "_")}`],
173
176
  E ? n.exiting : n.entering,
174
- A
175
- ].filter(Boolean).join(" "), o = O(B, l), N = /* @__PURE__ */ r(
177
+ y
178
+ ].filter(Boolean).join(" "), o = O(B, e), v = /* @__PURE__ */ c(
176
179
  "div",
177
180
  {
178
- className: v,
181
+ className: $,
179
182
  style: {
180
183
  border: "1px solid " + o.borderColor,
181
184
  background: o.background,
@@ -186,84 +189,96 @@ import '../../assets/Toast.css';const $ = "_toast_14awx_1", L = "_topRow_14awx_1
186
189
  role: "alert",
187
190
  "aria-live": "polite",
188
191
  onClick: g,
189
- children: /* @__PURE__ */ c("div", { className: `${n.topRow} ${n[l]}`, children: [
190
- /* @__PURE__ */ c("div", { className: n.iconAndContent, children: [
191
- /* @__PURE__ */ r("div", { className: n.iconContainer, children: /* @__PURE__ */ r(
192
- x,
193
- {
194
- name: T || "Info",
195
- fill: o == null ? void 0 : o.color,
196
- width: 25,
197
- height: 25
198
- }
199
- ) }),
200
- /* @__PURE__ */ c("div", { className: n.content, children: [
201
- b && /* @__PURE__ */ r(
192
+ children: /* @__PURE__ */ _(
193
+ "div",
194
+ {
195
+ className: `${n.topRow} ${i ? n.withAction : ""} ${n[e]}`,
196
+ children: [
197
+ /* @__PURE__ */ _(
202
198
  "div",
203
199
  {
204
- className: p[l].title,
205
- style: { fontWeight: 600 },
206
- children: b
200
+ className: `${n.iconAndContent} ${i ? n.withAction : ""} ${n[e]}`,
201
+ children: [
202
+ /* @__PURE__ */ c("div", { className: n.iconContainer, children: /* @__PURE__ */ c(
203
+ f,
204
+ {
205
+ name: T || "Info",
206
+ fill: o == null ? void 0 : o.color,
207
+ width: 25,
208
+ height: 25
209
+ }
210
+ ) }),
211
+ /* @__PURE__ */ _("div", { className: n.content, children: [
212
+ b && /* @__PURE__ */ c(
213
+ "div",
214
+ {
215
+ className: p[e].title,
216
+ style: { fontWeight: 600 },
217
+ children: b
218
+ }
219
+ ),
220
+ h && /* @__PURE__ */ c(
221
+ "div",
222
+ {
223
+ className: p[e].body,
224
+ style: { color: o == null ? void 0 : o.color },
225
+ children: h
226
+ }
227
+ )
228
+ ] })
229
+ ]
207
230
  }
208
231
  ),
209
- w && /* @__PURE__ */ r(
210
- "div",
232
+ i && /* @__PURE__ */ _(
233
+ "button",
211
234
  {
212
- className: p[l].body,
213
- style: { color: o == null ? void 0 : o.color },
214
- children: w
235
+ type: "button",
236
+ onClick: (s) => {
237
+ var t;
238
+ s.stopPropagation(), (t = i.function) == null || t.call(i);
239
+ },
240
+ className: `${p[e].actionButton} ${n.actionButton} ${i.icon ? n.withIcon : ""} ${n[e]}`,
241
+ style: {
242
+ border: `1px solid ${o == null ? void 0 : o.color}`,
243
+ color: o == null ? void 0 : o.color,
244
+ ...k[e]
245
+ },
246
+ children: [
247
+ i.label,
248
+ i.icon && /* @__PURE__ */ c(f, { ...i.icon })
249
+ ]
215
250
  }
216
- )
217
- ] })
218
- ] }),
219
- d && /* @__PURE__ */ c(
220
- "button",
221
- {
222
- type: "button",
223
- onClick: (s) => {
224
- var t;
225
- s.stopPropagation(), (t = d.function) == null || t.call(d);
226
- },
227
- className: `${p[l].actionButton} ${n.actionButton} ${n[l]}`,
228
- style: {
229
- border: `1px solid ${o == null ? void 0 : o.borderColor}`,
230
- color: o == null ? void 0 : o.color,
231
- ...k[l]
232
- },
233
- children: [
234
- d.label,
235
- d.icon && /* @__PURE__ */ r(x, { ...d.icon })
236
- ]
237
- }
238
- ),
239
- y && /* @__PURE__ */ r(
240
- "button",
241
- {
242
- type: "button",
243
- className: n.closeButton,
244
- onClick: (s) => {
245
- s.stopPropagation(), g();
246
- },
247
- "aria-label": "Cerrar notificación",
248
- children: /* @__PURE__ */ r(
249
- x,
251
+ ),
252
+ w && /* @__PURE__ */ c(
253
+ "button",
250
254
  {
251
- name: "CancelIcon",
252
- fill: o == null ? void 0 : o.color,
253
- width: 20,
254
- height: 20
255
+ type: "button",
256
+ className: n.closeButton,
257
+ onClick: (s) => {
258
+ s.stopPropagation(), g();
259
+ },
260
+ "aria-label": "Cerrar notificación",
261
+ children: /* @__PURE__ */ c(
262
+ f,
263
+ {
264
+ name: "CancelIcon",
265
+ fill: o == null ? void 0 : o.color,
266
+ width: 20,
267
+ height: 20
268
+ }
269
+ )
255
270
  }
256
271
  )
257
- }
258
- )
259
- ] })
272
+ ]
273
+ }
274
+ )
260
275
  }
261
276
  );
262
- return D(
263
- N,
277
+ return N(
278
+ v,
264
279
  document.getElementById("root") || document.body
265
280
  );
266
281
  };
267
282
  export {
268
- go as Toast
283
+ bo as Toast
269
284
  };
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.9.0",
4
+ "version": "2.9.2",
5
5
  "author": "BMI Ahorro España",
6
6
  "contributors": [
7
7
  "José Ramón Jiménez <jrjimenez@bmicos.com>",