bmi-next-brokers 2.8.9 → 2.9.1
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/assets/StaticToast.css +1 -1
- package/dist/assets/Toast.css +1 -1
- package/dist/components/StaticToast/StaticToast.d.ts +3 -2
- package/dist/components/StaticToast/StaticToast.js +216 -182
- package/dist/components/Toast/Toast.d.ts +17 -3
- package/dist/components/Toast/Toast.js +233 -196
- package/dist/icons/Icon.d.ts +1 -2
- package/dist/icons/components/Add.js +40 -7
- package/dist/icons/components/AddAPhoto.js +11 -7
- package/dist/icons/components/AddAlert.js +41 -37
- package/dist/icons/components/AddIcon.js +12 -8
- package/dist/icons/components/AdminMeds.js +41 -37
- package/dist/icons/components/Adn.js +41 -8
- package/dist/icons/components/AmericanExpress.js +13 -9
- package/dist/icons/components/AmericanExpressRounded.js +14 -10
- package/dist/icons/components/AnchorEmpty.js +41 -37
- package/dist/icons/components/AnchorFill.js +41 -37
- package/dist/icons/components/Android.js +41 -37
- package/dist/icons/components/Apagar.js +41 -37
- package/dist/icons/components/Apnfd.js +12 -8
- package/dist/icons/components/Approve.js +12 -8
- package/dist/icons/components/ArrowBack.js +12 -8
- package/dist/icons/components/ArrowBackIosNew.js +41 -37
- package/dist/icons/components/ArrowForward.js +41 -37
- package/dist/icons/components/ArrowForwardIos.js +41 -37
- package/dist/icons/components/ArrowTree.js +12 -8
- package/dist/icons/components/ArrowTreeDown.js +11 -7
- package/dist/icons/components/ArrowTreeRight.js +12 -8
- package/dist/icons/components/ArrowsOutward.js +12 -8
- package/dist/icons/components/Assignment.js +41 -37
- package/dist/icons/components/AttachFile.js +12 -8
- package/dist/icons/components/Autorenew.js +41 -37
- package/dist/icons/components/BmiAhorro.js +48 -7
- package/dist/icons/components/BmiAhorroBackoffice.js +616 -84
- package/dist/icons/components/BmiCompaniesLogo.js +18 -1
- package/dist/icons/components/BmiLogo.js +52 -14
- package/dist/icons/components/BrokenImage.js +40 -36
- package/dist/icons/components/BusinessCenter.js +12 -8
- package/dist/icons/components/CalendarIcon.js +12 -8
- package/dist/icons/components/Call.js +12 -8
- package/dist/icons/components/CancelIcon.js +11 -7
- package/dist/icons/components/Cerebro.js +40 -7
- package/dist/icons/components/Certificado.js +12 -8
- package/dist/icons/components/ChatBubble.js +12 -8
- package/dist/icons/components/CheckCircle.js +41 -37
- package/dist/icons/components/CheckIcon.js +12 -8
- package/dist/icons/components/ChevronLeft.js +12 -8
- package/dist/icons/components/ChevronRight.js +41 -37
- package/dist/icons/components/Circle.js +41 -37
- package/dist/icons/components/Circulatorio.js +40 -7
- package/dist/icons/components/Close.js +41 -37
- package/dist/icons/components/CloseDrawer.js +52 -48
- package/dist/icons/components/ClosePanel.js +12 -8
- package/dist/icons/components/CobrarIcon.js +41 -37
- package/dist/icons/components/ColectivosIcon.js +41 -37
- package/dist/icons/components/Colombia.js +16 -12
- package/dist/icons/components/Comisiones.js +12 -8
- package/dist/icons/components/ComputerCancel.js +40 -36
- package/dist/icons/components/Comunicaciones.js +41 -37
- package/dist/icons/components/ComunicacionesIcon.js +12 -8
- package/dist/icons/components/ContentCopy.js +12 -8
- package/dist/icons/components/ConyugeIcon.js +12 -8
- package/dist/icons/components/CostaRica.js +16 -12
- package/dist/icons/components/CotizacionesIcon.js +12 -8
- package/dist/icons/components/Credentials.js +12 -8
- package/dist/icons/components/CreditCard.js +12 -8
- package/dist/icons/components/CruzGrafica.js +41 -8
- package/dist/icons/components/DashboardIcon.js +12 -8
- package/dist/icons/components/DatosIcon.js +41 -37
- package/dist/icons/components/Deducible.js +41 -8
- package/dist/icons/components/Delete.js +12 -8
- package/dist/icons/components/DeniedIcon.js +12 -8
- package/dist/icons/components/Diagnosis.js +41 -37
- package/dist/icons/components/Diners.js +13 -9
- package/dist/icons/components/DinersRounded.js +14 -10
- package/dist/icons/components/DirectorioMedico.js +9 -8
- package/dist/icons/components/Distance.js +12 -8
- package/dist/icons/components/DocumentoTick.js +41 -37
- package/dist/icons/components/Documentos.js +12 -8
- package/dist/icons/components/DoubleArrowLeft.js +41 -37
- package/dist/icons/components/DoubleArrowRight.js +41 -37
- package/dist/icons/components/DownloadIcon.js +12 -8
- package/dist/icons/components/Ecuador.js +456 -452
- package/dist/icons/components/EditIcon.js +12 -8
- package/dist/icons/components/EstadosUnidos.js +17 -13
- package/dist/icons/components/Europa.js +126 -122
- package/dist/icons/components/Eye.js +41 -8
- package/dist/icons/components/Facturas.js +41 -37
- package/dist/icons/components/FallbackCardRounded.js +10 -6
- package/dist/icons/components/Filter.js +12 -8
- package/dist/icons/components/Folder.js +12 -8
- package/dist/icons/components/FondosExtranjero.js +11 -7
- package/dist/icons/components/Fumador.js +11 -7
- package/dist/icons/components/Gastro.js +41 -8
- package/dist/icons/components/Ginecologia.js +40 -7
- package/dist/icons/components/GridView.js +41 -8
- package/dist/icons/components/Guatemala.js +286 -282
- package/dist/icons/components/Handshake.js +6 -5
- package/dist/icons/components/Headset.js +41 -37
- package/dist/icons/components/HeadsetMic.js +12 -8
- package/dist/icons/components/Healing.js +41 -8
- package/dist/icons/components/Heart.js +41 -8
- package/dist/icons/components/HeightIcon.js +12 -8
- package/dist/icons/components/Help.js +12 -8
- package/dist/icons/components/HistorialIcon.js +12 -8
- package/dist/icons/components/Home.js +41 -37
- package/dist/icons/components/IdCodigoBroker.js +11 -7
- package/dist/icons/components/ImpagoIcon.js +40 -36
- package/dist/icons/components/Info.js +12 -8
- package/dist/icons/components/InfoFinanciera.js +12 -8
- package/dist/icons/components/Internacional.js +16 -12
- package/dist/icons/components/KeyboardArrowDown.js +12 -8
- package/dist/icons/components/KeyboardArrowUp.js +12 -8
- package/dist/icons/components/Kidneys.js +41 -8
- package/dist/icons/components/Laboratory.js +41 -8
- package/dist/icons/components/Link.js +41 -37
- package/dist/icons/components/LocationOn.js +12 -8
- package/dist/icons/components/LocationSearching.js +12 -8
- package/dist/icons/components/LockIcon.js +11 -7
- package/dist/icons/components/LogOut.js +41 -37
- package/dist/icons/components/MailIcon.js +12 -8
- package/dist/icons/components/MaleCopy.js +40 -7
- package/dist/icons/components/Mancuerna.js +40 -7
- package/dist/icons/components/MasAcciones.js +12 -8
- package/dist/icons/components/Medicacion.js +41 -8
- package/dist/icons/components/Medical.js +12 -8
- package/dist/icons/components/Menu.js +11 -7
- package/dist/icons/components/MoneyOff.js +8 -7
- package/dist/icons/components/MonitorHeart.js +40 -7
- package/dist/icons/components/MoreVert.js +12 -8
- package/dist/icons/components/Musculo.js +41 -8
- package/dist/icons/components/NextIcon.js +11 -7
- package/dist/icons/components/Notes.js +12 -8
- package/dist/icons/components/Notifications.js +41 -37
- package/dist/icons/components/NumPolizaIcon.js +12 -8
- package/dist/icons/components/Objective.js +41 -8
- package/dist/icons/components/OpenInFull.js +12 -8
- package/dist/icons/components/OpenPanel.js +11 -7
- package/dist/icons/components/Pep.js +11 -7
- package/dist/icons/components/Person.js +12 -8
- package/dist/icons/components/PersonAdd.js +9 -8
- package/dist/icons/components/PersonCancel.js +11 -7
- package/dist/icons/components/PhotoLibrary.js +12 -8
- package/dist/icons/components/Piel.js +41 -8
- package/dist/icons/components/Pincel.js +41 -8
- package/dist/icons/components/Planet.js +12 -8
- package/dist/icons/components/PolizaIcon.js +9 -8
- package/dist/icons/components/ProductIcon.js +41 -37
- package/dist/icons/components/ProveedorMedico.js +35 -31
- package/dist/icons/components/Public.js +12 -8
- package/dist/icons/components/Pulmones.js +41 -8
- package/dist/icons/components/Redirect.js +41 -37
- package/dist/icons/components/ReembolsosIcon.js +12 -8
- package/dist/icons/components/Refresh.js +12 -8
- package/dist/icons/components/Renovaciones.js +11 -7
- package/dist/icons/components/RepDominicana.js +162 -158
- package/dist/icons/components/Replay.js +11 -7
- package/dist/icons/components/Reply.js +11 -7
- package/dist/icons/components/RestoreFromTrash.js +41 -37
- package/dist/icons/components/Ri/303/261ones.js +41 -8
- package/dist/icons/components/Save.js +41 -37
- package/dist/icons/components/Schedule.js +40 -36
- package/dist/icons/components/SearchIcon.js +12 -8
- package/dist/icons/components/Send.js +12 -8
- package/dist/icons/components/Share.js +12 -8
- package/dist/icons/components/SmallFamily.js +12 -8
- package/dist/icons/components/Smartphone.js +12 -8
- package/dist/icons/components/SortArrowsAsc.js +42 -38
- package/dist/icons/components/SortArrowsDefault.js +41 -37
- package/dist/icons/components/SortArrowsDesc.js +41 -37
- package/dist/icons/components/StepBlocked.js +42 -9
- package/dist/icons/components/StepDone.js +42 -9
- package/dist/icons/components/StepInProgress.js +26 -4
- package/dist/icons/components/StepPending.js +12 -1
- package/dist/icons/components/Stethoscope.js +40 -36
- package/dist/icons/components/Swich.js +41 -37
- package/dist/icons/components/TrendingDown.js +41 -37
- package/dist/icons/components/TrendingUp.js +9 -8
- package/dist/icons/components/Tutoriales.js +12 -8
- package/dist/icons/components/UnfoldMore.js +12 -8
- package/dist/icons/components/VerifiedUser.js +12 -8
- package/dist/icons/components/Virus.js +40 -7
- package/dist/icons/components/Visibility.js +12 -8
- package/dist/icons/components/VisibilityOff.js +12 -8
- package/dist/icons/components/Warning.js +12 -8
- package/dist/icons/components/WavingHand.js +40 -36
- package/dist/icons/components/WeightIcon.js +11 -7
- package/dist/icons/components/Whatsapp.js +12 -8
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._toast_fzbbb_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_fzbbb_18{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%}._topRow_fzbbb_18._large_fzbbb_26{gap:14px}._iconAndContent_fzbbb_30{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_fzbbb_30._medium_fzbbb_39{gap:6px}._iconContainer_fzbbb_44{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_fzbbb_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_fzbbb_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:center}._actionButton_fzbbb_68._withIcon_fzbbb_81{justify-content:space-between}._closeButton_fzbbb_86{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_fzbbb_86:active{transform:scale(.95)}._entering_fzbbb_104{animation:_staticToastIn_fzbbb_1 .3s cubic-bezier(.16,1,.3,1) forwards}._exiting_fzbbb_108{animation:_staticToastOut_fzbbb_1 .3s cubic-bezier(.4,0,1,1) forwards}@keyframes _staticToastIn_fzbbb_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_fzbbb_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_fzbbb_2,._entering_fzbbb_104,._exiting_fzbbb_108{animation:none!important}}._content_fzbbb_55:only-child,._content_fzbbb_55:not(:has(._body_fzbbb_149)){justify-content:center}@media (max-width: 720px){._topRow_fzbbb_18._withAction_fzbbb_154{align-items:flex-start}._topRow_fzbbb_18._small_fzbbb_158{align-items:center}._iconAndContent_fzbbb_30._withAction_fzbbb_154{align-items:flex-start}._iconAndContent_fzbbb_30._small_fzbbb_158{align-items:center}._closeButton_fzbbb_86{order:2}._actionButton_fzbbb_68{order:3;width:100%}._actionButton_fzbbb_68._small_fzbbb_158{margin-right:4px}._actionButton_fzbbb_68._medium_fzbbb_39{margin-right:6px}._actionButton_fzbbb_68._large_fzbbb_26{margin-right:8px}}
|
package/dist/assets/Toast.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._toast_17e9b_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_17e9b_17{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%}._topRow_17e9b_17._large_17e9b_25{gap:14px}._iconAndContent_17e9b_29{flex:1;min-width:0;display:flex;flex-direction:row;align-items:center;gap:10px}._iconAndContent_17e9b_29._medium_17e9b_38{gap:6px}._position_top_right_17e9b_43{top:1rem;right:1rem}._position_top_left_17e9b_48{top:1rem;left:1rem}._position_bottom_right_17e9b_53{bottom:1rem;right:1rem}._position_bottom_left_17e9b_58{bottom:1rem;left:1rem}._position_top_center_17e9b_63{top:1rem;left:50%;transform:translate(-50%)}._position_bottom_center_17e9b_69{bottom:1rem;left:50%;transform:translate(-50%)}._iconContainer_17e9b_76{flex-shrink:0;width:24px;margin-left:5px;height:24px;display:flex;align-items:center;justify-content:center}._content_17e9b_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_17e9b_99{font-weight:600;font-size:.9rem;color:#000}._actionButton_17e9b_106{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}._actionButton_17e9b_106._withIcon_17e9b_119{justify-content:space-between}._closeButton_17e9b_124{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_17e9b_124:active{transform:scale(.95)}._position_top_right_17e9b_43._exiting_17e9b_142,._position_bottom_right_17e9b_53._exiting_17e9b_142{animation:_slideOutToRight_17e9b_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_right_17e9b_43._entering_17e9b_148,._position_bottom_right_17e9b_53._entering_17e9b_148{animation:_slideInFromRight_17e9b_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_left_17e9b_48._exiting_17e9b_142,._position_bottom_left_17e9b_58._exiting_17e9b_142{animation:_slideOutToLeft_17e9b_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_left_17e9b_48._entering_17e9b_148,._position_bottom_left_17e9b_58._entering_17e9b_148{animation:_slideInFromLeft_17e9b_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_top_center_17e9b_63._exiting_17e9b_142{animation:_slideOutToTop_17e9b_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_top_center_17e9b_63._entering_17e9b_148{animation:_slideInFromTop_17e9b_1 .4s cubic-bezier(.16,1,.3,1) forwards}._position_bottom_center_17e9b_69._exiting_17e9b_142{animation:_slideOutToBottom_17e9b_1 .3s cubic-bezier(.4,0,1,1) forwards}._position_bottom_center_17e9b_69._entering_17e9b_148{animation:_slideInFromBottom_17e9b_1 .4s cubic-bezier(.16,1,.3,1) forwards}@keyframes _slideInFromRight_17e9b_1{0%{transform:translate(100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromLeft_17e9b_1{0%{transform:translate(-100%);opacity:0;filter:blur(4px)}to{transform:translate(0);opacity:1;filter:blur(0)}}@keyframes _slideInFromTop_17e9b_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_17e9b_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_17e9b_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToLeft_17e9b_1{0%{transform:translate(0);opacity:1;filter:blur(0px)}to{transform:translate(-120%);opacity:0;filter:blur(4px)}}@keyframes _slideOutToTop_17e9b_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_17e9b_1{0%{transform:translate(-50%) translateY(0);opacity:1;filter:blur(0px)}to{transform:translate(-50%) translateY(120%);opacity:0;filter:blur(4px)}}._toast_17e9b_1:hover{transition:all .2s cubic-bezier(.4,0,.2,1)}@media (max-width: 905px){._toast_17e9b_1{min-width:unset;max-width:unset;width:calc(100% - 1rem);left:0;right:0;margin-inline:auto}._toast_17e9b_1._position_top_center_17e9b_63,._toast_17e9b_1._position_bottom_center_17e9b_69{left:50%}}@media (max-width: 720px){._topRow_17e9b_17._withAction_17e9b_316{align-items:flex-start}._topRow_17e9b_17._small_17e9b_320{align-items:center}._iconAndContent_17e9b_29._withAction_17e9b_316{align-items:flex-start}._iconAndContent_17e9b_29._small_17e9b_320{align-items:center}._closeButton_17e9b_124{order:2}._actionButton_17e9b_106{order:3;width:100%}._actionButton_17e9b_106._small_17e9b_320{margin-right:4px}._actionButton_17e9b_106._medium_17e9b_38{margin-right:6px}._actionButton_17e9b_106._large_17e9b_25{margin-right:8px}}@media (prefers-reduced-motion: reduce){._toast_17e9b_1{animation:none!important}._toast_17e9b_1:hover{transition:none}}._content_17e9b_87:only-child,._content_17e9b_87:not(:has(._body_17e9b_367)){justify-content:center}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IconName } from '../../icons/Icon';
|
|
1
|
+
import { IconName, IconProps } from '../../icons/Icon';
|
|
2
2
|
export type StaticToastType = "brand" | "info" | "new" | "pending" | "positive" | "warning" | "negative";
|
|
3
3
|
export type StaticToastSize = "small" | "medium" | "large";
|
|
4
4
|
export interface StaticToastProps {
|
|
@@ -21,7 +21,8 @@ export interface StaticToastProps {
|
|
|
21
21
|
style?: React.CSSProperties;
|
|
22
22
|
action?: {
|
|
23
23
|
label: string;
|
|
24
|
-
function
|
|
24
|
+
function?: () => void;
|
|
25
|
+
icon?: IconProps;
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
export declare const StaticToast: ({ type, title, body, size, icon, isVisible, closable, onClose, autoClose, duration, className, style, action, }: StaticToastProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,228 +1,262 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Icon as
|
|
4
|
-
import
|
|
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
|
-
body: v,
|
|
37
|
-
size: s = "small",
|
|
38
|
-
icon: E,
|
|
39
|
-
isVisible: m = !0,
|
|
40
|
-
closable: A = !0,
|
|
41
|
-
onClose: g,
|
|
42
|
-
autoClose: u = !1,
|
|
43
|
-
duration: d = 5e3,
|
|
44
|
-
className: N,
|
|
45
|
-
style: M,
|
|
46
|
-
action: p
|
|
1
|
+
import { jsx as i, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import { useState as F, useEffect as w } from "react";
|
|
3
|
+
import { Icon as p } from "../../icons/Icon.js";
|
|
4
|
+
import '../../assets/StaticToast.css';const N = "_toast_fzbbb_2", D = "_topRow_fzbbb_18", j = "_large_fzbbb_26", H = "_iconAndContent_fzbbb_30", M = "_medium_fzbbb_39", O = "_iconContainer_fzbbb_44", P = "_content_fzbbb_55", W = "_actionButton_fzbbb_68", q = "_withIcon_fzbbb_81", G = "_closeButton_fzbbb_86", J = "_entering_fzbbb_104", K = "_staticToastIn_fzbbb_1", L = "_exiting_fzbbb_108", Q = "_staticToastOut_fzbbb_1", U = "_body_fzbbb_149", X = "_withAction_fzbbb_154", Y = "_small_fzbbb_158", t = {
|
|
5
|
+
toast: N,
|
|
6
|
+
topRow: D,
|
|
7
|
+
large: j,
|
|
8
|
+
iconAndContent: H,
|
|
9
|
+
medium: M,
|
|
10
|
+
iconContainer: O,
|
|
11
|
+
content: P,
|
|
12
|
+
actionButton: W,
|
|
13
|
+
withIcon: q,
|
|
14
|
+
closeButton: G,
|
|
15
|
+
entering: J,
|
|
16
|
+
staticToastIn: K,
|
|
17
|
+
exiting: L,
|
|
18
|
+
staticToastOut: Q,
|
|
19
|
+
body: U,
|
|
20
|
+
withAction: X,
|
|
21
|
+
small: Y
|
|
22
|
+
}, S = ({
|
|
23
|
+
type: y = "info",
|
|
24
|
+
title: x,
|
|
25
|
+
body: h,
|
|
26
|
+
size: r = "small",
|
|
27
|
+
icon: B,
|
|
28
|
+
isVisible: s = !0,
|
|
29
|
+
closable: E = !1,
|
|
30
|
+
onClose: u,
|
|
31
|
+
autoClose: C = !1,
|
|
32
|
+
duration: g = 5e3,
|
|
33
|
+
className: I,
|
|
34
|
+
style: k,
|
|
35
|
+
action: e
|
|
47
36
|
}) => {
|
|
48
|
-
const [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
return () => clearTimeout(
|
|
37
|
+
const [a, R] = F(s), [m, A] = F(!1);
|
|
38
|
+
w(() => {
|
|
39
|
+
s ? (A(!1), R(!0)) : a && _();
|
|
40
|
+
}, [s]), w(() => {
|
|
41
|
+
if (C && a && !m && g > 0) {
|
|
42
|
+
const d = setTimeout(() => {
|
|
43
|
+
_();
|
|
44
|
+
}, g);
|
|
45
|
+
return () => clearTimeout(d);
|
|
57
46
|
}
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
47
|
+
}, [a, g, C, m]);
|
|
48
|
+
const _ = () => {
|
|
49
|
+
A(!0), setTimeout(() => {
|
|
50
|
+
R(!1), u == null || u();
|
|
62
51
|
}, 300);
|
|
63
|
-
},
|
|
64
|
-
small: "10px 8px",
|
|
52
|
+
}, c = {
|
|
53
|
+
small: "10px 4px 10px 8px",
|
|
65
54
|
medium: "14px 10px",
|
|
66
|
-
large: "14px
|
|
67
|
-
},
|
|
68
|
-
small: "
|
|
69
|
-
medium: "
|
|
55
|
+
large: "14px 7px 14px 14px"
|
|
56
|
+
}, l = {
|
|
57
|
+
small: "16px",
|
|
58
|
+
medium: "16px",
|
|
70
59
|
large: "24px"
|
|
71
|
-
},
|
|
72
|
-
small: {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
}, v = {
|
|
61
|
+
small: {
|
|
62
|
+
minHeight: "30px",
|
|
63
|
+
paddingInline: "12px"
|
|
64
|
+
},
|
|
65
|
+
medium: {
|
|
66
|
+
minHeight: "36px",
|
|
67
|
+
paddingInline: "10px"
|
|
68
|
+
},
|
|
69
|
+
large: {
|
|
70
|
+
minHeight: "42px",
|
|
71
|
+
paddingInline: "14px"
|
|
72
|
+
}
|
|
73
|
+
}, f = {
|
|
74
|
+
small: {
|
|
75
|
+
title: "small2Medium",
|
|
76
|
+
actionButton: "small2Regular",
|
|
77
|
+
body: "small5Regular"
|
|
78
|
+
},
|
|
79
|
+
medium: {
|
|
80
|
+
title: "bodyMedium",
|
|
81
|
+
actionButton: "bodyRegular",
|
|
82
|
+
body: "small2Regular"
|
|
83
|
+
},
|
|
84
|
+
large: {
|
|
85
|
+
title: "title6Medium",
|
|
86
|
+
actionButton: "title6Regular",
|
|
87
|
+
body: "bodyRegular"
|
|
88
|
+
}
|
|
89
|
+
}, $ = (d, n) => {
|
|
90
|
+
switch (d) {
|
|
77
91
|
case "brand":
|
|
78
92
|
return {
|
|
79
|
-
borderColor: "
|
|
80
|
-
background: "
|
|
81
|
-
|
|
82
|
-
|
|
93
|
+
borderColor: "#2054A5",
|
|
94
|
+
background: "#FFF",
|
|
95
|
+
color: "#2054A5",
|
|
96
|
+
padding: c[n],
|
|
97
|
+
borderRadius: l[n]
|
|
83
98
|
};
|
|
84
99
|
case "info":
|
|
85
100
|
return {
|
|
86
|
-
borderColor: "
|
|
87
|
-
background: "
|
|
88
|
-
|
|
89
|
-
|
|
101
|
+
borderColor: "#2054A5",
|
|
102
|
+
background: "#EEF3FC",
|
|
103
|
+
color: "#2054A5",
|
|
104
|
+
padding: c[n],
|
|
105
|
+
borderRadius: l[n]
|
|
90
106
|
};
|
|
91
107
|
case "new":
|
|
92
108
|
return {
|
|
93
|
-
borderColor: "
|
|
94
|
-
background: "
|
|
95
|
-
|
|
96
|
-
|
|
109
|
+
borderColor: "#0F93A8",
|
|
110
|
+
background: "#D6F4F8",
|
|
111
|
+
color: "#065564",
|
|
112
|
+
padding: c[n],
|
|
113
|
+
borderRadius: l[n]
|
|
97
114
|
};
|
|
98
115
|
case "pending":
|
|
99
116
|
return {
|
|
100
|
-
borderColor: "
|
|
101
|
-
background: "
|
|
102
|
-
|
|
103
|
-
|
|
117
|
+
borderColor: "#CA8A04",
|
|
118
|
+
background: "#FEFDE8",
|
|
119
|
+
color: "#713F12",
|
|
120
|
+
padding: c[n],
|
|
121
|
+
borderRadius: l[n]
|
|
104
122
|
};
|
|
105
123
|
case "positive":
|
|
106
124
|
return {
|
|
107
|
-
borderColor: "
|
|
108
|
-
background: "
|
|
109
|
-
|
|
110
|
-
|
|
125
|
+
borderColor: "#65A30D",
|
|
126
|
+
background: "#F7FEE7",
|
|
127
|
+
color: "#365314",
|
|
128
|
+
padding: c[n],
|
|
129
|
+
borderRadius: l[n]
|
|
111
130
|
};
|
|
112
131
|
case "warning":
|
|
113
132
|
return {
|
|
114
|
-
borderColor: "
|
|
115
|
-
background: "
|
|
116
|
-
|
|
117
|
-
|
|
133
|
+
borderColor: "#EA580C",
|
|
134
|
+
background: "#FFEDD5",
|
|
135
|
+
color: "#7C2D12",
|
|
136
|
+
padding: c[n],
|
|
137
|
+
borderRadius: l[n]
|
|
118
138
|
};
|
|
119
139
|
case "negative":
|
|
120
140
|
return {
|
|
121
|
-
borderColor: "
|
|
122
|
-
background: "
|
|
123
|
-
|
|
124
|
-
|
|
141
|
+
borderColor: "#DC2626",
|
|
142
|
+
background: "#FEF2F2",
|
|
143
|
+
color: "#B91C1C",
|
|
144
|
+
padding: c[n],
|
|
145
|
+
borderRadius: l[n]
|
|
125
146
|
};
|
|
126
147
|
default:
|
|
127
148
|
return {
|
|
128
|
-
borderColor: "
|
|
129
|
-
background: "
|
|
130
|
-
|
|
131
|
-
|
|
149
|
+
borderColor: "#2054A5",
|
|
150
|
+
background: "#EEF3FC",
|
|
151
|
+
color: "#2054A5",
|
|
152
|
+
padding: c[n],
|
|
153
|
+
borderRadius: l[n]
|
|
132
154
|
};
|
|
133
155
|
}
|
|
134
|
-
}, k = (l, o) => {
|
|
135
|
-
const F = h(l, o).borderColor.match(/#([0-9A-Fa-f]{6})/);
|
|
136
|
-
return F ? F[0] : null;
|
|
137
156
|
};
|
|
138
|
-
if (!
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return /* @__PURE__ */ B(
|
|
157
|
+
if (!a) return null;
|
|
158
|
+
const T = [
|
|
159
|
+
t.toast,
|
|
160
|
+
m ? t.exiting : t.entering,
|
|
161
|
+
I
|
|
162
|
+
].filter(Boolean).join(" "), o = $(y, r);
|
|
163
|
+
return /* @__PURE__ */ i(
|
|
146
164
|
"div",
|
|
147
165
|
{
|
|
148
|
-
className:
|
|
166
|
+
className: T,
|
|
149
167
|
style: {
|
|
150
|
-
border: "1px solid " +
|
|
151
|
-
background:
|
|
152
|
-
padding:
|
|
153
|
-
borderRadius:
|
|
154
|
-
...
|
|
168
|
+
border: "1px solid " + o.borderColor,
|
|
169
|
+
background: o.background,
|
|
170
|
+
padding: o.padding,
|
|
171
|
+
borderRadius: o.borderRadius,
|
|
172
|
+
...k
|
|
155
173
|
},
|
|
156
174
|
role: "alert",
|
|
157
175
|
"aria-live": "polite",
|
|
158
|
-
children:
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
fill: k(i, s) || "#2054A5",
|
|
165
|
-
width: 25,
|
|
166
|
-
height: 25
|
|
167
|
-
}
|
|
168
|
-
) }),
|
|
169
|
-
/* @__PURE__ */ B("div", { className: r.content, children: [
|
|
170
|
-
y && /* @__PURE__ */ t("div", { className: r[T[s].title], children: y }),
|
|
171
|
-
v && /* @__PURE__ */ t(
|
|
176
|
+
children: /* @__PURE__ */ b(
|
|
177
|
+
"div",
|
|
178
|
+
{
|
|
179
|
+
className: `${t.topRow} ${e ? t.withAction : ""} ${t[r]}`,
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ b(
|
|
172
182
|
"div",
|
|
173
183
|
{
|
|
174
|
-
className: r
|
|
175
|
-
|
|
176
|
-
|
|
184
|
+
className: `${t.iconAndContent} ${e ? t.withAction : ""} ${t[r]}`,
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ i("div", { className: t.iconContainer, children: /* @__PURE__ */ i(
|
|
187
|
+
p,
|
|
188
|
+
{
|
|
189
|
+
name: B || "Info",
|
|
190
|
+
fill: o == null ? void 0 : o.color,
|
|
191
|
+
width: 25,
|
|
192
|
+
height: 25
|
|
193
|
+
}
|
|
194
|
+
) }),
|
|
195
|
+
/* @__PURE__ */ b("div", { className: t.content, children: [
|
|
196
|
+
x && /* @__PURE__ */ i(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
className: f[r].title,
|
|
200
|
+
style: { fontWeight: 600 },
|
|
201
|
+
children: x
|
|
202
|
+
}
|
|
203
|
+
),
|
|
204
|
+
h && /* @__PURE__ */ i(
|
|
205
|
+
"div",
|
|
206
|
+
{
|
|
207
|
+
className: f[r].body,
|
|
208
|
+
style: { color: o == null ? void 0 : o.color },
|
|
209
|
+
children: h
|
|
210
|
+
}
|
|
211
|
+
)
|
|
212
|
+
] })
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
e && /* @__PURE__ */ b(
|
|
217
|
+
"button",
|
|
218
|
+
{
|
|
219
|
+
type: "button",
|
|
220
|
+
onClick: () => {
|
|
221
|
+
var d;
|
|
222
|
+
return (d = e.function) == null ? void 0 : d.call(e);
|
|
223
|
+
},
|
|
224
|
+
className: `${f[r].actionButton} ${t.actionButton} ${e.icon ? t.withIcon : ""} ${t[r]}`,
|
|
225
|
+
style: {
|
|
226
|
+
border: `1px solid ${o == null ? void 0 : o.color}`,
|
|
227
|
+
color: o == null ? void 0 : o.color,
|
|
228
|
+
...v[r]
|
|
229
|
+
},
|
|
230
|
+
children: [
|
|
231
|
+
e.label,
|
|
232
|
+
e.icon && /* @__PURE__ */ i(p, { ...e.icon })
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
E && /* @__PURE__ */ i(
|
|
237
|
+
"button",
|
|
238
|
+
{
|
|
239
|
+
type: "button",
|
|
240
|
+
className: t.closeButton,
|
|
241
|
+
onClick: _,
|
|
242
|
+
"aria-label": "Cerrar notificación",
|
|
243
|
+
children: /* @__PURE__ */ i(
|
|
244
|
+
p,
|
|
245
|
+
{
|
|
246
|
+
name: "CancelIcon",
|
|
247
|
+
fill: o == null ? void 0 : o.color,
|
|
248
|
+
width: 20,
|
|
249
|
+
height: 20
|
|
250
|
+
}
|
|
251
|
+
)
|
|
177
252
|
}
|
|
178
253
|
)
|
|
179
|
-
]
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
{
|
|
183
|
-
className: r.closeButton,
|
|
184
|
-
style: {
|
|
185
|
-
borderLeft: "1px solid " + n.borderColor
|
|
186
|
-
},
|
|
187
|
-
onClick: b,
|
|
188
|
-
"aria-label": "Cerrar notificación",
|
|
189
|
-
children: /* @__PURE__ */ t(
|
|
190
|
-
w,
|
|
191
|
-
{
|
|
192
|
-
name: "CancelIcon",
|
|
193
|
-
fill: k(i, s) || "#2054A5",
|
|
194
|
-
width: 20,
|
|
195
|
-
height: 20
|
|
196
|
-
}
|
|
197
|
-
)
|
|
198
|
-
}
|
|
199
|
-
)
|
|
200
|
-
] }),
|
|
201
|
-
p && /* @__PURE__ */ t("div", { className: r.bottomRow, children: /* @__PURE__ */ t(
|
|
202
|
-
D,
|
|
203
|
-
{
|
|
204
|
-
onClick: p.function,
|
|
205
|
-
variant: "outline",
|
|
206
|
-
size: s,
|
|
207
|
-
className: r.actionButton,
|
|
208
|
-
fullWidth: !0,
|
|
209
|
-
children: p.label
|
|
210
|
-
}
|
|
211
|
-
) }),
|
|
212
|
-
u && d > 0 && /* @__PURE__ */ t(
|
|
213
|
-
"div",
|
|
214
|
-
{
|
|
215
|
-
className: r.progressBar,
|
|
216
|
-
style: {
|
|
217
|
-
animationDuration: `${d}ms`,
|
|
218
|
-
animationPlayState: _ ? "paused" : "running"
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
)
|
|
222
|
-
]
|
|
254
|
+
]
|
|
255
|
+
}
|
|
256
|
+
)
|
|
223
257
|
}
|
|
224
258
|
);
|
|
225
259
|
};
|
|
226
260
|
export {
|
|
227
|
-
|
|
261
|
+
S as StaticToast
|
|
228
262
|
};
|
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
import { IconName } from '../../icons/Icon';
|
|
1
|
+
import { IconName, IconProps } from '../../icons/Icon';
|
|
2
|
+
/**
|
|
3
|
+
* Variantes
|
|
4
|
+
*/
|
|
2
5
|
export type ToastType = "brand" | "info" | "new" | "pending" | "positive" | "warning" | "negative";
|
|
6
|
+
/**
|
|
7
|
+
* Tamaños
|
|
8
|
+
*/
|
|
3
9
|
export type ToastSize = "small" | "medium" | "large";
|
|
10
|
+
/**
|
|
11
|
+
* Posicionamiento
|
|
12
|
+
*/
|
|
4
13
|
export type ToastPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left" | "top-center" | "bottom-center";
|
|
14
|
+
/**
|
|
15
|
+
* Props del componente Toast
|
|
16
|
+
*/
|
|
5
17
|
export interface ToastProps {
|
|
6
18
|
type?: ToastType;
|
|
7
19
|
title?: string;
|
|
@@ -14,9 +26,11 @@ export interface ToastProps {
|
|
|
14
26
|
onClose?: () => void;
|
|
15
27
|
autoClose?: boolean;
|
|
16
28
|
className?: string;
|
|
29
|
+
closable?: boolean;
|
|
17
30
|
action?: {
|
|
18
31
|
label: string;
|
|
19
|
-
function
|
|
32
|
+
function?: () => void;
|
|
33
|
+
icon?: IconProps;
|
|
20
34
|
};
|
|
21
35
|
}
|
|
22
|
-
export declare const Toast: ({ type, title, body, duration, icon, size, position, isVisible, onClose, autoClose, className, action, }: ToastProps) => import('react').ReactPortal | null;
|
|
36
|
+
export declare const Toast: ({ type, title, body, duration, icon, size, position, isVisible, onClose, autoClose, closable, className, action, }: ToastProps) => import('react').ReactPortal | null;
|