@m4l/components 9.1.36 → 9.1.38

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 (113) hide show
  1. package/@types/types.d.ts +1 -1
  2. package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
  3. package/components/CommonActions/components/ActionCancel/slots/ActionsCancelSlots.d.ts +1 -1
  4. package/components/CommonActions/components/ActionIntro/slots/ActionsIntroSlots.d.ts +1 -1
  5. package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +1 -1
  6. package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +1 -1
  7. package/components/DataGrid/subcomponents/Table/subcomponents/ActionsColumn.js +1 -1
  8. package/components/DataGrid/types.d.ts +1 -1
  9. package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.d.ts +2 -2
  10. package/components/MenuActions/MenuActions.js +134 -0
  11. package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.styles.js +1 -13
  12. package/components/{mui_extended/MenuActions → MenuActions}/slots/MenuActionsEnum.d.ts +1 -4
  13. package/components/{mui_extended/MenuActions → MenuActions}/slots/MenuActionsEnum.js +0 -3
  14. package/components/MenuActions/slots/MenuActionsSlots.d.ts +20 -0
  15. package/components/MenuActions/slots/MenuActionsSlots.js +17 -0
  16. package/components/{mui_extended/MenuActions → MenuActions}/types.d.ts +26 -6
  17. package/components/ModalDialog/slots/ModalDialogSlots.d.ts +1 -1
  18. package/components/WindowBase/slots/WindowBaseSlots.d.ts +1 -1
  19. package/components/WindowBase/slots/WindowBaseSlots.js +1 -1
  20. package/components/WindowBase/subcomponents/Header/types.d.ts +1 -1
  21. package/components/WindowConfirm/slots/WindowConfirmSlots.d.ts +2 -2
  22. package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +1 -1
  23. package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/index.js +1 -1
  24. package/components/areas/components/AreasAdmin/subcomponents/PanelWindowPopUp/index.js +1 -1
  25. package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/index.js +1 -1
  26. package/components/areas/types.d.ts +1 -1
  27. package/components/hook-form/RHFColorPicker/RFHColorPicker.js +1 -1
  28. package/components/hook-form/RHFTextField/RHFTextField.d.ts +1 -1
  29. package/components/hook-form/RHFTextField/RHFTextField.js +100 -126
  30. package/components/hook-form/RHFTextField/RHFTextField.styles.js +11 -212
  31. package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.d.ts +2 -1
  32. package/components/hook-form/RHFTextField/slots/RHFTextFieldEnum.js +1 -0
  33. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +5 -10
  34. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.js +7 -11
  35. package/components/hook-form/RHFTextField/test/RHFTextField.test.d.ts +1 -0
  36. package/components/hook-form/RHFTextField/types.d.ts +3 -11
  37. package/components/index.d.ts +2 -0
  38. package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.d.ts +1 -1
  39. package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.d.ts +1 -1
  40. package/components/mui_extended/Autocomplete/slots /AutocompleteSlots.d.ts +1 -1
  41. package/components/mui_extended/Button/slots/ButtonSlots.d.ts +1 -1
  42. package/components/mui_extended/IconButton/IconButton.js +17 -17
  43. package/components/mui_extended/IconButton/IconButton.styles.js +2 -30
  44. package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +0 -2
  45. package/components/mui_extended/IconButton/slots/IconButtonEnum.js +0 -2
  46. package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +0 -6
  47. package/components/mui_extended/IconButton/slots/IconButtonSlots.js +1 -14
  48. package/components/mui_extended/IconButton/types.d.ts +7 -2
  49. package/components/mui_extended/LoadingButton/slots/LoadingButtonSlots.d.ts +1 -1
  50. package/components/mui_extended/Popper/slots/PopperStlots.d.ts +1 -1
  51. package/components/mui_extended/TextField/TextField.js +70 -0
  52. package/components/mui_extended/TextField/TextField.styles.js +245 -0
  53. package/components/mui_extended/TextField/constants.d.ts +1 -0
  54. package/components/mui_extended/TextField/constants.js +8 -0
  55. package/components/mui_extended/TextField/index.js +1 -0
  56. package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -2
  57. package/components/mui_extended/TextField/slots/TextFieldEnum.js +8 -0
  58. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +2 -7
  59. package/components/mui_extended/TextField/slots/TextFieldSlots.js +18 -0
  60. package/components/mui_extended/TextField/slots/index.js +1 -0
  61. package/components/mui_extended/TextField/test/TextField.test.d.ts +1 -0
  62. package/components/mui_extended/TextField/types.d.ts +5 -1
  63. package/components/mui_extended/ToggleButton/slots/ToggleButtonSlots.d.ts +1 -1
  64. package/components/mui_extended/index.d.ts +0 -2
  65. package/index.js +9 -9
  66. package/package.json +1 -1
  67. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledOutlined.stories.d.ts +0 -10
  68. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldDisabledText.stories.d.ts +0 -10
  69. package/components/hook-form/RHFTextField/stories/Default/RHFTextFieldSkeleton.stories.d.ts +0 -6
  70. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +0 -29
  71. package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +0 -29
  72. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +0 -29
  73. package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +0 -32
  74. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.d.ts +0 -5
  75. package/components/hook-form/RHFTextField/subcomponents/Skeleton/index.js +0 -29
  76. package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +0 -6
  77. package/components/mui_extended/MenuActions/MenuActions.js +0 -133
  78. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +0 -47
  79. package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +0 -35
  80. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledOutlined.stories.d.ts +0 -15
  81. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldDisabledText.stories.d.ts +0 -15
  82. package/components/mui_extended/TextField/stories/PaletteColorTextField/Default/TextFieldSkeleton.stories.d.ts +0 -11
  83. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
  84. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/TextFieldErrorText.stories.d.ts +0 -9
  85. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateActive.stories.d.ts +0 -14
  86. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateEnabled.stories.d.ts +0 -14
  87. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateFocus.stories.d.ts +0 -14
  88. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateOutlined/TextFieldErrorOutlinedStateHover.stories.d.ts +0 -14
  89. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateActive.stories.d.ts +0 -14
  90. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateEnabled.stories.d.ts +0 -14
  91. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateFocus.stories.d.ts +0 -14
  92. package/components/mui_extended/TextField/stories/PaletteColorTextField/Error/states/stateText/TextFieldTextErrorStateHover.stories.d.ts +0 -14
  93. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldOutlined.stories.d.ts +0 -9
  94. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/TextFieldText.stories.d.ts +0 -12
  95. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateActive.stories.d.ts +0 -14
  96. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateEnabled.stories.d.ts +0 -14
  97. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateFocus.stories.d.ts +0 -14
  98. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateOutlined/TextFieldPrimaryOutlinedStateHover.stories.d.ts +0 -14
  99. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateActive.stories.d.ts +0 -14
  100. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateEnabled.stories.d.ts +0 -14
  101. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateFocus.stories.d.ts +0 -14
  102. package/components/mui_extended/TextField/stories/PaletteColorTextField/Primary/states/stateText/TextFieldTextPrimaryStateHover.stories.d.ts +0 -14
  103. package/components/mui_extended/TextField/stories/PaletteColorTextField/sizes/TextFieldSizes.stories.d.ts +0 -16
  104. /package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.styles.d.ts +0 -0
  105. /package/components/{mui_extended/MenuActions → MenuActions}/MenuActions.test.d.ts +0 -0
  106. /package/components/{mui_extended/MenuActions → MenuActions}/constants.d.ts +0 -0
  107. /package/components/{mui_extended/MenuActions → MenuActions}/constants.js +0 -0
  108. /package/components/{mui_extended/MenuActions → MenuActions}/dictionary.d.ts +0 -0
  109. /package/components/{mui_extended/MenuActions → MenuActions}/dictionary.js +0 -0
  110. /package/components/{mui_extended/MenuActions → MenuActions}/index.d.ts +0 -0
  111. /package/components/{mui_extended/MenuActions → MenuActions}/index.js +0 -0
  112. /package/components/{mui_extended/MenuActions → MenuActions}/slots/index.d.ts +0 -0
  113. /package/components/{mui_extended/MenuActions → MenuActions}/slots/index.js +0 -0
