@m4l/components 8.2.0-beta.devDaniel.MenuActionsBug → 8.2.0-beta.devManuela.RHFTextField
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/@types/export.d.ts +3 -0
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
- package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +13 -23
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +104 -157
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +32 -0
- package/components/hook-form/RHFTextField/types.d.ts +3 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
- package/components/modal/classes/index.d.ts +2 -2
- package/components/mui_extended/MenuActions/MenuActions.d.ts +1 -8
- package/components/mui_extended/MenuActions/MenuActions.js +77 -55
- package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +25 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +0 -4
- package/components/mui_extended/MenuActions/MenuActions.styles.js +38 -11
- package/components/mui_extended/MenuActions/constants.d.ts +0 -17
- package/components/mui_extended/MenuActions/constants.js +2 -6
- package/components/mui_extended/MenuActions/dictionary.d.ts +0 -15
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +5 -8
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +4 -1
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +16 -29
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +33 -16
- package/components/mui_extended/MenuActions/types.d.ts +18 -80
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +6 -6
- package/components/mui_extended/TextField/types.d.ts +54 -10
- package/package.json +1 -1
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +0 -9
- package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +0 -25
- package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +0 -13
- package/components/mui_extended/MenuItem/MenuItem.js +0 -66
- package/components/mui_extended/MenuItem/MenuItem.styles.js +0 -111
- package/components/mui_extended/MenuItem/constants.js +0 -4
- package/components/mui_extended/MenuItem/index.js +0 -1
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +0 -9
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +0 -24
- package/components/mui_extended/MenuItem/types.js +0 -1
package/@types/export.d.ts
CHANGED
|
@@ -220,6 +220,9 @@ declare module '@mui/material/styles' {
|
|
|
220
220
|
M4LTabContent?: {
|
|
221
221
|
styleOverrides?: ComponentsOverrides<Theme>['M4LTabContent'];
|
|
222
222
|
};
|
|
223
|
+
M4LMenuActions?: {
|
|
224
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LMenuActions'];
|
|
225
|
+
};
|
|
223
226
|
M4LPrintingSystem?: {
|
|
224
227
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPrintingSystem'];
|
|
225
228
|
};
|
|
@@ -12,9 +12,9 @@ export declare function getAccountPopoverClassesUtilityClass(slot: string): stri
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const useAccountPopoverUtilityClasses: () => {
|
|
14
14
|
root: string;
|
|
15
|
-
popover: string;
|
|
16
15
|
menuItem: string;
|
|
17
16
|
containerProgress: string;
|
|
17
|
+
popover: string;
|
|
18
18
|
containerUserName: string;
|
|
19
19
|
containerUserEmail: string;
|
|
20
20
|
containerUserInfo: string;
|
|
@@ -17,19 +17,19 @@ function Density() {
|
|
|
17
17
|
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`,
|
|
18
18
|
onClick: () => setRowHeightVariant("compact"),
|
|
19
19
|
disabled: currentRowHeightVariant === "compact",
|
|
20
|
-
|
|
20
|
+
dictionaryField: "data_grid.density_compact"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`,
|
|
24
24
|
onClick: () => setRowHeightVariant("standard"),
|
|
25
25
|
disabled: currentRowHeightVariant === "standard",
|
|
26
|
-
|
|
26
|
+
dictionaryField: "data_grid.density_standard"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`,
|
|
30
30
|
onClick: () => setRowHeightVariant("confortable"),
|
|
31
31
|
disabled: currentRowHeightVariant === "confortable",
|
|
32
|
-
|
|
32
|
+
dictionaryField: "data_grid.density_confortable"
|
|
33
33
|
}
|
|
34
34
|
];
|
|
35
35
|
}, [
|
|
@@ -14,32 +14,32 @@ const MobileMenuActions = () => {
|
|
|
14
14
|
};
|
|
15
15
|
const menuActions = [
|
|
16
16
|
{
|
|
17
|
-
|
|
17
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/compact.svg`,
|
|
18
18
|
onClick: () => setRowHeightVariant("compact"),
|
|
19
19
|
disabled: currentRowHeightVariant === "compact",
|
|
20
|
-
|
|
20
|
+
dictionaryId: "data_grid.density_compact"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
|
-
|
|
23
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/standard.svg`,
|
|
24
24
|
onClick: () => setRowHeightVariant("standard"),
|
|
25
25
|
disabled: currentRowHeightVariant === "standard",
|
|
26
|
-
|
|
26
|
+
dictionaryId: "data_grid.density_standard"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
|
-
|
|
29
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/confortable.svg`,
|
|
30
30
|
onClick: () => setRowHeightVariant("confortable"),
|
|
31
31
|
disabled: currentRowHeightVariant === "confortable",
|
|
32
|
-
|
|
32
|
+
dictionaryId: "data_grid.density_confortable"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
|
|
35
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/filter.svg`,
|
|
36
36
|
onClick: () => toggleIcon(),
|
|
37
|
-
|
|
37
|
+
dictionaryId: activeFilters ? "data_grid.tooltip_filter_hide" : "data_grid.tooltip_filter_show"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
|
-
|
|
40
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/data_grid/assets/icons/configuration.svg`,
|
|
41
41
|
onClick: () => modalSettings(),
|
|
42
|
-
|
|
42
|
+
dictionaryId: "data_grid.tooltip_settings"
|
|
43
43
|
}
|
|
44
44
|
];
|
|
45
45
|
return /* @__PURE__ */ jsx(
|
|
@@ -8,7 +8,6 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
8
8
|
skeleton: string;
|
|
9
9
|
root: string;
|
|
10
10
|
footer: string;
|
|
11
|
-
popover: string;
|
|
12
11
|
contentDesktop: string;
|
|
13
12
|
contentMobile: string;
|
|
14
13
|
collapseButton: string;
|
|
@@ -36,6 +35,7 @@ export declare const getSideBarClassesByState: (ownerState: SideBarState) => {
|
|
|
36
35
|
containerContentGroupsFooter: string;
|
|
37
36
|
contentGroupsLine: string;
|
|
38
37
|
drawer: string;
|
|
38
|
+
popover: string;
|
|
39
39
|
wrapperLogoFooter: string;
|
|
40
40
|
subItemActive: string;
|
|
41
41
|
itemMainActive: string;
|
|
@@ -14,14 +14,14 @@ const ChipActionsMobile = (props) => {
|
|
|
14
14
|
const { getLabel } = useModuleDictionary();
|
|
15
15
|
const menuActions = [
|
|
16
16
|
{
|
|
17
|
-
|
|
17
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.EDIT_AREA}`,
|
|
18
18
|
onClick: handlerOpenPopoverEditArea,
|
|
19
19
|
label: getLabel(getAreasDictionary(AREAS_DICCTIONARY.label_edit_area))
|
|
20
20
|
}
|
|
21
21
|
];
|
|
22
22
|
if (listAreas.length > 1) {
|
|
23
23
|
menuActions.push({
|
|
24
|
-
|
|
24
|
+
urlIcon: `${host_static_assets}/${environment_assets}/frontend/components/areas/assets/icons/${ICONS.DELETE_AREA}`,
|
|
25
25
|
/**
|
|
26
26
|
* OnClick
|
|
27
27
|
*/
|
|
@@ -8,5 +8,5 @@ export declare const areasViewerClasses: AreasViewerClasses;
|
|
|
8
8
|
* @updatedAt 2024-10-22 19:27:23 - automatic
|
|
9
9
|
* @updatedUser Bruce Escobar - automatic
|
|
10
10
|
*/
|
|
11
|
-
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "
|
|
11
|
+
export declare const useAreasViewerUtilityClasses: (ownerState: OwnerState) => Record<"root" | "areaRoot" | "areaGridLayoutPanelContainer" | "areaGridLayout" | "areaGridLayoutPopupsContainer" | "areasWindowPopUpList" | "windowRoot" | "windowHeader" | "windowHeaderTitle" | "windowHeaderMainActions" | "windowHeaderCancelHandle" | "windowContent" | "windowRootContainer" | "windowLinearProgressRoot" | "windowLinearProgressBar" | "windowPopupRoot" | "windowModalRoot" | "panelWindowsRoot" | "panelWindowsButtonContainer" | "panelWindowsSeparator" | "loaderContainer" | "containerComponent" | "selectedWindow" | "areasLoadingErrorRoot" | "areasLoadingErrorLoading" | "areasLoadingError" | "areasLoadingErrorIcon" | "areasLoadingErrorTitle" | "areasLoadingErrorDescription" | "areasLoadingErrorDivider", string>;
|
|
12
12
|
export type ViwerClasses = ReturnType<typeof useAreasViewerUtilityClasses>;
|
|
@@ -26,7 +26,7 @@ function getMenuActions(options) {
|
|
|
26
26
|
}
|
|
27
27
|
if (windowOptions.allowPersistCookies) {
|
|
28
28
|
const saveCookiesAction = {
|
|
29
|
-
|
|
29
|
+
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.SAVE_COOKIES}`,
|
|
30
30
|
onClick: () => saveModuleCookies(windowId),
|
|
31
31
|
disabled: false,
|
|
32
32
|
visibility: "normal",
|
|
@@ -36,7 +36,7 @@ function getMenuActions(options) {
|
|
|
36
36
|
};
|
|
37
37
|
menuActions.push(saveCookiesAction);
|
|
38
38
|
const resetCookiesAction = {
|
|
39
|
-
|
|
39
|
+
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.RESET_COOKIES}`,
|
|
40
40
|
onClick: () => resetModuleCookies(windowId),
|
|
41
41
|
disabled: false,
|
|
42
42
|
visibility: "normal",
|
|
@@ -48,7 +48,7 @@ function getMenuActions(options) {
|
|
|
48
48
|
}
|
|
49
49
|
if (version) {
|
|
50
50
|
const versionAction = {
|
|
51
|
-
|
|
51
|
+
urlIcon: `${urlPrefix}/frontend/components/areas/assets/icons/${ICONS.VERSION}`,
|
|
52
52
|
onClick: () => {
|
|
53
53
|
},
|
|
54
54
|
disabled: true,
|
|
@@ -20,15 +20,15 @@ function MainActions(props) {
|
|
|
20
20
|
return getMainActions(isDesktop, moduleActions);
|
|
21
21
|
}, [moduleActions, isDesktop]);
|
|
22
22
|
return /* @__PURE__ */ jsx("div", { className: areasViewerClasses.windowHeaderMainActions, children: mainActions.map((mainAction) => {
|
|
23
|
-
const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.
|
|
23
|
+
const tooltip = mainAction.label !== void 0 ? mainAction.label : getLabel(mainAction.dictionaryId || "");
|
|
24
24
|
const onClick = (e) => {
|
|
25
|
-
mainAction.onClick
|
|
25
|
+
mainAction.onClick(e);
|
|
26
26
|
e.stopPropagation();
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ jsx(
|
|
29
29
|
IconButton,
|
|
30
30
|
{
|
|
31
|
-
src: mainAction.
|
|
31
|
+
src: mainAction.urlIcon || "",
|
|
32
32
|
className: clsx(mainAction.className, "m4l_draggableCancel"),
|
|
33
33
|
onClick,
|
|
34
34
|
"aria-label": mainAction.label,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Resizable } from 'react-resizable';
|
|
2
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('react-resizable').ResizableProps, "children" | "width" | "height" | "className" | "onResize" | "
|
|
2
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('react-resizable').ResizableProps, "children" | "width" | "height" | "className" | "onResize" | "axis" | "resizeHandles" | "handle" | "handleSize" | "lockAspectRatio" | "minConstraints" | "maxConstraints" | "onResizeStop" | "onResizeStart" | "draggableOpts" | "transformScale"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {
|
|
3
3
|
ref?: import('react').Ref<Resizable> | undefined;
|
|
4
4
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ResizableBox } from 'react-resizable';
|
|
2
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('react-resizable').ResizableBoxProps, "children" | "style" | "width" | "height" | "className" | "onResize" | "
|
|
2
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('react-resizable').ResizableBoxProps, "children" | "style" | "width" | "height" | "className" | "onResize" | "axis" | "resizeHandles" | "handle" | "handleSize" | "lockAspectRatio" | "minConstraints" | "maxConstraints" | "onResizeStop" | "onResizeStart" | "draggableOpts" | "transformScale"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, {}, {
|
|
3
3
|
ref?: import('react').Ref<ResizableBox> | undefined;
|
|
4
4
|
}>;
|
|
@@ -14,9 +14,9 @@ import { w as withRenderOption } from "../RenderOption/index.js";
|
|
|
14
14
|
import { S as SkeletonRHFAutocomplete } from "../Skeleton/index.js";
|
|
15
15
|
import { L as Label } from "../../../../Label/Label.js";
|
|
16
16
|
import { T as Typography } from "../../../../mui_extended/Typography/Typography.js";
|
|
17
|
+
import { I as Image } from "../../../../Image/Image.js";
|
|
17
18
|
import { I as IconButton } from "../../../../mui_extended/IconButton/IconButton.js";
|
|
18
19
|
import { H as HelperError } from "../../../../HelperError/HelperError.js";
|
|
19
|
-
import { I as Image } from "../../../../Image/Image.js";
|
|
20
20
|
function ComponentTypeImage(props) {
|
|
21
21
|
const {
|
|
22
22
|
name: nameRHF,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
3
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
4
|
import { useTheme, InputAdornment } from "@mui/material";
|
|
5
5
|
import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
@@ -13,7 +13,7 @@ import { R as RHFTextFieldSlots } from "./slots/RHFTextFieldEnum.js";
|
|
|
13
13
|
import { H as HelperError } from "../../HelperError/HelperError.js";
|
|
14
14
|
const RHFTextField = forwardRef((props, ref) => {
|
|
15
15
|
const {
|
|
16
|
-
name
|
|
16
|
+
name,
|
|
17
17
|
autoComplete = "off",
|
|
18
18
|
skeletonWidth = "100%",
|
|
19
19
|
skeletonHeight = "18px",
|
|
@@ -30,42 +30,32 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
30
30
|
color = "primary",
|
|
31
31
|
isInteger = true,
|
|
32
32
|
mandatoryMessage,
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
34
33
|
helperText = true,
|
|
35
34
|
...other
|
|
36
35
|
} = props;
|
|
37
|
-
const ariaLabelledById = `field-label-${
|
|
36
|
+
const ariaLabelledById = `field-label-${name}`;
|
|
38
37
|
const {
|
|
39
38
|
control,
|
|
40
39
|
formState: { errors }
|
|
41
40
|
} = useFormContext();
|
|
42
|
-
const [currentVariant, setCurrentVariant] = useState(null);
|
|
43
41
|
const { handlerFocus, handlerOnKeyUp, handlerOnBlur } = useFormFocus();
|
|
44
42
|
const isDesktop = useResponsiveDesktop();
|
|
45
43
|
const isSkeleton = useModuleSkeleton();
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (errors[nameRHF]) {
|
|
48
|
-
setCurrentVariant("error");
|
|
49
|
-
} else if (variant) {
|
|
50
|
-
setCurrentVariant(variant);
|
|
51
|
-
} else {
|
|
52
|
-
setCurrentVariant(null);
|
|
53
|
-
}
|
|
54
|
-
}, [errors[nameRHF], variant, control]);
|
|
55
44
|
const theme = useTheme();
|
|
56
45
|
const paletteColor = getPropertyByString(
|
|
57
46
|
theme.palette,
|
|
58
|
-
disabled ? "default" : color,
|
|
47
|
+
disabled ? "default" : errors ? "error" : color,
|
|
59
48
|
theme.palette.default
|
|
60
49
|
);
|
|
61
50
|
const ownerState = {
|
|
62
|
-
name
|
|
51
|
+
name,
|
|
63
52
|
isInteger,
|
|
64
53
|
paletteColor,
|
|
65
54
|
type: type ?? "text",
|
|
66
55
|
size: !isDesktop ? "medium" : size,
|
|
67
56
|
disabled,
|
|
68
|
-
variantRHFTextField: RHFvariants
|
|
57
|
+
variantRHFTextField: RHFvariants,
|
|
58
|
+
RHFtextFieldError: !!errors[name]
|
|
69
59
|
};
|
|
70
60
|
return (
|
|
71
61
|
/* RHFTextFieldRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides
|
|
@@ -79,14 +69,14 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
79
69
|
onBlur: handlerOnBlur,
|
|
80
70
|
onKeyUp: handlerOnKeyUp,
|
|
81
71
|
role: "textbox",
|
|
82
|
-
htmlFor:
|
|
72
|
+
htmlFor: name,
|
|
83
73
|
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.root),
|
|
84
74
|
children: !isSkeleton ? (
|
|
85
75
|
/* controller: Componente usado para suscribir el componente al contexto de hook-form */
|
|
86
76
|
/* @__PURE__ */ jsx(
|
|
87
77
|
Controller,
|
|
88
78
|
{
|
|
89
|
-
name
|
|
79
|
+
name,
|
|
90
80
|
control,
|
|
91
81
|
render: ({ field: { onChange, value, ref: inputRef }, fieldState: { error } }) => {
|
|
92
82
|
const onInternalChange = (event) => {
|
|
@@ -128,8 +118,8 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
128
118
|
className: "rhf-text-field-root",
|
|
129
119
|
value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
|
|
130
120
|
inputProps: {
|
|
131
|
-
name
|
|
132
|
-
id:
|
|
121
|
+
name,
|
|
122
|
+
id: name,
|
|
133
123
|
"aria-labelledby": ariaLabelledById,
|
|
134
124
|
...getPropDataTestId(RHF_TEXT_FIELD_KEY_COMPONENT, RHFTextFieldSlots.textField)
|
|
135
125
|
},
|
|
@@ -151,10 +141,10 @@ const RHFTextField = forwardRef((props, ref) => {
|
|
|
151
141
|
...other
|
|
152
142
|
}
|
|
153
143
|
),
|
|
154
|
-
|
|
144
|
+
error?.message ? /* @__PURE__ */ jsx(
|
|
155
145
|
HelperError,
|
|
156
146
|
{
|
|
157
|
-
message:
|
|
147
|
+
message: error.message
|
|
158
148
|
}
|
|
159
149
|
) : null
|
|
160
150
|
] });
|