@eclass/ui-kit 1.36.0 → 1.38.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.
@@ -2,10 +2,14 @@
2
2
  export interface props {
3
3
  children?: React.ReactNode;
4
4
  m?: string;
5
+ as?: 'button' | 'a';
5
6
  onClick?: (e: React.MouseEvent<HTMLElement>) => void;
6
7
  id?: string;
8
+ href?: string;
9
+ textDecorationLine?: boolean;
10
+ fontSize?: string | '0.875rem';
7
11
  }
8
- export declare function BtnLink({ children, m, onClick, id }: props): JSX.Element;
12
+ export declare function BtnLink({ children, m, onClick, id, as, href, textDecorationLine, fontSize, }: props): JSX.Element;
9
13
  export declare namespace BtnLink {
10
14
  var displayName: string;
11
15
  }
@@ -14,4 +14,4 @@ import { IAlertProps } from './types.d';
14
14
  * Mensaje
15
15
  * </Alert>
16
16
  */
17
- export declare function Alert({ children, canDismiss, buttonText, buttonIcon, buttonLink, fullWidth, isFlash, onClick, state, m, }: IAlertProps): JSX.Element;
17
+ export declare function Alert({ children, canDismiss, buttonText, buttonIcon, buttonLink, fullWidth, isFlash, onClick, state, m, endTextLink, onClickLink, }: IAlertProps): JSX.Element;
@@ -45,6 +45,10 @@ export interface IAlertProps {
45
45
  * Margen
46
46
  */
47
47
  m?: string
48
+
49
+ // agrega el link al final del texto
50
+ endTextLink?: string
51
+ onClickLink?: () => void
48
52
  }
49
53
 
50
54
  export interface IFlashNotificationProps {
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ModalAlertProps } from './types';
3
+ export declare function ModalAlert({ showModal, typeAlert, title, description, optionsButton, }: ModalAlertProps): JSX.Element;
4
+ export declare namespace ModalAlert {
5
+ var displayName: string;
6
+ }
@@ -0,0 +1 @@
1
+ export * from './ModalAlert';
@@ -0,0 +1,22 @@
1
+ export interface ModalAlertProps {
2
+ /** Muestra/Oculta el modal */
3
+ showModal: boolean
4
+
5
+ /** Tipo de alerta */
6
+ typeAlert: 'success' | 'error' | 'warning' | 'info'
7
+
8
+ /** Título del modal */
9
+ title?: string
10
+
11
+ /** Mensaje del modal */
12
+ description?: string
13
+
14
+ /** Opciones del boton */
15
+ optionsButton: optionsButton[]
16
+ }
17
+
18
+ interface optionsButton {
19
+ id: string
20
+ label: string
21
+ action: () => void
22
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './CourseList';
2
2
  export * from './Alerts';
3
+ export * from './ModalAlert';