@m4l/components 9.72.0-beta-hotfix-image-button.0 → 9.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/types.d.ts +0 -11
- package/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/ActionsGroup/slots/ActionsGroupSlots.d.ts +1 -1
- package/components/Alert/slots/AlertSlots.d.ts +1 -1
- package/components/CheckableList/slots/styled.d.ts +1 -1
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/ColorPicker/slots/ColorPickerSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +3 -3
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +3 -3
- package/components/EditLabel/slots/EditLabelSlots.d.ts +2 -2
- package/components/Image/Image.d.ts.map +1 -1
- package/components/Image/Image.js +32 -49
- package/components/Image/slots/ImageSlots.d.ts +0 -3
- package/components/Image/slots/ImageSlots.d.ts.map +1 -1
- package/components/Image/slots/ImageSlots.js +2 -6
- package/components/Image/types.d.ts +2 -25
- package/components/Image/types.d.ts.map +1 -1
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/ObjectLogs/slots/ObjectLogsSlots.d.ts +1 -1
- package/components/SideBar/slots/SideBarSlots.d.ts +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +5 -5
- package/components/datagrids/helpers/index.d.ts +1 -0
- package/components/datagrids/helpers/index.d.ts.map +1 -1
- package/components/datagrids/helpers/shared/resolveVisibleColumnNames/index.d.ts +2 -0
- package/components/datagrids/helpers/shared/resolveVisibleColumnNames/index.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/resolveVisibleColumnNames/resolveVisibleColumnNames.d.ts +10 -0
- package/components/datagrids/helpers/shared/resolveVisibleColumnNames/resolveVisibleColumnNames.d.ts.map +1 -0
- package/components/datagrids/helpers/shared/resolveVisibleColumnNames/resolveVisibleColumnNames.js +6 -0
- package/components/datagrids/index.d.ts +2 -2
- package/components/datagrids/index.d.ts.map +1 -1
- package/components/datagrids/slots/DataGridSlot.d.ts +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Export/Export.d.ts +1 -0
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Export/Export.d.ts.map +1 -1
- package/components/datagrids/subcomponents/HeaderActions/subcomponents/Export/Export.js +27 -21
- package/components/datagrids/types.d.ts +34 -14
- package/components/datagrids/types.d.ts.map +1 -1
- package/components/datagrids/views/CardsView/hooks/useProcessedColumns/useProcessedColumns.d.ts +1 -1
- package/components/datagrids/views/ListView/hooks/useProcessedColumns/useProcessedColumns.d.ts +1 -1
- package/components/extended/ReactSimpleCodeEditor/slots/CodeEditorSlots.d.ts +1 -1
- package/components/extended/mui/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/extended/mui/Clipboard/slots/ClipboardSlots.d.ts +1 -1
- package/components/extended/mui/DatePicker/slots/DatePickerSlots.d.ts +1 -1
- package/components/extended/mui/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
- package/components/extended/mui/IconButton/IconButton.d.ts.map +1 -1
- package/components/extended/mui/IconButton/IconButton.js +67 -71
- package/components/extended/mui/IconButton/IconButton.styles.d.ts +1 -19
- package/components/extended/mui/IconButton/IconButton.styles.d.ts.map +1 -1
- package/components/extended/mui/IconButton/IconButton.styles.js +154 -226
- package/components/extended/mui/IconButton/types.d.ts +1 -3
- package/components/extended/mui/IconButton/types.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/ImageButton.d.ts +2 -2
- package/components/extended/mui/ImageButton/ImageButton.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/ImageButton.js +29 -74
- package/components/extended/mui/ImageButton/styles.d.ts +1 -20
- package/components/extended/mui/ImageButton/styles.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/styles.js +3 -55
- package/components/extended/mui/ImageButton/tests/constants.js +4 -0
- package/components/extended/mui/ImageButton/types.d.ts +2 -22
- package/components/extended/mui/ImageButton/types.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/utils/Clases/index.d.ts +0 -2
- package/components/extended/mui/ImageButton/utils/Clases/index.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/utils/Clases/index.js +11 -20
- package/components/extended/mui/ImageButton/utils/Clases/types.d.ts +0 -6
- package/components/extended/mui/ImageButton/utils/Clases/types.d.ts.map +1 -1
- package/components/extended/mui/Select/slots/SelectSlots.d.ts +1 -1
- package/components/extended/mui/TimePicker/slots/TimePickerSlots.d.ts +1 -1
- package/components/extended/mui/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/components/hook-form/RHFDatePicker/slots/RHFDatePickerSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +1 -1
- package/hooks/useDynamicFilterAndSort/slots/DynamicFilterAndSortSlots.d.ts +1 -1
- package/hooks/useExportDatagridColumns/useVisibleColumnNames.d.ts.map +1 -1
- package/hooks/useExportDatagridColumns/useVisibleColumnNames.js +8 -4
- package/index.js +716 -714
- package/package.json +6 -6
- package/components/Image/subcomponents/ImageResource/index.d.ts +0 -6
- package/components/Image/subcomponents/ImageResource/index.d.ts.map +0 -1
- package/components/Image/subcomponents/ImageResource/index.js +0 -24
- package/components/Image/utils/getImageResourceElementProps.d.ts +0 -7
- package/components/Image/utils/getImageResourceElementProps.d.ts.map +0 -1
- package/components/Image/utils/getImageResourceElementProps.js +0 -14
|
@@ -1,247 +1,176 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
import { getSizeStyles as i } from "../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
+
import { getIconButtonColors as l } from "./helpers/getIconButtonColors.js";
|
|
3
|
+
const d = {
|
|
4
|
+
/**
|
|
5
|
+
* 🔘 Estilos generales para el componente IconButton
|
|
6
|
+
* Define la apariencia base y todos los estados interactivos
|
|
7
|
+
*/
|
|
8
|
+
styledMUIIconButton: ({ ownerState: o, theme: c }) => {
|
|
9
|
+
const r = o?.disabled ? c.vars.palette.default : c.vars.palette[o?.color || "default"];
|
|
10
|
+
return {
|
|
11
|
+
"&&&": {
|
|
12
|
+
// 🔧 Triple & para aumentar la especificidad CSS
|
|
13
|
+
overflow: "hidden",
|
|
14
|
+
cursor: o?.disabled ? "not-allowed" : "pointer",
|
|
15
|
+
color: c.vars.palette.text.primary,
|
|
16
|
+
borderRadius: c.size.borderRadius["r1-5"],
|
|
17
|
+
pointerEvents: o?.disabled ? "none" : "auto",
|
|
18
|
+
display: o?.isSkeleton ? "none" : "flex",
|
|
19
|
+
justifyContent: "center",
|
|
20
|
+
padding: 0,
|
|
21
|
+
// 🖼️ Estilos para el icono dentro del botón
|
|
22
22
|
"&&& .M4LIcon-icon": {
|
|
23
23
|
backgroundColor: o?.variant === "contained" ? r.contrastText : r.semanticText
|
|
24
|
-
}
|
|
25
|
-
}),
|
|
26
|
-
// 🔍 Estado Focus-visible
|
|
27
|
-
"&:focus-visible": {
|
|
28
|
-
outline: a.vars.size.borderStroke.container,
|
|
29
|
-
outlineColor: a.vars.palette.default.focusVisible,
|
|
30
|
-
outlineOffset: "-1px",
|
|
31
|
-
...o?.variant === "outline" && {
|
|
32
|
-
backgroundColor: r.hoverOpacity
|
|
33
24
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
25
|
+
// 🔍 Estado Focus-visible
|
|
26
|
+
"&:focus-visible": {
|
|
27
|
+
outline: c.vars.size.borderStroke.container,
|
|
28
|
+
outlineColor: c.vars.palette.default.focusVisible,
|
|
29
|
+
outlineOffset: "-1px",
|
|
30
|
+
...o?.variant === "outline" && {
|
|
31
|
+
backgroundColor: r.hoverOpacity
|
|
32
|
+
},
|
|
33
|
+
...o?.variant === "text" && {
|
|
34
|
+
backgroundColor: r.hoverOpacity
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"&:-webkit-any-link:focus-visible": {
|
|
38
|
+
outline: c.vars.size.borderStroke.container,
|
|
39
|
+
outlineColor: c.vars.palette.default.focusVisible,
|
|
40
|
+
outlineOffset: "-1px"
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* ✅ ESTADO SELECCIONADO
|
|
44
|
+
* Maneja la apariencia cuando el botón está seleccionado (selected=true)
|
|
45
|
+
*/
|
|
46
|
+
...o?.selected === !0 ? {
|
|
47
|
+
// Estilos para la variante contained
|
|
48
|
+
...o?.variant === "contained" && {
|
|
49
|
+
// 🎯 Color de fondo según variante y color del componente
|
|
50
|
+
backgroundColor: o?.variant === "contained" ? o?.color === "error" ? r.active : o?.color === "default" ? c.vars.palette.primary.selected : o?.color === "success" ? c.vars.palette.success.selected : r.selected : o?.color === "error" ? r.activeOpacity : r.selectedOpacity,
|
|
53
51
|
"&&& .M4LIcon-icon": {
|
|
54
|
-
backgroundColor: o?.variant === "contained" ?
|
|
52
|
+
backgroundColor: o?.variant === "contained" ? c.vars.palette.primary.contrastText : r.semanticText
|
|
55
53
|
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
borderColor: o?.color === "default" ? a.vars.palette.primary.active : r.active,
|
|
63
|
-
...l(i, {
|
|
54
|
+
},
|
|
55
|
+
// Estilos para la variante text
|
|
56
|
+
...o.variant === "outline" && {
|
|
57
|
+
backgroundColor: o.color === "default" ? c.vars.palette.primary.selectedOpacity : r.selectedOpacity,
|
|
58
|
+
border: c.vars.size.borderStroke.actionInput,
|
|
59
|
+
borderColor: o.color === "default" ? c.vars.palette.primary.active : r.active,
|
|
64
60
|
"&&& .M4LIcon-icon": {
|
|
65
|
-
backgroundColor: o
|
|
61
|
+
backgroundColor: o.color === "default" ? c.vars.palette.primary.semanticText : o.color === "warning" ? r.active : r.selected
|
|
66
62
|
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
backgroundColor: o?.color === "default" ? a.vars.palette.primary.selectedOpacity : r.selectedOpacity,
|
|
71
|
-
...l(i, {
|
|
63
|
+
},
|
|
64
|
+
...o.variant === "text" && {
|
|
65
|
+
backgroundColor: o.color === "default" ? c.vars.palette.primary.selectedOpacity : r.selectedOpacity,
|
|
72
66
|
"&&& .M4LIcon-icon": {
|
|
73
|
-
backgroundColor: o
|
|
67
|
+
backgroundColor: o.color === "default" ? c.vars.palette.primary.semanticText : o.color === "warning" ? r.active : r.selected
|
|
74
68
|
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
...o?.variant === "text" && {
|
|
87
|
-
...l(i, {
|
|
69
|
+
}
|
|
70
|
+
} : {
|
|
71
|
+
/**
|
|
72
|
+
* 🔄 ESTADO NORMAL (NO SELECCIONADO)
|
|
73
|
+
* Define estilos para los diferentes estados y variantes cuando no está seleccionado
|
|
74
|
+
*/
|
|
75
|
+
/**
|
|
76
|
+
* 📝 VARIANTE TEXT
|
|
77
|
+
* Apariencia base y estados interactivos para la variante text
|
|
78
|
+
*/
|
|
79
|
+
...o?.variant === "text" && {
|
|
88
80
|
"&&& .M4LIcon-icon": {
|
|
89
81
|
backgroundColor: r.semanticText
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
backgroundColor: r.hoverOpacity,
|
|
95
|
-
...l(i, {
|
|
82
|
+
},
|
|
83
|
+
// 🖱️ Estado Hover
|
|
84
|
+
"&:hover": {
|
|
85
|
+
backgroundColor: r.hoverOpacity,
|
|
96
86
|
"&&& .M4LIcon-icon": {}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
backgroundColor: r.activeOpacity,
|
|
102
|
-
...l(i, {
|
|
87
|
+
},
|
|
88
|
+
// 👇 Estado Active
|
|
89
|
+
"&:active": {
|
|
90
|
+
backgroundColor: r.activeOpacity,
|
|
103
91
|
"&&& .M4LIcon-icon": {
|
|
104
92
|
backgroundColor: o?.color === "default" ? r.semanticText : r.active
|
|
105
93
|
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
/**
|
|
110
|
-
* ⚪ VARIANTE OUTLINE
|
|
111
|
-
* Apariencia base y estados interactivos para la variante outline
|
|
112
|
-
*/
|
|
113
|
-
...o?.variant === "outline" && {
|
|
114
|
-
// 🖋️ Borde diferente según el color del componente
|
|
115
|
-
...o?.color !== "default" && {
|
|
116
|
-
border: `1px solid ${r.enabled}`
|
|
117
|
-
},
|
|
118
|
-
...o?.color === "default" && {
|
|
119
|
-
border: `1px solid ${a.vars.palette.border.default}`
|
|
94
|
+
}
|
|
120
95
|
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
96
|
+
/**
|
|
97
|
+
* ⚪ VARIANTE OUTLINE
|
|
98
|
+
* Apariencia base y estados interactivos para la variante outline
|
|
99
|
+
*/
|
|
100
|
+
...o?.variant === "outline" && {
|
|
101
|
+
// 🖋️ Borde diferente según el color del componente
|
|
102
|
+
...o?.color !== "default" && {
|
|
103
|
+
border: `1px solid ${r.enabled}`
|
|
104
|
+
},
|
|
105
|
+
...o?.color === "default" && {
|
|
106
|
+
border: `1px solid ${c.vars.palette.border.default}`
|
|
107
|
+
},
|
|
108
|
+
// 🖱️ Estado Hover
|
|
109
|
+
"&:hover": {
|
|
110
|
+
background: r.hoverOpacity,
|
|
111
|
+
border: o.color === "default" ? `1px solid ${c.vars.palette.border.default}` : `1px solid ${r.hover}`,
|
|
126
112
|
"&&& .M4LIcon-icon": {}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
border: o?.color === "default" ? `1px solid ${a.vars.palette.border.default}` : `1px solid ${r.active}`,
|
|
133
|
-
...l(i, {
|
|
113
|
+
},
|
|
114
|
+
// 👇 Estado Active
|
|
115
|
+
"&:active": {
|
|
116
|
+
background: r.activeOpacity,
|
|
117
|
+
border: o.color === "default" ? `1px solid ${c.vars.palette.border.default}` : `1px solid ${r.active}`,
|
|
134
118
|
"&&& .M4LIcon-icon": {
|
|
135
119
|
backgroundColor: o?.color === "default" ? r.semanticText : r.active
|
|
136
120
|
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
// 🖼️ Color del icono
|
|
147
|
-
...l(i, {
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* 🔵 VARIANTE CONTAINED
|
|
125
|
+
* Apariencia base y estados interactivos para la variante contained
|
|
126
|
+
*/
|
|
127
|
+
...o?.variant === "contained" && {
|
|
128
|
+
backgroundColor: r.enabled,
|
|
129
|
+
// 🖼️ Color del icono
|
|
148
130
|
"&&& .M4LIcon-icon": {
|
|
149
131
|
backgroundColor: o?.color === "default" ? r.semanticText : r.contrastText
|
|
132
|
+
},
|
|
133
|
+
// 🖱️ Estado Hover
|
|
134
|
+
"&:hover": {
|
|
135
|
+
background: r.hover
|
|
136
|
+
},
|
|
137
|
+
// 👇 Estado Active
|
|
138
|
+
"&:active": {
|
|
139
|
+
background: r.active
|
|
150
140
|
}
|
|
151
|
-
}),
|
|
152
|
-
// 🖱️ Estado Hover
|
|
153
|
-
"&:hover": {
|
|
154
|
-
background: r.hover
|
|
155
|
-
},
|
|
156
|
-
// 👇 Estado Active
|
|
157
|
-
"&:active": {
|
|
158
|
-
background: r.active
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
},
|
|
162
|
-
/**
|
|
163
|
-
* 🚫 ESTADO DISABLED
|
|
164
|
-
* Estilos específicos para cuando el botón está deshabilitado
|
|
165
|
-
*/
|
|
166
|
-
...o?.disabled === !0 && l(i, {
|
|
167
|
-
"&&& .M4LIcon-icon": {
|
|
168
|
-
color: a.vars.palette.text.disabled
|
|
169
|
-
}
|
|
170
|
-
}),
|
|
171
|
-
/**
|
|
172
|
-
* 📏 TAMAÑOS DEL COMPONENTE
|
|
173
|
-
* Aplica dimensiones según el tamaño especificado (small, medium, large)
|
|
174
|
-
*/
|
|
175
|
-
...s(
|
|
176
|
-
a,
|
|
177
|
-
o?.size || "medium",
|
|
178
|
-
"action",
|
|
179
|
-
(d) => ({
|
|
180
|
-
width: d,
|
|
181
|
-
height: d
|
|
182
|
-
})
|
|
183
|
-
),
|
|
184
|
-
// 🔲 Estilos para el imagen dentro del botón
|
|
185
|
-
"&&& .M4LImage-root": {
|
|
186
|
-
width: "100%",
|
|
187
|
-
height: "100%",
|
|
188
|
-
minWidth: 0,
|
|
189
|
-
minHeight: 0,
|
|
190
|
-
display: "flex",
|
|
191
|
-
alignItems: "center",
|
|
192
|
-
justifyContent: "center",
|
|
193
|
-
objectFit: "contain",
|
|
194
|
-
overflow: "visible",
|
|
195
|
-
"& .MuiSvgIcon-root, & svg": {
|
|
196
|
-
width: "100%",
|
|
197
|
-
height: "100%",
|
|
198
|
-
maxWidth: "100%",
|
|
199
|
-
maxHeight: "100%",
|
|
200
|
-
display: "block",
|
|
201
|
-
flexShrink: 0
|
|
202
|
-
}
|
|
203
|
-
},
|
|
204
|
-
...u && {
|
|
205
|
-
background: "transparent",
|
|
206
|
-
backgroundColor: "transparent",
|
|
207
|
-
...t && {
|
|
208
|
-
border: `1px solid ${n}`,
|
|
209
|
-
borderColor: n
|
|
210
|
-
},
|
|
211
|
-
"&:hover": {
|
|
212
|
-
background: "transparent",
|
|
213
|
-
backgroundColor: "transparent",
|
|
214
|
-
...t && {
|
|
215
|
-
border: `1px solid ${e}`,
|
|
216
|
-
borderColor: e
|
|
217
141
|
}
|
|
218
142
|
},
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
143
|
+
/**
|
|
144
|
+
* 🚫 ESTADO DISABLED
|
|
145
|
+
* Estilos específicos para cuando el botón está deshabilitado
|
|
146
|
+
*/
|
|
147
|
+
...o?.disabled === !0 && {
|
|
148
|
+
"&&& .M4LIcon-icon": {
|
|
149
|
+
color: c.vars.palette.text.disabled
|
|
225
150
|
}
|
|
226
151
|
},
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
152
|
+
/**
|
|
153
|
+
* 📏 TAMAÑOS DEL COMPONENTE
|
|
154
|
+
* Aplica dimensiones según el tamaño especificado (small, medium, large)
|
|
155
|
+
*/
|
|
156
|
+
...i(
|
|
157
|
+
c,
|
|
158
|
+
o?.size || "medium",
|
|
159
|
+
"action",
|
|
160
|
+
(a) => ({
|
|
161
|
+
width: a,
|
|
162
|
+
height: a
|
|
163
|
+
})
|
|
164
|
+
),
|
|
165
|
+
// 🔲 Estilos para el imagen dentro del botón
|
|
166
|
+
"&&& .M4LImage-root": {
|
|
167
|
+
width: "100%",
|
|
168
|
+
height: "100%",
|
|
169
|
+
objectFit: "cover"
|
|
233
170
|
}
|
|
234
171
|
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
const x = {
|
|
240
|
-
/**
|
|
241
|
-
* 🔘 Estilos generales para el componente IconButton
|
|
242
|
-
* Define la apariencia base y todos los estados interactivos
|
|
243
|
-
*/
|
|
244
|
-
styledMUIIconButton: g,
|
|
172
|
+
};
|
|
173
|
+
},
|
|
245
174
|
/**
|
|
246
175
|
* 🏷️ Estilos para el badge del IconButton
|
|
247
176
|
* Actualmente no implementado, pendiente de documentación en Figma
|
|
@@ -251,15 +180,15 @@ const x = {
|
|
|
251
180
|
* ⌛ Estilos para el estado skeleton del IconButton
|
|
252
181
|
* Aplicados cuando se muestra un esqueleto de carga
|
|
253
182
|
*/
|
|
254
|
-
skeleton: ({ theme: o, ownerState:
|
|
183
|
+
skeleton: ({ theme: o, ownerState: c }) => ({
|
|
255
184
|
"&.M4lclassCssSpecificity": {
|
|
256
|
-
...
|
|
185
|
+
...i(
|
|
257
186
|
o,
|
|
258
|
-
|
|
187
|
+
c?.size || "medium",
|
|
259
188
|
"action",
|
|
260
|
-
(
|
|
261
|
-
width:
|
|
262
|
-
height:
|
|
189
|
+
(r) => ({
|
|
190
|
+
width: r,
|
|
191
|
+
height: r
|
|
263
192
|
})
|
|
264
193
|
)
|
|
265
194
|
}
|
|
@@ -268,16 +197,15 @@ const x = {
|
|
|
268
197
|
* 🎭 Estilos específicos para el icono dentro del IconButton
|
|
269
198
|
* Personaliza el color del icono según el estado del botón
|
|
270
199
|
*/
|
|
271
|
-
icon: ({ theme: o, ownerState:
|
|
272
|
-
const { iconColor:
|
|
200
|
+
icon: ({ theme: o, ownerState: c }) => {
|
|
201
|
+
const { iconColor: r } = l(o, c);
|
|
273
202
|
return {
|
|
274
203
|
'& [class*="M4LIcon-icon"]': {
|
|
275
|
-
backgroundColor:
|
|
204
|
+
backgroundColor: r
|
|
276
205
|
}
|
|
277
206
|
};
|
|
278
207
|
}
|
|
279
208
|
};
|
|
280
209
|
export {
|
|
281
|
-
|
|
282
|
-
x as iconButtonStyles
|
|
210
|
+
d as iconButtonStyles
|
|
283
211
|
};
|
|
@@ -31,13 +31,11 @@ export interface IconButtonProps extends Partial<Omit<IconProps, 'size' | 'color
|
|
|
31
31
|
dataTestId?: string;
|
|
32
32
|
/** Propiedad que sirve para cambiar al modo seleccionado */
|
|
33
33
|
selected?: boolean;
|
|
34
|
-
/** Restores authored fills for multicolor SVG component sources. */
|
|
35
|
-
originalColor?: IconProps['originalColor'];
|
|
36
34
|
/** Propiedades para el componente badge */
|
|
37
35
|
badgeProps?: BadgeProps;
|
|
38
36
|
}
|
|
39
37
|
/** Tipo `IconButtonOwnerState` que define los valores que tendrá el ownerState */
|
|
40
|
-
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color'
|
|
38
|
+
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color'> & {
|
|
41
39
|
disabled?: boolean;
|
|
42
40
|
isSkeleton: boolean;
|
|
43
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/IconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,2DAA2D;AAC3D,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAElE,qDAAqD;AACrD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,eACf,SAAQ,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,SAAS,GAAG,gBAAgB,CAAC,CAAC,EAClH,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC,EAC/D,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC;IAE/B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;IACxG,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qMAAqM;IACrM,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/IconButton/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE1C,2DAA2D;AAC3D,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAElE,qDAAqD;AACrD,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhD,MAAM,WAAW,eACf,SAAQ,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,iBAAiB,GAAG,SAAS,GAAG,gBAAgB,CAAC,CAAC,EAClH,IAAI,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,CAAC,EAC/D,IAAI,CAAC,YAAY,EAAE,WAAW,CAAC;IAE/B,8DAA8D;IAC9D,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;IAC1C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC,oBAAoB,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC,CAAC;IACxG,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,qMAAqM;IACrM,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,UAAU,CAAC;CAEzB;AAED,kFAAkF;AAClF,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC,GAAG;IACpG,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,0EAA0E;AAC1E,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,eAAe,CAAC;AAE/D,6EAA6E;AAC7E,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,mBAAmB,EAAE,OAAO,yBAAyB,EAAE,KAAK,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ImageButtonProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TODO: Documentar
|
|
4
4
|
*/
|
|
5
|
-
export declare function ImageButton({ src, width, tooltip, sx, className, dataTestId, alt,
|
|
5
|
+
export declare function ImageButton({ src, width, tooltip, sx, className, dataTestId, alt, ...other }: ImageButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=ImageButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImageButton.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/ImageButton/ImageButton.tsx"],"names":[],"mappings":"AAWA,OAAO,
|
|
1
|
+
{"version":3,"file":"ImageButton.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/ImageButton/ImageButton.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAO3C;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,OAAO,EACP,EAAqB,EACrB,SAAS,EACT,UAAU,EACV,GAAG,EACH,GAAG,KAAK,EACT,EAAE,gBAAgB,oDAyBlB"}
|
|
@@ -1,86 +1,41 @@
|
|
|
1
1
|
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
import { Image as
|
|
6
|
-
import {
|
|
7
|
-
import { useUtilityClasses as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
className: B,
|
|
2
|
+
import { useMemo as E } from "react";
|
|
3
|
+
import T from "clsx";
|
|
4
|
+
import { IconButton as _, Tooltip as I } from "@mui/material";
|
|
5
|
+
import { Image as O } from "../../../Image/Image.js";
|
|
6
|
+
import { WrapperImageButton as g } from "./styles.js";
|
|
7
|
+
import { useUtilityClasses as B } from "./utils/Clases/index.js";
|
|
8
|
+
import { TEST_PROP_ID as p } from "../../../../test/constants_no_mock.js";
|
|
9
|
+
import { getNameDataTestId as s } from "../../../../test/getNameDataTestId.js";
|
|
10
|
+
import { IMAGE_BUTTON_KEY_COMPONENT as c } from "./tests/constants.js";
|
|
11
|
+
function b({
|
|
12
|
+
src: t,
|
|
13
|
+
width: r,
|
|
14
|
+
tooltip: f,
|
|
15
|
+
sx: m = { width: r },
|
|
16
|
+
className: l,
|
|
18
17
|
dataTestId: e,
|
|
19
|
-
alt:
|
|
20
|
-
|
|
21
|
-
enableIntersectionObserver: C,
|
|
22
|
-
disabled: t,
|
|
23
|
-
onClick: D,
|
|
24
|
-
size: I = "medium",
|
|
25
|
-
variant: r = "text",
|
|
26
|
-
color: m = "default",
|
|
27
|
-
selected: i = !1,
|
|
28
|
-
..._
|
|
18
|
+
alt: u,
|
|
19
|
+
...a
|
|
29
20
|
}) {
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
size: f,
|
|
33
|
-
disabled: t,
|
|
34
|
-
color: m,
|
|
35
|
-
selected: i,
|
|
36
|
-
isSkeleton: !1
|
|
37
|
-
}), [r, f, t, m, i]), c = /* @__PURE__ */ o(
|
|
38
|
-
V,
|
|
21
|
+
const i = f, N = B(), n = E(() => /* @__PURE__ */ o(
|
|
22
|
+
_,
|
|
39
23
|
{
|
|
40
|
-
sx:
|
|
41
|
-
...
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
disableRipple: !0,
|
|
45
|
-
disabled: t,
|
|
46
|
-
color: m,
|
|
47
|
-
className: h(
|
|
48
|
-
s.button,
|
|
49
|
-
g[r],
|
|
50
|
-
i && g.selected
|
|
51
|
-
),
|
|
52
|
-
...process.env.NODE_ENV !== "production" ? { [l]: u(a, "button", e) } : {},
|
|
53
|
-
children: /* @__PURE__ */ o(
|
|
54
|
-
j,
|
|
55
|
-
{
|
|
56
|
-
ownerState: N,
|
|
57
|
-
className: s.resource,
|
|
58
|
-
...process.env.NODE_ENV !== "production" ? { [l]: u(a, "resource", e) } : {},
|
|
59
|
-
children: /* @__PURE__ */ o(
|
|
60
|
-
R,
|
|
61
|
-
{
|
|
62
|
-
src: d,
|
|
63
|
-
alt: x,
|
|
64
|
-
width: "100%",
|
|
65
|
-
height: "100%",
|
|
66
|
-
threshold: y,
|
|
67
|
-
enableIntersectionObserver: C,
|
|
68
|
-
dataTestId: e
|
|
69
|
-
}
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
)
|
|
24
|
+
sx: m,
|
|
25
|
+
...a,
|
|
26
|
+
...process.env.NODE_ENV !== "production" ? { [p]: s(c, "button", e) } : {},
|
|
27
|
+
children: /* @__PURE__ */ o(O, { src: t, alt: u })
|
|
73
28
|
}
|
|
74
|
-
),
|
|
29
|
+
), [t, r, m]);
|
|
75
30
|
return /* @__PURE__ */ o(
|
|
76
|
-
|
|
31
|
+
g,
|
|
77
32
|
{
|
|
78
|
-
className:
|
|
79
|
-
...process.env.NODE_ENV !== "production" ? { [
|
|
80
|
-
children:
|
|
33
|
+
className: T(N.root, l),
|
|
34
|
+
...process.env.NODE_ENV !== "production" ? { [p]: s(c, "root", e) } : {},
|
|
35
|
+
children: i ? /* @__PURE__ */ o(I, { title: i || "", children: n }) : n
|
|
81
36
|
}
|
|
82
37
|
);
|
|
83
38
|
}
|
|
84
39
|
export {
|
|
85
|
-
|
|
40
|
+
b as ImageButton
|
|
86
41
|
};
|
|
@@ -1,21 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { ImageButtonOwnerState, ImageButtonStyles } from './types';
|
|
3
|
-
type ImageButtonBaseProps = MUIIconButtonProps & {
|
|
4
|
-
ownerState: ImageButtonOwnerState;
|
|
5
|
-
};
|
|
6
|
-
export declare const imageButtonStyles: ImageButtonStyles;
|
|
7
|
-
export declare const WrapperImageButton: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
8
|
-
ownerState?: (Partial<ImageButtonOwnerState> & Record<string, unknown>) | undefined;
|
|
9
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
-
/**
|
|
11
|
-
* Styled ImageButton shell that mirrors M4L IconButton shape styles.
|
|
12
|
-
*/
|
|
13
|
-
export declare const StyledMUIImageButton: import('@emotion/styled').StyledComponent<Pick<Omit<ImageButtonBaseProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "color" | "content" | "translate" | "action" | "classes" | "children" | "className" | "sx" | "form" | "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "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" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "component" | "name" | "size" | "type" | "ownerState" | "value" | "disabled" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
|
|
14
|
-
/**
|
|
15
|
-
* Resource area of the ImageButton: the `base` token box the nested Image fills.
|
|
16
|
-
*/
|
|
17
|
-
export declare const ImageButtonResourceStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
18
|
-
ownerState?: (Partial<ImageButtonOwnerState> & Record<string, unknown>) | undefined;
|
|
19
|
-
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, keyof import('react').ClassAttributes<HTMLSpanElement> | keyof import('react').HTMLAttributes<HTMLSpanElement>>, {}>;
|
|
20
|
-
export {};
|
|
1
|
+
export declare const WrapperImageButton: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
21
2
|
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/ImageButton/styles.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/components/src/components/extended/mui/ImageButton/styles.tsx"],"names":[],"mappings":"AACA,eAAO,MAAM,kBAAkB,6NAC5B,CAAC"}
|