@eclass/ui-kit 1.4.3 → 1.5.1

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/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './atoms';
2
2
  export * from './organisms';
3
3
  export * from './theme';
4
+ export { TestVars } from './components/TestVars';
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
- import { box } from './dataFake';
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: any;
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
- interface WrapperCoursesProps {
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,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  interface DateStatusProps {
3
- date: string;
3
+ date?: string;
4
4
  }
5
5
  export declare function DateStatus({ date }: DateStatusProps): JSX.Element | null;
6
6
  export declare namespace DateStatus {
@@ -1,8 +1,7 @@
1
1
  /// <reference types="react" />
2
- import { icon } from '../dataFake';
3
2
  interface IconSelectionProps {
4
- type: icon;
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 {};
@@ -9,5 +9,5 @@ interface payload {
9
9
  * @example
10
10
  * maxWidthCoursesList()
11
11
  */
12
- export declare const maxWidthCoursesList: (nCols?: number) => payload;
12
+ export declare function maxWidthCoursesList(nCols?: number): payload;
13
13
  export {};
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.3",
4
+ "version": "1.5.1",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "scripts": {
32
32
  "dev": "vite",
33
- "build": "tsc && vite build && npm run build:types",
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
- "deploy-storybook": "storybook-to-ghpages"
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.10",
63
- "@storybook/addon-essentials": "6.3.10",
64
- "@storybook/addon-links": "6.3.10",
65
- "@storybook/react": "6.3.10",
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.7.2",
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.2.1",
74
+ "@testing-library/user-event": "13.5.0",
71
75
  "@types/jest": "27.0.2",
72
- "@types/react": "17.0.27",
76
+ "@types/react": "17.0.30",
73
77
  "@types/react-dom": "17.0.9",
74
78
  "@typescript-eslint/eslint-plugin": "4.33.0",
75
79
  "@typescript-eslint/parser": "4.33.0",
76
- "@vitejs/plugin-react": "1.0.2",
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,8 +86,8 @@
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.24.2",
86
- "eslint-plugin-jest": "24.5.2",
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
93
  "eslint-plugin-mdx": "1.15.1",
@@ -94,20 +98,22 @@
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
- "jest": "27.2.4",
101
+ "husky": "7.0.2",
102
+ "jest": "27.3.1",
98
103
  "jest-watch-typeahead": "1.0.0",
104
+ "lint-staged": "11.2.3",
99
105
  "prettier": "2.4.1",
100
106
  "react": "17.0.2",
101
107
  "react-dom": "17.0.2",
102
108
  "semantic-release": "17.4.7",
103
- "storybook-builder-vite": "0.1.0",
104
- "ts-jest": "27.0.5",
105
- "typescript": "4.4.3",
106
- "vite": "2.6.4"
109
+ "storybook-builder-vite": "0.1.2",
110
+ "ts-jest": "27.0.7",
111
+ "typescript": "4.4.4",
112
+ "vite": "2.6.10"
107
113
  },
108
114
  "dependencies": {
109
- "@chakra-ui/react": "1.6.9",
110
- "@emotion/react": "11.4.1",
115
+ "@chakra-ui/react": "1.6.10",
116
+ "@emotion/react": "11.5.0",
111
117
  "@emotion/styled": "11.3.0",
112
118
  "@fontsource/lora": "4.5.0",
113
119
  "@fontsource/roboto": "4.5.1",