@@ -1,212 +1,20 @@
1
1
  const rhfTextFieldStyles = {
2
2
  /**
3
- * Estilos personalizados para el componente RHFTextField.
3
+ * Elemento Root
4
4
  */
5
- textField: ({ ownerState, theme }) => ({
6
- "&.rhf-text-field-root": {
7
- width: "100%",
8
- padding: 0,
9
- borderRadius: theme.vars.size.borderRadius.r1,
10
- display: "flex",
11
- '& [class*="M4LIcon-icon"]': {
12
- backgroundColor: ownerState.paletteColor?.main
13
- },
14
- // Variant Outlined TextField
15
- ...ownerState.variantRHFTextField === "outlined" && {
16
- "& .MuiInputBase-root": {
17
- padding: 0,
18
- minHeight: 0,
19
- height: "inherit",
20
- paddingLeft: theme.vars.size.baseSpacings.sp1,
21
- paddingRight: theme.vars.size.baseSpacings.sp1,
22
- borderRadius: theme.vars.size.borderRadius.r1,
23
- "& .MuiOutlinedInput-notchedOutline": {
24
- minHeight: 0,
25
- border: theme.vars.size.borderStroke.actionInput,
26
- borderColor: ownerState.error ? ownerState.paletteColor?.main : theme.vars.palette.border.default
27
- },
28
- //Estilo Hover para primary para el Icono e IconButton
29
- "&:hover": {
30
- backgroundColor: ownerState.paletteColor?.hoverOpacity
31
- },
32
- //Estilo Focus para primary para el Icono e IconButton
33
- ":focus-within": {
34
- borderColor: theme.vars.palette.border.main,
35
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
36
- backgroundColor: ownerState.paletteColor?.main
37
- },
38
- '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
39
- backgroundColor: ownerState.paletteColor?.main
40
- }
41
- },
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
- }
55
- },
56
- //Estilos del InputBase
57
- "& .MuiInputBase-input": {
58
- padding: "0px",
59
- paddingRight: theme.vars.size.baseSpacings.sp1,
60
- paddingLeft: theme.vars.size.baseSpacings.sp1,
61
- height: "inherit",
62
- //Estilos del InputBase en hover
63
- "&:hover ~ .MuiOutlinedInput-notchedOutline": {
64
- ...ownerState.error && {
65
- borderColor: ownerState.error ? theme.vars.palette.border.error : theme.vars.palette.border.default
66
- }
67
- },
68
- // Estilos del InputBase en Focus
69
- "&:focus ~ .MuiOutlinedInput-notchedOutline": {
70
- borderColor: ownerState.paletteColor?.main
71
- },
72
- // Estilos del InputBase en Active
73
- "&:active ~ .MuiOutlinedInput-notchedOutline": {
74
- borderColor: ownerState.paletteColor?.active
75
- },
76
- //Estilos del InputBase en placeholder default
77
- "&::placeholder": {
78
- color: theme.vars.palette.text.secondary
79
- },
80
- "&:not(:placeholder-shown)": {
81
- color: ownerState.textFieldError ? ownerState.paletteColor?.main : theme.vars.palette.text.primary
82
- }
83
- },
84
- //Este estilo se asegura de que los campos de entrada que han sido autocompletados por el navegador no tengan ningún relleno adicional
85
- "& .MuiOutlinedInput-input:-webkit-autofill": {
86
- padding: 0
87
- },
88
- // Historia Disabled para Outlined
89
- ...ownerState.disabled && {
90
- borderColor: theme.vars.palette.border.disabled,
91
- pointerEvents: ownerState.textFieldDisabled ? "none" : "auto",
92
- "&:hover": {
93
- pointerEvents: ownerState.textFieldDisabled ? "none" : "auto"
94
- },
95
- "& .MuiInputBase-input::placeholder": {
96
- color: theme.vars.palette.text.disabled
97
- }
98
- }
99
- }
100
- },
101
- // Variant Text TextField
102
- ...ownerState.variantRHFTextField === "text" && {
103
- borderColor: "transparent",
104
- "& .MuiInputBase-root": {
105
- padding: 0,
106
- minHeight: 0,
107
- height: "inherit",
108
- borderColor: "transparent",
109
- paddingLeft: theme.vars.size.baseSpacings.sp1,
110
- paddingRight: theme.vars.size.baseSpacings.sp1,
111
- borderRadius: theme.vars.size.borderRadius.r1,
112
- //Estilos para los bordes del campo de texto
113
- "& .MuiOutlinedInput-notchedOutline": {
114
- minHeight: 0,
115
- border: theme.vars.size.borderStroke.actionInput,
116
- borderColor: ownerState.error ? ownerState.paletteColor?.main : theme.vars.palette.border.default,
117
- borderLeft: "transparent",
118
- borderTop: "transparent",
119
- borderRight: "transparent"
120
- },
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
126
- ":focus-within": {
127
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
128
- backgroundColor: ownerState.paletteColor?.main
129
- },
130
- '&:focus-within .MuiIconButton-root [class*="M4LIcon-icon"]': {
131
- backgroundColor: ownerState.paletteColor?.main
132
- }
133
- },
134
- //Estilo Active para primary para el Icono e IconButton
135
- "&:active": {
136
- ":focus-within": {
137
- '&:focus-within [class*="M4LIcon-icon"]:not(.MuiIconButton-root [class*="M4LIcon-icon"])': {
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
145
- }
146
- }
147
- },
148
- //Estilos del InputBase
149
- "& .MuiInputBase-input": {
150
- padding: "0px",
151
- paddingRight: theme.vars.size.baseSpacings.sp1,
152
- paddingLeft: theme.vars.size.baseSpacings.sp1,
153
- height: "inherit",
154
- //Estilo Focus del InputBase
155
- "&:focus ~ .MuiOutlinedInput-notchedOutline": {
156
- borderColor: ownerState.paletteColor?.main
157
- },
158
- //Estilo Active del InputBase
159
- "&:active ~ .MuiOutlinedInput-notchedOutline": {
160
- borderColor: ownerState.paletteColor?.active
161
- },
162
- // Estilos del InputBase en placeholder default
163
- "&::placeholder": {
164
- color: theme.vars.palette.text.secondary
165
- },
166
- "&:not(:placeholder-shown)": {
167
- color: ownerState.textFieldError ? ownerState.paletteColor?.main : theme.vars.palette.text.primary
168
- }
169
- },
170
- //Este estilo se asegura de que los campos de entrada que han sido autocompletados por el navegador no tengan ningún relleno adicional
171
- "& .MuiOutlinedInput-input:-webkit-autofill": {
172
- padding: 0
173
- },
174
- // Historia Disabled
175
- ...ownerState.disabled && {
176
- "& .MuiOutlinedInput-notchedOutline": {
177
- borderColor: theme.vars.palette.border.disabled,
178
- borderTop: theme.vars.palette.border.disabled,
179
- borderLeft: "transparent",
180
- borderRight: "transparent"
181
- },
182
- pointerEvents: ownerState.textFieldDisabled ? "none" : "auto",
183
- "&:hover": {
184
- pointerEvents: ownerState.textFieldDisabled ? "none" : "auto"
185
- },
186
- "& .MuiInputBase-input::placeholder": {
187
- color: theme.vars.palette.text.disabled
188
- }
189
- }
190
- }
191
- }
192
- }
5
+ root: ({ theme }) => ({
6
+ display: "flex",
7
+ flexDirection: "column",
8
+ gap: theme.vars.size.baseSpacings.sp1
193
9
  }),
