trithuc-mvc-react 1.8.1 → 1.8.3

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.
@@ -5,7 +5,6 @@ import { useController, useFormContext } from "react-hook-form";
5
5
  import { debounce } from "lodash";
6
6
  import { useDataTable } from "./hooks";
7
7
 
8
-
9
8
  export function FilterElement({
10
9
  name,
11
10
  type,
@@ -36,7 +35,7 @@ export function FilterElement({
36
35
  switch (type) {
37
36
  case "search":
38
37
  return (
39
- <OutlinedInput
38
+ <TextField
40
39
  {...rest}
41
40
  fullWidth
42
41
  value={value ?? ""}
@@ -44,13 +43,15 @@ export function FilterElement({
44
43
  onFieldChange(e);
45
44
  handleFilterChangeDebounce(name, e.target.value);
46
45
  }}
47
- size={size}
48
46
  placeholder={label}
49
- startAdornment={
50
- <InputAdornment position="start">
51
- <SearchOutlined />
52
- </InputAdornment>
53
- }
47
+ variant="outlined"
48
+ InputProps={{
49
+ startAdornment: (
50
+ <InputAdornment position="start">
51
+ <SearchOutlined />
52
+ </InputAdornment>
53
+ )
54
+ }}
54
55
  />
55
56
  );
56
57
 
@@ -60,7 +61,6 @@ export function FilterElement({
60
61
  {...name}
61
62
  disablePortal
62
63
  loading={loading}
63
- size={size}
64
64
  noOptionsText="Không có dữ liệu"
65
65
  fullWidth
66
66
  options={datas ?? []}
@@ -81,7 +81,7 @@ export const FilterGod = ({ filters, elementSize = "small" }) => {
81
81
  }
82
82
  return (
83
83
  <Grid key={field} md={size?.md} xs={size?.xs} sm={size?.sm}>
84
- <FilterElement name={field} {...rest} size={elementSize} />
84
+ <FilterElement name={field} {...rest} />
85
85
  </Grid>
86
86
  );
87
87
  })}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/jsconfig.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "module": "commonjs",
5
- "target": "es6",
6
- "paths": {
7
- "@/*": ["./src/*"]
8
- }
9
- },
10
- "include": ["src/**/*"],
11
- "exclude": ["node_modules", "**/node_modules", "dist"]
12
- }