@eclass/ui-kit 1.5.2 → 1.5.6
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/atoms/Icons/Base.d.ts +1 -1
- package/dist/eclass-ui-kit.es.js +10078 -3113
- 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/index.d.ts +3 -3
- package/dist/organisms/CourseList/CourseBox.d.ts +2 -2
- package/dist/organisms/CourseList/CourseList.d.ts +1 -1
- package/dist/organisms/CourseList/index.d.ts +1 -2
- package/dist/organisms/CourseList/types.d.ts +8 -0
- package/dist/organisms/CourseList/utils/dataFake.d.ts +47 -0
- package/dist/organisms/CourseList/utils/index.d.ts +3 -0
- package/dist/organisms/CourseList/utils/isCourseActive.d.ts +10 -0
- package/dist/organisms/CourseList/{maxWidthCoursesList.d.ts → utils/maxWidthCoursesList.d.ts} +0 -0
- package/dist/style.css +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -0
- package/dist/vite-env.d.ts +2 -0
- package/package.json +50 -44
- package/dist/organisms/CourseList/dataFake.d.ts +0 -141
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./atoms";
|
|
2
|
+
export * from "./organisms";
|
|
3
|
+
export * from "./theme";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import * as Type from './types
|
|
3
|
-
export declare const CourseBoxContext: React.Context<Partial<import("
|
|
2
|
+
import * as Type from './types';
|
|
3
|
+
export declare const CourseBoxContext: React.Context<Partial<import("@eclass/api").AcademicBox>>;
|
|
4
4
|
interface CourseBoxProps {
|
|
5
5
|
data: Type.AcademicList;
|
|
6
6
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare type icon = 'schedule' | 'certificate' | 'circularCheck' | 'progress' | 'circularInformation';
|
|
2
|
+
export declare const dataBase: {
|
|
3
|
+
name: string;
|
|
4
|
+
background: string;
|
|
5
|
+
logo: string;
|
|
6
|
+
logoAlt: string;
|
|
7
|
+
status: {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
detail: string;
|
|
11
|
+
style: string;
|
|
12
|
+
};
|
|
13
|
+
Profile: {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
progress: {
|
|
18
|
+
label: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
progress: number;
|
|
21
|
+
isApproved: boolean;
|
|
22
|
+
finalGrade: string;
|
|
23
|
+
};
|
|
24
|
+
dateStatus: {
|
|
25
|
+
hasDates: boolean;
|
|
26
|
+
init: string;
|
|
27
|
+
end: string;
|
|
28
|
+
};
|
|
29
|
+
information: {
|
|
30
|
+
icon: string;
|
|
31
|
+
text: string;
|
|
32
|
+
href: string;
|
|
33
|
+
}[];
|
|
34
|
+
action: {
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
text: string;
|
|
37
|
+
hasIcon: boolean;
|
|
38
|
+
href: string;
|
|
39
|
+
targetBlank: boolean;
|
|
40
|
+
};
|
|
41
|
+
labels: {
|
|
42
|
+
id: string;
|
|
43
|
+
text: string;
|
|
44
|
+
}[];
|
|
45
|
+
};
|
|
46
|
+
export declare const dataStates: any;
|
|
47
|
+
export declare const dataFake: any[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const PROFILE_STUDENT = 4;
|
|
2
|
+
/**
|
|
3
|
+
* Valida si se puede acceder al curso, eso depende de dos casos:
|
|
4
|
+
* - Que el curso se encuentre habilitado para acceder
|
|
5
|
+
* - O si tengo un perfil de usuario distinto al de estudiante (revisor, admin, etc)
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* isCourseActive(action.enabled, Profile.id)
|
|
9
|
+
*/
|
|
10
|
+
export declare const isCourseActive: (enabled: boolean, profileID?: number) => boolean;
|
package/dist/organisms/CourseList/{maxWidthCoursesList.d.ts → utils/maxWidthCoursesList.d.ts}
RENAMED
|
File without changes
|