10
+ /**
11
+ * Estilos personalizados para el componente RHFTextField.
12
+ */
13
+ textField: {},
194
14
  /**
195
15
  * Estilos personalizados para el componente Label.
196
16
  */
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
- }),
17
+ label: {},
210
18
  /**
211
19
  * Estilos personalizados para el componente Skeleton.
212
20
  * @author Bruce Escobar - automatic
@@ -214,16 +22,7 @@ const rhfTextFieldStyles = {
214
22
  * @updatedAt 2024-10-22 19:27:23 - automatic
215
23
  * @updatedUser Bruce Escobar - automatic
216
24
  */
217
- wrapperSkeletonRHFTextField: ({ ownerState, theme }) => ({
218
- borderRadius: theme.size.borderRadius.r1,
219
- ...ownerState.size === "small" && {
220
- ...theme.generalSettings.isMobile ? { height: theme.vars.size.mobile.small.action } : { height: theme.vars.size.desktop.small.action }
221
- },
222
- // Condiciones de tamaño Medium en el root
223
- ...ownerState.size === "medium" && {
224
- ...theme.generalSettings.isMobile ? { height: theme.vars.size.mobile.medium.action } : { height: theme.vars.size.desktop.medium.action }
225
- }
226
- })
25
+ helperErrorStyled: {}
227
26
  };
