@eclass/ui-kit 1.33.0 → 1.33.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.
Files changed (62) hide show
  1. package/dist/atoms/Icons/AcademicRecord.d.ts +1 -2
  2. package/dist/atoms/Icons/AlertInfo.d.ts +1 -2
  3. package/dist/atoms/Icons/Alerts/ErrorWhite.d.ts +1 -2
  4. package/dist/atoms/Icons/Alerts/InfoWhite.d.ts +1 -2
  5. package/dist/atoms/Icons/Alerts/SuccessWhite.d.ts +1 -2
  6. package/dist/atoms/Icons/Alerts/WarningWhite.d.ts +1 -2
  7. package/dist/atoms/Icons/ArrowRight.d.ts +1 -2
  8. package/dist/atoms/Icons/Base.d.ts +2 -2
  9. package/dist/atoms/Icons/Certificate.d.ts +1 -2
  10. package/dist/atoms/Icons/CircularCheck.d.ts +1 -2
  11. package/dist/atoms/Icons/CircularInformation.d.ts +1 -2
  12. package/dist/atoms/Icons/Close.d.ts +1 -2
  13. package/dist/atoms/Icons/Download.d.ts +1 -2
  14. package/dist/atoms/Icons/GoAhead.d.ts +1 -2
  15. package/dist/atoms/Icons/GoBack.d.ts +1 -2
  16. package/dist/atoms/Icons/Loader.d.ts +0 -1
  17. package/dist/atoms/Icons/Multimedia.d.ts +1 -2
  18. package/dist/atoms/Icons/Password.d.ts +1 -2
  19. package/dist/atoms/Icons/Pen.d.ts +1 -2
  20. package/dist/atoms/Icons/PlusSign.d.ts +1 -2
  21. package/dist/atoms/Icons/Profile.d.ts +1 -2
  22. package/dist/atoms/Icons/Schedule.d.ts +1 -2
  23. package/dist/atoms/Icons/TextBubble.d.ts +1 -2
  24. package/dist/atoms/Icons/TinyAlertError.d.ts +1 -2
  25. package/dist/atoms/Icons/TinyAlertInfo.d.ts +1 -2
  26. package/dist/atoms/Icons/TinyAlertSuccess.d.ts +1 -2
  27. package/dist/atoms/Icons/TinyAlertWarning.d.ts +1 -2
  28. package/dist/atoms/Icons/TrashCan.d.ts +1 -2
  29. package/dist/atoms/Progress/Progress.d.ts +0 -1
  30. package/dist/atoms/Ripples/Ripples.d.ts +0 -1
  31. package/dist/atoms/TinyAlert/TinyAlert.d.ts +0 -1
  32. package/dist/eclass-ui-kit.es.js +28861 -36768
  33. package/dist/eclass-ui-kit.es.js.map +1 -1
  34. package/dist/eclass-ui-kit.umd.js +371 -276
  35. package/dist/eclass-ui-kit.umd.js.map +1 -1
  36. package/dist/index.d.ts +4 -4
  37. package/dist/molecules/Buttons/BtnPrimary.d.ts +1 -2
  38. package/dist/molecules/Buttons/BtnSecondary.d.ts +1 -2
  39. package/dist/molecules/Buttons/BtnTertiary.d.ts +1 -2
  40. package/dist/molecules/Tooltip/NewTooltip.d.ts +2 -3
  41. package/dist/organisms/Alerts/Alert.d.ts +1 -2
  42. package/dist/organisms/Alerts/FlashNotification.d.ts +1 -2
  43. package/dist/organisms/Alerts/types.d.ts +66 -0
  44. package/dist/organisms/Alerts/utils/alertStates.d.ts +4 -4
  45. package/dist/organisms/Alerts/utils/useFlashNotification.d.ts +1 -1
  46. package/dist/organisms/CourseList/Boxes/BoxImage.d.ts +1 -2
  47. package/dist/organisms/CourseList/Boxes/BoxTraditional.d.ts +1 -1
  48. package/dist/organisms/CourseList/Boxes/Boxes.d.ts +1 -2
  49. package/dist/organisms/CourseList/CourseList.d.ts +1 -2
  50. package/dist/organisms/CourseList/components/CourseStatus.d.ts +1 -2
  51. package/dist/organisms/CourseList/components/DateStatus.d.ts +0 -1
  52. package/dist/organisms/CourseList/components/Footer.d.ts +1 -2
  53. package/dist/organisms/CourseList/components/Header.d.ts +0 -1
  54. package/dist/organisms/CourseList/components/IconSelection.d.ts +0 -1
  55. package/dist/organisms/CourseList/components/Modal/PaymentModal.d.ts +1 -2
  56. package/dist/organisms/CourseList/components/Section.d.ts +0 -1
  57. package/dist/organisms/CourseList/types.d.ts +37 -0
  58. package/dist/organisms/CourseList/utils/dataFake.d.ts +1 -1
  59. package/dist/theme/index.d.ts +1 -1
  60. package/dist/tsconfig.types.tsbuildinfo +1 -1
  61. package/dist/vite-env.d.ts +2 -0
  62. package/package.json +63 -60
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @typescript-eslint/triple-slash-reference */
2
+ /// <reference types="vite/client" />
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@eclass/ui-kit",
3
3
  "description": "Elementos UI transversales eClass",
