@etsoo/materialui 1.3.36 → 1.3.38

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/lib/SelectEx.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { SelectProps } from "@mui/material";
1
+ import { SelectProps, SelectVariants } from "@mui/material";
2
2
  import React from "react";
3
3
  import { DataTypes, IdDefaultType, LabelDefaultType, ListType } from "@etsoo/shared";
4
4
  /**
5
5
  * Extended select component props
6
6
  */
7
- export type SelectExProps<T extends object, D extends DataTypes.Keys<T> = IdDefaultType<T>, L extends DataTypes.Keys<T, string> = LabelDefaultType<T>> = Omit<SelectProps, "labelId" | "input" | "native"> & {
7
+ export type SelectExProps<T extends object, D extends DataTypes.Keys<T> = IdDefaultType<T>, L extends DataTypes.Keys<T, string> = LabelDefaultType<T>> = Omit<SelectProps, "labelId" | "input" | "native" | "variant"> & {
8
8
  /**
9
9
  * Auto add blank item
10
10
  */
@@ -61,6 +61,10 @@ export type SelectExProps<T extends object, D extends DataTypes.Keys<T> = IdDefa
61
61
  * Is search case?
62
62
  */
63
63
  search?: boolean;
64
+ /**
65
+ * Variant
66
+ */
67
+ variant?: SelectVariants;
64
68
  };
65
69
  /**
66
70
  * Extended select component
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.3.36",
3
+ "version": "1.3.38",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -48,22 +48,22 @@
48
48
  "@dnd-kit/core": "^6.1.0",
49
49
  "@dnd-kit/sortable": "^8.0.0",
50
50
  "@emotion/css": "^11.11.2",
51
- "@emotion/react": "^11.11.3",
51
+ "@emotion/react": "^11.11.4",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@etsoo/appscript": "^1.4.74",
53
+ "@etsoo/appscript": "^1.4.76",
54
54
  "@etsoo/notificationbase": "^1.1.35",
55
- "@etsoo/react": "^1.7.25",
55
+ "@etsoo/react": "^1.7.26",
56
56
  "@etsoo/shared": "^1.2.26",
57
57
  "@mui/icons-material": "^5.15.11",
58
58
  "@mui/material": "^5.15.11",
59
59
  "@mui/x-data-grid": "^6.19.5",
60
60
  "@types/pica": "^9.0.4",
61
61
  "@types/pulltorefreshjs": "^0.1.7",
62
- "@types/react": "^18.2.58",
62
+ "@types/react": "^18.2.60",
63
63
  "@types/react-avatar-editor": "^13.0.2",
64
64
  "@types/react-dom": "^18.2.19",
65
65
  "@types/react-input-mask": "^3.0.5",
66
- "chart.js": "^4.4.1",
66
+ "chart.js": "^4.4.2",
67
67
  "chartjs-plugin-datalabels": "^2.2.0",
68
68
  "pica": "^9.0.1",
69
69
  "pulltorefreshjs": "^0.1.22",
@@ -72,21 +72,21 @@
72
72
  "react-chartjs-2": "^5.2.0",
73
73
  "react-dom": "^18.2.0",
74
74
  "react-draggable": "^4.4.6",
75
- "react-imask": "7.4.0"
75
+ "react-imask": "7.5.0"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@babel/cli": "^7.23.9",
79
- "@babel/core": "^7.23.9",
80
- "@babel/plugin-transform-runtime": "^7.23.9",
81
- "@babel/preset-env": "^7.23.9",
79
+ "@babel/core": "^7.24.0",
80
+ "@babel/plugin-transform-runtime": "^7.24.0",
81
+ "@babel/preset-env": "^7.24.0",
82
82
  "@babel/preset-react": "^7.23.3",
83
83
  "@babel/preset-typescript": "^7.23.3",
84
- "@babel/runtime-corejs3": "^7.23.9",
84
+ "@babel/runtime-corejs3": "^7.24.0",
85
85
  "@testing-library/jest-dom": "^6.4.2",
86
86
  "@testing-library/react": "^14.2.1",
87
87
  "@types/jest": "^29.5.12",
88
- "@typescript-eslint/eslint-plugin": "^7.0.2",
89
- "@typescript-eslint/parser": "^7.0.2",
88
+ "@typescript-eslint/eslint-plugin": "^7.1.0",
89
+ "@typescript-eslint/parser": "^7.1.0",
90
90
  "jest": "^29.7.0",
91
91
  "jest-environment-jsdom": "^29.7.0",
92
92
  "typescript": "^5.3.3"
package/src/SelectEx.tsx CHANGED
@@ -9,6 +9,7 @@ import {
9
9
  OutlinedInput,
10
10
  Select,
11
11
  SelectProps,
12
+ SelectVariants,
12
13
  Stack
13
14
  } from "@mui/material";
14
15
  import React from "react";
@@ -32,7 +33,7 @@ export type SelectExProps<
32
33
  T extends object,
33
34
  D extends DataTypes.Keys<T> = IdDefaultType<T>,
34
35
  L extends DataTypes.Keys<T, string> = LabelDefaultType<T>
35
- > = Omit<SelectProps, "labelId" | "input" | "native"> & {
36
+ > = Omit<SelectProps, "labelId" | "input" | "native" | "variant"> & {
36
37
  /**
37
38
  * Auto add blank item
38
39
  */
@@ -102,6 +103,11 @@ export type SelectExProps<
102
103
  * Is search case?
103
104
  */
104
105
  search?: boolean;
106
+
107
+ /**
108
+ * Variant
109
+ */
110
+ variant?: SelectVariants;
105
111
  };
106
112
 
107
113
  /**