228
27
  export {
229
28
  rhfTextFieldStyles as r
@@ -3,5 +3,6 @@ export declare enum RHFTextFieldSlots {
3
3
  label = "label",
4
4
  textField = "textField",
5
5
  skeletonTextFieldRoot = "skeletonTextFieldRoot",
6
- wrapperSkeletonRHFTextField = "wrapperSkeletonRHFTextField"
6
+ wrapperSkeletonRHFTextField = "wrapperSkeletonRHFTextField",
7
+ helperErrorStyled = "helperErrorStyled"
7
8
  }
@@ -4,6 +4,7 @@ var RHFTextFieldSlots = /* @__PURE__ */ ((RHFTextFieldSlots2) => {
4
4
  RHFTextFieldSlots2["textField"] = "textField";
5
5
  RHFTextFieldSlots2["skeletonTextFieldRoot"] = "skeletonTextFieldRoot";
6
6
  RHFTextFieldSlots2["wrapperSkeletonRHFTextField"] = "wrapperSkeletonRHFTextField";
7
+ RHFTextFieldSlots2["helperErrorStyled"] = "helperErrorStyled";
7
8
  return RHFTextFieldSlots2;
8
9
  })(RHFTextFieldSlots || {});
9
10
  export {
@@ -1,17 +1,12 @@
1
- export declare const RHFTextFieldRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
1
+ export declare const RHFTextFieldRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
2
2
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
3
3
  }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
4
- export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
4
+ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
5
5
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
6
6
  }, {}, {}>;