4
- "version": "1.33.0",
4
+ "version": "1.33.1",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
8
  "main": "dist/eclass-ui-kit.umd.js",
9
9
  "module": "dist/eclass-ui-kit.es.js",
10
- "types": "module",
10
+ "types": "dist/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
13
  "import": "./dist/eclass-ui-kit.es.js",
@@ -30,8 +30,9 @@
30
30
  ],
31
31
  "scripts": {
32
32
  "dev": "vite",
33
- "build": "tsc && vite build && npm run build:types",
33
+ "build": "tsc && vite build && npm run build:types && npm run copy-dts",
34
34
  "build:types": "tsc -p tsconfig.types.json",
35
+ "copy-dts": "copyfiles -u 1 \"src/**/*.d.ts\" dist",
35
36
  "serve": "vite preview",
36
37
  "test": "jest --coverage",
37
38
  "test-local": "jest --watch",
@@ -40,87 +41,89 @@
40
41
  "eslint": "eslint 'src/**/*.{ts,tsx,mdx}' --fix --cache",
41
42
  "lint:check": "eslint 'src/**/*.{ts,tsx,mdx}'",
42
43
  "ts-compile-check": "tsc -p tsconfig.json",
43
- "prepare": "ts-patch install -s && husky install",
44
+ "prepare": "ts-patch install -s && node ./prepare.js",
45
+ "preinstall": "npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
44
46
  "deploy": "VITE_REACT_DEPLOY_DOCUMENTATION=DOCUMENTATION vite build"
45
47
  },
46
48
  "publishConfig": {
47
49
  "access": "public"
48
50
  },
