@cakemail-org/ui-components-v2 2.0.69 → 2.0.71
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTextFieldProps } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeEvent } from "react";
|
|
3
3
|
import { TIconName } from "../icon/types";
|
|
4
4
|
export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "FormHelperTextProps" | "fullWidth" | "select" | "margin" | "component" | "InputLabelProps" | "SelectProps" | "classes" | "size" | "color"> {
|
|
5
5
|
onChange?: TTextFieldChange;
|
|
@@ -13,4 +13,4 @@ export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "Form
|
|
|
13
13
|
helperErrorText?: string;
|
|
14
14
|
pickerPosition?: "top" | "bottom";
|
|
15
15
|
}
|
|
16
|
-
export type TTextFieldChange =
|
|
16
|
+
export type TTextFieldChange = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseTextFieldProps } from "@mui/material";
|
|
2
|
-
import {
|
|
2
|
+
import { ChangeEvent } from "react";
|
|
3
3
|
import { TIconName } from "../icon/types";
|
|
4
4
|
export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "FormHelperTextProps" | "fullWidth" | "select" | "margin" | "component" | "InputLabelProps" | "SelectProps" | "classes" | "size" | "color"> {
|
|
5
5
|
onChange?: TTextFieldChange;
|
|
@@ -13,4 +13,4 @@ export interface TTextField extends Omit<BaseTextFieldProps, "onMouseUp" | "Form
|
|
|
13
13
|
helperErrorText?: string;
|
|
14
14
|
pickerPosition?: "top" | "bottom";
|
|
15
15
|
}
|
|
16
|
-
export type TTextFieldChange =
|
|
16
|
+
export type TTextFieldChange = ChangeEvent<HTMLInputElement | HTMLTextAreaElement>;
|