@etsoo/materialui 1.5.43 → 1.5.44
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/cjs/EmailInput.js +3 -3
- package/lib/mjs/EmailInput.js +3 -3
- package/package.json +1 -1
- package/src/EmailInput.tsx +10 -3
package/lib/cjs/EmailInput.js
CHANGED
|
@@ -11,8 +11,8 @@ const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
|
11
11
|
* @param props Props
|
|
12
12
|
*/
|
|
13
13
|
function EmailInput(props) {
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Destruct
|
|
15
|
+
const { slotProps, ...rest } = props;
|
|
16
16
|
// Layout
|
|
17
|
-
return (0, jsx_runtime_1.jsx)(TextField_1.default, { type: "email", fullWidth: true, ...
|
|
17
|
+
return ((0, jsx_runtime_1.jsx)(TextField_1.default, { type: "email", fullWidth: true, slotProps: { htmlInput: { maxLength: 128 }, ...slotProps }, ...rest }));
|
|
18
18
|
}
|
package/lib/mjs/EmailInput.js
CHANGED
|
@@ -5,8 +5,8 @@ import TextField from "@mui/material/TextField";
|
|
|
5
5
|
* @param props Props
|
|
6
6
|
*/
|
|
7
7
|
export function EmailInput(props) {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
// Destruct
|
|
9
|
+
const { slotProps, ...rest } = props;
|
|
10
10
|
// Layout
|
|
11
|
-
return _jsx(TextField, { type: "email", fullWidth: true, ...
|
|
11
|
+
return (_jsx(TextField, { type: "email", fullWidth: true, slotProps: { htmlInput: { maxLength: 128 }, ...slotProps }, ...rest }));
|
|
12
12
|
}
|
package/package.json
CHANGED
package/src/EmailInput.tsx
CHANGED
|
@@ -10,9 +10,16 @@ export type EmailInputProps = Omit<TextFieldProps, "type"> & {};
|
|
|
10
10
|
* @param props Props
|
|
11
11
|
*/
|
|
12
12
|
export function EmailInput(props: EmailInputProps) {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
// Destruct
|
|
14
|
+
const { slotProps, ...rest } = props;
|
|
15
15
|
|
|
16
16
|
// Layout
|
|
17
|
-
return
|
|
17
|
+
return (
|
|
18
|
+
<TextField
|
|
19
|
+
type="email"
|
|
20
|
+
fullWidth
|
|
21
|
+
slotProps={{ htmlInput: { maxLength: 128 }, ...slotProps }}
|
|
22
|
+
{...rest}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
18
25
|
}
|