7
- export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<{
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" | "label" | "className" | "classes" | "onChange" | "sx" | "translate" | "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" | "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" | "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" | "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> & {
7
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../mui_extended/TextField/types').TextFieldProps, keyof import('../../../mui_extended/TextField/types').TextFieldProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
10
8
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
11
9
  }, {}, {}>;
12
- export declare const SkeletonTextFieldRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
10
+ export declare const HelperErrorStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../HelperError').HelperErrorProps, keyof import('../../../HelperError').HelperErrorProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
13
11
  ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
14
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
15
- export declare const WrapperSkeletonRHFTextFieldStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown> & {
16
- ownerState: Partial<import('..').RHFTextFieldOwnerState> & Record<string, unknown>;
17
- }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
12
+ }, {}, {}>;
@@ -2,8 +2,9 @@ import { styled } from "@mui/material/styles";
2
2
  import { R as RHFTextFieldSlots } from "./RHFTextFieldEnum.js";
3
3
  import { R as RHF_TEXT_FIELD_KEY_COMPONENT } from "../constant.js";
4
4
  import { r as rhfTextFieldStyles } from "../RHFTextField.styles.js";
5
- import { TextField } from "@mui/material";
6
5
  import { L as Label } from "../../../Label/Label.js";
6
+ import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
7
+ import { H as HelperError } from "../../../HelperError/HelperError.js";
7
8
  const RHFTextFieldRootStyled = styled("div", {
8
9
  name: RHF_TEXT_FIELD_KEY_COMPONENT,
9
10
  slot: RHFTextFieldSlots.root
@@ -16,18 +17,13 @@ const TextFieldStyled = styled(TextField, {
16
17
  name: RHF_TEXT_FIELD_KEY_COMPONENT,
17
18
  slot: RHFTextFieldSlots.textField
18
19
  })(rhfTextFieldStyles?.textField);
19
- const SkeletonTextFieldRootStyled = styled("div", {
20
+ const HelperErrorStyled = styled(HelperError, {
20
21
  name: RHF_TEXT_FIELD_KEY_COMPONENT,
21
- slot: RHFTextFieldSlots.skeletonTextFieldRoot
22
- })(rhfTextFieldStyles?.skeletonTextFieldRoot);
23
- const WrapperSkeletonRHFTextFieldStyled = styled("div", {
24
- name: RHF_TEXT_FIELD_KEY_COMPONENT,
25
- slot: RHFTextFieldSlots.wrapperSkeletonRHFTextField
26
- })(rhfTextFieldStyles?.wrapperSkeletonRHFTextField);
22
+ slot: RHFTextFieldSlots.helperErrorStyled
23
+ })(rhfTextFieldStyles?.helperErrorStyled);
27
24
  export {
25
+ HelperErrorStyled as H,
28
26
  LabelStyled as L,
29
27
  RHFTextFieldRootStyled as R,
30
- SkeletonTextFieldRootStyled as S,
31
- TextFieldStyled as T,
32
- WrapperSkeletonRHFTextFieldStyled as W
28
+ TextFieldStyled as T
33
29
  };
@@ -1,14 +1,12 @@
1
1
  import { Theme } from '@mui/material/styles';
2
2
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
3
- import { TextFieldProps, PaletteColor } from '@mui/material';
3
+ import { TextFieldProps } from '../../mui_extended/TextField/types';
4
4
  import { ReactElement } from 'react';
5
5
  import { LabelProps } from '../../Label/types';
6
6
  import { RHFTextFieldSlots } from './slots';
7
7
  import { RHF_TEXT_FIELD_KEY_COMPONENT } from './constant';
8
8
  import { ComponentPalletColor } from '@m4l/styles';
9
- export type VariantsRHFTextField = 'outlined' | 'text';
10
- export type RHFTextFieldVariants = 'info' | 'success' | 'warning' | null;
11
- export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'variant' | 'label' | 'theme'>, Omit<LabelProps, 'label'> {
9
+ export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputProps' | 'label' | 'theme' | 'color'>, Omit<LabelProps, 'label'> {
12
10
  skeletonWidth?: string | number;
13
11
  /** Valor de altura total para la vista de carga provisional. */
14
12
  skeletonHeight?: string | number;
@@ -20,26 +18,20 @@ export interface RHFTextFieldProps extends Omit<TextFieldProps, 'size' | 'inputP
20
18
  startIcon?: ReactElement;
21
19
  /** Icono lateral derecho dentro del campo de texto. */
22
20
  endIcon?: ReactElement;
23
- /** Variantes de componente de campo de texto. */
24
- variant?: RHFTextFieldVariants;
25
21
  /** Etiqueta que acompaña al campo de texto. */
26
22
  label?: string;
27
23
  /** Etiqueta que se utiliza para condicionar el valor del campo de texto para que sea de tipo entero o decimal.*/
28
24
  isInteger?: boolean;
29
- color?: Extract<ComponentPalletColor, 'primary'>;
30
- RHFvariants?: VariantsRHFTextField;
25
+ color?: Extract<ComponentPalletColor, 'default'>;
31
26
  RHFtextFieldError?: boolean;
32
27
  }
33
28
  export interface RHFTextFieldState extends Pick<RHFTextFieldProps, 'size' | 'disabled'> {
34
29
  type: 'password' | 'text';
35
30
  isFocus: boolean;
36
31
  isTabSelected: boolean;
37
- variant: RHFTextFieldVariants | 'warning' | 'error' | null;
38
32
  }
39
33
  export type RHFTextFieldOwnerState = RHFTextFieldProps & {
40
34
  componentPaletteColor?: ComponentPalletColor;
41
- paletteColor: PaletteColor;
42
- variantRHFTextField?: VariantsRHFTextField;
43
35
  RHFtextFieldError?: boolean;
44
36
  error?: boolean;
45
37
  };
@@ -38,6 +38,8 @@ export * from './PDFViewer';
38
38
  export * from './Period';
39
39
  export * from './HelmetPage';
40
40
  export * from './PropertyValue/PropertyValue';
41
+ export * from './MenuActions';
42
+ export type { MenuAction, ComponentActionProps } from './MenuActions/types';
41
43
  export * from './extended/React-Resizable';
42
44
  export * from './ScrollBar';
43
45
  export { ScrollToTop } from './ScrollToTop';
@@ -1,5 +1,5 @@
1
1
  import { LayersListModel } from '../model';
2
- import { MenuAction } from '../../../../../../../../../../../../mui_extended/MenuActions/types';
2
+ import { MenuAction } from '../../../../../../../../../../../../MenuActions/types';
3
3
  /**
4
4
  * TODO: Documentar
5
5
  */
@@ -1,4 +1,4 @@
1
- import { MenuAction } from '../../../../../../../../mui_extended/MenuActions/types';
1
+ import { MenuAction } from '../../../../../../../../MenuActions/types';
2
2
  import { GeofenceListModel } from '../../model';
3
3
  interface UseRowActionsProps {
4
4
  fullRefresh: (id?: number) => void;
@@ -30,6 +30,6 @@ export declare const ImageStyled: import('@emotion/styled').StyledComponent<Pick
30
30
  export declare const SkeletonAutocompleteStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown> & {
31
31
  ownerState: Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown>;
32
32
  }, {}, {}>;
33
- export declare const PopperComponentStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../Popper').PopperProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "variant" | "transition" | "className" | "onChange" | "sx" | "translate" | "slots" | "slotProps" | "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" | "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" | "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" | "dataTestid" | "placement" | "arrow" | "componentsProps" | "disablePortal" | "keepMounted" | "anchorEl" | "modifiers" | "popperOptions" | "popperRef" | keyof import('react').RefAttributes<HTMLDivElement> | "initialPlacement"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown> & {
33
+ export declare const PopperComponentStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../Popper').PopperProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "title" | "component" | "id" | "container" | "components" | "hidden" | "color" | "content" | "style" | "open" | "variant" | "transition" | "className" | "onChange" | "sx" | "translate" | "slots" | "slotProps" | "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" | "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" | "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" | "dataTestid" | "placement" | "arrow" | "componentsProps" | "anchorEl" | "disablePortal" | "keepMounted" | "modifiers" | "popperOptions" | "popperRef" | keyof import('react').RefAttributes<HTMLDivElement> | "initialPlacement"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown> & {
34
34
  ownerState: Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown>;
35
35
  }, {}, {}>;
@@ -1,6 +1,6 @@
1
1
  declare const ButtonRootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').ButtonOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
2
2
  ref?: ((instance: HTMLButtonElement | 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<HTMLButtonElement> | null | undefined;
3
- }, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "startIcon" | "endIcon" | "disableFocusRipple" | "disableElevation" | "fullWidth">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "className" | "classes" | "onChange" | "sx" | "translate" | "form" | "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" | "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" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "startIcon" | "endIcon" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
3
+ }, "children" | "size" | "action" | "color" | "style" | "disabled" | "variant" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon">, "children" | "value" | "ref" | "title" | "size" | "name" | "id" | "type" | "action" | "hidden" | "color" | "content" | "style" | "disabled" | "variant" | "className" | "classes" | "onChange" | "sx" | "translate" | "form" | "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" | "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" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "href" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disableElevation" | "endIcon" | "fullWidth" | "startIcon"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
4
4
  ownerState: Partial<import('..').ButtonOwnerState> & Record<string, unknown>;
5
5
  }, {}, {}>;
6
6
  declare const SkeletonButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').ButtonOwnerState> & Record<string, unknown> & {
@@ -2,14 +2,15 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef, useMemo } from "react";
3
3
  import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
