@etsoo/materialui 1.3.36 → 1.3.37
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 +6 -2
- package/package.json +1 -1
- package/src/SelectEx.tsx +7 -1
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
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
|
/**
|