@eclass/ui-kit 1.4.4 → 1.5.2
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/ArrowRight.d.ts +1 -1
- package/dist/atoms/Icons/{Icon.d.ts → Base.d.ts} +1 -1
- package/dist/atoms/Icons/Certificate.d.ts +1 -1
- package/dist/atoms/Icons/CircularCheck.d.ts +1 -1
- package/dist/atoms/Icons/CircularInformation.d.ts +1 -1
- package/dist/atoms/Icons/Profile.d.ts +1 -1
- package/dist/atoms/Icons/Schedule.d.ts +1 -1
- package/dist/atoms/Label/Label.d.ts +4 -0
- package/dist/atoms/Progress/Progress.d.ts +9 -1
- package/dist/atoms/Ripples/Ripples.d.ts +9 -0
- package/dist/eclass-ui-kit.es.js +148 -100
- package/dist/eclass-ui-kit.es.js.map +1 -1
- package/dist/eclass-ui-kit.umd.js +6 -6
- package/dist/eclass-ui-kit.umd.js.map +1 -1
- package/dist/organisms/CourseList/CourseBox.d.ts +3 -3
- package/dist/organisms/CourseList/CourseList.d.ts +2 -6
- package/dist/organisms/CourseList/components/DateStatus.d.ts +1 -1
- package/dist/organisms/CourseList/components/IconSelection.d.ts +2 -3
- package/dist/organisms/CourseList/maxWidthCoursesList.d.ts +1 -1
- package/dist/theme/colors.d.ts +8 -2
- package/dist/theme/index.d.ts +0 -5
- package/dist/theme/typography.d.ts +11 -0
- package/dist/theme/utils.d.ts +30 -0
- package/package.json +30 -23
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
3
|
-
export declare const CourseBoxContext: React.Context<Partial<box>>;
|
|
2
|
+
import * as Type from './types.d';
|
|
3
|
+
export declare const CourseBoxContext: React.Context<Partial<import("./dataFake").box>>;
|
|
4
4
|
interface CourseBoxProps {
|
|
5
|
-
data:
|
|
5
|
+
data: Type.AcademicList;
|
|
6
6
|
}
|
|
7
7
|
export declare function CourseBox({ data }: CourseBoxProps): JSX.Element;
|
|
8
8
|
export declare namespace CourseBox {
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
|
|
3
|
-
courses: any;
|
|
4
|
-
m?: string;
|
|
5
|
-
}
|
|
2
|
+
import * as Type from './types.d';
|
|
6
3
|
export declare const columnGap = 1.25;
|
|
7
4
|
export declare const wCourse = 17.8125;
|
|
8
5
|
/**
|
|
@@ -13,8 +10,7 @@ export declare const wCourse = 17.8125;
|
|
|
13
10
|
* Tener en cuenta el width del padre donde se pondra este componente, utilizar método maxWidthCoursesList
|
|
14
11
|
* @see src/organisms/CourseList/maxWidthCoursesList.ts
|
|
15
12
|
*/
|
|
16
|
-
export declare function CourseList({ courses, m }: WrapperCoursesProps): JSX.Element | null;
|
|
13
|
+
export declare function CourseList({ courses, m, }: Type.WrapperCoursesProps): JSX.Element | null;
|
|
17
14
|
export declare namespace CourseList {
|
|
18
15
|
var displayName: string;
|
|
19
16
|
}
|
|
20
|
-
export {};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { icon } from '../dataFake';
|
|
3
2
|
interface IconSelectionProps {
|
|
4
|
-
type:
|
|
3
|
+
type: string;
|
|
5
4
|
progressValue?: number;
|
|
6
5
|
}
|
|
7
|
-
export declare function IconSelection({ type, progressValue }: IconSelectionProps): JSX.Element;
|
|
6
|
+
export declare function IconSelection({ type, progressValue }: IconSelectionProps): JSX.Element | null;
|
|
8
7
|
export {};
|
package/dist/theme/colors.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Valores definidos en el sistema de diseños eclass.
|
|
3
|
+
* @see https://zeroheight.com/15698077d/p/435a07-paleta-de-colores
|
|
4
|
+
*/
|
|
1
5
|
export declare const colors: {
|
|
2
6
|
main: {
|
|
3
|
-
blueGrey: string;
|
|
4
7
|
deepSkyBlue: string;
|
|
5
|
-
|
|
8
|
+
azureRadiance: string;
|
|
9
|
+
blueGrey: string;
|
|
6
10
|
veryLightBlue: string;
|
|
11
|
+
linkWater: string;
|
|
12
|
+
ziggurat: string;
|
|
7
13
|
};
|
|
8
14
|
secondary: {
|
|
9
15
|
pumpkin: string;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import '@fontsource/roboto/700.css';
|
|
2
|
-
import '@fontsource/roboto/500.css';
|
|
3
|
-
import '@fontsource/roboto/400.css';
|
|
4
|
-
import '@fontsource/roboto/300.css';
|
|
5
|
-
import '@fontsource/lora/400.css';
|
|
6
1
|
export declare const theme: import("@chakra-ui/utils").Dict<any>;
|
|
7
2
|
export declare const vars: (value: string) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '@fontsource/roboto/700.css';
|
|
2
|
+
import '@fontsource/roboto/500.css';
|
|
3
|
+
import '@fontsource/roboto/400.css';
|
|
4
|
+
import '@fontsource/roboto/300.css';
|
|
5
|
+
import '@fontsource/lora/400.css';
|
|
6
|
+
export declare const typography: {
|
|
7
|
+
fonts: {
|
|
8
|
+
body: string;
|
|
9
|
+
outstanding: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const borders: {
|
|
2
|
+
normal: string;
|
|
3
|
+
light: string;
|
|
4
|
+
active: string;
|
|
5
|
+
success: string;
|
|
6
|
+
error: string;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Valores definidos en el sistema de diseños eclass.
|
|
10
|
+
* @see https://zeroheight.com/15698077d/p/48fae4-eclass-sistema-de-diseo
|
|
11
|
+
*/
|
|
12
|
+
export declare const radii: {
|
|
13
|
+
small: string;
|
|
14
|
+
big: string;
|
|
15
|
+
rounded: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const utils: {
|
|
18
|
+
borders: {
|
|
19
|
+
normal: string;
|
|
20
|
+
light: string;
|
|
21
|
+
active: string;
|
|
22
|
+
success: string;
|
|
23
|
+
error: string;
|
|
24
|
+
};
|
|
25
|
+
radii: {
|
|
26
|
+
small: string;
|
|
27
|
+
big: string;
|
|
28
|
+
rounded: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclass/ui-kit",
|
|
3
3
|
"description": "Elementos UI transversales eClass",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.2",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
32
|
"dev": "vite",
|
|
33
|
-
"build": "
|
|
33
|
+
"build": "vite build && npm run build:types",
|
|
34
34
|
"build:types": "tsc src/index.ts --declaration --emitDeclarationOnly --jsx react-jsx --esModuleInterop --outDir dist",
|
|
35
35
|
"serve": "vite preview",
|
|
36
36
|
"test": "jest --coverage",
|
|
@@ -39,9 +39,11 @@
|
|
|
39
39
|
"build-storybook": "build-storybook -o docs/ ",
|
|
40
40
|
"lint": "npm run format && npm run eslint",
|
|
41
41
|
"format": "prettier --write 'src/**/*.{ts,tsx,mdx}'",
|
|
42
|
-
"eslint": "eslint 'src/**/*.{ts,tsx,mdx}' --fix",
|
|
42
|
+
"eslint": "eslint 'src/**/*.{ts,tsx,mdx}' --fix --cache",
|
|
43
43
|
"lint:check": "eslint 'src/**/*.{ts,tsx,mdx}'",
|
|
44
|
-
"
|
|
44
|
+
"ts-compile-check": "tsc -p tsconfig.json --noEmit --incremental",
|
|
45
|
+
"deploy-storybook": "storybook-to-ghpages",
|
|
46
|
+
"prepare": "node ./prepare.js"
|
|
45
47
|
},
|
|
46
48
|
"storybook-deployer": {
|
|
47
49
|
"gitUsername": "SeGonzalezR",
|
|
@@ -57,23 +59,25 @@
|
|
|
57
59
|
},
|
|
58
60
|
"devDependencies": {
|
|
59
61
|
"@babel/core": "7.15.8",
|
|
62
|
+
"@commitlint/cli": "13.2.1",
|
|
63
|
+
"@commitlint/config-conventional": "13.2.0",
|
|
60
64
|
"@semantic-release/changelog": "5.0.1",
|
|
61
65
|
"@semantic-release/git": "9.0.1",
|
|
62
|
-
"@storybook/addon-actions": "6.3.
|
|
63
|
-
"@storybook/addon-essentials": "6.3.
|
|
64
|
-
"@storybook/addon-links": "6.3.
|
|
65
|
-
"@storybook/react": "6.3.
|
|
66
|
+
"@storybook/addon-actions": "6.3.12",
|
|
67
|
+
"@storybook/addon-essentials": "6.3.12",
|
|
68
|
+
"@storybook/addon-links": "6.3.12",
|
|
69
|
+
"@storybook/react": "6.3.12",
|
|
66
70
|
"@storybook/storybook-deployer": "2.8.10",
|
|
67
|
-
"@testing-library/dom": "8.
|
|
71
|
+
"@testing-library/dom": "8.10.1",
|
|
68
72
|
"@testing-library/jest-dom": "5.14.1",
|
|
69
73
|
"@testing-library/react": "12.1.2",
|
|
70
|
-
"@testing-library/user-event": "13.
|
|
74
|
+
"@testing-library/user-event": "13.5.0",
|
|
71
75
|
"@types/jest": "27.0.2",
|
|
72
|
-
"@types/react": "17.0.
|
|
73
|
-
"@types/react-dom": "17.0.
|
|
76
|
+
"@types/react": "17.0.30",
|
|
77
|
+
"@types/react-dom": "17.0.10",
|
|
74
78
|
"@typescript-eslint/eslint-plugin": "4.33.0",
|
|
75
79
|
"@typescript-eslint/parser": "4.33.0",
|
|
76
|
-
"@vitejs/plugin-react": "1.0.
|
|
80
|
+
"@vitejs/plugin-react": "1.0.5",
|
|
77
81
|
"babel-eslint": "10.1.0",
|
|
78
82
|
"babel-loader": "8.2.2",
|
|
79
83
|
"eslint": "7.32.0",
|
|
@@ -82,11 +86,11 @@
|
|
|
82
86
|
"eslint-config-standard-jsx": "10.0.0",
|
|
83
87
|
"eslint-config-standard-react": "11.0.1",
|
|
84
88
|
"eslint-config-standard-with-typescript": "21.0.1",
|
|
85
|
-
"eslint-plugin-import": "2.
|
|
86
|
-
"eslint-plugin-jest": "24.
|
|
89
|
+
"eslint-plugin-import": "2.25.2",
|
|
90
|
+
"eslint-plugin-jest": "24.7.0",
|
|
87
91
|
"eslint-plugin-jest-dom": "3.9.2",
|
|
88
92
|
"eslint-plugin-jsx-a11y": "6.4.1",
|
|
89
|
-
"eslint-plugin-mdx": "1.
|
|
93
|
+
"eslint-plugin-mdx": "1.16.0",
|
|
90
94
|
"eslint-plugin-node": "11.1.0",
|
|
91
95
|
"eslint-plugin-prettier": "4.0.0",
|
|
92
96
|
"eslint-plugin-promise": "5.1.0",
|
|
@@ -94,20 +98,23 @@
|
|
|
94
98
|
"eslint-plugin-react-hooks": "4.2.0",
|
|
95
99
|
"eslint-plugin-simple-import-sort": "7.0.0",
|
|
96
100
|
"eslint-plugin-testing-library": "4.12.4",
|
|
97
|
-
"
|
|
101
|
+
"husky": "7.0.2",
|
|
102
|
+
"jest": "27.3.1",
|
|
103
|
+
"identity-obj-proxy": "3.0.0",
|
|
98
104
|
"jest-watch-typeahead": "1.0.0",
|
|
105
|
+
"lint-staged": "11.2.3",
|
|
99
106
|
"prettier": "2.4.1",
|
|
100
107
|
"react": "17.0.2",
|
|
101
108
|
"react-dom": "17.0.2",
|
|
102
109
|
"semantic-release": "17.4.7",
|
|
103
|
-
"storybook-builder-vite": "0.1.
|
|
104
|
-
"ts-jest": "27.0.
|
|
105
|
-
"typescript": "4.4.
|
|
106
|
-
"vite": "2.6.
|
|
110
|
+
"storybook-builder-vite": "0.1.2",
|
|
111
|
+
"ts-jest": "27.0.7",
|
|
112
|
+
"typescript": "4.4.4",
|
|
113
|
+
"vite": "2.6.10"
|
|
107
114
|
},
|
|
108
115
|
"dependencies": {
|
|
109
|
-
"@chakra-ui/react": "1.6.
|
|
110
|
-
"@emotion/react": "11.
|
|
116
|
+
"@chakra-ui/react": "1.6.10",
|
|
117
|
+
"@emotion/react": "11.5.0",
|
|
111
118
|
"@emotion/styled": "11.3.0",
|
|
112
119
|
"@fontsource/lora": "4.5.0",
|
|
113
120
|
"@fontsource/roboto": "4.5.1",
|