@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.
Files changed (55) hide show
  1. package/@types/export.d.ts +3 -0
  2. package/components/AccountPopover/classes/index.d.ts +1 -1
  3. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
  4. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
  5. package/components/SideBar/classes/index.d.ts +1 -1
  6. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
  7. package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
  8. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
  9. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
  10. package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
  11. package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
  12. package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
  13. package/components/hook-form/RHFTextField/RHFTextField.js +13 -23
  14. package/components/hook-form/RHFTextField/RHFTextField.styles.js +104 -157
  15. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  16. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +29 -0
  17. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +29 -0
  18. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +29 -0
  19. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +32 -0
  20. package/components/hook-form/RHFTextField/types.d.ts +3 -0
  21. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
  22. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
  23. package/components/modal/classes/index.d.ts +2 -2
  24. package/components/mui_extended/MenuActions/MenuActions.d.ts +1 -8
  25. package/components/mui_extended/MenuActions/MenuActions.js +77 -55
  26. package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +25 -0
  27. package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +0 -4
  28. package/components/mui_extended/MenuActions/MenuActions.styles.js +38 -11
  29. package/components/mui_extended/MenuActions/constants.d.ts +0 -17
  30. package/components/mui_extended/MenuActions/constants.js +2 -6
  31. package/components/mui_extended/MenuActions/dictionary.d.ts +0 -15
  32. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +5 -8
  33. package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +4 -1
  34. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +16 -29
  35. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +33 -16
  36. package/components/mui_extended/MenuActions/types.d.ts +18 -80
  37. package/components/mui_extended/Pager/classes/index.d.ts +1 -1
  38. package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
  39. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
  40. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +6 -6
  41. package/components/mui_extended/TextField/types.d.ts +54 -10
  42. package/package.json +1 -1
  43. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
  44. package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +0 -9
  45. package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +0 -9
  46. package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +0 -9
  47. package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +0 -25
  48. package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +0 -13
  49. package/components/mui_extended/MenuItem/MenuItem.js +0 -66
  50. package/components/mui_extended/MenuItem/MenuItem.styles.js +0 -111
  51. package/components/mui_extended/MenuItem/constants.js +0 -4
  52. package/components/mui_extended/MenuItem/index.js +0 -1
  53. package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +0 -9
  54. package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +0 -24
  55. package/components/mui_extended/MenuItem/types.js +0 -1
