@m4l/components 9.3.37 → 9.3.38-BE20251203-beta.2

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.
Files changed (96) hide show
  1. package/@types/types.d.ts +16 -0
  2. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  3. package/components/CommonActions/components/ActionFormCancel/slots/ActionFormCancelSlots.d.ts +1 -1
  4. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  5. package/components/EditLabel/slots/EditLabelSlots.d.ts +1 -1
  6. package/components/LoadingError/LoadingError.js +1 -1
  7. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
  8. package/components/PropertyValue/PropertyValue.js +1 -1
  9. package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +1 -1
  10. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +1 -1
  11. package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
  12. package/components/formatters/ImageFormatter/slots/ImageFormatterSlots.js +1 -1
  13. package/components/hook-form/RHFActionsGroup/RHFActionsGroup.js +2 -2
  14. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +2 -2
  15. package/components/hook-form/RHFCheckbox/RHFCheckbox.js +2 -2
  16. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  17. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +2 -2
  18. package/components/hook-form/RHFColorPicker/slots/RHFColorPickerSlots.js +1 -1
  19. package/components/hook-form/RHFDatePicker/RHFDatePicker.d.ts +7 -0
  20. package/components/hook-form/RHFDatePicker/RHFDatePicker.js +85 -0
  21. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.d.ts +5 -0
  22. package/components/hook-form/RHFDatePicker/RHFDatePicker.styles.js +200 -0
  23. package/components/hook-form/RHFDatePicker/__tests__/RHFDatePicker.test.d.ts +1 -0
  24. package/components/hook-form/RHFDatePicker/constants.d.ts +4 -0
  25. package/components/hook-form/RHFDatePicker/constants.js +4 -0
  26. package/components/hook-form/RHFDatePicker/icons.d.ts +6 -0
  27. package/components/hook-form/RHFDatePicker/index.d.ts +1 -0
  28. package/components/hook-form/RHFDatePicker/index.js +1 -0
  29. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.d.ts +11 -0
  30. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerEnum.js +15 -0
  31. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +50 -0
  32. package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.js +44 -0
  33. package/components/hook-form/RHFDatePicker/slots/index.d.ts +2 -0
  34. package/components/hook-form/RHFDatePicker/slots/index.js +1 -0
  35. package/components/hook-form/RHFDatePicker/types.d.ts +61 -0
  36. package/components/hook-form/RHFDateTime/RHFDateTime.d.ts +24 -1
  37. package/components/hook-form/RHFDateTime/RHFDateTime.js +2 -2
  38. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.d.ts +11 -0
  39. package/components/hook-form/RHFDateTimePicker/RHFDateTimePicker.js +8 -0
  40. package/components/hook-form/RHFDateTimePicker/index.d.ts +1 -0
  41. package/components/hook-form/RHFDateTimePicker/index.js +1 -0
  42. package/components/hook-form/RHFNumberInput/RHFNumberInput.js +2 -2
  43. package/components/hook-form/RHFPeriod/RHFPeriod.js +2 -2
  44. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  45. package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +1 -0
  46. package/components/hook-form/RHFSelect/RHFSelect.js +2 -2
  47. package/components/hook-form/RHFSelect/slots/RHFSlots.d.ts +1 -1
  48. package/components/hook-form/RHFTextField/RHFTextField.js +2 -2
  49. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  50. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +2 -2
  51. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  52. package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +3 -1
  53. package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
  54. package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +4 -3
  55. package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +4 -0
  56. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +6 -4
  57. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
  58. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +3 -2
  59. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +1 -1
  60. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +13 -4
  61. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +4 -0
  62. package/components/hook-form/index.d.ts +2 -0
  63. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  64. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +1 -1
  65. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  66. package/components/mui_extended/DatePicker/DatePicker.d.ts +7 -0
  67. package/components/mui_extended/DatePicker/DatePicker.js +39 -0
  68. package/components/mui_extended/DatePicker/DatePicker.styles.d.ts +5 -0
  69. package/components/mui_extended/DatePicker/DatePicker.styles.js +193 -0
  70. package/components/mui_extended/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  71. package/components/mui_extended/DatePicker/constants.d.ts +2 -0
  72. package/components/mui_extended/DatePicker/constants.js +8 -0
  73. package/components/mui_extended/DatePicker/hooks/useDatePicker/types.d.ts +11 -0
  74. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.d.ts +9 -0
  75. package/components/mui_extended/DatePicker/hooks/useDatePicker/useDatePicker.js +200 -0
  76. package/components/mui_extended/DatePicker/icons.d.ts +4 -0
  77. package/components/mui_extended/DatePicker/icons.js +10 -0
  78. package/components/mui_extended/DatePicker/index.d.ts +2 -0
  79. package/components/mui_extended/DatePicker/index.js +1 -0
  80. package/components/mui_extended/DatePicker/slots/DatePickerEnum.d.ts +10 -0
  81. package/components/mui_extended/DatePicker/slots/DatePickerEnum.js +14 -0
  82. package/components/mui_extended/DatePicker/slots/DatePickerSlots.d.ts +44 -0
  83. package/components/mui_extended/DatePicker/slots/DatePickerSlots.js +46 -0
  84. package/components/mui_extended/DatePicker/types.d.ts +32 -0
  85. package/components/mui_extended/LoadingButton/index.js +1 -0
  86. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  87. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  88. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  89. package/components/mui_extended/Select/slots/SelectSlots.js +1 -1
  90. package/components/mui_extended/TextField/TextField.js +2 -2
  91. package/components/mui_extended/TextField/TextField.styles.js +1 -1
  92. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
  93. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  94. package/components/mui_extended/index.d.ts +1 -0
  95. package/index.js +46 -40
  96. package/package.json +1 -1
