@m4l/components 8.2.4 → 9.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +0 -6
- package/@types/types.d.ts +119 -100
- package/components/AccountPopover/classes/index.d.ts +1 -1
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.d.ts +11 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.js +23 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainer.test.d.ts +1 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.d.ts +2 -0
- package/components/CommonActions/components/ActionsContainer/ActionsContainerStyles.js +26 -0
- package/components/CommonActions/components/ActionsContainer/constans.d.ts +8 -0
- package/components/CommonActions/components/ActionsContainer/constans.js +4 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.d.ts +3 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerEnum.js +7 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.d.ts +4 -0
- package/components/CommonActions/components/ActionsContainer/slots/ActionsContainerSlots.js +12 -0
- package/components/CommonActions/components/ActionsContainer/slots/index.d.ts +2 -0
- package/components/CommonActions/components/ActionsContainer/slots/index.js +1 -0
- package/components/CommonActions/components/ActionsContainer/types.d.ts +20 -0
- package/components/CommonActions/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/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.d.ts +4 -0
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +2 -2
- package/components/DynamicFilter/slots/dynamicFilterSlots.d.ts +1 -1
- package/components/DynamicFilter/slots/dynamicFilterSlots.js +2 -2
- package/components/DynamicSort/slots/DynamicSortSlots.d.ts +1 -1
- package/components/SideBar/classes/index.d.ts +1 -1
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +5 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/subcomponents/ChipActionsMobile/index.js +2 -2
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +4 -0
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.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/RHFInputNumberSpinner/RHFInputNumberSpinner.d.ts +5 -0
- package/components/hook-form/RHFInputNumberSpinner/RHFInputNumberSpinner.styles.d.ts +8 -0
- package/components/hook-form/RHFInputNumberSpinner/constants.d.ts +4 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerEnum.d.ts +10 -0
- package/components/hook-form/RHFInputNumberSpinner/slots/RHFInputNumberSpinnerSlots.d.ts +28 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.defaultProps.stories.d.ts +26 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.error.stories.d.ts +13 -0
- package/components/hook-form/RHFInputNumberSpinner/stories/RHFInputNumberSpinner.variants.stories.d.ts +23 -0
- package/components/hook-form/RHFInputNumberSpinner/types.d.ts +71 -0
- package/components/hook-form/RHFTextField/RHFTextField.js +13 -23
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +104 -157
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Error/RHFTextFieldErrorText.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldOutlined.stories.d.ts +29 -0
- package/components/hook-form/RHFTextField/stories/Primary/RHFTextFieldText.stories.d.ts +32 -0
- package/components/hook-form/RHFTextField/types.d.ts +3 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/LayersTool/hooks/useRowActionsGetter.js +2 -2
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +4 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MyActions/index.js +2 -2
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/index.js +1 -1
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.js +2 -2
- 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/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofencesList/index.js +2 -2
- package/components/modal/WindowConfirm/index.d.ts +5 -0
- package/components/modal/WindowConfirm/index.js +2 -2
- package/components/modal/classes/index.d.ts +2 -2
- package/components/mui_extended/MenuActions/MenuActions.d.ts +8 -1
- package/components/mui_extended/MenuActions/MenuActions.js +55 -77
- package/components/mui_extended/MenuActions/MenuActions.styles.d.ts +4 -0
- package/components/mui_extended/MenuActions/MenuActions.styles.js +11 -38
- package/components/mui_extended/MenuActions/constants.d.ts +17 -0
- package/components/mui_extended/MenuActions/constants.js +6 -2
- package/components/mui_extended/MenuActions/dictionary.d.ts +15 -0
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.d.ts +8 -5
- package/components/mui_extended/MenuActions/slots/MenuActionsEnum.js +1 -4
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.d.ts +29 -16
- package/components/mui_extended/MenuActions/slots/MenuActionsSlots.js +16 -33
- package/components/mui_extended/MenuActions/stories/MenuActions.default.stories.d.ts +25 -0
- package/components/mui_extended/MenuActions/stories/MenuActions.othersProps.stories.d.ts +13 -0
- package/components/mui_extended/MenuActions/types.d.ts +80 -18
- package/components/mui_extended/MenuItem/MenuItem.js +85 -0
- package/components/mui_extended/MenuItem/MenuItem.styles.js +121 -0
- package/components/mui_extended/MenuItem/constants.js +4 -0
- package/components/mui_extended/MenuItem/index.js +1 -0
- package/components/mui_extended/MenuItem/slots/MenuItemEnum.js +9 -0
- package/components/mui_extended/MenuItem/slots/MenuItemSlots.js +24 -0
- package/components/mui_extended/MenuItem/types.js +1 -0
- 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/Slots/index.js +1 -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/TextFieldEnum.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +6 -6
- package/components/mui_extended/TextField/types.d.ts +54 -10
- package/components/mui_extended/index.d.ts +1 -1
- package/index.js +3 -3
- package/package.json +1 -1
- package/storybook/components/commonActions/components/ActionsContainer/ActionsContainer.stories.d.ts +13 -0
- 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/CommonActions/components/Actions/index.d.ts +0 -2
- package/components/CommonActions/components/Actions/index.js +0 -24
- package/components/CommonActions/components/Actions/styles.d.ts +0 -1
- package/components/CommonActions/components/Actions/styles.js +0 -14
- package/components/CommonActions/components/Actions/types.d.ts +0 -4
- package/components/CommonActions/tests/constants.js +0 -4
- package/components/CommonActions/tests/utils.js +0 -7
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Error/TextFieldErrorText.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldOutlined.stories.d.ts +0 -9
- package/components/hook-form/RHFTextField/stories/Primary/TextFieldText.stories.d.ts +0 -9
- package/components/mui_extended/MenuActions/MenuActions.stories.d.ts +0 -25
- 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/utils.d.ts +0 -2
- /package/components/{mui_extended/Tab/tests/index.test.d.ts → CommonActions/components/ActionsContainer/ActionsContainer.integration.test.d.ts} +0 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MenuActions } from '../index';
|
|
3
|
+
declare const meta: Meta<typeof MenuActions>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MenuActions>;
|
|
6
|
+
/**
|
|
7
|
+
* Componente base de `MenuActions`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Base: Story;
|
|
10
|
+
/**
|
|
11
|
+
* Componente `MenuActions` con sizes de small.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SmallSizes: Story;
|
|
14
|
+
/**
|
|
15
|
+
* Componente `MenuActions` con sizes de medium.
|
|
16
|
+
*/
|
|
17
|
+
export declare const MediumSizes: Story;
|
|
18
|
+
/**
|
|
19
|
+
* Estado vacío del componente `MenuActions`.
|
|
20
|
+
*/
|
|
21
|
+
export declare const Empty: Story;
|
|
22
|
+
/**
|
|
23
|
+
* `MenuActions` en modo esqueleto (skeleton).
|
|
24
|
+
*/
|
|
25
|
+
export declare const WithSkeleton: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { MenuActions } from '../index';
|
|
3
|
+
declare const meta: Meta<typeof MenuActions>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof MenuActions>;
|
|
6
|
+
/**
|
|
7
|
+
* Componente base de `MenuActions`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const Base: Story;
|
|
10
|
+
/**
|
|
11
|
+
* `MenuActions` con un elemento adicional al final de la lista (`endListElement`).
|
|
12
|
+
*/
|
|
13
|
+
export declare const WithEndListElement: Story;
|
|
@@ -1,49 +1,111 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { Sizes } from '@m4l/styles';
|
|
2
3
|
import { ComponentNameToClassKey, SxProps } from '@mui/material';
|
|
3
4
|
import { OverridesStyleRules } from '@mui/material/styles/overrides';
|
|
4
5
|
import { Theme } from '@mui/material/styles';
|
|
5
6
|
import { PopoverProps } from '../Popover/types';
|
|
7
|
+
import { MenuItemProps } from '../MenuItem';
|
|
6
8
|
import { MenuActionsSlots } from './slots';
|
|
7
9
|
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
|
+
*/
|
|
8
15
|
export interface ComponentActionProps {
|
|
9
16
|
description?: string;
|
|
10
17
|
onClick: (props?: any) => void;
|
|
11
18
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
19
|
+
/**
|
|
20
|
+
* Define una acción del menú, con propiedades heredadas de `MenuItemProps`.
|
|
21
|
+
* [onClick] - Función opcional a ejecutar al hacer clic en la acción del menú.
|
|
22
|
+
* [error] - Indicador de error en la acción del menú.
|
|
23
|
+
*/
|
|
24
|
+
export interface MenuAction extends Pick<MenuItemProps, 'startIcon' | 'endIcon' | 'label' | 'selected' | 'componentPaletteColor' | 'color' | 'disabled'> {
|
|
25
|
+
onClick?: (arg?: any) => void;
|
|
26
|
+
error?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Propiedades del componente `MenuActions`.
|
|
30
|
+
*/
|
|
25
31
|
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
|
+
*/
|
|
26
39
|
iconButtonClassName?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Objeto personalizado a pasar al componente.
|
|
42
|
+
*/
|
|
27
43
|
objItem?: any;
|
|
44
|
+
/**
|
|
45
|
+
* URL del ícono.
|
|
46
|
+
*/
|
|
28
47
|
urlIcon?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Acciones del menú, puede ser un array o una función que genere acciones.
|
|
50
|
+
*/
|
|
29
51
|
menuActions: MenuAction[] | ((row: any) => MenuAction[]);
|
|
52
|
+
/**
|
|
53
|
+
* Texto del tooltip opcional.
|
|
54
|
+
*/
|
|
30
55
|
toolTip?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Margen superior del menú.
|
|
58
|
+
*/
|
|
31
59
|
marginTop?: number | string;
|
|
60
|
+
/**
|
|
61
|
+
* Margen inferior del menú.
|
|
62
|
+
*/
|
|
32
63
|
marginBottom?: number | string;
|
|
64
|
+
/**
|
|
65
|
+
* Margen derecho del menú.
|
|
66
|
+
*/
|
|
33
67
|
marginRight?: number | string;
|
|
68
|
+
/**
|
|
69
|
+
* Margen izquierdo del menú.
|
|
70
|
+
*/
|
|
34
71
|
marginLeft?: number | string;
|
|
72
|
+
/**
|
|
73
|
+
* Ancho del menú.
|
|
74
|
+
*/
|
|
35
75
|
width?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Elemento opcional que se renderiza al final de la lista del menú.
|
|
78
|
+
*/
|
|
36
79
|
endListElement?: ReactElement;
|
|
80
|
+
/**
|
|
81
|
+
* Estilos personalizados para las acciones del menú.
|
|
82
|
+
*/
|
|
37
83
|
menuActionSx?: SxProps<Theme> | Partial<OverridesStyleRules<string, ComponentNameToClassKey, Theme>>;
|
|
38
|
-
|
|
84
|
+
/**
|
|
85
|
+
* Contenido del `Badge` si está presente.
|
|
86
|
+
*/
|
|
39
87
|
badgeContent?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Elemento externo para abrir el menú.
|
|
90
|
+
*/
|
|
40
91
|
externalOpen?: HTMLDivElement | null;
|
|
92
|
+
/**
|
|
93
|
+
* Función externa para cerrar el menú.
|
|
94
|
+
*/
|
|
41
95
|
externalClose?: (element: null | HTMLDivElement) => void;
|
|
42
96
|
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
97
|
+
/**
|
|
98
|
+
* Estado del propietario para `MenuActions`.
|
|
99
|
+
* iconSize - Tamaño del ícono que se utilizará en el menú.
|
|
100
|
+
*/
|
|
101
|
+
export interface MenuActionsOwnerState {
|
|
102
|
+
iconSize: Sizes;
|
|
47
103
|
}
|
|
104
|
+
/**
|
|
105
|
+
* Tipo de slots disponibles para `MenuActions`.
|
|
106
|
+
*/
|
|
48
107
|
export type MenuActionsSlotsType = keyof typeof MenuActionsSlots;
|
|
108
|
+
/**
|
|
109
|
+
* Estilos para `MenuActions`.
|
|
110
|
+
*/
|
|
49
111
|
export type MenuActionsStyles = Partial<OverridesStyleRules<MenuActionsSlots, typeof MENU_ACTIONS_KEY_COMPONENT, Theme> | undefined> | undefined;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { createElement } from "react";
|
|
3
|
+
import { useTheme } from "@mui/material";
|
|
4
|
+
import { useModuleSkeleton, getPropertyByString } from "@m4l/core";
|
|
5
|
+
import { S as SkeletonMenuItem, M as MenuItemRoot, a as MenuItemIcon } from "./slots/MenuItemSlots.js";
|
|
6
|
+
import clsx from "clsx";
|
|
7
|
+
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
8
|
+
import { T as Typography } from "../Typography/Typography.js";
|
|
9
|
+
const MenuItem = (props) => {
|
|
10
|
+
const {
|
|
11
|
+
startIcon,
|
|
12
|
+
endIcon,
|
|
13
|
+
key,
|
|
14
|
+
label,
|
|
15
|
+
value,
|
|
16
|
+
selected = false,
|
|
17
|
+
color = "primary",
|
|
18
|
+
disabled = false,
|
|
19
|
+
size = "medium",
|
|
20
|
+
...other
|
|
21
|
+
} = props;
|
|
22
|
+
const { currentSize } = useComponentSize(size);
|
|
23
|
+
const isSkeleton = useModuleSkeleton();
|
|
24
|
+
const theme = useTheme();
|
|
25
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
26
|
+
const paletteColor = getPropertyByString(
|
|
27
|
+
theme.vars.palette,
|
|
28
|
+
disabled ? "default" : color,
|
|
29
|
+
theme.vars.palette.default
|
|
30
|
+
);
|
|
31
|
+
const ownerState = {
|
|
32
|
+
size: adjustedSize,
|
|
33
|
+
disabled,
|
|
34
|
+
selected,
|
|
35
|
+
paletteColor,
|
|
36
|
+
componentPaletteColor: color
|
|
37
|
+
};
|
|
38
|
+
if (isSkeleton) {
|
|
39
|
+
return /* @__PURE__ */ jsx(SkeletonMenuItem, { "data-testid": "SkeletonMenuItem", ownerState: { ...ownerState } });
|
|
40
|
+
}
|
|
41
|
+
const renderIcon = (icon, instaceDataTestId, className) => {
|
|
42
|
+
if (!icon) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
return /* @__PURE__ */ jsx(
|
|
46
|
+
MenuItemIcon,
|
|
47
|
+
{
|
|
48
|
+
ownerState: { ...ownerState },
|
|
49
|
+
src: icon,
|
|
50
|
+
alt: "icon",
|
|
51
|
+
size: adjustedSize,
|
|
52
|
+
disabled,
|
|
53
|
+
instaceDataTestId,
|
|
54
|
+
className: clsx(className, "M4LMenuItemIcon")
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
};
|
|
58
|
+
return /* @__PURE__ */ createElement(
|
|
59
|
+
MenuItemRoot,
|
|
60
|
+
{
|
|
61
|
+
...other,
|
|
62
|
+
key,
|
|
63
|
+
value,
|
|
64
|
+
ownerState: { ...ownerState },
|
|
65
|
+
disabled,
|
|
66
|
+
className: "M4LMenuItemRoot",
|
|
67
|
+
"data-testid": "MenuItemRoot"
|
|
68
|
+
},
|
|
69
|
+
renderIcon(startIcon, "MenuItemStartIcon"),
|
|
70
|
+
/* @__PURE__ */ jsx(
|
|
71
|
+
Typography,
|
|
72
|
+
{
|
|
73
|
+
variant: "body",
|
|
74
|
+
size: adjustedSize,
|
|
75
|
+
className: "M4LMenuItemLabel",
|
|
76
|
+
"data-testid": "MenuItemLabel",
|
|
77
|
+
children: label
|
|
78
|
+
}
|
|
79
|
+
),
|
|
80
|
+
renderIcon(endIcon, "MenuItemEndIcon", "M4LMenuItemEndIcon")
|
|
81
|
+
);
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
MenuItem as M
|
|
85
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
const menuItemStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* Estilos para el contenedor de los items del menú
|
|
4
|
+
* @author Bruce Escobar - automatic
|
|
5
|
+
* @createdAt 2024-10-22 10:38:00 - automatic
|
|
6
|
+
* @updatedAt 2024-10-30 07:52:44 - automatic
|
|
7
|
+
* @updatedUser SebastianM - automatic
|
|
8
|
+
*/
|
|
9
|
+
menuItemRoot: ({ theme, ownerState }) => ({
|
|
10
|
+
width: "100%",
|
|
11
|
+
gap: theme.vars.size.baseSpacings.sp1,
|
|
12
|
+
padding: theme.vars.size.baseSpacings.sp1,
|
|
13
|
+
...ownerState.selected && {
|
|
14
|
+
borderLeft: theme.vars.size.borderStroke.container,
|
|
15
|
+
borderRadius: theme.vars.size.borderRadius.r0,
|
|
16
|
+
borderColor: ownerState.paletteColor?.main
|
|
17
|
+
},
|
|
18
|
+
// Estados del label
|
|
19
|
+
"& .M4LMenuItemLabel": {
|
|
20
|
+
...ownerState.selected && {
|
|
21
|
+
color: ownerState.paletteColor?.main
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
// Estilos específicos para el tamaño small
|
|
25
|
+
...ownerState.size === "small" && {
|
|
26
|
+
...theme.generalSettings.isMobile ? {
|
|
27
|
+
height: theme.vars.size.mobile.small.action,
|
|
28
|
+
minHeight: theme.vars.size.mobile.small.action
|
|
29
|
+
} : {
|
|
30
|
+
height: theme.vars.size.desktop.small.action,
|
|
31
|
+
minHeight: theme.vars.size.desktop.small.action
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
// Estilos específicos para el tamaño medium
|
|
35
|
+
...ownerState.size === "medium" && {
|
|
36
|
+
...theme.generalSettings.isMobile ? {
|
|
37
|
+
height: theme.vars.size.mobile.medium.action,
|
|
38
|
+
minHeight: theme.vars.size.mobile.medium.action
|
|
39
|
+
} : {
|
|
40
|
+
height: theme.vars.size.desktop.medium.action,
|
|
41
|
+
minHeight: theme.vars.size.desktop.medium.action
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'& .M4LMenuItemIcon [class*="-M4LIcon-icon"]': {
|
|
45
|
+
...ownerState.selected && {
|
|
46
|
+
backgroundColor: ownerState.paletteColor?.main
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"&.M4LMenuItemRoot .M4LTypography-root .MuiTypography-body": {
|
|
50
|
+
paddingRight: theme.vars.size.baseSpacings.sp1,
|
|
51
|
+
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
52
|
+
...ownerState.selected && {
|
|
53
|
+
color: ownerState.paletteColor?.main
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"&:hover.M4LMenuItemRoot": {
|
|
57
|
+
background: ownerState.selected ? ownerState.paletteColor?.opacity : theme.vars.palette.background.hover
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
menuItemIcon: {
|
|
61
|
+
"&.M4LMenuItemEndIcon": {
|
|
62
|
+
marginLeft: "auto"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Estilos para el contenedor de los items del menú en skeleton
|
|
67
|
+
* @author Bruce Escobar - automatic
|
|
68
|
+
* @createdAt 2024-10-22 10:38:00 - automatic
|
|
69
|
+
* @updatedAt 2024-10-30 07:52:44 - automatic
|
|
70
|
+
* @updatedUser SebastianM - automatic
|
|
71
|
+
*/
|
|
72
|
+
skeletonMenuItem: ({ theme, ownerState }) => ({
|
|
73
|
+
width: "100%",
|
|
74
|
+
padding: theme.vars.size.baseSpacings.sp2,
|
|
75
|
+
borderRadius: theme.vars.size.borderRadius.r0,
|
|
76
|
+
display: "flex",
|
|
77
|
+
alignItems: "center",
|
|
78
|
+
background: theme.vars.palette.skeleton.transition,
|
|
79
|
+
// Estilos específicos para el tamaño small
|
|
80
|
+
...ownerState.size === "small" && {
|
|
81
|
+
...theme.generalSettings.isMobile ? {
|
|
82
|
+
height: theme.vars.size.mobile.small.action,
|
|
83
|
+
minHeight: theme.vars.size.mobile.small.action
|
|
84
|
+
} : {
|
|
85
|
+
height: theme.vars.size.desktop.small.action,
|
|
86
|
+
minHeight: theme.vars.size.desktop.small.action
|
|
87
|
+
},
|
|
88
|
+
[theme.breakpoints.up("sm")]: {
|
|
89
|
+
...theme.generalSettings.isMobile ? {
|
|
90
|
+
height: theme.vars.size.mobile.small.action,
|
|
91
|
+
minHeight: theme.vars.size.mobile.small.action
|
|
92
|
+
} : {
|
|
93
|
+
height: theme.vars.size.desktop.small.action,
|
|
94
|
+
minHeight: theme.vars.size.desktop.small.action
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
// Estilos específicos para el tamaño medium
|
|
99
|
+
...ownerState.size === "medium" && {
|
|
100
|
+
...theme.generalSettings.isMobile ? {
|
|
101
|
+
height: theme.vars.size.mobile.medium.action,
|
|
102
|
+
minHeight: theme.vars.size.mobile.medium.action
|
|
103
|
+
} : {
|
|
104
|
+
height: theme.vars.size.desktop.medium.action,
|
|
105
|
+
minHeight: theme.vars.size.desktop.medium.action
|
|
106
|
+
},
|
|
107
|
+
[theme.breakpoints.up("md")]: {
|
|
108
|
+
...theme.generalSettings.isMobile ? {
|
|
109
|
+
height: theme.vars.size.mobile.small.action,
|
|
110
|
+
minHeight: theme.vars.size.mobile.small.action
|
|
111
|
+
} : {
|
|
112
|
+
height: theme.vars.size.desktop.small.action,
|
|
113
|
+
minHeight: theme.vars.size.desktop.small.action
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
})
|
|
118
|
+
};
|
|
119
|
+
export {
|
|
120
|
+
menuItemStyles as m
|
|
121
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
var MenuItemSlots = /* @__PURE__ */ ((MenuItemSlots2) => {
|
|
2
|
+
MenuItemSlots2["menuItemRoot"] = "menuItemRoot";
|
|
3
|
+
MenuItemSlots2["menuItemIcon"] = "menuItemIcon";
|
|
4
|
+
MenuItemSlots2["skeletonMenuItem"] = "skeletonMenuItem";
|
|
5
|
+
return MenuItemSlots2;
|
|
6
|
+
})(MenuItemSlots || {});
|
|
7
|
+
export {
|
|
8
|
+
MenuItemSlots as M
|
|
9
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { MenuItem } from "@mui/material";
|
|
3
|
+
import { M as MENUITEM_KEY_COMPONENT } from "../constants.js";
|
|
4
|
+
import { m as menuItemStyles } from "../MenuItem.styles.js";
|
|
5
|
+
import { M as MenuItemSlots } from "./MenuItemEnum.js";
|
|
6
|
+
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
8
|
+
const MenuItemRoot = styled(MenuItem, {
|
|
9
|
+
name: MENUITEM_KEY_COMPONENT,
|
|
10
|
+
slot: MenuItemSlots.menuItemRoot
|
|
11
|
+
})(menuItemStyles?.menuItemRoot);
|
|
12
|
+
const MenuItemIcon = styled(Icon, {
|
|
13
|
+
name: MENUITEM_KEY_COMPONENT,
|
|
14
|
+
slot: MenuItemSlots.menuItemIcon
|
|
15
|
+
})(menuItemStyles?.menuItemIcon);
|
|
16
|
+
const SkeletonMenuItem = styled(Skeleton, {
|
|
17
|
+
name: MENUITEM_KEY_COMPONENT,
|
|
18
|
+
slot: MenuItemSlots.skeletonMenuItem
|
|
19
|
+
})(menuItemStyles?.skeletonMenuItem);
|
|
20
|
+
export {
|
|
21
|
+
MenuItemRoot as M,
|
|
22
|
+
SkeletonMenuItem as S,
|
|
23
|
+
MenuItemIcon as a
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -7,6 +7,7 @@ export declare function getPagerUtilityClass(slot: string): string;
|
|
|
7
7
|
export declare const pagerUtilityClasses: () => {
|
|
8
8
|
select: string;
|
|
9
9
|
root: string;
|
|
10
|
+
skeletonRoot: string;
|
|
10
11
|
labelRowsPerPageContainer: string;
|
|
11
12
|
labelRowsPager: string;
|
|
12
13
|
selectMenuPopover: string;
|
|
@@ -18,7 +19,6 @@ export declare const pagerUtilityClasses: () => {
|
|
|
18
19
|
actionIconPrevious: string;
|
|
19
20
|
actionIconNextPage: string;
|
|
20
21
|
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" | "maxRows" | "inputProps" | "inputRef" | "multiline" | "minRows" | "disableInjectingGlobalStyles" | "endAdornment" | "inputComponent" | "renderSuffix" | "startAdornment" | "disableUnderline" | "native" | "autoWidth" | "defaultOpen" | "displayEmpty" | "IconComponent" | "labelId" | "MenuProps" | "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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|