@@ -1,265 +1,212 @@
1
1
  const rhfTextFieldStyles = {
2
2
  /**
3
3
  * Estilos personalizados para el componente RHFTextField.
4
- * @author Bruce Escobar - automatic
5
- * @createdAt 2024-10-22 09:41:31 - automatic
6
- * @updatedAt 2024-10-22 19:27:23 - automatic
7
- * @updatedUser Bruce Escobar - automatic
8
4
  */
9
5
  textField: ({ ownerState, theme }) => ({
10
6
  "&.rhf-text-field-root": {
11
7
  width: "100%",
12
8
  padding: 0,
13
- borderRadius: theme.size.borderRadius.r1,
14
- // Condiciones de tamaño Medium en el root
15
- ...ownerState.sizes === "medium" && {
16
- ...theme.generalSettings.isMobile ? {
17
- height: theme.vars.size.mobile.medium.action,
18
- width: theme.vars.size.mobile.medium.action
19
- } : {
20
- height: theme.vars.size.desktop.medium.action,
21
- width: theme.vars.size.desktop.medium.action
22
- }
23
- },
24
- // Condiciones de tamaño Small en el root
25
- ...ownerState.sizes === "small" && {
26
- ...theme.generalSettings.isMobile ? {
27
- height: theme.vars.size.mobile.small.action,
28
- width: theme.vars.size.mobile.small.action
29
- } : {
30
- height: theme.vars.size.desktop.medium.action,
31
- width: theme.vars.size.desktop.medium.action
32
- }
9
+ borderRadius: theme.vars.size.borderRadius.r1,
10
+ display: "flex",
11
+ '& [class*="M4LIcon-icon"]': {
12
+ backgroundColor: ownerState.paletteColor?.main
33
13
  },
34
14
  // Variant Outlined TextField
35
15
  ...ownerState.variantRHFTextField === "outlined" && {
36
16
  "& .MuiInputBase-root": {
37
17
  padding: 0,
38
18
  minHeight: 0,
19
+ height: "inherit",
39
20
  paddingLeft: theme.vars.size.baseSpacings.sp1,
40
21
  paddingRight: theme.vars.size.baseSpacings.sp1,
41
- borderRadius: theme.size.borderRadius.r1,
22
+ borderRadius: theme.vars.size.borderRadius.r1,
42
23
  "& .MuiOutlinedInput-notchedOutline": {
24
+ minHeight: 0,
43
25
  border: theme.vars.size.borderStroke.actionInput,
44
- borderColor: theme.vars.palette.border.default
26
+ borderColor: ownerState.error ? ownerState.paletteColor?.main : theme.vars.palette.border.default
45
27
  },
46
- //Active para primary para el icono y placeholder
47
- "&:active": {
48
- ":focus-within": {
49
- "&:focus-within .MuiInputBase-input::placeholder": {
50
- color: theme.vars.palette.primary.active
51
- },
52
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
53
- backgroundColor: theme.vars.palette.primary.active
54
- }
55
- }
28
+ //Estilo Hover para primary para el Icono e IconButton
29
+ "&:hover": {
30
+ backgroundColor: ownerState.paletteColor?.hoverOpacity
56
31
  },
57
- //Estilos de focus primary para el icono y placeholder
32
+ //Estilo Focus para primary para el Icono e IconButton
58
33
  ":focus-within": {
59
- "&:focus-within .MuiInputBase-input::placeholder": {
60
- color: ownerState.paletteColor?.main
61
- },
34
+ borderColor: theme.vars.palette.border.main,
62
35
  '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
63
36
  backgroundColor: ownerState.paletteColor?.main
37
+ },
38
+ '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
39
+ backgroundColor: ownerState.paletteColor?.main
64
40
  }
65
41
  },
66
- //Estilos del hover primar
67
- "&:hover": {
68
- backgroundColor: ownerState.paletteColor?.hoverOpacity
42
+ //Estilo Active para primary para el Icono e IconButton
43
+ "&:active": {
44
+ ":focus-within": {
45
+ '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
46
+ backgroundColor: ownerState.paletteColor?.main
47
+ },
48
+ '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
49
+ backgroundColor: ownerState.paletteColor?.main
50
+ },
51
+ "&:not(:placeholder-shown)": {
52
+ color: ownerState.paletteColor?.active
53
+ }
54
+ }
69
55
  },
70
56
  //Estilos del InputBase
71
57
  "& .MuiInputBase-input": {
72
- ...ownerState.error && {
73
- borderColor: ownerState.error ? theme.vars.palette.border.error : theme.vars.palette.border.default
74
- },
58
+ padding: "0px",
59
+ paddingRight: theme.vars.size.baseSpacings.sp1,
60
+ paddingLeft: theme.vars.size.baseSpacings.sp1,
61
+ height: "inherit",
75
62
  //Estilos del InputBase en hover
76
63
  "&:hover ~ .MuiOutlinedInput-notchedOutline": {
77
64
  ...ownerState.error && {
78
65
  borderColor: ownerState.error ? theme.vars.palette.border.error : theme.vars.palette.border.default
79
66
  }
80
67
  },
81
- //Estilos del InputBase en Focus
68
+ // Estilos del InputBase en Focus
82
69
  "&:focus ~ .MuiOutlinedInput-notchedOutline": {
83
- borderColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
70
+ borderColor: ownerState.paletteColor?.main
84
71
  },
85
- //Estilos del InputBase en Active
72
+ // Estilos del InputBase en Active
86
73
  "&:active ~ .MuiOutlinedInput-notchedOutline": {
87
- borderColor: ownerState.error ? theme.vars.palette.error.active : theme.vars.palette.primary.active
74
+ borderColor: ownerState.paletteColor?.active
88
75
  },
89
76
  //Estilos del InputBase en placeholder default
90
77
  "&::placeholder": {
91
- color: theme.vars.palette.text.primary
78
+ color: theme.vars.palette.text.secondary
79
+ },
80
+ "&:not(:placeholder-shown)": {
81
+ color: ownerState.textFieldError ? ownerState.paletteColor?.main : theme.vars.palette.text.primary
92
82
  }
93
83
  },
94
84
  //Este estilo se asegura de que los campos de entrada que han sido autocompletados por el navegador no tengan ningún relleno adicional
95
85
  "& .MuiOutlinedInput-input:-webkit-autofill": {
96
86
  padding: 0
97
87
  },
98
- // Historia Error variante Outlined
99
- ...ownerState.error && {
100
- "& .MuiOutlinedInput-notchedOutline": {
101
- borderColor: ownerState.error ? theme.vars.palette.border.error : theme.vars.palette.border.default
102
- },
103
- //Estilos del hover Error
104
- "&:hover": {
105
- backgroundColor: theme.vars.palette.error.hoverOpacity,
106
- borderColor: ownerState.paletteColor?.main
107
- },
108
- //Estilos focus Error el icono y placeholder de color error
109
- "&:focus-within": {
110
- "&:focus-within .MuiInputBase-input::placeholder": {
111
- color: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
112
- },
113
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
114
- backgroundColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
115
- }
116
- },
117
- //Estilos active Error el icono y placeholder de color error
118
- "&:active": {
119
- "&:focus-within": {
120
- "&:focus-within .MuiInputBase-input::placeholder": {
121
- color: theme.vars.palette.error.active
122
- },
123
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
124
- backgroundColor: theme.vars.palette.error.active
125
- }
126
- }
127
- }
128
- },
129
88
  // Historia Disabled para Outlined
130
89
  ...ownerState.disabled && {
131
- borderColor: theme.palette.border.disabled,
132
- pointerEvents: ownerState.disabled ? "none" : "auto",
90
+ borderColor: theme.vars.palette.border.disabled,
91
+ pointerEvents: ownerState.textFieldDisabled ? "none" : "auto",
133
92
  "&:hover": {
134
- pointerEvents: ownerState.disabled ? "none" : "auto"
93
+ pointerEvents: ownerState.textFieldDisabled ? "none" : "auto"
94
+ },
95
+ "& .MuiInputBase-input::placeholder": {
96
+ color: theme.vars.palette.text.disabled
135
97
  }
136
98
  }
137
99
  }
138
100
  },