4
4
  import { useTheme } from "@mui/material";
5
- import { e as evalIconColor } from "./helpers/evalIconColor.js";
6
5
  import { g as getComponentSlotRoot } from "../../../utils/getComponentSlotRoot.js";
6
+ import { e as evalIconColor } from "./helpers/evalIconColor.js";
7
7
  import { I as ICON_BUTTON_KEY_COMPONENT } from "./constants.js";
8
8
  import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
9
- import { T as TooltipStyled, S as StyledMUIIconButton, B as BadgeStyled, a as SkeletonStyled, C as ContainReactStyled, I as IconStyled } from "./slots/IconButtonSlots.js";
9
+ import { T as Tooltip } from "../Tooltip/Tooltip.js";
10
+ import { S as StyledMUIIconButton, B as BadgeStyled, a as SkeletonStyled } from "./slots/IconButtonSlots.js";
11
+ import { I as Icon } from "../../Icon/Icon.js";
10
12
  const IconButton = forwardRef((props, ref) => {
11
13
  const {
12
- src,
13
14
  tooltip,
14
15
  size = "medium",
15
16
  variant = "text",
@@ -23,6 +24,7 @@ const IconButton = forwardRef((props, ref) => {
23
24
  componentPaletteColor = "default",
24
25
  selected = false,
25
26
  icon,
27
+ src,
26
28
  rotationAngle,
27
29
  ...other
28
30
  } = props;
@@ -49,18 +51,17 @@ const IconButton = forwardRef((props, ref) => {
49
51
  () => evalIconColor(componentPaletteColor, variant),
50
52
  [componentPaletteColor, variant]
51
53
  );
52
- const renderIcon = () => {
53
- if (!src) {
54
- return /* @__PURE__ */ jsx(ContainReactStyled, { size: adjustedSize, ownerState: { ...OwnerState }, children: icon });
54
+ const renderIcon = (arg) => {
55
+ if (!arg) {
56
+ return arg;
55
57
  }
56
- if (typeof src !== "string") {
57
- return src;
58
+ if (typeof arg !== "string") {
59
+ return arg;
58
60
  } else {
59
61
  return /* @__PURE__ */ jsx(
60
- IconStyled,
62
+ Icon,
61
63
  {
62
- ownerState: { ...OwnerState },
63
- src,
64
+ src: arg,
64
65
  size: adjustedSize,
65
66
  color: iconColor,
66
67
  disabled,
@@ -71,10 +72,9 @@ const IconButton = forwardRef((props, ref) => {
71
72
  };
72
73
  return /* @__PURE__ */ jsxs(Fragment, { children: [
73
74
  tooltipContent ? /* @__PURE__ */ jsx(
74
- TooltipStyled,
75
+ Tooltip,
75
76
  {
76
77
  title: tooltipContent.toString(),
77
- ownerState: {},
78
78
  placement,
79
79
  children: /* @__PURE__ */ jsx(
80
80
  StyledMUIIconButton,
@@ -94,9 +94,9 @@ const IconButton = forwardRef((props, ref) => {
94
94
  ownerState: { ...OwnerState },
95
95
  badgeContent,
96
96
  componentPaletteColor,
97
- children: renderIcon()
97
+ children: renderIcon(icon || src)
98
98
  }
99
- ) : /* @__PURE__ */ jsx(Fragment, { children: renderIcon() })
99
+ ) : /* @__PURE__ */ jsx(Fragment, { children: renderIcon(icon || src) })
100
100
  }
101
101
  )
102
102
  }
@@ -118,9 +118,9 @@ const IconButton = forwardRef((props, ref) => {
118
118
  ownerState: { ...OwnerState },
119
119
  badgeContent,
120
120
  componentPaletteColor,
121
- children: renderIcon()
121
+ children: renderIcon(icon || src)
122
122
  }
123
- ) : /* @__PURE__ */ jsx(Fragment, { children: renderIcon() })
123
+ ) : /* @__PURE__ */ jsx(Fragment, { children: renderIcon(icon || src) })
124
124
  }
125
125
  ),
126
126
  isSkeleton && /* @__PURE__ */ jsx(SkeletonStyled, { ownerState: { ...OwnerState } })