@etsoo/materialui 1.3.22 → 1.3.26

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.
@@ -20,7 +20,7 @@ it("Render SelectEx", async () => {
20
20
  });
21
21
 
22
22
  // Render component
23
- const { baseElement } = render(
23
+ render(
24
24
  <SelectEx<T>
25
25
  options={options}
26
26
  name="test"
@@ -34,7 +34,7 @@ it("Render SelectEx", async () => {
34
34
  expect(itemChangeCallback).toBeCalled();
35
35
 
36
36
  // Act, click to show the list
37
- const button = screen.getByRole("button");
37
+ const button = screen.getByRole("combobox");
38
38
 
39
39
  // https://davidwcai.medium.com/react-testing-library-and-the-not-wrapped-in-act-errors-491a5629193b
40
40
  act(() => {
@@ -89,7 +89,7 @@ it("Render multiple SelectEx", async () => {
89
89
  expect(itemChangeCallback).toBeCalled();
90
90
 
91
91
  // Act, click to show the list
92
- const button = screen.getByRole("button");
92
+ const button = screen.getByRole("combobox");
93
93
  fireEvent.mouseDown(button); // Not click
94
94
 
95
95
  // Get list item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.22",
3
+ "version": "1.3.26",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -50,19 +50,19 @@
50
50
  "@emotion/css": "^11.11.2",
51
51
  "@emotion/react": "^11.11.1",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@etsoo/appscript": "^1.4.54",
53
+ "@etsoo/appscript": "^1.4.57",
54
54
  "@etsoo/notificationbase": "^1.1.28",
55
- "@etsoo/react": "^1.7.11",
56
- "@etsoo/shared": "^1.2.12",
57
- "@mui/icons-material": "^5.14.9",
58
- "@mui/material": "^5.14.9",
59
- "@mui/x-data-grid": "^6.14.0",
60
- "@types/pica": "^9.0.1",
55
+ "@etsoo/react": "^1.7.17",
56
+ "@etsoo/shared": "^1.2.15",
57
+ "@mui/icons-material": "^5.14.13",
58
+ "@mui/material": "^5.14.13",
59
+ "@mui/x-data-grid": "^6.16.2",
60
+ "@types/pica": "^9.0.2",
61
61
  "@types/pulltorefreshjs": "^0.1.5",
62
- "@types/react": "^18.2.21",
62
+ "@types/react": "^18.2.28",
63
63
  "@types/react-avatar-editor": "^13.0.0",
64
- "@types/react-dom": "^18.2.7",
65
- "@types/react-input-mask": "^3.0.2",
64
+ "@types/react-dom": "^18.2.13",
65
+ "@types/react-input-mask": "^3.0.3",
66
66
  "chart.js": "^4.4.0",
67
67
  "chartjs-plugin-datalabels": "^2.2.0",
68
68
  "pica": "^9.0.1",
@@ -71,22 +71,22 @@
71
71
  "react-avatar-editor": "^13.0.0",
72
72
  "react-chartjs-2": "^5.2.0",
73
73
  "react-dom": "^18.2.0",
74
- "react-draggable": "^4.4.5",
74
+ "react-draggable": "^4.4.6",
75
75
  "react-imask": "6.6.3"
76
76
  },
77
77
  "devDependencies": {
78
- "@babel/cli": "^7.22.15",
79
- "@babel/core": "^7.22.20",
80
- "@babel/plugin-transform-runtime": "^7.22.15",
81
- "@babel/preset-env": "^7.22.20",
78
+ "@babel/cli": "^7.23.0",
79
+ "@babel/core": "^7.23.2",
80
+ "@babel/plugin-transform-runtime": "^7.23.2",
81
+ "@babel/preset-env": "^7.23.2",
82
82
  "@babel/preset-react": "^7.22.15",
83
- "@babel/preset-typescript": "^7.22.15",
84
- "@babel/runtime-corejs3": "^7.22.15",
85
- "@testing-library/jest-dom": "^6.1.3",
83
+ "@babel/preset-typescript": "^7.23.2",
84
+ "@babel/runtime-corejs3": "^7.23.2",
85
+ "@testing-library/jest-dom": "^6.1.4",
86
86
  "@testing-library/react": "^14.0.0",
87
87
  "@types/jest": "^29.5.5",
88
- "@typescript-eslint/eslint-plugin": "^6.7.0",
89
- "@typescript-eslint/parser": "^6.7.0",
88
+ "@typescript-eslint/eslint-plugin": "^6.7.5",
89
+ "@typescript-eslint/parser": "^6.7.5",
90
90
  "jest": "^29.7.0",
91
91
  "jest-environment-jsdom": "^29.7.0",
92
92
  "typescript": "^5.2.2"
package/src/SelectEx.tsx CHANGED
@@ -354,7 +354,7 @@ export function SelectEx<
354
354
  return (
355
355
  <MenuItem
356
356
  key={id}
357
- value={id}
357
+ value={id as any}
358
358
  onClick={(event) => {
359
359
  if (onItemClick) {
360
360
  onItemClick(event, option);