139
- // Variant Text RHFTextField
101
+ // Variant Text TextField
140
102
  ...ownerState.variantRHFTextField === "text" && {
141
103
  borderColor: "transparent",
142
104
  "& .MuiInputBase-root": {
143
105
  padding: 0,
144
106
  minHeight: 0,
107
+ height: "inherit",
145
108
  borderColor: "transparent",
146
109
  paddingLeft: theme.vars.size.baseSpacings.sp1,
147
110
  paddingRight: theme.vars.size.baseSpacings.sp1,
148
- borderRadius: theme.size.borderRadius.r1,
111
+ borderRadius: theme.vars.size.borderRadius.r1,
149
112
  //Estilos para los bordes del campo de texto
150
113
  "& .MuiOutlinedInput-notchedOutline": {
114
+ minHeight: 0,
151
115
  border: theme.vars.size.borderStroke.actionInput,
152
- borderColor: theme.vars.palette.border.default,
153
- borderTop: theme.vars.palette.primary.main,
116
+ borderColor: ownerState.error ? ownerState.paletteColor?.main : theme.vars.palette.border.default,
154
117
  borderLeft: "transparent",
118
+ borderTop: "transparent",
155
119
  borderRight: "transparent"
156
120
  },
157
- //Estilo Focus para primary para el icono y placeholder
121
+ //Estilo Hover para primary para el Icono e IconButton
122
+ "&:hover": {
123
+ backgroundColor: ownerState.paletteColor?.hoverOpacity
124
+ },
125
+ //Estilo Focus para primary para el Icono e IconButton
158
126
  ":focus-within": {
159
- borderColor: theme.palette.border.main,
160
- "&:focus-within .MuiInputBase-input::placeholder": {
161
- color: ownerState.paletteColor?.main
162
- },
163
127
  '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
164
- backgroundColor: theme.vars.palette.primary.main
128
+ backgroundColor: ownerState.paletteColor?.main
129
+ },
130
+ '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
131
+ backgroundColor: ownerState.paletteColor?.main
165
132
  }
166
133
  },
