@m4l/components 9.2.20 → 9.2.21
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/components/AccountPopover/slots/AccountPopoverSlots.d.ts +1 -1
- package/components/AppBar/slots/AppBarSlots.d.ts +1 -1
- package/components/Chip/Chip.js +0 -1
- package/components/Chip/slots/ChipSlots.d.ts +1 -1
- package/components/Color/Color.js +2 -1
- package/components/Color/slots/ColorSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +2 -2
- package/components/MenuActions/slots/MenuActionsSlots.d.ts +1 -1
- package/components/NumberInput/slots/NumberInputSlots.d.ts +2 -2
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/subcomponents/ArrowIcon/index.js +1 -1
- package/components/ToastContainer/slots/toastContainerSlots.d.ts +2 -2
- package/components/areas/components/AreasAdmin/slots/AreasAdminSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/DateTimePicker/DateTimePicker.d.ts +5 -6
- package/components/mui_extended/DateTimePicker/slots/DateTimePickerSlots.d.ts +1 -1
- package/components/mui_extended/IconButton/IconButton.d.ts +0 -5
- package/components/mui_extended/IconButton/IconButton.js +26 -66
- package/components/mui_extended/IconButton/IconButton.styles.js +101 -27
- package/components/mui_extended/IconButton/constants.d.ts +4 -0
- package/components/mui_extended/IconButton/constants.js +5 -1
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.d.ts +13 -0
- package/components/mui_extended/IconButton/helpers/getIconButtonColors.js +30 -0
- package/components/mui_extended/IconButton/slots/IconButtonEnum.d.ts +2 -1
- package/components/mui_extended/IconButton/slots/IconButtonEnum.js +1 -0
- package/components/mui_extended/IconButton/slots/IconButtonSlots.d.ts +6 -3
- package/components/mui_extended/IconButton/slots/IconButtonSlots.js +7 -1
- package/components/mui_extended/IconButton/types.d.ts +18 -64
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/TimePicker/slots/TimePickerSlots.d.ts +6 -6
- package/components/mui_extended/TimePicker/types.d.ts +2 -2
- package/components/mui_extended/ToggleIconButton/slots/ToggleIconButtonSlots.d.ts +1 -1
- package/package.json +1 -1
- package/storybook/components/extended/mui/IconButton/IconButton.stories.d.ts +2 -16
- /package/components/mui_extended/IconButton/{IconButton.integration.test.d.ts → tests/IconButton.integration.test.d.ts} +0 -0
- /package/components/mui_extended/IconButton/{IconButton.test.d.ts → tests/IconButton.test.d.ts} +0 -0
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
2
|
+
import { g as getIconButtonColors } from "./helpers/getIconButtonColors.js";
|
|
2
3
|
const iconButtonStyles = {
|
|
3
4
|
/**
|
|
4
|
-
*
|
|
5
|
+
* 🔘 Estilos generales para el componente IconButton
|
|
6
|
+
* Define la apariencia base y todos los estados interactivos
|
|
5
7
|
*/
|
|
6
8
|
styledMUIIconButton: ({ ownerState, theme }) => {
|
|
7
|
-
const paletteColor = ownerState.disabled ? theme.vars.palette["default"] :
|
|
9
|
+
const paletteColor = ownerState.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState.color || "default"];
|
|
8
10
|
return {
|
|
9
11
|
"&&&": {
|
|
12
|
+
// 🔧 Triple & para aumentar la especificidad CSS
|
|
10
13
|
overflow: "hidden",
|
|
11
14
|
cursor: ownerState.disabled ? "not-allowed" : "pointer",
|
|
12
15
|
color: theme.vars.palette.text.primary,
|
|
@@ -15,79 +18,137 @@ const iconButtonStyles = {
|
|
|
15
18
|
display: ownerState.isSkeleton ? "none" : "flex",
|
|
16
19
|
justifyContent: "center",
|
|
17
20
|
padding: 0,
|
|
21
|
+
// 🖼️ Estilos para el icono dentro del botón
|
|
18
22
|
"&&& .M4LIcon-icon": {
|
|
19
23
|
backgroundColor: ownerState.variant === "contained" ? paletteColor.contrastText : paletteColor.semanticText
|
|
20
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* ✅ ESTADO SELECCIONADO
|
|
27
|
+
* Maneja la apariencia cuando el botón está seleccionado (selected=true)
|
|
28
|
+
*/
|
|
21
29
|
...ownerState.selected === true ? {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
// 🎯 Color de fondo según variante y color del componente
|
|
31
|
+
backgroundColor: ownerState.variant === "contained" ? ownerState.color === "error" ? paletteColor.active : paletteColor.selected : ownerState.color === "error" ? paletteColor.activeOpacity : paletteColor.selectedOpacity,
|
|
32
|
+
// 🔲 Ajuste de bordes para la variante outline cuando está seleccionado
|
|
33
|
+
...ownerState.variant === "outline" && {
|
|
34
|
+
// Para primary y error, usar borde especial
|
|
35
|
+
...["primary", "error"].includes(ownerState.color || "") && {
|
|
36
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
37
|
+
borderColor: paletteColor.active
|
|
38
|
+
},
|
|
39
|
+
// Para default, usar borde específico solicitado
|
|
40
|
+
...ownerState.color === "default" && {
|
|
41
|
+
border: `1px solid ${theme.vars.palette.border.default}`
|
|
42
|
+
}
|
|
43
|
+
}
|
|
25
44
|
} : {
|
|
26
|
-
|
|
45
|
+
/**
|
|
46
|
+
* 🔄 ESTADO NORMAL (NO SELECCIONADO)
|
|
47
|
+
* Define estilos para los diferentes estados y variantes cuando no está seleccionado
|
|
48
|
+
*/
|
|
49
|
+
/**
|
|
50
|
+
* 📝 VARIANTE TEXT
|
|
51
|
+
* Apariencia base y estados interactivos para la variante text
|
|
52
|
+
*/
|
|
27
53
|
...ownerState.variant === "text" && {
|
|
28
54
|
"&&& .M4LIcon-icon": {
|
|
29
55
|
backgroundColor: paletteColor.semanticText
|
|
30
56
|
},
|
|
57
|
+
// 🖱️ Estado Hover
|
|
31
58
|
"&:hover": {
|
|
32
|
-
backgroundColor: paletteColor.hoverOpacity
|
|
59
|
+
backgroundColor: paletteColor.hoverOpacity,
|
|
60
|
+
"&&& .M4LIcon-icon": {
|
|
61
|
+
backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.hover
|
|
62
|
+
}
|
|
33
63
|
},
|
|
64
|
+
// 👇 Estado Active
|
|
34
65
|
"&:active": {
|
|
35
66
|
backgroundColor: paletteColor.activeOpacity,
|
|
36
67
|
"&&& .M4LIcon-icon": {
|
|
37
|
-
backgroundColor: ownerState.
|
|
68
|
+
backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
|
|
38
69
|
}
|
|
39
70
|
},
|
|
71
|
+
// 🔍 Estado Focus-visible
|
|
40
72
|
"&:focus-visible": {
|
|
41
|
-
|
|
42
|
-
|
|
73
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
74
|
+
borderColor: theme.vars.palette.default.focusVisible,
|
|
43
75
|
"&&& .M4LIcon-icon": {
|
|
44
|
-
backgroundColor: ownerState.
|
|
76
|
+
backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
|
|
45
77
|
}
|
|
46
78
|
}
|
|
47
79
|
},
|
|
48
|
-
|
|
80
|
+
/**
|
|
81
|
+
* ⚪ VARIANTE OUTLINE
|
|
82
|
+
* Apariencia base y estados interactivos para la variante outline
|
|
83
|
+
*/
|
|
49
84
|
...ownerState.variant === "outline" && {
|
|
50
|
-
|
|
85
|
+
// 🖋️ Borde diferente según el color del componente
|
|
86
|
+
...ownerState.color !== "default" && {
|
|
51
87
|
border: `1px solid ${paletteColor.enabled}`
|
|
52
88
|
},
|
|
53
|
-
...ownerState.
|
|
89
|
+
...ownerState.color === "default" && {
|
|
54
90
|
border: `1px solid ${theme.vars.palette.border.default}`
|
|
55
91
|
},
|
|
92
|
+
// 🖱️ Estado Hover
|
|
56
93
|
"&:hover": {
|
|
57
|
-
background: paletteColor.hoverOpacity
|
|
94
|
+
background: paletteColor.hoverOpacity,
|
|
95
|
+
border: `1px solid ${theme.vars.palette.border.default}`,
|
|
96
|
+
"&&& .M4LIcon-icon": {
|
|
97
|
+
backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.hover
|
|
98
|
+
}
|
|
58
99
|
},
|
|
100
|
+
// 🔍 Estado Focus-visible
|
|
101
|
+
"&:focus-visible": {
|
|
102
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
103
|
+
borderColor: theme.vars.palette.default.focusVisible
|
|
104
|
+
},
|
|
105
|
+
// 👇 Estado Active
|
|
59
106
|
"&:active": {
|
|
60
107
|
background: paletteColor.activeOpacity,
|
|
61
|
-
border: `1px solid ${
|
|
108
|
+
border: `1px solid ${theme.vars.palette.border.default}`,
|
|
62
109
|
"&&& .M4LIcon-icon": {
|
|
63
|
-
backgroundColor: ownerState.
|
|
110
|
+
backgroundColor: ownerState.color === "default" ? paletteColor.semanticText : paletteColor.active
|
|
64
111
|
}
|
|
65
112
|
}
|
|
66
113
|
},
|
|
67
|
-
|
|
114
|
+
/**
|
|
115
|
+
* 🔵 VARIANTE CONTAINED
|
|
116
|
+
* Apariencia base y estados interactivos para la variante contained
|
|
117
|
+
*/
|
|
68
118
|
...ownerState.variant === "contained" && {
|
|
69
119
|
backgroundColor: paletteColor.enabled,
|
|
70
|
-
//Color del icono
|
|
120
|
+
// 🖼️ Color del icono
|
|
71
121
|
"&&& .M4LIcon-icon": {
|
|
72
122
|
backgroundColor: paletteColor.contrastText
|
|
73
123
|
},
|
|
74
|
-
//Estado Hover
|
|
124
|
+
// 🖱️ Estado Hover
|
|
75
125
|
"&:hover": {
|
|
76
126
|
background: paletteColor.hover
|
|
77
127
|
},
|
|
78
|
-
//Estado Active
|
|
128
|
+
// 👇 Estado Active
|
|
79
129
|
"&:active": {
|
|
80
130
|
background: paletteColor.active
|
|
131
|
+
},
|
|
132
|
+
// 🔍 Estado Focus-visible
|
|
133
|
+
"&:focus-visible": {
|
|
134
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
135
|
+
borderColor: theme.vars.palette.default.focusVisible
|
|
81
136
|
}
|
|
82
137
|
}
|
|
83
138
|
},
|
|
84
|
-
|
|
139
|
+
/**
|
|
140
|
+
* 🚫 ESTADO DISABLED
|
|
141
|
+
* Estilos específicos para cuando el botón está deshabilitado
|
|
142
|
+
*/
|
|
85
143
|
...ownerState.disabled === true && {
|
|
86
144
|
"&&& .M4LIcon-icon": {
|
|
87
145
|
color: theme.vars.palette.text.disabled
|
|
88
146
|
}
|
|
89
147
|
},
|
|
90
|
-
|
|
148
|
+
/**
|
|
149
|
+
* 📏 TAMAÑOS DEL COMPONENTE
|
|
150
|
+
* Aplica dimensiones según el tamaño especificado (small, medium, large)
|
|
151
|
+
*/
|
|
91
152
|
...getSizeStyles(
|
|
92
153
|
theme,
|
|
93
154
|
ownerState.size || "medium",
|
|
@@ -103,15 +164,16 @@ const iconButtonStyles = {
|
|
|
103
164
|
};
|
|
104
165
|
},
|
|
105
166
|
/**
|
|
106
|
-
*
|
|
167
|
+
* 🏷️ Estilos para el badge del IconButton
|
|
168
|
+
* Actualmente no implementado, pendiente de documentación en Figma
|
|
107
169
|
*/
|
|
108
170
|
badgeIconButton: {},
|
|
109
171
|
/**
|
|
110
|
-
*
|
|
172
|
+
* ⌛ Estilos para el estado skeleton del IconButton
|
|
173
|
+
* Aplicados cuando se muestra un esqueleto de carga
|
|
111
174
|
*/
|
|
112
175
|
skeleton: ({ theme, ownerState }) => ({
|
|
113
176
|
"&.M4lclassCssSpecificity": {
|
|
114
|
-
// condiciones de tamaño Small
|
|
115
177
|
...getSizeStyles(
|
|
116
178
|
theme,
|
|
117
179
|
ownerState.size || "medium",
|
|
@@ -124,7 +186,19 @@ const iconButtonStyles = {
|
|
|
124
186
|
}
|
|
125
187
|
)
|
|
126
188
|
}
|
|
127
|
-
})
|
|
189
|
+
}),
|
|
190
|
+
/**
|
|
191
|
+
* 🎭 Estilos específicos para el icono dentro del IconButton
|
|
192
|
+
* Personaliza el color del icono según el estado del botón
|
|
193
|
+
*/
|
|
194
|
+
icon: ({ theme, ownerState }) => {
|
|
195
|
+
const { iconColor } = getIconButtonColors(theme, ownerState);
|
|
196
|
+
return {
|
|
197
|
+
'& [class*="M4LIcon-icon"]': {
|
|
198
|
+
backgroundColor: iconColor
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
}
|
|
128
202
|
};
|
|
129
203
|
export {
|
|
130
204
|
iconButtonStyles as i
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { I as IconButtonSlots } from "./slots/IconButtonEnum.js";
|
|
1
3
|
const ICON_BUTTON_KEY_COMPONENT = "M4LIconButton";
|
|
4
|
+
const ICON_BUTTON_CLASSES = getComponentClasses(ICON_BUTTON_KEY_COMPONENT, IconButtonSlots);
|
|
2
5
|
export {
|
|
3
|
-
|
|
6
|
+
ICON_BUTTON_CLASSES as I,
|
|
7
|
+
ICON_BUTTON_KEY_COMPONENT as a
|
|
4
8
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Theme } from '@mui/material/styles';
|
|
2
|
+
import { IconButtonOwnerState } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Obtiene los colores del icon button
|
|
5
|
+
*/
|
|
6
|
+
export declare const getIconButtonColors: (theme: Theme, ownerState: Partial<IconButtonOwnerState>) => {
|
|
7
|
+
bgColor: string;
|
|
8
|
+
bgColorHover: string;
|
|
9
|
+
bgColorActive: string;
|
|
10
|
+
iconColor: string;
|
|
11
|
+
borderColor: string;
|
|
12
|
+
bgFocusVisible: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
const getIconButtonColors = (theme, ownerState) => {
|
|
2
|
+
const paletteColor = ownerState.disabled ? theme.vars.palette["default"] : theme.vars.palette[ownerState.color || "default"];
|
|
3
|
+
const isSelected = ownerState.disabled ? false : ownerState.selected;
|
|
4
|
+
let bgColor = paletteColor.enabled;
|
|
5
|
+
let bgColorHover = paletteColor.hoverOpacity;
|
|
6
|
+
let bgColorActive = paletteColor.activeOpacity;
|
|
7
|
+
let iconColor = paletteColor.semanticText;
|
|
8
|
+
const borderColor = paletteColor.enabled;
|
|
9
|
+
if (ownerState.variant === "contained") {
|
|
10
|
+
if (isSelected) {
|
|
11
|
+
bgColor = paletteColor.selected;
|
|
12
|
+
}
|
|
13
|
+
bgColorHover = paletteColor.hover;
|
|
14
|
+
bgColorActive = paletteColor.active;
|
|
15
|
+
iconColor = paletteColor.contrastText;
|
|
16
|
+
} else {
|
|
17
|
+
if (isSelected) {
|
|
18
|
+
bgColor = paletteColor.selectedOpacity;
|
|
19
|
+
} else {
|
|
20
|
+
bgColor = "unset";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (ownerState.disabled) {
|
|
24
|
+
iconColor = theme.vars.palette.text.disabled;
|
|
25
|
+
}
|
|
26
|
+
return { bgColor, bgColorHover, bgColorActive, iconColor, borderColor, bgFocusVisible: paletteColor.focusVisible };
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
getIconButtonColors as g
|
|
30
|
+
};
|
|
@@ -2,6 +2,7 @@ var IconButtonSlots = /* @__PURE__ */ ((IconButtonSlots2) => {
|
|
|
2
2
|
IconButtonSlots2["styledMUIIconButton"] = "styledMUIIconButton";
|
|
3
3
|
IconButtonSlots2["badgeIconButton"] = "badgeIconButton";
|
|
4
4
|
IconButtonSlots2["skeleton"] = "skeleton";
|
|
5
|
+
IconButtonSlots2["icon"] = "icon";
|
|
5
6
|
return IconButtonSlots2;
|
|
6
7
|
})(IconButtonSlots || {});
|
|
7
8
|
export {
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export declare const StyledMUIIconButton: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').IconButtonOwnProps & 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
|
-
}, "size" | "children" | "disabled" | "action" | "color" | "style" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "value" | "size" | "children" | "ref" | "title" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "classes" | "sx" | "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" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
3
|
+
}, "size" | "children" | "disabled" | "action" | "color" | "style" | "className" | "classes" | "sx" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge">, "value" | "size" | "children" | "ref" | "title" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "translate" | "className" | "classes" | "sx" | "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" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
4
4
|
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').BadgeOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
7
7
|
ref?: ((instance: HTMLSpanElement | 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<HTMLSpanElement> | null | undefined;
|
|
8
|
-
}, "children" | "components" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "slots" | "slotProps" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "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" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
8
|
+
}, "children" | "components" | "color" | "style" | "variant" | "className" | "classes" | "sx" | "slots" | "slotProps" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero">, "children" | "ref" | "title" | "id" | "components" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "slots" | "slotProps" | "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" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "badgeContent" | "anchorOrigin" | "invisible" | "max" | "overlap" | "showZero"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
9
9
|
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
10
10
|
}, {}, {}>;
|
|
11
|
-
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> &
|
|
11
|
+
export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
12
|
+
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
12
15
|
ownerState: Partial<import('../types').IconButtonOwnerState> & Record<string, unknown>;
|
|
13
16
|
}, {}, {}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { IconButton, Badge } from "@mui/material";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { i as iconButtonStyles } from "../IconButton.styles.js";
|
|
4
|
-
import {
|
|
4
|
+
import { a as ICON_BUTTON_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { I as IconButtonSlots } from "./IconButtonEnum.js";
|
|
6
6
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
8
|
const StyledMUIIconButton = styled(IconButton, {
|
|
8
9
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
9
10
|
slot: IconButtonSlots.styledMUIIconButton
|
|
@@ -16,8 +17,13 @@ const SkeletonStyled = styled(Skeleton, {
|
|
|
16
17
|
name: ICON_BUTTON_KEY_COMPONENT,
|
|
17
18
|
slot: IconButtonSlots.skeleton
|
|
18
19
|
})(iconButtonStyles?.skeleton);
|
|
20
|
+
const IconStyled = styled(Icon, {
|
|
21
|
+
name: ICON_BUTTON_KEY_COMPONENT,
|
|
22
|
+
slot: IconButtonSlots.icon
|
|
23
|
+
})(iconButtonStyles?.icon);
|
|
19
24
|
export {
|
|
20
25
|
BadgeStyled as B,
|
|
26
|
+
IconStyled as I,
|
|
21
27
|
SkeletonStyled as S,
|
|
22
28
|
StyledMUIIconButton as a
|
|
23
29
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
2
1
|
import { Theme } from '@mui/material/styles';
|
|
3
2
|
import { IconProps } from '../../Icon/types';
|
|
4
3
|
import { IconButtonProps as MUIIconButtonProps } from '@mui/material';
|
|
@@ -8,42 +7,17 @@ import { IconButtonSlots } from './slots';
|
|
|
8
7
|
import { BadgeProps } from '../Badge';
|
|
9
8
|
import { TooltipProps } from '../../mui_extended/Tooltip/types';
|
|
10
9
|
import { ReactNode } from 'react';
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
10
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
11
|
+
/** Tipo `IconButtonVariants` para definir sus variantes */
|
|
14
12
|
export type IconButtonVariants = 'contained' | 'outline' | 'text';
|
|
15
|
-
/**
|
|
16
|
-
* Tipo `IconButtonSize` para definir sus tamaños
|
|
17
|
-
*/
|
|
13
|
+
/** Tipo `IconButtonSize` para definir sus tamaños */
|
|
18
14
|
export type IconButtonSize = 'small' | 'medium';
|
|
19
|
-
/**
|
|
20
|
-
* Props for the IconButton component.
|
|
21
|
-
* Omit<IconProps, 'size' | 'color'>
|
|
22
|
-
* Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled'>
|
|
23
|
-
* Pick<BadgeProps, 'badgeContent'>
|
|
24
|
-
* Pick<TooltipProps, 'placement'>
|
|
25
|
-
* [tooltip] - The text to display in the tooltip.
|
|
26
|
-
* [dictionaryTooltipId] - The ID for the dictionary tooltip.
|
|
27
|
-
* [variant] - The variant of the IconButton.
|
|
28
|
-
* [size] - The size of the IconButton.
|
|
29
|
-
* [withBadge] - Whether the IconButton includes a badge.
|
|
30
|
-
* [tooltipContent] - The content to display in the tooltip.
|
|
31
|
-
* [componentPaletteColor] - The color palette for the component.
|
|
32
|
-
* [disabled] - Whether the IconButton is disabled.
|
|
33
|
-
* [instaceDataTestId] - A unique identifier for the HTML element, useful for unit and integration testing.
|
|
34
|
-
*/
|
|
35
15
|
export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src' | 'selected' | 'enabledSelected'>, Omit<MUIIconButtonProps, 'size' | 'color' | 'disabled' | 'src'>, Pick<BadgeProps, 'badgeContent'>, Pick<TooltipProps, 'placement'> {
|
|
36
|
-
/**
|
|
37
|
-
* Define el uso de tooltip en IconButton
|
|
38
|
-
*/
|
|
16
|
+
/** Define el uso de tooltip en IconButton */
|
|
39
17
|
tooltip?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Representa la identificación del tooltip en el diccionario para que designe internamente el getLabel
|
|
42
|
-
*/
|
|
18
|
+
/** Representa la identificación del tooltip en el diccionario para que designe internamente el getLabel */
|
|
43
19
|
dictionaryTooltipId?: string;
|
|
44
|
-
/**
|
|
45
|
-
* Variante del componente , modifica la aparencia grafica
|
|
46
|
-
*/
|
|
20
|
+
/** Variante del componente, modifica la apariencia gráfica */
|
|
47
21
|
variant?: IconButtonVariants;
|
|
48
22
|
/**
|
|
49
23
|
* Define el tamaño del componente
|
|
@@ -53,45 +27,25 @@ export interface IconButtonProps extends Omit<IconProps, 'size' | 'color' | 'src
|
|
|
53
27
|
* Define el mensaje interno del tooltip
|
|
54
28
|
*/
|
|
55
29
|
tooltipContent?: ReactNode;
|
|
56
|
-
/**
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
componentPaletteColor?: ComponentPalletColor;
|
|
60
|
-
/**
|
|
61
|
-
* Representa si el componente se encuentra deshabilitado
|
|
62
|
-
*/
|
|
30
|
+
/** Opciones de color del componente */
|
|
31
|
+
color?: Extract<ComponentPalletColor, 'primary' | 'default' | 'error'>;
|
|
32
|
+
/** Representa si el componente se encuentra deshabilitado */
|
|
63
33
|
disabled?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación.
|
|
66
|
-
* Es útil para realizar pruebas unitarias y de integración.
|
|
67
|
-
*/
|
|
34
|
+
/** Propiedad que sirve para complementar el nombre del data-testid, aporta un identificador único del elemento html en toda aplicación. Es útil para realizar pruebas unitarias y de integración. */
|
|
68
35
|
instaceDataTestId?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Propiedad que sirve para cambiar al modo seleccionado
|
|
71
|
-
*/
|
|
36
|
+
/** Propiedad que sirve para cambiar al modo seleccionado */
|
|
72
37
|
selected?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* Propiedad vara renderizar el icon
|
|
75
|
-
*/
|
|
38
|
+
/** Propiedad para renderizar el icon */
|
|
76
39
|
icon?: ReactNode;
|
|
77
|
-
/**
|
|
78
|
-
* (Deprecada) URL del icono.
|
|
79
|
-
* @deprecated Usa la prop `icon` en su lugar para renderizar un ReactNode o string.
|
|
80
|
-
*/
|
|
40
|
+
/** URL del icono */
|
|
81
41
|
src?: string;
|
|
82
42
|
}
|
|
83
|
-
/**
|
|
84
|
-
|
|
85
|
-
*/
|
|
86
|
-
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'componentPaletteColor' | 'selected'> & {
|
|
43
|
+
/** Tipo `IconButtonOwnerState` que define los valores que tendrá el ownerState */
|
|
44
|
+
export type IconButtonOwnerState = Pick<IconButtonProps, 'size' | 'variant' | 'selected' | 'color'> & {
|
|
87
45
|
disabled?: boolean;
|
|
88
46
|
isSkeleton: boolean;
|
|
89
47
|
};
|
|
90
|
-
/**
|
|
91
|
-
* Tipo `IconButtonSlotsType` que tiene los slots de `IconButtonSlots`
|
|
92
|
-
*/
|
|
48
|
+
/** Tipo `IconButtonSlotsType` que tiene los slots de `IconButtonSlots` */
|
|
93
49
|
export type IconButtonSlotsType = keyof typeof IconButtonSlots;
|
|
94
|
-
/**
|
|
95
|
-
|
|
96
|
-
*/
|
|
97
|
-
export type IconButtonStyles = OverridesStyleRules<IconButtonSlotsType, typeof ICON_BUTTON_KEY_COMPONENT, Theme>;
|
|
50
|
+
/** Tipo `IconButtonStyles` que tiene un overrides de los estilos del tema */
|
|
51
|
+
export type IconButtonStyles = M4LOverridesStyleRules<IconButtonSlotsType, typeof ICON_BUTTON_KEY_COMPONENT, Theme>;
|
|
@@ -24,7 +24,7 @@ export declare const SkeletonSelectStyled: import('@emotion/styled').StyledCompo
|
|
|
24
24
|
export declare const RenderValueContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
25
25
|
ownerState: any;
|
|
26
26
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
27
|
-
export declare const ArrowDownStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "
|
|
27
|
+
export declare const ArrowDownStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "slot" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
28
28
|
ownerState: any;
|
|
29
29
|
}, {}, {}>;
|
|
30
30
|
export declare const RenderValueTypography: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|