@m4l/components 9.73.0 → 9.74.0-beta-hotfix-image-button.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 +11 -0
- 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/DynamicForm/DynamicForm.d.ts.map +1 -1
- package/components/DynamicForm/DynamicForm.js +96 -93
- package/components/DynamicForm/DynamicForm.styles.d.ts.map +1 -1
- package/components/DynamicForm/DynamicForm.styles.js +91 -68
- package/components/DynamicForm/constants.d.ts +1 -1
- package/components/DynamicForm/constants.d.ts.map +1 -1
- package/components/DynamicForm/dictionary.d.ts +9 -0
- package/components/DynamicForm/dictionary.d.ts.map +1 -1
- package/components/DynamicForm/dictionary.js +11 -3
- package/components/DynamicForm/helpers/isRenderableDynamicFormField/index.d.ts +2 -0
- package/components/DynamicForm/helpers/isRenderableDynamicFormField/index.d.ts.map +1 -0
- package/components/DynamicForm/helpers/isRenderableDynamicFormField/isRenderableDynamicFormField.d.ts +4 -0
- package/components/DynamicForm/helpers/isRenderableDynamicFormField/isRenderableDynamicFormField.d.ts.map +1 -0
- package/components/DynamicForm/helpers/isRenderableDynamicFormField/isRenderableDynamicFormField.js +8 -0
- package/components/DynamicForm/helpers/resolveEmptyStateLabel/index.d.ts +2 -0
- package/components/DynamicForm/helpers/resolveEmptyStateLabel/index.d.ts.map +1 -0
- package/components/DynamicForm/helpers/resolveEmptyStateLabel/resolveEmptyStateLabel.d.ts +4 -0
- package/components/DynamicForm/helpers/resolveEmptyStateLabel/resolveEmptyStateLabel.d.ts.map +1 -0
- package/components/DynamicForm/helpers/resolveEmptyStateLabel/resolveEmptyStateLabel.js +7 -0
- package/components/DynamicForm/slots/DynamicFormEnum.d.ts +1 -0
- package/components/DynamicForm/slots/DynamicFormEnum.d.ts.map +1 -1
- package/components/DynamicForm/slots/DynamicFormEnum.js +1 -1
- package/components/DynamicForm/slots/DynamicFormSlots.d.ts +3 -0
- package/components/DynamicForm/slots/DynamicFormSlots.d.ts.map +1 -1
- package/components/DynamicForm/slots/DynamicFormSlots.js +43 -39
- package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.d.ts.map +1 -1
- package/components/DynamicForm/subcomponents/DynamicFormContent/DynamicFormContent.js +128 -99
- package/components/DynamicForm/subcomponents/DynamicFormFieldsFlow/DynamicFormFieldsFlow.d.ts.map +1 -1
- package/components/DynamicForm/subcomponents/DynamicFormFieldsFlow/DynamicFormFieldsFlow.js +48 -47
- package/components/DynamicForm/types.d.ts +7 -3
- package/components/DynamicForm/types.d.ts.map +1 -1
- 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 +49 -32
- package/components/Image/slots/ImageSlots.d.ts +3 -0
- package/components/Image/slots/ImageSlots.d.ts.map +1 -1
- package/components/Image/slots/ImageSlots.js +6 -2
- package/components/Image/subcomponents/ImageResource/index.d.ts +6 -0
- package/components/Image/subcomponents/ImageResource/index.d.ts.map +1 -0
- package/components/Image/subcomponents/ImageResource/index.js +24 -0
- package/components/Image/types.d.ts +25 -2
- package/components/Image/types.d.ts.map +1 -1
- package/components/Image/utils/getImageResourceElementProps.d.ts +7 -0
- package/components/Image/utils/getImageResourceElementProps.d.ts.map +1 -0
- package/components/Image/utils/getImageResourceElementProps.js +14 -0
- 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/slots/DataGridSlot.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 +71 -67
- package/components/extended/mui/IconButton/IconButton.styles.d.ts +19 -1
- package/components/extended/mui/IconButton/IconButton.styles.d.ts.map +1 -1
- package/components/extended/mui/IconButton/IconButton.styles.js +226 -154
- package/components/extended/mui/IconButton/types.d.ts +3 -1
- 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 +74 -29
- package/components/extended/mui/ImageButton/styles.d.ts +20 -1
- package/components/extended/mui/ImageButton/styles.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/styles.js +55 -3
- package/components/extended/mui/ImageButton/types.d.ts +22 -2
- package/components/extended/mui/ImageButton/types.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/utils/Clases/index.d.ts +2 -0
- package/components/extended/mui/ImageButton/utils/Clases/index.d.ts.map +1 -1
- package/components/extended/mui/ImageButton/utils/Clases/index.js +20 -11
- package/components/extended/mui/ImageButton/utils/Clases/types.d.ts +6 -0
- 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/package.json +8 -8
- package/components/extended/mui/ImageButton/tests/constants.js +0 -4
|
@@ -1,176 +1,247 @@
|
|
|
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 { getOriginalSvgIconPaintStyles as p } from "@m4l/base";
|
|
2
|
+
import { getSizeStyles as s } from "../../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
|
+
import { getIconButtonColors as b } from "./helpers/getIconButtonColors.js";
|
|
4
|
+
function l(o, a) {
|
|
5
|
+
return o ? a : {};
|
|
6
|
+
}
|
|
7
|
+
function g({ ownerState: o, theme: a }, { includeIconColorStyles: i = !0 } = {}) {
|
|
8
|
+
const r = o?.disabled ? a.vars.palette.default : a.vars.palette[o?.color || "default"], u = o?.originalColor === !0, t = o?.variant !== "text", v = o?.color === "default" ? a.vars.palette.border.default : r.enabled, e = o?.color === "default" ? a.vars.palette.border.default : r.hover, c = o?.color === "default" ? a.vars.palette.primary.active : r.active, n = o?.selected ? c : v;
|
|
9
|
+
return {
|
|
10
|
+
"&&&": {
|
|
11
|
+
// 🔧 Triple & para aumentar la especificidad CSS
|
|
12
|
+
overflow: "hidden",
|
|
13
|
+
cursor: o?.disabled ? "not-allowed" : "pointer",
|
|
14
|
+
color: a.vars.palette.text.primary,
|
|
15
|
+
borderRadius: a.size.borderRadius["r1-5"],
|
|
16
|
+
pointerEvents: o?.disabled ? "none" : "auto",
|
|
17
|
+
display: o?.isSkeleton ? "none" : "flex",
|
|
18
|
+
justifyContent: "center",
|
|
19
|
+
padding: 0,
|
|
20
|
+
// 🖼️ Estilos para el icono dentro del botón
|
|
21
|
+
...l(i, {
|
|
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
|
|
24
33
|
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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,
|
|
34
|
+
...o?.variant === "text" && {
|
|
35
|
+
backgroundColor: r.hoverOpacity
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"&:-webkit-any-link:focus-visible": {
|
|
39
|
+
outline: a.vars.size.borderStroke.container,
|
|
40
|
+
outlineColor: a.vars.palette.default.focusVisible,
|
|
41
|
+
outlineOffset: "-1px"
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* ✅ ESTADO SELECCIONADO
|
|
45
|
+
* Maneja la apariencia cuando el botón está seleccionado (selected=true)
|
|
46
|
+
*/
|
|
47
|
+
...o?.selected === !0 ? {
|
|
48
|
+
// Estilos para la variante contained
|
|
49
|
+
...o?.variant === "contained" && {
|
|
50
|
+
// 🎯 Color de fondo según variante y color del componente
|
|
51
|
+
backgroundColor: o?.variant === "contained" ? o?.color === "error" ? r.active : o?.color === "default" ? a.vars.palette.primary.selected : o?.color === "success" ? a.vars.palette.success.selected : r.selected : o?.color === "error" ? r.activeOpacity : r.selectedOpacity,
|
|
52
|
+
...l(i, {
|
|
51
53
|
"&&& .M4LIcon-icon": {
|
|
52
|
-
backgroundColor: o?.variant === "contained" ?
|
|
54
|
+
backgroundColor: o?.variant === "contained" ? a.vars.palette.primary.contrastText : r.semanticText
|
|
53
55
|
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
})
|
|
57
|
+
},
|
|
58
|
+
// Estilos para la variante text
|
|
59
|
+
...o?.variant === "outline" && {
|
|
60
|
+
backgroundColor: o?.color === "default" ? a.vars.palette.primary.selectedOpacity : r.selectedOpacity,
|
|
61
|
+
border: a.vars.size.borderStroke.actionInput,
|
|
62
|
+
borderColor: o?.color === "default" ? a.vars.palette.primary.active : r.active,
|
|
63
|
+
...l(i, {
|
|
60
64
|
"&&& .M4LIcon-icon": {
|
|
61
|
-
backgroundColor: o
|
|
65
|
+
backgroundColor: o?.color === "default" ? a.vars.palette.primary.semanticText : o?.color === "warning" ? r.active : r.selected
|
|
62
66
|
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
...o?.variant === "text" && {
|
|
70
|
+
backgroundColor: o?.color === "default" ? a.vars.palette.primary.selectedOpacity : r.selectedOpacity,
|
|
71
|
+
...l(i, {
|
|
66
72
|
"&&& .M4LIcon-icon": {
|
|
67
|
-
backgroundColor: o
|
|
73
|
+
backgroundColor: o?.color === "default" ? a.vars.palette.primary.semanticText : o?.color === "warning" ? r.active : r.selected
|
|
68
74
|
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
})
|
|
76
|
+
}
|
|
77
|
+
} : {
|
|
78
|
+
/**
|
|
79
|
+
* 🔄 ESTADO NORMAL (NO SELECCIONADO)
|
|
80
|
+
* Define estilos para los diferentes estados y variantes cuando no está seleccionado
|
|
81
|
+
*/
|
|
82
|
+
/**
|
|
83
|
+
* 📝 VARIANTE TEXT
|
|
84
|
+
* Apariencia base y estados interactivos para la variante text
|
|
85
|
+
*/
|
|
86
|
+
...o?.variant === "text" && {
|
|
87
|
+
...l(i, {
|
|
80
88
|
"&&& .M4LIcon-icon": {
|
|
81
89
|
backgroundColor: r.semanticText
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
90
|
+
}
|
|
91
|
+
}),
|
|
92
|
+
// 🖱️ Estado Hover
|
|
93
|
+
"&:hover": {
|
|
94
|
+
backgroundColor: r.hoverOpacity,
|
|
95
|
+
...l(i, {
|
|
86
96
|
"&&& .M4LIcon-icon": {}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
97
|
+
})
|
|
98
|
+
},
|
|
99
|
+
// 👇 Estado Active
|
|
100
|
+
"&:active": {
|
|
101
|
+
backgroundColor: r.activeOpacity,
|
|
102
|
+
...l(i, {
|
|
91
103
|
"&&& .M4LIcon-icon": {
|
|
92
104
|
backgroundColor: o?.color === "default" ? r.semanticText : r.active
|
|
93
105
|
}
|
|
94
|
-
}
|
|
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}`
|
|
95
120
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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}`,
|
|
121
|
+
// 🖱️ Estado Hover
|
|
122
|
+
"&:hover": {
|
|
123
|
+
background: r.hoverOpacity,
|
|
124
|
+
border: o?.color === "default" ? `1px solid ${a.vars.palette.border.default}` : `1px solid ${r.hover}`,
|
|
125
|
+
...l(i, {
|
|
112
126
|
"&&& .M4LIcon-icon": {}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
127
|
+
})
|
|
128
|
+
},
|
|
129
|
+
// 👇 Estado Active
|
|
130
|
+
"&:active": {
|
|
131
|
+
background: r.activeOpacity,
|
|
132
|
+
border: o?.color === "default" ? `1px solid ${a.vars.palette.border.default}` : `1px solid ${r.active}`,
|
|
133
|
+
...l(i, {
|
|
118
134
|
"&&& .M4LIcon-icon": {
|
|
119
135
|
backgroundColor: o?.color === "default" ? r.semanticText : r.active
|
|
120
136
|
}
|
|
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
|
|
130
|
-
"&&& .M4LIcon-icon": {
|
|
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
|
|
140
|
-
}
|
|
137
|
+
})
|
|
141
138
|
}
|
|
142
139
|
},
|
|
143
140
|
/**
|
|
144
|
-
*
|
|
145
|
-
*
|
|
141
|
+
* 🔵 VARIANTE CONTAINED
|
|
142
|
+
* Apariencia base y estados interactivos para la variante contained
|
|
146
143
|
*/
|
|
147
|
-
...o?.
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
...o?.variant === "contained" && {
|
|
145
|
+
backgroundColor: r.enabled,
|
|
146
|
+
// 🖼️ Color del icono
|
|
147
|
+
...l(i, {
|
|
148
|
+
"&&& .M4LIcon-icon": {
|
|
149
|
+
backgroundColor: o?.color === "default" ? r.semanticText : r.contrastText
|
|
150
|
+
}
|
|
151
|
+
}),
|
|
152
|
+
// 🖱️ Estado Hover
|
|
153
|
+
"&:hover": {
|
|
154
|
+
background: r.hover
|
|
155
|
+
},
|
|
156
|
+
// 👇 Estado Active
|
|
157
|
+
"&:active": {
|
|
158
|
+
background: r.active
|
|
150
159
|
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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": {
|
|
167
196
|
width: "100%",
|
|
168
197
|
height: "100%",
|
|
169
|
-
|
|
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
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"&:active": {
|
|
220
|
+
background: "transparent",
|
|
221
|
+
backgroundColor: "transparent",
|
|
222
|
+
...t && {
|
|
223
|
+
border: `1px solid ${c}`,
|
|
224
|
+
borderColor: c
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"&:focus-visible": {
|
|
228
|
+
outline: a.vars.size.borderStroke.container,
|
|
229
|
+
outlineColor: a.vars.palette.default.focusVisible,
|
|
230
|
+
outlineOffset: "-1px",
|
|
231
|
+
background: "transparent",
|
|
232
|
+
backgroundColor: "transparent"
|
|
170
233
|
}
|
|
171
234
|
}
|
|
172
|
-
}
|
|
173
|
-
|
|
235
|
+
},
|
|
236
|
+
...o?.originalColor && p()
|
|
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,
|
|
174
245
|
/**
|
|
175
246
|
* 🏷️ Estilos para el badge del IconButton
|
|
176
247
|
* Actualmente no implementado, pendiente de documentación en Figma
|
|
@@ -180,15 +251,15 @@ const d = {
|
|
|
180
251
|
* ⌛ Estilos para el estado skeleton del IconButton
|
|
181
252
|
* Aplicados cuando se muestra un esqueleto de carga
|
|
182
253
|
*/
|
|
183
|
-
skeleton: ({ theme: o, ownerState:
|
|
254
|
+
skeleton: ({ theme: o, ownerState: a }) => ({
|
|
184
255
|
"&.M4lclassCssSpecificity": {
|
|
185
|
-
...
|
|
256
|
+
...s(
|
|
186
257
|
o,
|
|
187
|
-
|
|
258
|
+
a?.size || "medium",
|
|
188
259
|
"action",
|
|
189
|
-
(
|
|
190
|
-
width:
|
|
191
|
-
height:
|
|
260
|
+
(i) => ({
|
|
261
|
+
width: i,
|
|
262
|
+
height: i
|
|
192
263
|
})
|
|
193
264
|
)
|
|
194
265
|
}
|
|
@@ -197,15 +268,16 @@ const d = {
|
|
|
197
268
|
* 🎭 Estilos específicos para el icono dentro del IconButton
|
|
198
269
|
* Personaliza el color del icono según el estado del botón
|
|
199
270
|
*/
|
|
200
|
-
icon: ({ theme: o, ownerState:
|
|
201
|
-
const { iconColor:
|
|
271
|
+
icon: ({ theme: o, ownerState: a }) => {
|
|
272
|
+
const { iconColor: i } = b(o, a);
|
|
202
273
|
return {
|
|
203
274
|
'& [class*="M4LIcon-icon"]': {
|
|
204
|
-
backgroundColor:
|
|
275
|
+
backgroundColor: i
|
|
205
276
|
}
|
|
206
277
|
};
|
|
207
278
|
}
|
|
208
279
|
};
|
|
209
280
|
export {
|
|
210
|
-
|
|
281
|
+
g as getIconButtonShellStyles,
|
|
282
|
+
x as iconButtonStyles
|
|
211
283
|
};
|
|
@@ -31,11 +31,13 @@ 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'];
|
|
34
36
|
/** Propiedades para el componente badge */
|
|
35
37
|
badgeProps?: BadgeProps;
|
|
36
38
|
}
|
|
37
39
|
/** Tipo `IconButtonOwnerState` que define los valores que tendrá el ownerState */
|
|
38
|
-
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color'> & {
|
|
40
|
+
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color' | 'originalColor'> & {
|
|
39
41
|
disabled?: boolean;
|
|
40
42
|
isSkeleton: boolean;
|
|
41
43
|
};
|
|
@@ -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;IACnB,oEAAoE;IACpE,aAAa,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;IAE3C,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,GAAG,eAAe,CAAC,GAAG;IACtH,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
|
+
* Render an image source inside an icon button with optional tooltip support.
|
|
4
4
|
*/
|
|
5
|
-
export declare function ImageButton({ src, width, tooltip, sx, className, dataTestId, alt, ...other }: ImageButtonProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function ImageButton({ src, width, tooltip, sx, className, dataTestId, alt, threshold, enableIntersectionObserver, disabled, onClick, size, variant, color, selected, ...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,EAAyB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAQlE;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,KAAK,EACL,OAAO,EACP,EAAE,EACF,SAAS,EACT,UAAU,EACV,GAAG,EACH,SAAS,EACT,0BAA0B,EAC1B,QAAQ,EACR,OAAO,EACP,IAAe,EACf,OAAgB,EAChB,KAAiB,EACjB,QAAgB,EAChB,GAAG,KAAK,EACT,EAAE,gBAAgB,oDA8DlB"}
|
|
@@ -1,41 +1,86 @@
|
|
|
1
1
|
import { jsx as o } from "@emotion/react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import { Image as
|
|
6
|
-
import { WrapperImageButton as
|
|
7
|
-
import { useUtilityClasses as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
2
|
+
import h from "clsx";
|
|
3
|
+
import { useMemo as O } from "react";
|
|
4
|
+
import { Tooltip as w } from "@mui/material";
|
|
5
|
+
import { Image as R } from "../../../Image/Image.js";
|
|
6
|
+
import { StyledMUIImageButton as V, ImageButtonResourceStyled as j, WrapperImageButton as k } from "./styles.js";
|
|
7
|
+
import { useUtilityClasses as v, imageButtonClasses as g } from "./utils/Clases/index.js";
|
|
8
|
+
import { useComponentSize as M } from "../../../../hooks/useComponentSize/index.js";
|
|
9
|
+
import { TEST_PROP_ID as l } from "../../../../test/constants_no_mock.js";
|
|
10
|
+
import { getNameDataTestId as u } from "../../../../test/getNameDataTestId.js";
|
|
11
|
+
import { componentName as a } from "./utils/Clases/constants.js";
|
|
12
|
+
function Q({
|
|
13
|
+
src: d,
|
|
14
|
+
width: P,
|
|
15
|
+
tooltip: S,
|
|
16
|
+
sx: E,
|
|
17
|
+
className: B,
|
|
17
18
|
dataTestId: e,
|
|
18
|
-
alt:
|
|
19
|
-
|
|
19
|
+
alt: x,
|
|
20
|
+
threshold: y,
|
|
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
|
+
..._
|
|
20
29
|
}) {
|
|
21
|
-
const
|
|
22
|
-
|
|
30
|
+
const n = S, s = v(), { currentSize: p } = M(I), f = p === "small" || p === "medium" ? p : "medium", N = O(() => ({
|
|
31
|
+
variant: r,
|
|
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,
|
|
23
39
|
{
|
|
24
|
-
sx:
|
|
25
|
-
...
|
|
26
|
-
|
|
27
|
-
|
|
40
|
+
sx: E,
|
|
41
|
+
..._,
|
|
42
|
+
ownerState: N,
|
|
43
|
+
onClick: t ? void 0 : D,
|
|
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
|
+
)
|
|
28
73
|
}
|
|
29
|
-
),
|
|
74
|
+
), z = n && t ? /* @__PURE__ */ o("span", { style: { display: "inline-flex" }, children: c }) : c;
|
|
30
75
|
return /* @__PURE__ */ o(
|
|
31
|
-
|
|
76
|
+
k,
|
|
32
77
|
{
|
|
33
|
-
className:
|
|
34
|
-
...process.env.NODE_ENV !== "production" ? { [
|
|
35
|
-
children:
|
|
78
|
+
className: h(s.root, B),
|
|
79
|
+
...process.env.NODE_ENV !== "production" ? { [l]: u(a, "root", e) } : {},
|
|
80
|
+
children: n ? /* @__PURE__ */ o(w, { title: n, children: z }) : c
|
|
36
81
|
}
|
|
37
82
|
);
|
|
38
83
|
}
|
|
39
84
|
export {
|
|
40
|
-
|
|
85
|
+
Q as ImageButton
|
|
41
86
|
};
|
|
@@ -1,2 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
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 {};
|
|
2
21
|
//# 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":"AAAA,OAAO,EAA+B,eAAe,IAAI,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAKnG,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAGnE,KAAK,oBAAoB,GAAG,kBAAkB,GAAG;IAC/C,UAAU,EAAE,qBAAqB,CAAC;CACnC,CAAC;AAWF,eAAO,MAAM,iBAAiB,EAAE,iBAmC/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;6NAGL,CAAC;AAE3B;;GAEG;AACH,eAAO,MAAM,oBAAoB,wkLAQhC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB;;iOAGR,CAAC"}
|