167
- //Estilo Active para primary para el icono y placeholder
134
+ //Estilo Active para primary para el Icono e IconButton
168
135
  "&:active": {
169
136
  ":focus-within": {
170
- "&:focus-within .MuiInputBase-input::placeholder": {
171
- color: theme.vars.palette.primary.active
172
- },
173
137
  '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
174
- backgroundColor: theme.vars.palette.primary.active
138
+ backgroundColor: ownerState.paletteColor?.main
139
+ },
140
+ '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
141
+ backgroundColor: ownerState.paletteColor?.main
142
+ },
143
+ "&:not(:placeholder-shown) .MuiOutlinedInput-notchedOutline": {
144
+ color: ownerState.textFieldError ? theme.vars.palette.error.main : theme.vars.palette.text.primary
175
145
  }
176
146
  }
177
147
  },
178
- //Estilos para Hover Text
179
- "&:hover": {
180
- borderColor: "transparent",
181
- backgroundColor: ownerState.paletteColor?.hoverOpacity
182
- },
183
148
  //Estilos del InputBase
184
149
  "& .MuiInputBase-input": {
185
- "&:hover ~ .MuiOutlinedInput-notchedOutline": {
186
- borderColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
187
- },
150
+ padding: "0px",
151
+ paddingRight: theme.vars.size.baseSpacings.sp1,
152
+ paddingLeft: theme.vars.size.baseSpacings.sp1,
153
+ height: "inherit",
188
154
  //Estilo Focus del InputBase
189
155
  "&:focus ~ .MuiOutlinedInput-notchedOutline": {
190
- borderColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
156
+ borderColor: ownerState.paletteColor?.main
191
157
  },
192
158
  //Estilo Active del InputBase
193
159
  "&:active ~ .MuiOutlinedInput-notchedOutline": {
194
- borderColor: ownerState.error ? theme.vars.palette.error.active : theme.vars.palette.primary.active,
195
- "&:focus-within .MuiInputBase-input::placeholder": {
196
- color: theme.vars.palette.primary.active
197
- }
160
+ borderColor: ownerState.paletteColor?.active
198
161
  },
162
+ // Estilos del InputBase en placeholder default
199
163
  "&::placeholder": {
200
- color: theme.vars.palette.text.primary
164
+ color: theme.vars.palette.text.secondary
165
+ },
166
+ "&:not(:placeholder-shown)": {
167
+ color: ownerState.textFieldError ? ownerState.paletteColor?.main : theme.vars.palette.text.primary
201
168
  }
202
169
  },
203
170
  //Este estilo se asegura de que los campos de entrada que han sido autocompletados por el navegador no tengan ningún relleno adicional
204
171
  "& .MuiOutlinedInput-input:-webkit-autofill": {
205
172
  padding: 0
206
173
  },
207
- // Historia Error
208
- ...ownerState.error && {
209
- // Historia Error variante Text
210
- "& .MuiOutlinedInput-notchedOutline": {
211
- borderColor: theme.vars.palette.border.error,
212
- borderTop: theme.vars.palette.border.error,
213
- borderLeft: "transparent",
214
- borderRight: "transparent",
215
- "&:focus": { borderColor: theme.vars.palette.error.main }
216
- },
217
- //Estilos del hover Error
218
- "&:hover": {
219
- backgroundColor: theme.vars.palette.error.hoverOpacity
220
- },
221
- // Estilos focus Error el icono y placeholder de color error
222
- "&:focus-within": {
223
- borderColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main,
224
- "&:focus-within .MuiInputBase-input::placeholder": {
225
- color: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
226
- },
227
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
228
- backgroundColor: ownerState.error ? theme.vars.palette.error.main : theme.vars.palette.primary.main
229
- }
230
- },
231
- // Estilos active Error el icono y placeholder de color error
232
- "&:active": {
233
- "& .MuiOutlinedInput-notchedOutline": {
234
- borderColor: theme.vars.palette.error.main
235
- },
236
- ":focus-within": {
237
- "&:focus-within .MuiInputBase-input::placeholder": {
238
- color: theme.vars.palette.error.active
239
- },
240
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
241
- backgroundColor: theme.vars.palette.error.active
242
- }
243
- }
244
- }
245
- },
246
174
  // Historia Disabled