@@ -3,8 +3,8 @@ import { R as RHFCOLOR_PICKER_KEY_COMPONENT } from "../constants.js";
3
3
  import { r as rhfcolorPickerStyles } from "../RHFColorPicker.styles.js";
4
4
  import { R as RHFColorPickerSlots } from "./RHFColorPickerEnum.js";
5
5
  import { SketchPicker } from "react-color";
6
- import { P as Popover } from "../../../mui_extended/Popover/Popover.js";
7
6
  import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
7
+ import { P as Popover } from "../../../mui_extended/Popover/Popover.js";
8
8
  const RootStyled = styled("div", {
9
9
  name: RHFCOLOR_PICKER_KEY_COMPONENT,
10
10
  slot: RHFColorPickerSlots.root
@@ -0,0 +1,7 @@
1
+ import { RHFDatePickerProps } from './types';
2
+ /**
3
+ * Componente RHFDatePicker para seleccionar fechas con React Hook Form.
4
+ * @param {RHFDatePickerProps} props - Propiedades del componente.
5
+ * @returns {JSX.Element} - Elemento JSX que representa el componente.
6
+ */
7
+ export declare const RHFDatePicker: (props: RHFDatePickerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,85 @@
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
+ import { useFormContext, Controller } from "react-hook-form";
3
+ import { clsx } from "clsx";
4
+ import { useModuleSkeleton } from "@m4l/core";
5
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
6
+ import { R as RHF_DATE_PICKER_KEY_COMPONENT } from "./constants.js";
7
+ import { R as RHFDatePickerSlots } from "./slots/RHFDatePickerEnum.js";
8
+ import { useId } from "react";
9
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
10
+ import { R as RootStyled } from "./slots/RHFDatePickerSlots.js";
11
+ import { L as Label } from "../../Label/Label.js";
12
+ import { D as DatePicker } from "../../mui_extended/DatePicker/DatePicker.js";
13
+ import { H as HelperError } from "../../HelperError/HelperError.js";
14
+ const RHFDatePicker = (props) => {
15
+ const {
16
+ name,
17
+ size,
18
+ label,
19
+ mandatory,
20
+ mandatoryMessage,
21
+ helperMessage,
22
+ disabled,
23
+ readOnly,
24
+ className,
25
+ ...datePickerProps
26
+ } = props;
27
+ const { control } = useFormContext();
28
+ const isSkeleton = useModuleSkeleton();
29
+ const { currentSize } = useComponentSize(size);
30
+ const classes = getComponentClasses(RHF_DATE_PICKER_KEY_COMPONENT, RHFDatePickerSlots);
31
+ const htmlForId = useId();
32
+ return /* @__PURE__ */ jsx(
33
+ RootStyled,
34
+ {
35
+ className: clsx(className, classes.root),
36
+ role: isSkeleton ? "presentation" : void 0,
37
+ children: /* @__PURE__ */ jsx(
38
+ Controller,
39
+ {
40
+ name,
41
+ control,
42
+ defaultValue: null,
43
+ render: ({ field: { value, onChange }, fieldState: { error }, formState: { isSubmitting } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
44
+ label && /* @__PURE__ */ jsx(
45
+ Label,
46
+ {
47
+ htmlFor: htmlForId,
48
+ size: currentSize,
49
+ label,
50
+ mandatory,
51
+ mandatoryMessage,
52
+ helperMessage
53
+ }
54
+ ),
55
+ /* @__PURE__ */ jsx(
56
+ DatePicker,
57
+ {
58
+ ...datePickerProps,
59
+ value,
60
+ id: htmlForId,
61
+ onChange,
62
+ readOnly,
63
+ error,
64
+ size: currentSize,
65
+ disabled: disabled || isSubmitting,
66
+ className
67
+ }
68
+ ),
69
+ error?.message && /* @__PURE__ */ jsx(
70
+ HelperError,
71
+ {
72
+ size: currentSize,
73
+ htmlFor: htmlForId,
74
+ message: error?.message + ""
75
+ }
76
+ )
77
+ ] })
78
+ }
79
+ )
80
+ }
81
+ );
82
+ };
83
+ export {
84
+ RHFDatePicker as R
85
+ };
@@ -0,0 +1,5 @@
1
+ import { RHFDatePickerStyles } from './types';
2
+ /**
3
+ * Estilos para el componente `RHFDatePicker`. Define los estilos de cada parte del componente, como el root y el datePicker.
4
+ */
5
+ export declare const rhfDatePickerStyles: RHFDatePickerStyles;
@@ -0,0 +1,200 @@
1
+ import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
3
+ const rhfDatePickerStyles = {
4
+ /**
5
+ * Estilos para el elemento raíz del `RHFDatePicker`.
6
+ * Aplica un layout de columna con un espacio entre los elementos basado en el tamaño de espaciado definido en el tema.
7
+ */
8
+ root: ({ theme }) => ({
9
+ display: "flex",
10
+ flexDirection: "column",
11
+ gap: theme.vars.size.baseSpacings.sp1,
12
+ width: "100%"
13
+ }),
14
+ /**
15
+ * Estilos para el DatePicker de MUI.
16
+ * Permite personalizar los estilos del componente DatePicker.
17
+ * Aplica los estilos del TextField apuntando a la estructura correcta cuando se usa como slot.
18
+ * La estructura es: DatePickerStyled > .M4LTextField-root > .MuiFormControl-root > .MuiInputBase-root
19
+ */
20
+ datePicker: {},
21
+ /**
22
+ * Estilos para el TextField de MUI.
23
+ */
24
+ textField: ({ theme, ownerState }) => ({
25
+ "& .MuiInputAdornment-root": {
26
+ ...getSizeStyles(theme, ownerState?.size || "medium", "action", (size) => ({
27
+ width: size,
28
+ height: size
29
+ }))
30
+ },
31
+ "& .MuiFormLabel-root": {
32
+ display: "none"
33
+ }
34
+ }),
35
+ /**
36
+ * Estilos para el layout de MUI.
37
+ */
38
+ layout: ({ theme, ownerState }) => ({
39
+ "& .MuiDateCalendar-root": {
40
+ maxWidth: "244px",
41
+ height: "fit-content",
42
+ gap: theme.vars.size.baseSpacings.sp3,
43
+ "& .MuiPickersFadeTransitionGroup-root": {
44
+ "& .MuiYearCalendar-root": {
45
+ display: "grid",
46
+ gridTemplateColumns: "repeat(auto-fill, minmax(50px, 1fr));",
47
+ justifyContent: "space-between",
48
+ width: "100%",
49
+ rowGap: theme.vars.size.baseSpacings.sp2,
50
+ "& .MuiPickersYear-root": {
51
+ width: theme.vars.size.baseSpacings.sp10,
52
+ "& .MuiPickersYear-yearButton": {
53
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
54
+ ...getSizeStyles(theme, ownerState?.size || "medium", "action", (size) => ({
55
+ height: size
56
+ })),
57
+ ...getTypographyStyles(theme.generalSettings.isMobile, ownerState?.size || "medium", "body"),
58
+ margin: 0,
59
+ padding: 0,
60
+ "&:hover": {
61
+ backgroundColor: theme.vars.palette.default.hoverOpacity
62
+ },
63
+ "&:active": {
64
+ backgroundColor: theme.vars.palette.default.active
65
+ },
66
+ "&.Mui-selected": {
67
+ backgroundColor: theme.vars.palette.primary.enabled,
68
+ color: theme.vars.palette.primary.contrastText,
69
+ "&:hover": {
70
+ backgroundColor: theme.vars.palette.primary.hover
71
+ },
72
+ "&:active": {
73
+ backgroundColor: theme.vars.palette.primary.active
74
+ }
75
+ }
76
+ }
77
+ }
78
+ }
79
+ },
80
+ "& .MuiDayCalendar-root": {
81
+ minHeight: "fit-content",
82
+ "& .MuiDayCalendar-header": {
83
+ height: theme.vars.size.baseSpacings.sp7,
84
+ width: "100%",
85
+ gap: theme.vars.size.baseSpacings.sp1,
86
+ justifyContent: "flex-start",
87
+ margin: 0,
88
+ padding: 0,
89
+ "& .MuiDayCalendar-weekDayLabel": {
90
+ height: theme.vars.size.baseSpacings.sp7,
91
+ width: theme.vars.size.baseSpacings.sp7,
92
+ ...getTypographyStyles(theme.generalSettings.isMobile, ownerState?.size || "medium", "body"),
93
+ color: theme.vars.palette.text.secondary,
94
+ display: "flex",
95
+ alignItems: "center",
96
+ justifyContent: "center"
97
+ }
98
+ },
99
+ "& .MuiPickersSlideTransition-root": {
100
+ minHeight: "168px",
101
+ "& .MuiDayCalendar-weekContainer": {
102
+ height: "fit-content",
103
+ gap: theme.vars.size.baseSpacings.sp1,
104
+ justifyContent: "flex-start",
105
+ margin: 0,
106
+ padding: 0,
107
+ "& .MuiPickersDay-root": {
108
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
109
+ height: theme.vars.size.baseSpacings.sp7,
110
+ width: theme.vars.size.baseSpacings.sp7,
111
+ color: theme.vars.palette.text.primary,
112
+ display: "flex",
113
+ alignItems: "center",
114
+ justifyContent: "center",
115
+ ...getTypographyStyles(theme.generalSettings.isMobile, ownerState?.size || "medium", "body"),
116
+ "&.Mui-selected": {
117
+ backgroundColor: theme.vars.palette.primary.enabled,
118
+ color: theme.vars.palette.primary.contrastText,
119
+ "&:hover": {
120
+ backgroundColor: theme.vars.palette.primary.hover
121
+ },
122
+ "&:active": {
123
+ backgroundColor: theme.vars.palette.primary.active
124
+ }
125
+ },
126
+ "&:hover": {
127
+ backgroundColor: theme.vars.palette.default.hoverOpacity
128
+ },
129
+ "&:active": {
130
+ backgroundColor: theme.vars.palette.default.active
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }),
138
+ /**
139
+ * Estilos para el desktopPaper de MUI.
140
+ */
141
+ desktopPaper: ({ theme }) => ({
142
+ // Overrides
143
+ backgroundColor: theme.vars.palette.background.default,
144
+ borderRadius: theme.vars.size.borderRadius.r2,
145
+ boxShadow: theme.vars.customShadows.z4,
146
+ padding: theme.vars.size.baseSpacings.sp3,
147
+ gap: theme.vars.size.baseSpacings.sp1
148
+ }),
149
+ /**
150
+ * Estilos para el calendarHeader de MUI.
151
+ */
152
+ calendarHeader: ({ theme, ownerState }) => ({
153
+ "&&&.MuiPickersCalendarHeader-root": {
154
+ margin: 0,
155
+ padding: 0,
156
+ minHeight: "fit-content",
157
+ maxHeight: "fit-content",
158
+ "& .MuiPickersCalendarHeader-labelContainer": {
159
+ ...getSizeStyles(theme, ownerState?.size || "medium", "action", (height) => ({
160
+ height,
161
+ minHeight: height,
162
+ maxHeight: height
163
+ })),
164
+ paddingLeft: theme.vars.size.baseSpacings.sp3,
165
+ paddingRight: 0,
166
+ paddingTop: 0,
167
+ paddingBottom: 0,
168
+ border: `1px solid ${theme.vars.palette.border.secondary}`,
169
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
170
+ "& .MuiPickersCalendarHeader-label": {
171
+ ...getTypographyStyles(theme.generalSettings.isMobile, ownerState?.size || "medium", "body")
172
+ }
173
+ },
174
+ "& .MuiPickersArrowSwitcher-root": {
175
+ minWidth: "52px",
176
+ gap: theme.vars.size.baseSpacings["sp0-5"],
177
+ justifyContent: "space-between"
178
+ /* '& .MuiPickersArrowSwitcher-spacer': {
179
+ display: 'none',
180
+ }, */
181
+ }
182
+ }
183
+ }),
184
+ /**
185
+ * Estilos para el iconButton de M4L.
186
+ * Requerido para corrección de fix en tamaños ↴ Overrides ❌
187
+ */
188
+ iconButton: () => ({}),
189
+ /**
190
+ * Estilos para el actionsContainer de M4L.
191
+ */
192
+ actionsContainer: ({ theme }) => ({
193
+ paddingLeft: theme.vars.size.baseSpacings.sp6,
194
+ paddingRight: theme.vars.size.baseSpacings.sp6,
195
+ paddingBottom: theme.vars.size.baseSpacings.sp4
196
+ })
197
+ };
198
+ export {
199
+ rhfDatePickerStyles as r
200
+ };
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Nombre de clase que se usa para dar identidad a los slots del componente.
3
+ */
4
+ export declare const RHF_DATE_PICKER_KEY_COMPONENT = "M4LRHFDatePicker";
@@ -0,0 +1,4 @@
1
+ const RHF_DATE_PICKER_KEY_COMPONENT = "M4LRHFDatePicker";
2
+ export {
3
+ RHF_DATE_PICKER_KEY_COMPONENT as R
4
+ };
@@ -0,0 +1,6 @@
1
+ export declare const RHF_DATE_PICKER_ICONS: {
2
+ CHEVRON_DOWN: string;
3
+ CALENDAR: string;
4
+ CHEVRON_LEFT: string;
5
+ CHEVRON_RIGHT: string;
6
+ };
@@ -0,0 +1 @@
1
+ export { RHFDatePicker } from './RHFDatePicker';
@@ -0,0 +1,11 @@
1
+ export declare enum RHFDatePickerSlots {
2
+ root = "root",
3
+ datePicker = "datePicker",
4
+ textField = "textField",
5
+ desktopPaper = "desktopPaper",
6
+ calendarHeader = "calendarHeader",
7
+ iconButton = "iconButton",
8
+ layout = "layout",
9
+ actionsContainer = "actionsContainer",
10
+ dialog = "dialog"
11
+ }
@@ -0,0 +1,15 @@
1
+ var RHFDatePickerSlots = /* @__PURE__ */ ((RHFDatePickerSlots2) => {
2
+ RHFDatePickerSlots2["root"] = "root";
3
+ RHFDatePickerSlots2["datePicker"] = "datePicker";
4
+ RHFDatePickerSlots2["textField"] = "textField";
5
+ RHFDatePickerSlots2["desktopPaper"] = "desktopPaper";
6
+ RHFDatePickerSlots2["calendarHeader"] = "calendarHeader";
7
+ RHFDatePickerSlots2["iconButton"] = "iconButton";
8
+ RHFDatePickerSlots2["layout"] = "layout";
9
+ RHFDatePickerSlots2["actionsContainer"] = "actionsContainer";
10
+ RHFDatePickerSlots2["dialog"] = "dialog";
11
+ return RHFDatePickerSlots2;
12
+ })(RHFDatePickerSlots || {});
13
+ export {
14
+ RHFDatePickerSlots as R
15
+ };
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Componente que es un envoltorio `div` que representa el contenedor raíz del `RHFDatePicker`.
3
+ */
4
+ export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
5
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
6
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
7
+ /**
8
+ * Componente estilizado de DatePicker de MUI como slot del componente.
9
+ */
10
+ export declare const DatePickerStyled: import('@emotion/styled').StyledComponent<import('@mui/x-date-pickers').DatePickerProps<unknown> & import('react').RefAttributes<HTMLDivElement> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
11
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
12
+ }, {}, {}>;
13
+ /**
14
+ * Componente estilizado de TextField de MUI como slot del componente.
15
+ */
16
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "dataTestId" | "autoComplete" | "maxLength" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "inputProps" | "inputRef" | "multiline" | "minRows" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
17
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
18
+ }, {}, {}>;
19
+ /**
20
+ * Componente estilizado de DesktopPaper de MUI como slot del componente.
21
+ */
22
+ export declare const DesktopPaperStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').PaperOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
23
+ ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
24
+ }, "children" | "style" | "square" | "variant" | "className" | "classes" | "sx" | "elevation">, "children" | "ref" | "title" | "id" | "hidden" | "color" | "content" | "style" | "square" | "variant" | "translate" | "className" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "elevation"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
25
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
26
+ }, {}, {}>;
27
+ /**
28
+ * Componente estilizado de HeaderDesktop de MUI como slot del componente.
29
+ */
30
+ export declare const CalendarHeaderStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown> & import('react').RefAttributes<HTMLButtonElement>, keyof import('react').RefAttributes<HTMLButtonElement> | keyof import('@mui/x-date-pickers').PickersCalendarHeaderProps<unknown>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
31
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
32
+ }, {}, {}>;
33
+ /**
34
+ * Componente estilizado de IconButton de M4L como slot del componente.
35
+ */
36
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "placement" | "rotationAngle" | "ariaLabel" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeProps" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
37
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
38
+ }, {}, {}>;
39
+ /**
40
+ * Componente estilizado de Layout de MUI como slot del componente.
41
+ */
42
+ export declare const PickersLayoutStyled: import('@emotion/styled').StyledComponent<Pick<Pick<import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>, keyof import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>> & Pick<import('prop-types').InferProps<any>, string | number | symbol> & Pick<import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>, never>, keyof import('@mui/x-date-pickers').PickersLayoutProps<unknown, unknown, import('@mui/x-date-pickers/internals/models').DateOrTimeViewWithMeridiem>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
43
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
44
+ }, {}, {}>;
45
+ /**
46
+ * Componente estilizado de ActionsContainer.
47
+ */
48
+ export declare const ActionsContainerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../CommonActions/components/ActionsContainer').ActionsContainerProps & import('react').RefAttributes<HTMLDivElement>, keyof import('react').RefAttributes<HTMLDivElement> | keyof import('../../../CommonActions/components/ActionsContainer').ActionsContainerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
49
+ ownerState?: (Partial<import('../types').RHFDatePickerOwnerState> & Record<string, unknown>) | undefined;
50
+ }, {}, {}>;
@@ -0,0 +1,44 @@
1
+ import { styled, Paper } from "@mui/material";
2
+ import { DatePicker, PickersCalendarHeader, PickersLayout } from "@mui/x-date-pickers";
3
+ import { R as RHF_DATE_PICKER_KEY_COMPONENT } from "../constants.js";
4
+ import { r as rhfDatePickerStyles } from "../RHFDatePicker.styles.js";
5
+ import { R as RHFDatePickerSlots } from "./RHFDatePickerEnum.js";
6
+ import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
7
+ import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
8
+ import { A as ActionsContainer } from "../../../CommonActions/components/ActionsContainer/ActionsContainer.js";
9
+ const RootStyled = styled("div", {
10
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
11
+ slot: RHFDatePickerSlots.root
12
+ })(rhfDatePickerStyles?.root);
13
+ styled(DatePicker, {
14
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
15
+ slot: RHFDatePickerSlots.datePicker,
16
+ shouldForwardProp: (prop) => prop !== "ownerState"
17
+ })(rhfDatePickerStyles?.datePicker);
18
+ styled(TextField, {
19
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
20
+ slot: RHFDatePickerSlots.textField
21
+ })(rhfDatePickerStyles?.textField);
22
+ styled(Paper, {
23
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
24
+ slot: RHFDatePickerSlots.desktopPaper
25
+ })(rhfDatePickerStyles?.desktopPaper);
26
+ styled(PickersCalendarHeader, {
27
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
28
+ slot: RHFDatePickerSlots.calendarHeader
29
+ })(rhfDatePickerStyles?.calendarHeader);
30
+ styled(IconButton, {
31
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
32
+ slot: RHFDatePickerSlots.iconButton
33
+ })(rhfDatePickerStyles?.iconButton);
34
+ styled(PickersLayout, {
35
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
36
+ slot: RHFDatePickerSlots.layout
37
+ })(rhfDatePickerStyles?.layout);
38
+ styled(ActionsContainer, {
39
+ name: RHF_DATE_PICKER_KEY_COMPONENT,
40
+ slot: RHFDatePickerSlots.actionsContainer
41
+ })(rhfDatePickerStyles?.actionsContainer);
42
+ export {
43
+ RootStyled as R
44
+ };
@@ -0,0 +1,2 @@
1
+ export * from './RHFDatePickerEnum';
2
+ export * from './RHFDatePickerSlots';
@@ -0,0 +1,61 @@
1
+ import { Theme } from '@mui/material';
2
+ import { Sizes } from '@m4l/styles';
3
+ import { DatePickerProps as MuiDatePickerProps } from '@mui/x-date-pickers';
4
+ import { LabelProps } from '../../Label/types';
5
+ import { RHFDatePickerSlots } from './slots/RHFDatePickerEnum';
6
+ import { RHF_DATE_PICKER_KEY_COMPONENT } from './constants';
7
+ import { M4LOverridesStyleRules } from '../../../@types/augmentations';
8
+ import { TextFieldVariants } from '../../mui_extended/TextField/types';
9
+ /**
10
+ * Interfaz de las propiedades que acepta el componente `RHFDatePicker`.
11
+ * Extiende los props del DatePicker de MUI, excluyendo `size` para usar el propio sistema de tamaños.
12
+ * También extiende `LabelProps` para soportar etiquetas y mensajes.
13
+ */
14
+ export interface RHFDatePickerProps extends Omit<MuiDatePickerProps<Date>, 'size' | 'slots' | 'slotProps'>, Omit<LabelProps, 'label' | 'error'> {
15
+ /**
16
+ * Nombre de etiqueta del campo.
17
+ * Esta propiedad se utiliza para etiquetar el campo del date picker.
18
+ * Puede ser útil para accesibilidad o como descripción del campo.
19
+ */
20
+ label?: string;
21
+ /**
22
+ * Identificador único del campo dentro del formulario de React Hook Form.
23
+ * Este identificador es necesario para vincular el campo con el formulario y manejar su estado.
24
+ */
25
+ name: string;
26
+ /**
27
+ * Variación de tamaño para el componente. Permite seleccionar entre dos tamaños:
28
+ * - `small`: Tamaño pequeño.
29
+ * - `medium`: Tamaño mediano.
30
+ * Esta propiedad sobrescribe el `size` del DatePicker de MUI.
31
+ */
32
+ size?: Extract<Sizes, 'small' | 'medium'>;
33
+ /**
34
+ * Indica si el campo está deshabilitado.
35
+ */
36
+ variant?: TextFieldVariants;
37
+ /**
38
+ * Indica si el campo es de solo lectura.
39
+ */
40
+ readOnly?: boolean;
41
+ }
42
+ /**
43
+ * Tipo que define los posibles valores de los slots disponibles en el componente `RHFDatePicker`.
44
+ * Este tipo se utiliza para determinar qué partes del componente pueden ser estilizadas o modificadas.
45
+ */
46
+ export type RHFDatePickerSlotsType = keyof typeof RHFDatePickerSlots;
47
+ /**
48
+ * Estado propietario del componente `RHFDatePicker`.
49
+ * Define propiedades específicas del estado que son necesarias para la gestión del componente.
50
+ */
51
+ export interface RHFDatePickerOwnerState extends Record<string, unknown> {
52
+ size?: RHFDatePickerProps['size'];
53
+ error?: boolean;
54
+ disabled?: boolean;
55
+ }
56
+ /**
57
+ * Tipo de estilos para el componente `RHFDatePicker`.
58
+ * Permite personalizar los estilos de los slots del componente.
59
+ * `OverridesStyleRules` se usa para sobrescribir los estilos predeterminados de Material-UI.
60
+ */
61
+ export type RHFDatePickerStyles = M4LOverridesStyleRules<RHFDatePickerSlotsType, typeof RHF_DATE_PICKER_KEY_COMPONENT, Theme>;
@@ -1,5 +1,28 @@
1
1
  import { RHFDateTimeProps } from './types';
