bmi-next-brokers 2.8.9 → 2.9.0
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 +186 -166
- package/dist/components/Toast/Toast.d.ts +17 -3
- package/dist/components/Toast/Toast.js +204 -181
- 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_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}}
|
package/dist/assets/Toast.css
CHANGED
|
@@ -1 +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,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,248 @@
|
|
|
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
|
-
entering: eo,
|
|
29
|
-
staticToastIn: ao,
|
|
30
|
-
exiting: so,
|
|
31
|
-
staticToastOut: no,
|
|
32
|
-
body: lo
|
|
33
|
-
}, po = ({
|
|
34
|
-
type: i = "info",
|
|
35
|
-
title: y,
|
|
36
|
-
body: v,
|
|
37
|
-
size: s = "small",
|
|
38
|
-
icon: E,
|
|
39
|
-
isVisible: m = !0,
|
|
40
|
-
closable: A = !0,
|
|
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,
|
|
9
|
+
medium: H,
|
|
10
|
+
iconContainer: M,
|
|
11
|
+
content: O,
|
|
12
|
+
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,
|
|
24
|
+
size: e = "small",
|
|
25
|
+
icon: A,
|
|
26
|
+
isVisible: u = !0,
|
|
27
|
+
closable: B = !1,
|
|
41
28
|
onClose: g,
|
|
42
|
-
autoClose:
|
|
43
|
-
duration:
|
|
44
|
-
className:
|
|
45
|
-
style:
|
|
46
|
-
action:
|
|
29
|
+
autoClose: h = !1,
|
|
30
|
+
duration: m = 5e3,
|
|
31
|
+
className: E,
|
|
32
|
+
style: k,
|
|
33
|
+
action: d
|
|
47
34
|
}) => {
|
|
48
|
-
const [
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}, [
|
|
52
|
-
if (
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
return () => clearTimeout(
|
|
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
|
+
_();
|
|
42
|
+
}, m);
|
|
43
|
+
return () => clearTimeout(c);
|
|
57
44
|
}
|
|
58
|
-
}, [
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
45
|
+
}, [i, m, h, b]);
|
|
46
|
+
const _ = () => {
|
|
47
|
+
F(!0), setTimeout(() => {
|
|
48
|
+
R(!1), g == null || g();
|
|
62
49
|
}, 300);
|
|
63
|
-
},
|
|
64
|
-
small: "10px 8px",
|
|
50
|
+
}, r = {
|
|
51
|
+
small: "10px 4px 10px 8px",
|
|
65
52
|
medium: "14px 10px",
|
|
66
|
-
large: "14px
|
|
67
|
-
},
|
|
68
|
-
small: "
|
|
69
|
-
medium: "
|
|
53
|
+
large: "14px 7px 14px 14px"
|
|
54
|
+
}, l = {
|
|
55
|
+
small: "16px",
|
|
56
|
+
medium: "16px",
|
|
70
57
|
large: "24px"
|
|
71
|
-
},
|
|
72
|
-
small: {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
58
|
+
}, v = {
|
|
59
|
+
small: {
|
|
60
|
+
minHeight: "30px",
|
|
61
|
+
paddingInline: "12px"
|
|
62
|
+
},
|
|
63
|
+
medium: {
|
|
64
|
+
minHeight: "36px",
|
|
65
|
+
paddingInline: "10px"
|
|
66
|
+
},
|
|
67
|
+
large: {
|
|
68
|
+
minHeight: "42px",
|
|
69
|
+
paddingInline: "14px"
|
|
70
|
+
}
|
|
71
|
+
}, p = {
|
|
72
|
+
small: {
|
|
73
|
+
title: "small2Medium",
|
|
74
|
+
actionButton: "small2Regular",
|
|
75
|
+
body: "small5Regular"
|
|
76
|
+
},
|
|
77
|
+
medium: {
|
|
78
|
+
title: "bodyMedium",
|
|
79
|
+
actionButton: "bodyRegular",
|
|
80
|
+
body: "small2Regular"
|
|
81
|
+
},
|
|
82
|
+
large: {
|
|
83
|
+
title: "title6Medium",
|
|
84
|
+
actionButton: "title6Regular",
|
|
85
|
+
body: "bodyRegular"
|
|
86
|
+
}
|
|
87
|
+
}, I = (c, o) => {
|
|
88
|
+
switch (c) {
|
|
77
89
|
case "brand":
|
|
78
90
|
return {
|
|
79
|
-
borderColor: "
|
|
80
|
-
background: "
|
|
81
|
-
|
|
82
|
-
|
|
91
|
+
borderColor: "#2054A5",
|
|
92
|
+
background: "#FFF",
|
|
93
|
+
color: "#2054A5",
|
|
94
|
+
padding: r[o],
|
|
95
|
+
borderRadius: l[o]
|
|
83
96
|
};
|
|
84
97
|
case "info":
|
|
85
98
|
return {
|
|
86
|
-
borderColor: "
|
|
87
|
-
background: "
|
|
88
|
-
|
|
89
|
-
|
|
99
|
+
borderColor: "#2054A5",
|
|
100
|
+
background: "#EEF3FC",
|
|
101
|
+
color: "#2054A5",
|
|
102
|
+
padding: r[o],
|
|
103
|
+
borderRadius: l[o]
|
|
90
104
|
};
|
|
91
105
|
case "new":
|
|
92
106
|
return {
|
|
93
|
-
borderColor: "
|
|
94
|
-
background: "
|
|
95
|
-
|
|
96
|
-
|
|
107
|
+
borderColor: "#0F93A8",
|
|
108
|
+
background: "#D6F4F8",
|
|
109
|
+
color: "#065564",
|
|
110
|
+
padding: r[o],
|
|
111
|
+
borderRadius: l[o]
|
|
97
112
|
};
|
|
98
113
|
case "pending":
|
|
99
114
|
return {
|
|
100
|
-
borderColor: "
|
|
101
|
-
background: "
|
|
102
|
-
|
|
103
|
-
|
|
115
|
+
borderColor: "#CA8A04",
|
|
116
|
+
background: "#FEFDE8",
|
|
117
|
+
color: "#713F12",
|
|
118
|
+
padding: r[o],
|
|
119
|
+
borderRadius: l[o]
|
|
104
120
|
};
|
|
105
121
|
case "positive":
|
|
106
122
|
return {
|
|
107
|
-
borderColor: "
|
|
108
|
-
background: "
|
|
109
|
-
|
|
110
|
-
|
|
123
|
+
borderColor: "#65A30D",
|
|
124
|
+
background: "#F7FEE7",
|
|
125
|
+
color: "#365314",
|
|
126
|
+
padding: r[o],
|
|
127
|
+
borderRadius: l[o]
|
|
111
128
|
};
|
|
112
129
|
case "warning":
|
|
113
130
|
return {
|
|
114
|
-
borderColor: "
|
|
115
|
-
background: "
|
|
116
|
-
|
|
117
|
-
|
|
131
|
+
borderColor: "#EA580C",
|
|
132
|
+
background: "#FFEDD5",
|
|
133
|
+
color: "#7C2D12",
|
|
134
|
+
padding: r[o],
|
|
135
|
+
borderRadius: l[o]
|
|
118
136
|
};
|
|
119
137
|
case "negative":
|
|
120
138
|
return {
|
|
121
|
-
borderColor: "
|
|
122
|
-
background: "
|
|
123
|
-
|
|
124
|
-
|
|
139
|
+
borderColor: "#DC2626",
|
|
140
|
+
background: "#FEF2F2",
|
|
141
|
+
color: "#B91C1C",
|
|
142
|
+
padding: r[o],
|
|
143
|
+
borderRadius: l[o]
|
|
125
144
|
};
|
|
126
145
|
default:
|
|
127
146
|
return {
|
|
128
|
-
borderColor: "
|
|
129
|
-
background: "
|
|
130
|
-
|
|
131
|
-
|
|
147
|
+
borderColor: "#2054A5",
|
|
148
|
+
background: "#EEF3FC",
|
|
149
|
+
color: "#2054A5",
|
|
150
|
+
padding: r[o],
|
|
151
|
+
borderRadius: l[o]
|
|
132
152
|
};
|
|
133
153
|
}
|
|
134
|
-
}, k = (l, o) => {
|
|
135
|
-
const F = h(l, o).borderColor.match(/#([0-9A-Fa-f]{6})/);
|
|
136
|
-
return F ? F[0] : null;
|
|
137
154
|
};
|
|
138
|
-
if (!
|
|
139
|
-
const
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
return /* @__PURE__ */ B(
|
|
155
|
+
if (!i) return null;
|
|
156
|
+
const T = [
|
|
157
|
+
t.toast,
|
|
158
|
+
b ? t.exiting : t.entering,
|
|
159
|
+
E
|
|
160
|
+
].filter(Boolean).join(" "), n = I(q, e);
|
|
161
|
+
return /* @__PURE__ */ a(
|
|
146
162
|
"div",
|
|
147
163
|
{
|
|
148
|
-
className:
|
|
164
|
+
className: T,
|
|
149
165
|
style: {
|
|
150
166
|
border: "1px solid " + n.borderColor,
|
|
151
167
|
background: n.background,
|
|
152
168
|
padding: n.padding,
|
|
153
169
|
borderRadius: n.borderRadius,
|
|
154
|
-
...
|
|
170
|
+
...k
|
|
155
171
|
},
|
|
156
172
|
role: "alert",
|
|
157
173
|
"aria-live": "polite",
|
|
158
|
-
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
161
|
-
|
|
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,
|
|
162
178
|
{
|
|
163
|
-
name:
|
|
164
|
-
fill:
|
|
179
|
+
name: A || "Info",
|
|
180
|
+
fill: n == null ? void 0 : n.color,
|
|
165
181
|
width: 25,
|
|
166
182
|
height: 25
|
|
167
183
|
}
|
|
168
184
|
) }),
|
|
169
|
-
/* @__PURE__ */
|
|
170
|
-
|
|
171
|
-
v && /* @__PURE__ */ t(
|
|
185
|
+
/* @__PURE__ */ s("div", { className: t.content, children: [
|
|
186
|
+
C && /* @__PURE__ */ a(
|
|
172
187
|
"div",
|
|
173
188
|
{
|
|
174
|
-
className:
|
|
175
|
-
style: {
|
|
176
|
-
children:
|
|
189
|
+
className: p[e].title,
|
|
190
|
+
style: { fontWeight: 600 },
|
|
191
|
+
children: C
|
|
192
|
+
}
|
|
193
|
+
),
|
|
194
|
+
f && /* @__PURE__ */ a(
|
|
195
|
+
"div",
|
|
196
|
+
{
|
|
197
|
+
className: p[e].body,
|
|
198
|
+
style: { color: n == null ? void 0 : n.color },
|
|
199
|
+
children: f
|
|
177
200
|
}
|
|
178
201
|
)
|
|
179
|
-
] })
|
|
180
|
-
A && /* @__PURE__ */ t(
|
|
181
|
-
"button",
|
|
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
|
-
)
|
|
202
|
+
] })
|
|
200
203
|
] }),
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
d && /* @__PURE__ */ s(
|
|
205
|
+
"button",
|
|
203
206
|
{
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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
|
+
]
|
|
210
222
|
}
|
|
211
|
-
)
|
|
212
|
-
|
|
213
|
-
"
|
|
223
|
+
),
|
|
224
|
+
B && /* @__PURE__ */ a(
|
|
225
|
+
"button",
|
|
214
226
|
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
227
|
+
type: "button",
|
|
228
|
+
className: t.closeButton,
|
|
229
|
+
onClick: _,
|
|
230
|
+
"aria-label": "Cerrar notificación",
|
|
231
|
+
children: /* @__PURE__ */ a(
|
|
232
|
+
x,
|
|
233
|
+
{
|
|
234
|
+
name: "CancelIcon",
|
|
235
|
+
fill: n == null ? void 0 : n.color,
|
|
236
|
+
width: 20,
|
|
237
|
+
height: 20
|
|
238
|
+
}
|
|
239
|
+
)
|
|
220
240
|
}
|
|
221
241
|
)
|
|
222
|
-
]
|
|
242
|
+
] })
|
|
223
243
|
}
|
|
224
244
|
);
|
|
225
245
|
};
|
|
226
246
|
export {
|
|
227
|
-
|
|
247
|
+
V as StaticToast
|
|
228
248
|
};
|
|
@@ -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;
|