247
175
  ...ownerState.disabled && {
248
176
  "& .MuiOutlinedInput-notchedOutline": {
249
- borderColor: theme.palette.border.disabled,
250
- borderTop: theme.palette.border.disabled,
177
+ borderColor: theme.vars.palette.border.disabled,
178
+ borderTop: theme.vars.palette.border.disabled,
251
179
  borderLeft: "transparent",
252
180
  borderRight: "transparent"
253
181
  },
254
- pointerEvents: ownerState.disabled ? "none" : "auto",
182
+ pointerEvents: ownerState.textFieldDisabled ? "none" : "auto",
255
183
  "&:hover": {
256
- pointerEvents: ownerState.disabled ? "none" : "auto"
184
+ pointerEvents: ownerState.textFieldDisabled ? "none" : "auto"
185
+ },
186
+ "& .MuiInputBase-input::placeholder": {
187
+ color: theme.vars.palette.text.disabled
257
188
  }
258
189
  }
259
190
  }
260
191
  }
261
192
  }
262
193
  }),
194
+ /**
195
+ * Estilos personalizados para el componente Label.
196
+ */
197
+ label: ({ theme }) => ({
198
+ display: "flex",
199
+ alignItems: "center",
200
+ color: theme.vars.palette.text.primary,
201
+ "& .mandatory": {
202
+ /* color: theme.vars.palette.error.main, */
203
+ marginLeft: theme.spacing(0.5)
204
+ },
205
+ '& .M4LIcon-icon[class*="M4LIcon-icon"]': {
206
+ width: "inherit",
207
+ height: "inherit"
208
+ }
209
+ }),
263
210
  /**
264
211
  * Estilos personalizados para el componente Skeleton.
265
212
  * @author Bruce Escobar - automatic
@@ -6,7 +6,7 @@ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick
6
6
  }, {}, {}>;
7
7
  export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<{
8
8
  variant?: import('@mui/material').TextFieldVariants | undefined;
9
- } & Omit<import('@mui/material').FilledTextFieldProps | import('@mui/material').OutlinedTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant">, "children" | "value" | "ref" | "title" | "component" | "size" | "name" | "error" | "select" | "rows" | "id" | "type" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "label" | "key" | "autoComplete" | "placeholder" | "required" | "fullWidth" | "maxRows" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "inputProps" | "inputRef" | "multiline" | "minRows" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
9
+ } & Omit<import('@mui/material').FilledTextFieldProps | import('@mui/material').OutlinedTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant">, "children" | "value" | "ref" | "title" | "component" | "size" | "name" | "error" | "select" | "rows" | "id" | "type" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "label" | "key" | "autoComplete" | "placeholder" | "required" | "fullWidth" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "maxRows" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
10
10
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
11
11
  }, {}, {}>;
12
12
  export declare const SkeletonTextFieldRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
@@ -0,0 +1,29 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { RHFTextField } from '../../..';
3
+ declare const meta: Meta<typeof RHFTextField>;
4
+ type Story = StoryObj<typeof RHFTextField>;
5
+ /**
6
+ * Story for the Error outlined RHFvariants of the TextField component.
7
+ */
8
+ export declare const ErrorOutlined: Story;
9
+ /**
10
+ * Story for the Error outlined RHFvariants of the TextField component whit label props and adorment End
11
+ */
12
+ export declare const ErrorOutlinedAdormentEnd: Story;
13
+ /**
14
+ * Story for the Error outlined RHFvariants of the TextField component whit label props and adorment Start
15
+ */
16
+ export declare const ErrorOutlinedAdormentStart: Story;
17
+ /**
18
+ * Story for the Error outlined RHFvariants of the TextField component whitout adorments.
19
+ */
20
+ export declare const WhitoutAdorments: Story;
21
+ /**
22
+ * Story for the Error outlined RHFvariants of the TextField component whit adorment end.
23
+ */
24
+ export declare const WhitAdormentEnd: Story;
25
+ /**
26
+ * Story for the Error outlined RHFvariants of the TextField component whit adorment start.
27
+ */
28
+ export declare const WhitAdormentStart: Story;
29
+ export default meta;
@@ -0,0 +1,29 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { RHFTextField } from '../../..';
3
+ declare const meta: Meta<typeof RHFTextField>;
4
+ type Story = StoryObj<typeof RHFTextField>;
5
+ /**
6
+ * Story for the Error Text RHFvariants of the TextField component.
7
+ */
8
+ export declare const ErrorText: Story;
9
+ /**
10
+ * Story for the Error Text RHFvariants of the TextField component whit label props and adorment End
11
+ */
12
+ export declare const ErrorTextAdormentEnd: Story;
13
+ /**
14
+ * Story for the Error Text RHFvariants of the TextField component whit label props and adorment Start
15
+ */
16
+ export declare const ErrorTextAdormentStart: Story;
17
+ /**
18
+ * Story for the Error Text RHFvariants of the TextField component whitout adorments.
19
+ */
20
+ export declare const WhitoutAdorments: Story;
21
+ /**
22
+ * Story for the Error Text RHFvariants of the TextField component whit adorment end.
23
+ */
24
+ export declare const WhitAdormentEnd: Story;
25
+ /**
26
+ * Story for the Error Text RHFvariants of the TextField component whit adorment start.
27
+ */
28
+ export declare const WhitAdormentStart: Story;
29
+ export default meta;
@@ -0,0 +1,29 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { RHFTextField } from '../../..';
3
+ declare const meta: Meta<typeof RHFTextField>;
4
+ type Story = StoryObj<typeof RHFTextField>;
5
+ /**
6
+ * Story for the primary outlined RHFvariants of the TextField component.
7
+ */
8
+ export declare const PrimaryOutlined: Story;
9
+ /**
10
+ * Story for the primary outlined RHFvariants of the TextField component whit label props and adorment End
11
+ */
12
+ export declare const PrimaryOutlinedAdormentEnd: Story;
13
+ /**
14
+ * Story for the primary outlined RHFvariants of the TextField component whit label props and adorment Start
15
+ */
16
+ export declare const PrimaryOutlinedAdormentStart: Story;
17
+ /**
18
+ * Story for the primary outlined RHFvariants of the TextField component whitout adorments.
19
+ */
20
+ export declare const WhitoutAdorments: Story;
21
+ /**
22
+ * Story for the primary outlined RHFvariants of the TextField component whit adorment end.
23
+ */
24
+ export declare const WhitAdormentEnd: Story;
25
+ /**
26
+ * Story for the primary outlined RHFvariants of the TextField component whit adorment start.
27
+ */
28
+ export declare const WhitAdormentStart: Story;
29
+ export default meta;
@@ -0,0 +1,32 @@
1
+ import { Meta, StoryObj } from '@storybook/react/*';
2
+ import { RHFTextField } from '../../..';
3
+ declare const meta: Meta<typeof RHFTextField>;
4
+ type Story = StoryObj<typeof RHFTextField>;
5
+ /**
6
+ * Story for the primary text variant of the TextField component.
7
+ */
8
+ /**
9
+ * Story for the primary text RHFvariants of the TextField component.
10
+ */
11
+ export declare const PrimaryText: Story;
12
+ /**
13
+ * Story for the primary text RHFvariants of the TextField component whit label props and adorment End
14
+ */
15
+ export declare const PrimaryTextAdormentEnd: Story;
16
+ /**
17
+ * Story for the primary text RHFvariants of the TextField component whit label props and adorment Start
18
+ */
19
+ export declare const PrimaryTextAdormentStart: Story;
20
+ /**
21
+ * Story for the primary text RHFvariants of the TextField component whitout adorments.
22
+ */
23
+ export declare const WhitoutAdorments: Story;
24
+ /**
25
+ * Story for the primary text RHFvariants of the TextField component whit adorment end.
26
+ */
27
+ export declare const WhitAdormentEnd: Story;
28
+ /**
29
+ * Story for the primary text RHFvariants of the TextField component whit adorment start.
30
+ */
31
+ export declare const WhitAdormentStart: Story;
32
+ export default meta;
@@ -28,6 +28,7 @@ export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputP
28
28
  isInteger?: boolean;