2
2
  /**
3
- * TODO: Documentar
3
+ * RHFDateTime es un componente que permite la selección y visualización de una fecha y hora específica,
4
+ * sin tener que gestionar una fecha completa. Se utiliza en escenarios donde se requiere
5
+ * que el usuario defina una fecha y hora, y se integra con react-hook-form, permitiendo la validación y
6
+ * manejo de estados de los campos de formulario.
7
+ * @deprecated Use RHFDateTimePicker instead.
8
+ *
9
+ * ### Dependencias:
10
+ * - **`useFormContext:`** Hook que provee acceso a los métodos y propiedades de un formulario react-hook-form.
11
+ * - **`useFormatter:`** Hook que permite acceder a los diferentes formatters de la aplicación.
12
+ * @example
13
+ * ```tsx
14
+ * const ExampleComponent = () => {
15
+ * const { control } = useForm();
16
+ * return (
17
+ * <RHFDateTime
18
+ * name="dateTime"
19
+ * size="medium"
20
+ * variant="outlined"
21
+ * label="Fecha y hora"
22
+ * helperMessage="Seleccione una fecha y hora"
23
+ * />
24
+ * );
25
+ * };
26
+ * ```
4
27
  */
5
28
  export declare function RHFDateTime(props: RHFDateTimeProps): import("react/jsx-runtime").JSX.Element;
@@ -43,7 +43,7 @@ function RHFDateTime(props) {
43
43
  {
44
44
  name: nameRHF,
45
45
  control,
46
- render: ({ field: { value, onChange, ref }, fieldState: { error } }) => {
46
+ render: ({ field: { value, onChange, ref }, fieldState: { error }, formState: { isSubmitting } }) => {
47
47
  return /* @__PURE__ */ jsxs(Fragment, { children: [
48
48
  label && /* @__PURE__ */ jsx(
49
49
  Label,
@@ -62,7 +62,7 @@ function RHFDateTime(props) {
62
62
  {
63
63
  variant,
64
64
  size: adjustedSize,
65
- disabled,
65
+ disabled: disabled || isSubmitting,
66
66
  inputRef: ref,
67
67
  slotProps: {
68
68
  field: {