@m4l/components 8.2.0-beta.devDaniel.MenuActionsBug → 8.2.0-beta.devDaniel.Tab
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/export.d.ts +3 -3
- package/@types/types.d.ts +12 -1
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/DataGrid/subcomponents/Actions/subcomponents/Density/index.js +3 -3
- package/components/DataGrid/subcomponents/Actions/subcomponents/MobileMenuActions/index.js +10 -10
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
- package/components/areas/components/AreasViewer/classes/index.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/helper.js +3 -3
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/subcomponents/Header/subcomponents/MainActions/index.js +3 -3
- package/components/extended/react-resizable/Resizable/slots/ResizableSlots.d.ts +1 -1
- package/components/extended/react-resizable/ResizableBox/slots/ResizableBoxSlots.d.ts +1 -1
- package/components/hook-form/RHFAutocomplete/subcomponents/ComponentTypeImage/index.js +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/hooks/useRowActionsGetter.js +5 -5
- package/components/modal/classes/index.d.ts +2 -2
- package/components/mui_extended/MenuActions/MenuActions.d.ts +1 -8
- package/components/mui_extended/MenuActions/MenuActions.js +77 -55
- package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +25 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +0 -4
- package/components/mui_extended/MenuActions/MenuActions.styles.js +38 -11
- package/components/mui_extended/MenuActions/constants.d.ts +0 -17
- package/components/mui_extended/MenuActions/constants.js +2 -6
- package/components/mui_extended/MenuActions/dictionary.d.ts +0 -15
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +5 -8
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +4 -1
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +16 -29
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +33 -16
- package/components/mui_extended/MenuActions/types.d.ts +18 -80
- package/components/mui_extended/Pager/classes/index.d.ts +1 -1
- package/components/mui_extended/Select/slots/SelectSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Slots/TabEnum.d.ts +9 -0
- package/components/mui_extended/Tab/Slots/TabEnum.js +9 -0
- package/components/mui_extended/Tab/Slots/TabSlots.d.ts +26 -0
- package/components/mui_extended/Tab/Slots/TabSlots.js +24 -0
- package/components/mui_extended/Tab/Slots/index.d.ts +2 -0
- package/components/mui_extended/Tab/Tab.d.ts +5 -0
- package/components/mui_extended/Tab/Tab.js +67 -0
- package/components/mui_extended/Tab/Tab.styles.d.ts +5 -0
- package/components/mui_extended/Tab/Tab.styles.js +147 -0
- package/components/mui_extended/Tab/constants.d.ts +14 -0
- package/components/mui_extended/Tab/constants.js +10 -0
- package/components/mui_extended/Tab/index.d.ts +1 -5
- package/components/mui_extended/Tab/types.d.ts +53 -2
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
- package/components/mui_extended/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/storybook/components/extended/mui/Tab/stories/Tab.disable.stories.d.ts +36 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.enable.stories.d.ts +36 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.sizes.stories.d.ts +28 -0
- package/storybook/components/extended/mui/Tab/stories/Tab.skeleton.stories.d.ts +32 -0
- package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +0 -25
- package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +0 -13
- package/components/mui_extended/MenuItem/MenuItem.js +0 -66
- package/components/mui_extended/MenuItem/MenuItem.styles.js +0 -111
- package/components/mui_extended/MenuItem/constants.js +0 -4
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +0 -9
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +0 -24
- package/components/mui_extended/MenuItem/types.js +0 -1
- package/components/mui_extended/Tab/classes/constants.d.ts +0 -1
- package/components/mui_extended/Tab/classes/constants.js +0 -4
- package/components/mui_extended/Tab/classes/index.d.ts +0 -10
- package/components/mui_extended/Tab/classes/index.js +0 -25
- package/components/mui_extended/Tab/classes/types.d.ts +0 -7
- package/components/mui_extended/Tab/constant.d.ts +0 -1
- package/components/mui_extended/Tab/constant.js +0 -4
- package/components/mui_extended/Tab/index.js +0 -40
- package/components/mui_extended/Tab/styles.d.ts +0 -2
- package/components/mui_extended/Tab/styles.js +0 -11
- package/components/mui_extended/Tab/tests/index.test.d.ts +0 -1
- package/components/mui_extended/Tab/tests/utils.d.ts +0 -2
- /package/components/mui_extended/{MenuItem → Tab/Slots}/index.js +0 -0
|
@@ -1,22 +1,49 @@
|
|
|
1
|
+
const CONTAINER_QUERY_NAME = "menuActions";
|
|
1
2
|
const menuActionsStyles = {
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* TODO: Documentar
|
|
4
5
|
*/
|
|
5
|
-
root: () => ({
|
|
6
|
-
|
|
6
|
+
root: ({ theme }) => ({
|
|
7
|
+
containerName: CONTAINER_QUERY_NAME,
|
|
8
|
+
"& .MuiPaper-root": {
|
|
9
|
+
display: "flex",
|
|
10
|
+
flexDirection: "column",
|
|
11
|
+
background: theme.palette.background.default,
|
|
12
|
+
gap: "8px",
|
|
13
|
+
maxWidth: 300
|
|
14
|
+
}
|
|
7
15
|
}),
|
|
8
|
-
|
|
9
|
-
* Estilos para el Popover
|
|
10
|
-
*/
|
|
11
|
-
popover: {},
|
|
16
|
+
badge: {},
|
|
12
17
|
/**
|
|
13
|
-
*
|
|
18
|
+
* TODO: Documentar
|
|
14
19
|
*/
|
|
15
|
-
|
|
20
|
+
menuItem: ({ theme, ownerState }) => ({
|
|
21
|
+
display: "flex",
|
|
22
|
+
justifyContent: "center",
|
|
23
|
+
minHeight: "24px",
|
|
24
|
+
minWidth: "24px",
|
|
25
|
+
padding: "0",
|
|
26
|
+
gap: "0px",
|
|
27
|
+
...ownerState.variant === "delete" ? {
|
|
28
|
+
color: theme.palette.error.main
|
|
29
|
+
} : {}
|
|
30
|
+
}),
|
|
31
|
+
menuItemLabel: {},
|
|
16
32
|
/**
|
|
17
|
-
*
|
|
33
|
+
* TODO: Documentar
|
|
18
34
|
*/
|
|
19
|
-
|
|
35
|
+
menuItemIcon: ({ theme, ownerState }) => ({
|
|
36
|
+
"&.M4LIcon-root": {
|
|
37
|
+
minHeight: "24px",
|
|
38
|
+
minWidth: "24px",
|
|
39
|
+
"& > .M4LIcon-icon": {
|
|
40
|
+
backgroundColor: ownerState.variant === "delete" ? theme.palette.error.main : ""
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}),
|
|
44
|
+
labelEmpty: () => ({
|
|
45
|
+
zIndex: 1
|
|
46
|
+
})
|
|
20
47
|
};
|
|
21
48
|
export {
|
|
22
49
|
menuActionsStyles as m
|
|
@@ -1,22 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ruta donde se encuentran los íconos en los assets.
|
|
3
|
-
*/
|
|
4
1
|
export declare const ICON_PATH = "frontend/components/menu_actions/assets/icons";
|
|
5
|
-
/**
|
|
6
|
-
* Íconos utilizados en el menú por defecto.
|
|
7
|
-
*/
|
|
8
2
|
export declare const ICONS: {
|
|
9
3
|
MENU: string;
|
|
10
4
|
};
|
|
11
|
-
/**
|
|
12
|
-
* Nombre clave del componente `MenuActions` dentro de la aplicación.
|
|
13
|
-
*/
|
|
14
5
|
export declare const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
|
|
15
|
-
/**
|
|
16
|
-
* Constante que define la clave cuando un ítem del menú está vacío.
|
|
17
|
-
*/
|
|
18
|
-
export declare const MENU_ACTIONS_EMPTY = "menu_action_empty";
|
|
19
|
-
/**
|
|
20
|
-
* Prefijo de la clave que se utiliza cuando un ítem del menú está cargando en React.
|
|
21
|
-
*/
|
|
22
|
-
export declare const MENU_ACTIONS_ = "menu_action_";
|
|
@@ -3,12 +3,8 @@ const ICONS = {
|
|
|
3
3
|
MENU: "menu.svg"
|
|
4
4
|
};
|
|
5
5
|
const MENU_ACTIONS_KEY_COMPONENT = "M4LMenuActions";
|
|
6
|
-
const MENU_ACTIONS_EMPTY = "menu_action_empty";
|
|
7
|
-
const MENU_ACTIONS_ = "menu_action_";
|
|
8
6
|
export {
|
|
9
7
|
ICON_PATH as I,
|
|
10
|
-
|
|
11
|
-
ICONS as a
|
|
12
|
-
MENU_ACTIONS_EMPTY as b,
|
|
13
|
-
MENU_ACTIONS_KEY_COMPONENT as c
|
|
8
|
+
MENU_ACTIONS_KEY_COMPONENT as M,
|
|
9
|
+
ICONS as a
|
|
14
10
|
};
|
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Identificador clave utilizado para el diccionario de `MenuActions`.
|
|
3
|
-
*/
|
|
4
1
|
export declare const MENU_ACTIONS_DICTIONARY_ID = "menu_actions";
|
|
5
|
-
/**
|
|
6
|
-
* Devuelve un array que contiene el identificador del diccionario de `MenuActions`.
|
|
7
|
-
*/
|
|
8
2
|
export declare function getMenuActionsComponentsDictionary(): string[];
|
|
9
|
-
/**
|
|
10
|
-
* Diccionario de claves para las etiquetas y textos utilizados en el componente `MenuActions`.
|
|
11
|
-
*/
|
|
12
3
|
export declare const DICTIONARY: {
|
|
13
4
|
readonly no_actions_label: "no_actions_label";
|
|
14
5
|
};
|
|
15
|
-
/**
|
|
16
|
-
* Tipo que representa las claves del diccionario de `MenuActions`.
|
|
17
|
-
*/
|
|
18
6
|
export type TypeDictionary = typeof DICTIONARY;
|
|
19
|
-
/**
|
|
20
|
-
* Función que obtiene el valor completo de una clave del diccionario de `MenuActions` utilizando su identificador.
|
|
21
|
-
*/
|
|
22
7
|
export declare const getMenuActionsDictionary: (key: keyof TypeDictionary) => string;
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Enum `MenuActionsSlots`
|
|
3
|
-
*
|
|
4
|
-
* Define los nombres de los slots de estilo para el componente `MenuActions`. Estos slots se utilizan para
|
|
5
|
-
* aplicar estilos específicos y crear clases CSS únicas para los distintos elementos del componente.
|
|
6
|
-
*/
|
|
7
1
|
export declare enum MenuActionsSlots {
|
|
8
2
|
root = "root",
|
|
9
|
-
|
|
3
|
+
badge = "badge",
|
|
10
4
|
iconButton = "iconButton",
|
|
11
|
-
menuItem = "menuItem"
|
|
5
|
+
menuItem = "menuItem",
|
|
6
|
+
menuItemIcon = "menuItemIcon",
|
|
7
|
+
menuItemLabel = "menuItemLabel",
|
|
8
|
+
labelEmpty = "labelEmpty"
|
|
12
9
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
var MenuActionsSlots = /* @__PURE__ */ ((MenuActionsSlots2) => {
|
|
2
2
|
MenuActionsSlots2["root"] = "root";
|
|
3
|
-
MenuActionsSlots2["
|
|
3
|
+
MenuActionsSlots2["badge"] = "badge";
|
|
4
4
|
MenuActionsSlots2["iconButton"] = "iconButton";
|
|
5
5
|
MenuActionsSlots2["menuItem"] = "menuItem";
|
|
6
|
+
MenuActionsSlots2["menuItemIcon"] = "menuItemIcon";
|
|
7
|
+
MenuActionsSlots2["menuItemLabel"] = "menuItemLabel";
|
|
8
|
+
MenuActionsSlots2["labelEmpty"] = "labelEmpty";
|
|
6
9
|
return MenuActionsSlots2;
|
|
7
10
|
})(MenuActionsSlots || {});
|
|
8
11
|
export {
|
|
@@ -1,36 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
* Componente raíz estilizado para `MenuActions`, basado en el componente `Popover`.
|
|
3
|
-
*
|
|
4
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al contenedor principal (`Popover`)
|
|
5
|
-
* de `MenuActions`. Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
6
|
-
*/
|
|
7
|
-
export declare const RootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
1
|
+
export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../IconButton/types').IconButtonProps, keyof import('../../IconButton/types').IconButtonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
8
2
|
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
9
|
-
},
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* de `MenuActions`. Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
15
|
-
*/
|
|
16
|
-
export declare const PopoverStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Popover/types').PopoverProps, keyof import('../../Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
3
|
+
}, {}, {}>;
|
|
4
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Popover/types').PopoverProps, keyof import('../../Popover/types').PopoverProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
export declare const BadgeStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Badge').BadgeProps, keyof import('../../Badge').BadgeProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
17
8
|
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
18
9
|
}, {}, {}>;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
* Utiliza el sistema de estilos de Material-UI para aplicar estilos personalizados al botón de icono.
|
|
23
|
-
* Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
24
|
-
*/
|
|
25
|
-
export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../IconButton/types').IconButtonProps, keyof import('../../IconButton/types').IconButtonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
10
|
+
export declare const MenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLLIElement | 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<HTMLLIElement> | null | undefined;
|
|
12
|
+
}, "children" | "action" | "divider" | "style" | "dense" | "disabled" | "sx" | "classes" | "autoFocus" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "selected" | "disableGutters">, "children" | "value" | "ref" | "title" | "id" | "action" | "divider" | "hidden" | "color" | "content" | "style" | "dense" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "key" | "selected" | "disableGutters"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
26
13
|
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
27
14
|
}, {}, {}>;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* Si no se proporcionan estilos, se utiliza un objeto vacío como valor predeterminado.
|
|
33
|
-
*/
|
|
34
|
-
export declare const MenuItemStyled: import('@emotion/styled').StyledComponent<Pick<import('../../MenuItem').MenuItemProps, keyof import('../../MenuItem').MenuItemProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
15
|
+
export declare const LabelMenuItemStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
16
|
+
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
17
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
18
|
+
export declare const IconButtonUrlStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
35
19
|
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
36
20
|
}, {}, {}>;
|
|
21
|
+
export declare const LabelEmptyStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown> & {
|
|
22
|
+
ownerState: Partial<import('../types').MenuActionsOwnerState> & Record<string, unknown>;
|
|
23
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,29 +1,46 @@
|
|
|
1
1
|
import { styled } from "@mui/material/styles";
|
|
2
|
-
import {
|
|
2
|
+
import { MenuItem } from "@mui/material";
|
|
3
|
+
import { M as MENU_ACTIONS_KEY_COMPONENT } from "../constants.js";
|
|
3
4
|
import { m as menuActionsStyles } from "../MenuActions.styles.js";
|
|
4
5
|
import { M as MenuActionsSlots } from "./MenuActionsEnum.js";
|
|
5
|
-
import { P as Popover } from "../../Popover/Popover.js";
|
|
6
6
|
import { I as IconButton } from "../../IconButton/IconButton.js";
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
slot: MenuActionsSlots.root
|
|
11
|
-
})(menuActionsStyles?.root);
|
|
12
|
-
const PopoverStyled = styled(Popover, {
|
|
13
|
-
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
14
|
-
slot: MenuActionsSlots.popover
|
|
15
|
-
})(menuActionsStyles?.popover);
|
|
7
|
+
import { P as Popover } from "../../Popover/Popover.js";
|
|
8
|
+
import { B as Badge } from "../../Badge/Badge.js";
|
|
9
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
16
10
|
const IconButtonStyled = styled(IconButton, {
|
|
17
11
|
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
18
12
|
slot: MenuActionsSlots.iconButton
|
|
19
|
-
})(menuActionsStyles?.iconButton);
|
|
13
|
+
})(menuActionsStyles?.iconButton || {});
|
|
14
|
+
const RootStyled = styled(Popover, {
|
|
15
|
+
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
16
|
+
slot: MenuActionsSlots.root
|
|
17
|
+
})(menuActionsStyles?.root || {});
|
|
18
|
+
const BadgeStyled = styled(Badge, {
|
|
19
|
+
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
20
|
+
slot: MenuActionsSlots.badge
|
|
21
|
+
})(menuActionsStyles?.badge || {});
|
|
20
22
|
const MenuItemStyled = styled(MenuItem, {
|
|
21
23
|
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
22
24
|
slot: MenuActionsSlots.menuItem
|
|
23
|
-
})(menuActionsStyles?.menuItem);
|
|
25
|
+
})(menuActionsStyles?.menuItem || {});
|
|
26
|
+
const LabelMenuItemStyled = styled("div", {
|
|
27
|
+
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
28
|
+
slot: MenuActionsSlots.menuItemLabel
|
|
29
|
+
})(menuActionsStyles?.menuItemLabel || {});
|
|
30
|
+
const IconButtonUrlStyled = styled(Icon, {
|
|
31
|
+
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
32
|
+
slot: MenuActionsSlots.menuItemIcon
|
|
33
|
+
})(menuActionsStyles?.menuItemIcon || {});
|
|
34
|
+
const LabelEmptyStyled = styled("div", {
|
|
35
|
+
name: MENU_ACTIONS_KEY_COMPONENT,
|
|
36
|
+
slot: MenuActionsSlots.labelEmpty
|
|
37
|
+
})(menuActionsStyles?.labelEmpty || {});
|
|
24
38
|
export {
|
|
25
|
-
|
|
39
|
+
BadgeStyled as B,
|
|
40
|
+
IconButtonUrlStyled as I,
|
|
41
|
+
LabelMenuItemStyled as L,
|
|
26
42
|
MenuItemStyled as M,
|
|
27
|
-
|
|
28
|
-
|
|
43
|
+
RootStyled as R,
|
|
44
|
+
LabelEmptyStyled as a,
|
|
45
|
+
IconButtonStyled as b
|
|
29
46
|
};
|
|
@@ -1,111 +1,49 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Sizes } from '@m4l/styles';
|
|
3
2
|
import { ComponentNameToClassKey, SxProps } from '@mui/material';
|
|
4
3
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
5
4
|
import { Theme } from '@mui/material/styles';
|
|
6
5
|
import { PopoverProps } from '../Popover/types';
|
|
7
|
-
import { MenuItemProps } from '../MenuItem';
|
|
8
6
|
import { MenuActionsSlots } from './slots';
|
|
9
7
|
import { MENU_ACTIONS_KEY_COMPONENT } from './constants';
|
|
10
|
-
/**
|
|
11
|
-
* Propiedades para describir una acción de un componente.
|
|
12
|
-
* [description] - Descripción opcional de la acción.
|
|
13
|
-
* onClick - Función a ejecutar al hacer clic en la acción.
|
|
14
|
-
*/
|
|
15
8
|
export interface ComponentActionProps {
|
|
16
9
|
description?: string;
|
|
17
10
|
onClick: (props?: any) => void;
|
|
18
11
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
12
|
+
export type ItemVariant = 'normal' | 'delete';
|
|
13
|
+
export type MenuAction = {
|
|
14
|
+
urlIcon?: string;
|
|
15
|
+
iconWidth?: number;
|
|
16
|
+
iconHeight?: number;
|
|
17
|
+
onClick: (props?: any) => void;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
color?: string;
|
|
20
|
+
label?: string;
|
|
21
|
+
dictionaryId?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
variant?: ItemVariant;
|
|
24
|
+
};
|
|
31
25
|
export interface MenuActionsProps extends Omit<PopoverProps, 'open'> {
|
|
32
|
-
/**
|
|
33
|
-
* Tamaño opcional del menú (pequeño o mediano).
|
|
34
|
-
*/
|
|
35
|
-
sizes?: Extract<Sizes, 'small' | 'medium'>;
|
|
36
|
-
/**
|
|
37
|
-
* Clase personalizada para el botón del ícono.
|
|
38
|
-
*/
|
|
39
26
|
iconButtonClassName?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Objeto personalizado a pasar al componente.
|
|
42
|
-
*/
|
|
43
27
|
objItem?: any;
|
|
44
|
-
/**
|
|
45
|
-
* URL del ícono.
|
|
46
|
-
*/
|
|
47
28
|
urlIcon?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Acciones del menú, puede ser un array o una función que genere acciones.
|
|
50
|
-
*/
|
|
51
29
|
menuActions: MenuAction[] | ((row: any) => MenuAction[]);
|
|
52
|
-
/**
|
|
53
|
-
* Texto del tooltip opcional.
|
|
54
|
-
*/
|
|
55
30
|
toolTip?: string;
|
|
56
|
-
/**
|
|
57
|
-
* Margen superior del menú.
|
|
58
|
-
*/
|
|
59
31
|
marginTop?: number | string;
|
|
60
|
-
/**
|
|
61
|
-
* Margen inferior del menú.
|
|
62
|
-
*/
|
|
63
32
|
marginBottom?: number | string;
|
|
64
|
-
/**
|
|
65
|
-
* Margen derecho del menú.
|
|
66
|
-
*/
|
|
67
33
|
marginRight?: number | string;
|
|
68
|
-
/**
|
|
69
|
-
* Margen izquierdo del menú.
|
|
70
|
-
*/
|
|
71
34
|
marginLeft?: number | string;
|
|
72
|
-
/**
|
|
73
|
-
* Ancho del menú.
|
|
74
|
-
*/
|
|
75
35
|
width?: number;
|
|
76
|
-
/**
|
|
77
|
-
* Elemento opcional que se renderiza al final de la lista del menú.
|
|
78
|
-
*/
|
|
79
36
|
endListElement?: ReactElement;
|
|
80
|
-
/**
|
|
81
|
-
* Estilos personalizados para las acciones del menú.
|
|
82
|
-
*/
|
|
83
37
|
menuActionSx?: SxProps<Theme> | Partial<OverridesStyleRules<string, ComponentNameToClassKey, Theme>>;
|
|
84
|
-
|
|
85
|
-
* Contenido del `Badge` si está presente.
|
|
86
|
-
*/
|
|
38
|
+
withBadge?: boolean;
|
|
87
39
|
badgeContent?: string;
|
|
88
|
-
/**
|
|
89
|
-
* Elemento externo para abrir el menú.
|
|
90
|
-
*/
|
|
91
40
|
externalOpen?: HTMLDivElement | null;
|
|
92
|
-
/**
|
|
93
|
-
* Función externa para cerrar el menú.
|
|
94
|
-
*/
|
|
95
41
|
externalClose?: (element: null | HTMLDivElement) => void;
|
|
96
42
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
export interface MenuActionsOwnerState {
|
|
102
|
-
iconSize: Sizes;
|
|
43
|
+
export interface OwnerState {
|
|
44
|
+
variant: string;
|
|
45
|
+
}
|
|
46
|
+
export interface MenuActionsOwnerState extends MenuActionsProps, OwnerState {
|
|
103
47
|
}
|
|
104
|
-
/**
|
|
105
|
-
* Tipo de slots disponibles para `MenuActions`.
|
|
106
|
-
*/
|
|
107
48
|
export type MenuActionsSlotsType = keyof typeof MenuActionsSlots;
|
|
108
|
-
/**
|
|
109
|
-
* Estilos para `MenuActions`.
|
|
110
|
-
*/
|
|
111
49
|
export type MenuActionsStyles = Partial<OverridesStyleRules<MenuActionsSlots, typeof MENU_ACTIONS_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -7,7 +7,6 @@ export declare function getPagerUtilityClass(slot: string): string;
|
|
|
7
7
|
export declare const pagerUtilityClasses: () => {
|
|
8
8
|
select: string;
|
|
9
9
|
root: string;
|
|
10
|
-
skeletonRoot: string;
|
|
11
10
|
labelRowsPerPageContainer: string;
|
|
12
11
|
labelRowsPager: string;
|
|
13
12
|
selectMenuPopover: string;
|
|
@@ -19,6 +18,7 @@ export declare const pagerUtilityClasses: () => {
|
|
|
19
18
|
actionIconPrevious: string;
|
|
20
19
|
actionIconNextPage: string;
|
|
21
20
|
actionIconLastPage: string;
|
|
21
|
+
skeletonRoot: string;
|
|
22
22
|
skeletonRowsPerPage: string;
|
|
23
23
|
skeletonButtonContainer: string;
|
|
24
24
|
skeletonIconButton: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SelectRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "fullWidth" | "
|
|
1
|
+
export declare const SelectRoot: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').SelectProps<unknown>, "children" | "value" | "ref" | "onClose" | "title" | "size" | "name" | "error" | "input" | "rows" | "id" | "type" | "components" | "hidden" | "color" | "content" | "style" | "open" | "multiple" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "onOpen" | "slotProps" | "slots" | "label" | "autoComplete" | "placeholder" | "readOnly" | "required" | "fullWidth" | "inputProps" | "inputRef" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "multiline" | "renderSuffix" | "maxRows" | "minRows" | "startAdornment" | "disableUnderline" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "native" | "renderValue" | "SelectDisplayProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
|
|
2
2
|
ownerState: Partial<import('..').SelectOwnerState> & Record<string, unknown>;
|
|
3
3
|
}, {}, {}>;
|
|
4
4
|
export declare const RowIconSelect: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('..').SelectOwnerState> & Record<string, unknown> & {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Define los nombres de los slots de estilo para el componente `Tab`. Estos slots se utilizan para
|
|
3
|
+
* aplicar estilos específicos y crear clases CSS únicas para los distintos elementos del componente.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum TabSlots {
|
|
6
|
+
root = "root",
|
|
7
|
+
icon = "icon",
|
|
8
|
+
tipography = "tipography"
|
|
9
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `RootStyled`:
|
|
3
|
+
* Componente personalizado de pestaña (`MuiTab`) basado en el componente de pestañas de Material-UI.
|
|
4
|
+
* Utiliza el slot `root` para agregar estilos específicos al botón de la pestaña en la interfaz.
|
|
5
|
+
*/
|
|
6
|
+
export declare const RootStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TabOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | 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<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, "children" | "value" | "action" | "style" | "icon" | "disabled" | "sx" | "classes" | "className" | "tabIndex" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "label" | "iconPosition" | "wrapped">, "children" | "value" | "ref" | "title" | "id" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "disabled" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "label" | "key" | "iconPosition" | "wrapped"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabOwnerState> & Record<string, unknown> & {
|
|
9
|
+
ownerState: Partial<import('../types').TabOwnerState> & Record<string, unknown>;
|
|
10
|
+
}, {}, {}>;
|
|
11
|
+
/**
|
|
12
|
+
* `TypographyStyled`:
|
|
13
|
+
* Componente de texto estilizado basado en `Typography`, se usa para mostrar texto en cada pestaña.
|
|
14
|
+
* El slot `tipography` permite la personalización del estilo tipográfico de las pestañas.
|
|
15
|
+
*/
|
|
16
|
+
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabOwnerState> & Record<string, unknown> & {
|
|
17
|
+
ownerState: Partial<import('../types').TabOwnerState> & Record<string, unknown>;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
/**
|
|
20
|
+
* `IconStyled`:
|
|
21
|
+
* Componente de ícono estilizado basado en `Icon`, utilizado para mostrar un ícono en cada pestaña.
|
|
22
|
+
* Usa el slot `icon` para modificar o añadir estilos específicos a los íconos en las pestañas.
|
|
23
|
+
*/
|
|
24
|
+
export declare const IconStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Icon').IconProps, keyof import('../../../Icon').IconProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../types').TabOwnerState> & Record<string, unknown> & {
|
|
25
|
+
ownerState: Partial<import('../types').TabOwnerState> & Record<string, unknown>;
|
|
26
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { Tab } from "@mui/material";
|
|
3
|
+
import { t as tabStyles } from "../Tab.styles.js";
|
|
4
|
+
import { T as TAB_KEY_COMPONENT } from "../constants.js";
|
|
5
|
+
import { T as TabSlots } from "./TabEnum.js";
|
|
6
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
7
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
8
|
+
const RootStyled = styled(Tab, {
|
|
9
|
+
name: TAB_KEY_COMPONENT,
|
|
10
|
+
slot: TabSlots.root
|
|
11
|
+
})(tabStyles?.root);
|
|
12
|
+
const TypographyStyled = styled(Typography, {
|
|
13
|
+
name: TAB_KEY_COMPONENT,
|
|
14
|
+
slot: TabSlots.tipography
|
|
15
|
+
})(tabStyles?.tipography);
|
|
16
|
+
const IconStyled = styled(Icon, {
|
|
17
|
+
name: TAB_KEY_COMPONENT,
|
|
18
|
+
slot: TabSlots.icon
|
|
19
|
+
})(tabStyles?.icon);
|
|
20
|
+
export {
|
|
21
|
+
IconStyled as I,
|
|
22
|
+
RootStyled as R,
|
|
23
|
+
TypographyStyled as T
|
|
24
|
+
};
|