29
29
  color?: Extract<ComponentPalletColor, 'primary'>;
30
30
  RHFvariants?: VariantsRHFTextField;
31
+ RHFtextFieldError?: boolean;
31
32
  }
32
33
  export interface RHFTextFieldState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
33
34
  type: 'password' | 'text';
@@ -39,6 +40,8 @@ export type RHFTextFieldOwnerState = RHFTextFieldProps & {
39
40
  componentPaletteColor?: ComponentPalletColor;
40
41
  paletteColor: PaletteColor;
41
42
  variantRHFTextField?: VariantsRHFTextField;
43
+ RHFtextFieldError?: boolean;
44
+ error?: boolean;
42
45
  };
43
46
  export type RHFTextFieldSlotsType = keyof typeof RHFTextFieldSlots;
44
47
  export type RHFTextFieldStyles = Partial<OverridesStyleRules<RHFTextFieldSlotsType, typeof RHF_TEXT_FIELD_KEY_COMPONENT, Theme> | undefined> | undefined;
@@ -23,8 +23,8 @@ function useRowActionsGetter() {
23
23
  (row) => {
24
24
  const conditionalItems = [];
25
25
  conditionalItems.push({
26
- icon: urlIconDelete,
27
- label: MAP_DICCTIONARY.ROW_ACTION_LAYER_DELETE,
26
+ urlIcon: urlIconDelete,
27
+ dictionaryId: MAP_DICCTIONARY.ROW_ACTION_LAYER_DELETE,
28
28
  onClick: () => {
29
29
  onDelete(row);
30
30
  },
@@ -79,8 +79,8 @@ function useRowActionsGetter(props) {
79
79
  (row) => {
80
80
  const conditionalItems = [];
81
81
  conditionalItems.push({
82
- icon: urlIconEdit,
83
- label: MAP_GPSTOOLS_DICCTIONARY.ROW_ACTION_GEO_EDIT,
82
+ urlIcon: urlIconEdit,
83
+ dictionaryId: MAP_GPSTOOLS_DICCTIONARY.ROW_ACTION_GEO_EDIT,
84
84
  onClick: () => {
85
85
  goEdit(row.id, row.name);
86
86
  },
@@ -89,12 +89,12 @@ function useRowActionsGetter(props) {
89
89
  disabled: !row.authUserOptions.edit
90
90
  });
91
91
  conditionalItems.push({
92
- icon: urlIconDelete,
93
- label: MAP_GPSTOOLS_DICCTIONARY.ROW_ACTION_GEO_DELETE,
92
+ urlIcon: urlIconDelete,
93
+ dictionaryId: MAP_GPSTOOLS_DICCTIONARY.ROW_ACTION_GEO_DELETE,
94
94
  onClick: () => {
95
95
  onDelete(row);
96
96
  },
97
- error: true,
97
+ variant: "delete",
98
98
  // Solo se habilita si intenta editarse a él mismo, o si tiene permisos pero está en un nivel superior al usuario a editar
99
99
  // disabled: !(itsMe || (hasPrivilege(PRIVILEGE_EDIT) && (loggedUserType > row.user_type.id)))
100
100
  disabled: !row.authUserOptions.edit
@@ -7,6 +7,8 @@ export declare function getModalUtilityClass(slot: string): string;
7
7
  */
8
8
  export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) => {
9
9
  root: string;
10
+ resizeHandle: string;
11
+ windowContent: string;
10
12
  windowBaseRoot: string;
11
13
  containerWindow: string;
12
14
  headerContainer: string;
@@ -19,6 +21,4 @@ export declare const modalUtilityClasses: (ownerState: OwnerStateWindowConfim) =
19
21
  messageContainer: string;
20
22
  illustration: string;
21
23
  windowConfirm: string;
22
- resizeHandle: string;
23
- windowContent: string;
24
24
  };
@@ -1,15 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  import { MenuActionsProps } from './types';
3
3
  /**
4
- * Componente `MenuActions`:
5
- * Un componente interactivo que despliega un menú con diferentes acciones,
6
- * accesible a través de un botón con ícono. Ofrece soporte para mostrar acciones personalizadas
7
- * y estilos configurables.
4
+ * TODO: Documentar
8
5
  */
9
6
  export declare function MenuActions(props: MenuActionsProps): import("react/jsx-runtime").JSX.Element;
10
- /**
11
- * Componente `MemonizedMenuActions`:
12
- * Una versión memorizada del componente `MenuActions` para mejorar el rendimiento.
13
- */
14
7
  export declare const MemonizedMenuActions: React.MemoExoticComponent<typeof MenuActions>;
15
8
  export default MenuActions;