@eclass/ui-kit 1.5.4 → 1.6.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/eclass-ui-kit.es.js +10189 -2952
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +309 -10
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/CourseList/CourseBox.d.ts +3 -2
- package/dist/organisms/CourseList/CourseList.d.ts +1 -1
- package/dist/organisms/CourseList/components/Footer.d.ts +5 -1
- package/dist/organisms/CourseList/types.d.ts +9 -0
- package/dist/organisms/CourseList/utils/dataFake.d.ts +0 -94
- package/dist/style.css +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/dist/vite-env.d.ts +2 -0
- package/package.json +48 -46
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Type from './types';
|
|
3
|
-
export declare const CourseBoxContext: React.Context<Partial<import("
|
|
3
|
+
export declare const CourseBoxContext: React.Context<Partial<import("@eclass/api").AcademicBox>>;
|
|
4
4
|
interface CourseBoxProps {
|
|
5
5
|
data: Type.AcademicList;
|
|
6
|
+
onClick?: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare function CourseBox({ data }: CourseBoxProps): JSX.Element;
|
|
8
|
+
export declare function CourseBox({ data, onClick }: CourseBoxProps): JSX.Element;
|
|
8
9
|
export declare namespace CourseBox {
|
|
9
10
|
var displayName: string;
|
|
10
11
|
}
|
|
@@ -10,7 +10,7 @@ export declare const wCourse = 17.8125;
|
|
|
10
10
|
* Tener en cuenta el width del padre donde se pondra este componente, utilizar método maxWidthCoursesList
|
|
11
11
|
* @see src/organisms/CourseList/maxWidthCoursesList.ts
|
|
12
12
|
*/
|
|
13
|
-
export declare function CourseList({ courses, m, }: Type.WrapperCoursesProps): JSX.Element | null;
|
|
13
|
+
export declare function CourseList({ courses, m, onClick, }: Type.WrapperCoursesProps): JSX.Element | null;
|
|
14
14
|
export declare namespace CourseList {
|
|
15
15
|
var displayName: string;
|
|
16
16
|
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
2
|
+
interface FooterProps {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function Footer({ onClick }: FooterProps): JSX.Element | null;
|
|
3
6
|
export declare namespace Footer {
|
|
4
7
|
var displayName: string;
|
|
5
8
|
}
|
|
9
|
+
export {};
|
|
@@ -1,98 +1,4 @@
|
|
|
1
1
|
export declare type icon = 'schedule' | 'certificate' | 'circularCheck' | 'progress' | 'circularInformation';
|
|
2
|
-
export interface box {
|
|
3
|
-
id: number;
|
|
4
|
-
/**
|
|
5
|
-
* Nombre del curso (utilizado en el titulo de la caja).
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/** Imagen de fondo de la caja de curso. */
|
|
9
|
-
background: string;
|
|
10
|
-
/** Logo del partner del curso. (OPCIONAL) */
|
|
11
|
-
logo?: string;
|
|
12
|
-
/** Name del partner del curso. (OPCIONAL) */
|
|
13
|
-
logoAlt?: string;
|
|
14
|
-
/** Estado del curso. */
|
|
15
|
-
status?: {
|
|
16
|
-
/** ID del estado. */
|
|
17
|
-
id: number;
|
|
18
|
-
/**
|
|
19
|
-
* Nombre del estado.
|
|
20
|
-
* ESTADOS PLATAFORMA V8
|
|
21
|
-
* - STUDYING: Curso iniciado. El alumno está rindiendo el curso de forma normal.
|
|
22
|
-
* - ACTIVATED: Curso activado recientemente. Pero el alumno no ha ingresado aún. Cuando ingrese el alumno podrá cambiarse el estado a `RECENT` y si supera el rango de fechas pasará a `STUDYING`.
|
|
23
|
-
* - RECENT: Curso iniciado recientemente. El curso se habilitó hace poco y el alumno está en ese rango de fechas que se definió como "Reciente".
|
|
24
|
-
* - FINISHED: Curso terminado académicamente, pero aún no desactivado. El alumno puede seguir viendo su contenido.
|
|
25
|
-
* - PENDING: Curso terminado académicamente, pero con la nota del exámen aún pendiente de revisión.
|
|
26
|
-
* - NEXT: Curso aún no activo por fecha de inicio, es un curso futuro cargado en mi listado académico.
|
|
27
|
-
* - QUALIFIED: Curso terminado académicamente con nota de examen y promedio revisado.
|
|
28
|
-
* - PAST: Curso terminado y desactivado.
|
|
29
|
-
*/
|
|
30
|
-
name: string;
|
|
31
|
-
/** Detalle del estado. */
|
|
32
|
-
detail: string;
|
|
33
|
-
/** Estilo que puede poseer el estado. */
|
|
34
|
-
style: string;
|
|
35
|
-
};
|
|
36
|
-
Profile: {
|
|
37
|
-
id: number;
|
|
38
|
-
name: string;
|
|
39
|
-
};
|
|
40
|
-
/** Detalle del progreso del curso. */
|
|
41
|
-
progress: {
|
|
42
|
-
/** Texto a incluir en el label (traducido). */
|
|
43
|
-
label: string;
|
|
44
|
-
/** Icono que acompaña al texto */
|
|
45
|
-
icon: icon;
|
|
46
|
-
/** % de avance que posee el alumno en el curso (default 0) */
|
|
47
|
-
progress: number;
|
|
48
|
-
/** Indica si el alumno se encuentra aprobado. */
|
|
49
|
-
isApproved: boolean;
|
|
50
|
-
/** Promedio final que posee el alumno (formateado según la escala de notas) */
|
|
51
|
-
finalGrade: string;
|
|
52
|
-
};
|
|
53
|
-
/** Fechas que van sobre el titulo del curso */
|
|
54
|
-
dateStatus: {
|
|
55
|
-
/** Indica si el curso presentará las fechas */
|
|
56
|
-
hasDates: boolean;
|
|
57
|
-
/** Fecha de inicio del curso (texto traducido) */
|
|
58
|
-
init: string;
|
|
59
|
-
/** Fecha de fin del curso (texto traducido) */
|
|
60
|
-
end: string;
|
|
61
|
-
};
|
|
62
|
-
/** Listado de iconos informativos (EJ. Certificado por Duoc, Pertenece a: Diplomado en...) */
|
|
63
|
-
information: [
|
|
64
|
-
{
|
|
65
|
-
/** Nombre del icono que acompaña la información */
|
|
66
|
-
icon: icon;
|
|
67
|
-
/** Texto informativo (traducido) */
|
|
68
|
-
text: string;
|
|
69
|
-
/** Si corresponde a un link, url hacia donde apunta (Ej: Información del curso CV) */
|
|
70
|
-
href: string;
|
|
71
|
-
}
|
|
72
|
-
];
|
|
73
|
-
/** Información del botón del curso */
|
|
74
|
-
action: {
|
|
75
|
-
/** Indica si el botón se encontrará habilitado */
|
|
76
|
-
enabled: boolean;
|
|
77
|
-
/** Texto que poseerá el botón (traducido) */
|
|
78
|
-
text: string;
|
|
79
|
-
/** Indica si el botón contiene un icono */
|
|
80
|
-
hasIcon: boolean;
|
|
81
|
-
/** Contiene la url hacia donde apunta el botón */
|
|
82
|
-
href: string;
|
|
83
|
-
/** Si el link se abre en otra pestaña (CV). En V8 te manda al curso */
|
|
84
|
-
targetBlank: boolean;
|
|
85
|
-
};
|
|
86
|
-
/** Etiquetas utilizadas en CV */
|
|
87
|
-
labels: [
|
|
88
|
-
{
|
|
89
|
-
/** Indica el ID de la etiqueta (NEW | OBLIGATORY | PROFILE ) */
|
|
90
|
-
id: string;
|
|
91
|
-
/** Contiene el texto de la etiqueta */
|
|
92
|
-
text: string;
|
|
93
|
-
}
|
|
94
|
-
];
|
|
95
|
-
}
|
|
96
2
|
export declare const dataBase: {
|
|
97
3
|
name: string;
|
|
98
4
|
background: string;
|