51
+ "peerDependencies": {
52
+ "react": "^16.8 || 17.x",
53
+ "react-dom": "^16.8 || 17.x"
54
+ },
49
55
  "devDependencies": {
50
- "@commitlint/cli": "17.7.1",
51
- "@commitlint/config-conventional": "17.7.0",
56
+ "@commitlint/cli": "13.2.1",
57
+ "@commitlint/config-conventional": "13.2.0",
52
58
  "@fontsource/lora": "4.5.13",
53
59
  "@fontsource/roboto": "4.5.8",
54
60
  "@semantic-release/changelog": "6.0.1",
55
- "@semantic-release/git": "10.0.1",
56
- "@testing-library/dom": "^9.3.3",
57
- "@testing-library/jest-dom": "6.1.3",
58
- "@testing-library/react": "14.0.0",
59
- "@testing-library/user-event": "^14.5.1",
61
+ "@semantic-release/git": "9.0.1",
62
+ "@testing-library/dom": "8.20.1",
63
+ "@testing-library/jest-dom": "5.17.0",
64
+ "@testing-library/react": "12.1.5",
65
+ "@testing-library/user-event": "14.4.3",
60
66
  "@types/eclass__api": "git+ssh://git@gitlab.com/eclass/types-eclass-api.git#v3.108.0",
61
67
  "@types/eclass__sequelize-models": "git+ssh://git@gitlab.com/eclass/types-sequelize-models.git#v5.40.0",
62
- "@types/jest": "29.5.5",
63
- "@types/react": "18.2.23",
64
- "@types/react-dom": "18.2.8",
65
- "@typescript-eslint/eslint-plugin": "6.4.0",
66
- "@typescript-eslint/parser": "6.0.0",
67
- "@vitejs/plugin-react": "4.1.0",
68
- "eslint": "8.45.0",
69
- "eslint-config-prettier": "9.0.0",
70
- "eslint-config-standard": "17.1.0",
71
- "eslint-config-standard-jsx": "11.0.0",
72
- "eslint-config-standard-react": "13.0.0",
73
- "eslint-config-standard-with-typescript": "39.1.0",
74
- "eslint-import-resolver-typescript": "3.6.1",
68
+ "@types/jest": "27.5.2",
69
+ "@types/react": "17.0.64",
70
+ "@types/react-dom": "17.0.20",
71
+ "@typescript-eslint/eslint-plugin": "5.17.0",
72
+ "@typescript-eslint/parser": "5.17.0",
73
+ "@vitejs/plugin-react": "1.3.2",
74
+ "copyfiles": "2.4.1",
75
+ "eslint": "8.46.0",
76
+ "eslint-config-prettier": "8.10.0",
77
+ "eslint-config-standard": "16.0.3",
78
+ "eslint-config-standard-jsx": "10.0.0",
79
+ "eslint-config-standard-react": "11.0.1",
80
+ "eslint-config-standard-with-typescript": "21.0.1",
81
+ "eslint-import-resolver-typescript": "2.7.1",
75
82
  "eslint-plugin-import": "2.28.0",
76
- "eslint-plugin-jest": "27.4.0",
77
- "eslint-plugin-jest-dom": "5.1.0",
83
+ "eslint-plugin-jest": "25.7.0",
84
+ "eslint-plugin-jest-dom": "4.0.3",
78
85
  "eslint-plugin-jsx-a11y": "6.7.1",
79
- "eslint-plugin-mdx": "2.2.0",
86
+ "eslint-plugin-mdx": "1.17.1",
80
87
  "eslint-plugin-node": "11.1.0",
81
- "eslint-plugin-prettier": "5.0.0",
88
+ "eslint-plugin-prettier": "4.2.1",
82
89
  "eslint-plugin-promise": "6.1.1",
83
- "eslint-plugin-react": "7.33.2",
90
+ "eslint-plugin-react": "7.33.1",
84
91
  "eslint-plugin-react-hooks": "4.6.0",
85
- "eslint-plugin-react-refresh": "0.4.3",
86
- "eslint-plugin-simple-import-sort": "10.0.0",
87
- "eslint-plugin-testing-library": "6.0.2",
88
- "gh-pages": "6.0.0",
89
- "graphql": "16.8.1",
90
- "husky": "8.0.3",
92
+ "eslint-plugin-simple-import-sort": "7.0.0",
93
+ "eslint-plugin-testing-library": "5.11.1",
94
+ "gh-pages": "^6.0.0",
95
+ "graphql": "^16.8.1",
96
+ "husky": "7.0.4",
91
97
  "identity-obj-proxy": "3.0.0",
92
- "jest": "29.7.0",
93
- "jest-environment-jsdom": "29.7.0",
94
- "jest-watch-typeahead": "2.2.2",
95
- "lint-staged": "14.0.1",
98
+ "jest": "27.5.1",
99
+ "jest-watch-typeahead": "1.0.0",
100
+ "lint-staged": "12.3.7",
101
+ "localforage": "1.10.0",
96
102
  "match-sorter": "6.3.1",
97
- "prettier": "3.0.3",
98
- "react": "18.2.0",
99
- "react-code-blocks": "0.1.4",
100
- "react-dom": "18.2.0",
103
+ "prettier": "2.6.1",
104
+ "react": "17.0.2",
105
+ "react-code-blocks": "0.1.3",
106
+ "react-dom": "17.0.2",
101
107
  "react-router-dom": "6.14.2",
102
- "semantic-release": "22.0.5",
103
- "ts-jest": "29.1.1",
104
- "ts-patch": "3.0.2",
105
- "typescript": "4.9.5",
106
- "typescript-transform-paths": "3.4.6",
107
- "vite": "4.4.5",
108
- "vite-tsconfig-paths": "4.2.1"
108
+ "semantic-release": "18.0.1",
109
+ "sort-by": "1.2.0",
110
+ "ts-jest": "27.1.5",
111
+ "ts-patch": "2.0.1",
112
+ "typescript": "4.6.3",
113
+ "typescript-transform-paths": "3.3.1",
114
+ "vite": "2.9.16",
115
+ "vite-tsconfig-paths": "3.4.1"
109
116
  },
110
117
  "dependencies": {
111
- "@chakra-ui/react": "2.8.1",
112
- "@emotion/react": "11.11.1",
113
- "@emotion/styled": "11.11.0",
114
- "framer-motion": "10.16.4",
118
+ "@chakra-ui/react": "1.8.9",
119
+ "@emotion/react": "11.8.2",
120
+ "@emotion/styled": "11.8.1",
121
+ "framer-motion": "6.2.8",
115
122
  "react-hot-toast": "2.4.1",
116
123
  "react-ripples": "2.2.1"
117
124
  },
118
125
  "resolutions": {
119
- "@types/react": "18.2.23",
120
- "@types/react-dom": "18.2.8"
121
- },
122
- "peerDependencies": {
123
- "react": "^16.8 || 17.x || 18.x",
124
- "react-dom": "^16.8 || 17.x || 18.x"
126
+ "@types/react": "17.0.2",
127
+ "@types/react-dom": "17.0.2"
125
128
  }
126
129
  }