@m4l/components 9.1.59 → 9.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/AccountPopover/AccountPopover.d.ts +1 -1
- package/components/AccountPopover/AccountPopover.styles.js +16 -16
- package/components/AccountPopover/subcomponents/MenuPopover/MenuPopover.d.ts +1 -1
- package/components/AccountPopover/types.d.ts +2 -2
- package/components/AppBar/AppBar.d.ts +1 -1
- package/components/AppBar/styles.js +8 -8
- package/components/AppBar/types.d.ts +1 -1
- package/components/BaseModule/BaseModule.d.ts +1 -1
- package/components/Chip/Chip.d.ts +2 -2
- package/components/Chip/ChipStyles.js +10 -10
- package/components/Chip/types.d.ts +13 -0
- package/components/Color/Color.d.ts +4 -0
- package/components/Color/Color.styles.d.ts +1 -0
- package/components/Color/Color.styles.js +11 -0
- package/components/CommonActions/components/ActionFormIntro/index.d.ts +1 -1
- package/components/DynamicFilter/subcomponents/FieldTypes/SelectFilter/index.d.ts +4 -0
- package/components/DynamicFilter/types.d.ts +18 -0
- package/components/HelperError/HelperError.d.ts +2 -2
- package/components/HelperError/HelperError.styles.js +4 -4
- package/components/Icon/types.d.ts +1 -1
- package/components/Label/Label.d.ts +4 -4
- package/components/Label/Label.styles.js +10 -10
- package/components/MFIsolationApp/MFIsolationApp.d.ts +1 -1
- package/components/MenuActions/MenuActions.d.ts +1 -1
- package/components/MenuActions/types.d.ts +4 -4
- package/components/PrintingSystem/types.d.ts +23 -0
- package/components/PropertyValue/PropertyValue.styles.js +6 -6
- package/components/SideBar/SideBar.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentComponent/index.d.ts +1 -1
- package/components/SideBar/subcomponents/ContentGroups/index.d.ts +2 -0
- package/components/SideBar/subcomponents/ContentGroups/subcomponents/ContainerMenuItemsMain/styles.js +2 -2
- package/components/SideBar/subcomponents/SideBarDesktop/index.d.ts +1 -1
- package/components/SideBar/subcomponents/SideBarDesktop/index.js +1 -0
- package/components/SideBar/tests/SideBar.integration.test.d.ts +1 -0
- package/components/WindowConfirm/WindowConfirm.styles.js +16 -16
- package/components/areas/components/AreasAdmin/subcomponents/AreaChip/index.d.ts +4 -4
- package/components/areas/components/AreasAdmin/subcomponents/AreaChipMobile/subcomponents/ChipMobile/ChipMobile.d.ts +2 -2
- package/components/hook-form/RHFAutocomplete/RFHAutocompleteStyles.js +8 -0
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.d.ts +4 -0
- package/components/hook-form/RHFAutocomplete/types.d.ts +2 -0
- package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.d.ts +4 -0
- package/components/hook-form/RHFCheckbox/RHFCheckbox.js +1 -1
- package/components/hook-form/RHFColorPicker/RFHColorPicker.d.ts +2 -2
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.d.ts +1 -0
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +12 -0
- package/components/hook-form/RHFPeriod/RHFPeriod.d.ts +2 -2
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +10 -10
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.d.ts +2 -2
- package/components/hook-form/RHFTextField/RHFTextField.d.ts +1 -1
- package/components/hook-form/RHFTextField/RHFTextField.styles.js +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +1 -0
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopLeftTools/subcomponents/PopoverToolButton/subcomponentes/MapSourcesTool/index.js +1 -1
- package/components/maps/components/Map/subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +4 -0
- package/components/maps/components/MapGpsTools/subcomponents/TabsGpsTools/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +19 -14
- package/components/mui_extended/Autocomplete/renderOptions/index.d.ts +2 -2
- package/components/mui_extended/Button/Button.d.ts +1 -1
- package/components/mui_extended/Button/ButtonStyles.js +3 -3
- package/components/mui_extended/CheckBox/CheckBox.d.ts +1 -1
- package/components/mui_extended/CheckBox/CheckBox.js +42 -34
- package/components/mui_extended/CheckBox/CheckBox.styles.js +60 -68
- package/components/mui_extended/CheckBox/slots/CheckBoxEnum.d.ts +4 -2
- package/components/mui_extended/CheckBox/slots/CheckBoxEnum.js +3 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.d.ts +7 -1
- package/components/mui_extended/CheckBox/slots/CheckBoxSlots.js +20 -9
- package/components/mui_extended/CheckBox/test/CheckBox.test.d.ts +1 -0
- package/components/mui_extended/CheckBox/types.d.ts +11 -18
- package/components/mui_extended/CircularProgress/CircularProgress.d.ts +4 -0
- package/components/mui_extended/Dialog/Dialog.d.ts +2 -2
- package/components/mui_extended/IconButton/IconButton.styles.js +4 -4
- package/components/mui_extended/LoadingButton/LoadingButton.d.ts +1 -1
- package/components/mui_extended/LoadingButton/LoadingButton.styles.js +3 -3
- package/components/mui_extended/MenuItem/MenuItem.d.ts +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +15 -7
- package/components/mui_extended/Popover/Popover.d.ts +1 -1
- package/components/mui_extended/Select/Select.d.ts +1 -1
- package/components/mui_extended/Select/Select.js +1 -1
- package/components/mui_extended/Select/Select.styles.js +8 -8
- package/components/mui_extended/Select/types.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.styles.js +2 -2
- package/components/mui_extended/Typography/Typography.d.ts +2 -2
- package/components/mui_extended/Typography/Typography.js +6 -4
- package/components/mui_extended/Typography/types.d.ts +8 -5
- package/components/mui_extended/Typography/typography.styles.js +7 -7
- package/hooks/useFormFocus/index.d.ts +5 -1
- package/package.json +1 -1
- package/test/HostThemeProviderMock.d.ts +1 -1
- package/test/TestAppWrapper.d.ts +1 -1
- package/test/TestFormAutoValidation.d.ts +4 -0
- package/utils/getHeightSizeStyles.d.ts +4 -0
- package/utils/getTypographyStyles.d.ts +4 -0
|
@@ -3,26 +3,37 @@ import { Checkbox, Skeleton } from "@mui/material";
|
|
|
3
3
|
import { C as CheckBoxSlots } from "./CheckBoxEnum.js";
|
|
4
4
|
import { C as CHECK_BOX_KEY_COMPONENT } from "../constants.js";
|
|
5
5
|
import { c as checkBoxStyles } from "../CheckBox.styles.js";
|
|
6
|
-
import {
|
|
6
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
7
|
+
import { I as Icon } from "../../../Icon/Icon.js";
|
|
7
8
|
const CheckBoxRootStyled = styled("div", {
|
|
8
9
|
name: CHECK_BOX_KEY_COMPONENT,
|
|
9
10
|
slot: CheckBoxSlots.root
|
|
10
|
-
})(checkBoxStyles
|
|
11
|
+
})(checkBoxStyles.root);
|
|
11
12
|
const MUICheckboxStyled = styled(Checkbox, {
|
|
12
13
|
name: CHECK_BOX_KEY_COMPONENT,
|
|
13
14
|
slot: CheckBoxSlots.muiCheckBox
|
|
14
|
-
})(checkBoxStyles
|
|
15
|
-
const
|
|
15
|
+
})(checkBoxStyles.muiCheckBox);
|
|
16
|
+
const TypographyStyled = styled(Typography, {
|
|
16
17
|
name: CHECK_BOX_KEY_COMPONENT,
|
|
17
|
-
slot: CheckBoxSlots.
|
|
18
|
-
})(checkBoxStyles
|
|
18
|
+
slot: CheckBoxSlots.typographyStyled
|
|
19
|
+
})(checkBoxStyles.typographyStyled);
|
|
19
20
|
const SkeletonStyled = styled(Skeleton, {
|
|
20
21
|
name: CHECK_BOX_KEY_COMPONENT,
|
|
21
22
|
slot: CheckBoxSlots.skeletonStyled
|
|
22
|
-
})(checkBoxStyles
|
|
23
|
+
})(checkBoxStyles.skeletonStyled);
|
|
24
|
+
const IconCheckedStyled = styled(Icon, {
|
|
25
|
+
name: CHECK_BOX_KEY_COMPONENT,
|
|
26
|
+
slot: CheckBoxSlots.iconChecked
|
|
27
|
+
})(checkBoxStyles.iconChecked);
|
|
28
|
+
const IconStyled = styled(Icon, {
|
|
29
|
+
name: CHECK_BOX_KEY_COMPONENT,
|
|
30
|
+
slot: CheckBoxSlots.icon
|
|
31
|
+
})(checkBoxStyles.icon);
|
|
23
32
|
export {
|
|
24
33
|
CheckBoxRootStyled as C,
|
|
25
|
-
|
|
34
|
+
IconCheckedStyled as I,
|
|
26
35
|
MUICheckboxStyled as M,
|
|
27
|
-
SkeletonStyled as S
|
|
36
|
+
SkeletonStyled as S,
|
|
37
|
+
TypographyStyled as T,
|
|
38
|
+
IconStyled as a
|
|
28
39
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckboxProps as MUICheckboxProps,
|
|
1
|
+
import { CheckboxProps as MUICheckboxProps, Theme } from '@mui/material';
|
|
2
2
|
import { LabelProps } from '../../Label/types';
|
|
3
3
|
import { ComponentPalletColor, Sizes } from '@m4l/styles';
|
|
4
4
|
import { CheckBoxSlots } from './slots';
|
|
@@ -10,38 +10,31 @@ export type OwnerState = Pick<CheckboxProps, 'size' | 'disabled'>;
|
|
|
10
10
|
*/
|
|
11
11
|
export type CheckBoxVariants = 'standard';
|
|
12
12
|
export interface CheckboxProps extends MUICheckboxProps, Omit<LabelProps, 'label' | 'size'> {
|
|
13
|
-
|
|
14
|
-
color?: Extract<ComponentPalletColor, '
|
|
13
|
+
size?: Extract<Sizes, 'small' | 'medium'>;
|
|
14
|
+
color?: Extract<ComponentPalletColor, 'default'>;
|
|
15
|
+
inlineText?: string;
|
|
15
16
|
}
|
|
16
17
|
export interface CheckBoxOwnerState {
|
|
17
18
|
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
CheckBoxDisabled?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Color de la paleta de CheckBox.
|
|
19
|
+
* Si está checkedo o no.
|
|
23
20
|
*/
|
|
24
|
-
|
|
21
|
+
checked?: boolean;
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
CheckBoxVariant?: CheckBoxVariants;
|
|
29
|
-
/**
|
|
30
|
-
* Color de la paleta del componente del CheckBox.
|
|
23
|
+
* Indica si el CheckBox está deshabilitado.
|
|
31
24
|
*/
|
|
32
|
-
|
|
25
|
+
disabled?: boolean;
|
|
33
26
|
/**
|
|
34
27
|
* Tamaño de CheckBox.
|
|
35
28
|
*/
|
|
36
|
-
|
|
29
|
+
size: Extract<Sizes, 'small' | 'medium'>;
|
|
37
30
|
/**
|
|
38
31
|
* Indica si CheckBox es error.
|
|
39
32
|
*/
|
|
40
|
-
|
|
33
|
+
error?: boolean;
|
|
41
34
|
/**
|
|
42
35
|
* Color del campo de CheckBox.
|
|
43
36
|
*/
|
|
44
|
-
|
|
37
|
+
color: Extract<ComponentPalletColor, 'default'>;
|
|
45
38
|
}
|
|
46
39
|
export type CheckBoxSlotsType = keyof typeof CheckBoxSlots;
|
|
47
40
|
export type CheckBoxStyles = OverridesStyleRules<CheckBoxSlotsType, typeof CHECK_BOX_KEY_COMPONENT, Theme>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { CircularProgressProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Componente CircularProgress extendido de MUI
|
|
4
|
+
* @author Andrés Quintero - automatic
|
|
5
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
6
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
7
|
+
* @updatedUser Andrés Quintero - automatic
|
|
4
8
|
*/
|
|
5
9
|
export declare const CircularProgress: (props: CircularProgressProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -48,7 +48,7 @@ import { DialogProps } from './types';
|
|
|
48
48
|
* @returns {JSX.Element} Rendered dialog component.
|
|
49
49
|
* @author cesar - automatic
|
|
50
50
|
* @createdAt 2024-11-06 10:50:22 - automatic
|
|
51
|
-
* @updatedAt 2025-01-
|
|
52
|
-
* @updatedUser
|
|
51
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
52
|
+
* @updatedUser Andrés Quintero - automatic
|
|
53
53
|
*/
|
|
54
54
|
export declare const Dialog: import('react').ForwardRefExoticComponent<Omit<DialogProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -2,7 +2,7 @@ const iconButtonStyles = {
|
|
|
2
2
|
/**
|
|
3
3
|
* TODO: Documentar
|
|
4
4
|
* @updatedUser Andrés Quintero - automatic
|
|
5
|
-
* @updatedAt 2025-01-
|
|
5
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
6
6
|
* @createdAt 2024-10-22 19:53:39 - automatic
|
|
7
7
|
* @author Bruce Escobar - automatic
|
|
8
8
|
*/
|
|
@@ -134,7 +134,7 @@ const iconButtonStyles = {
|
|
|
134
134
|
* Comentado por el momento, falta de documentación en Figma de Badge
|
|
135
135
|
* @author Bruce Escobar - automatic
|
|
136
136
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
137
|
-
* @updatedAt 2025-01-
|
|
137
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
138
138
|
* @updatedUser Andrés Quintero - automatic
|
|
139
139
|
*/
|
|
140
140
|
badgeIconButton: () => ({
|
|
@@ -175,7 +175,7 @@ const iconButtonStyles = {
|
|
|
175
175
|
* Slot de contenedor de reactNode
|
|
176
176
|
* @author Andrés Quintero - automatic
|
|
177
177
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
178
|
-
* @updatedAt 2025-01-
|
|
178
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
179
179
|
* @updatedUser Andrés Quintero - automatic
|
|
180
180
|
*/
|
|
181
181
|
containReact: ({ isSkeleton }) => ({
|
|
@@ -187,7 +187,7 @@ const iconButtonStyles = {
|
|
|
187
187
|
* Slot skeleton con sus estilos de tamaño
|
|
188
188
|
* @author Andrés Quintero - automatic
|
|
189
189
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
190
|
-
* @updatedAt 2025-01-
|
|
190
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
191
191
|
* @updatedUser Andrés Quintero - automatic
|
|
192
192
|
*/
|
|
193
193
|
skeleton: ({ theme, ownerState }) => ({
|
|
@@ -3,7 +3,7 @@ import { LoadingButtonProps } from './types';
|
|
|
3
3
|
* Componente LoadingButton que extiende las props de Button
|
|
4
4
|
* @author Andrés Quintero - automatic
|
|
5
5
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
6
|
-
* @updatedAt
|
|
6
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
7
7
|
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const LoadingButton: (props: LoadingButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,7 @@ const loadingButtonStyles = {
|
|
|
4
4
|
* Componente boton con variantes y paletas de colores.
|
|
5
5
|
* @author Andrés Quintero - automatic
|
|
6
6
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
7
|
-
* @updatedAt
|
|
7
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
8
8
|
* @updatedUser Andrés Quintero - automatic
|
|
9
9
|
*/
|
|
10
10
|
root: ({ ownerState }) => ({
|
|
@@ -22,7 +22,7 @@ const loadingButtonStyles = {
|
|
|
22
22
|
* Incluye tamaños responsivos para diferentes anchos de pantalla y tamaños de botón.
|
|
23
23
|
* @author Andrés Quintero - automatic
|
|
24
24
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
25
|
-
* @updatedAt
|
|
25
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
26
26
|
* @updatedUser Andrés Quintero - automatic
|
|
27
27
|
*/
|
|
28
28
|
skeletonLoadingButton: ({ theme, ownerState }) => ({
|
|
@@ -54,7 +54,7 @@ const loadingButtonStyles = {
|
|
|
54
54
|
* Posiciona el cargador dentro del botón y aplica un color consistente.
|
|
55
55
|
* @author Andrés Quintero - automatic
|
|
56
56
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
57
|
-
* @updatedAt
|
|
57
|
+
* @updatedAt 2025-01-03 11:42:14 - automatic
|
|
58
58
|
* @updatedUser Andrés Quintero - automatic
|
|
59
59
|
*/
|
|
60
60
|
circularProgress: ({ theme, ownerState }) => ({
|
|
@@ -7,7 +7,7 @@ import { MenuItemProps } from './types';
|
|
|
7
7
|
* @returns
|
|
8
8
|
* @author Bruce Escobar - automatic
|
|
9
9
|
* @createdAt 2024-10-22 19:53:39 - automatic
|
|
10
|
-
* @updatedAt
|
|
10
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
11
11
|
* @updatedUser Andrés Quintero - automatic
|
|
12
12
|
*/
|
|
13
13
|
export declare const MenuItem: (props: MenuItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,15 +3,23 @@ const menuItemStyles = {
|
|
|
3
3
|
/**
|
|
4
4
|
* Estilos para el contenedor de los items del menú
|
|
5
5
|
* @updatedUser Andrés Quintero - automatic
|
|
6
|
-
* @updatedAt
|
|
6
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
7
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
8
|
+
* @author Andrés Quintero - automatic
|
|
9
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
11
|
+
* @createdAt 2025-01-03 11:42:11 - automatic
|
|
12
|
+
* @author Andrés Quintero - automatic
|
|
13
|
+
* @updatedUser Andrés Quintero - automatic
|
|
14
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
7
15
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
8
16
|
* @author Andrés Quintero - automatic
|
|
9
17
|
* @updatedUser Andrés Quintero - automatic
|
|
10
|
-
* @updatedAt
|
|
18
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
11
19
|
* @createdAt 2024-12-30 14:36:06 - automatic
|
|
12
20
|
* @author Andrés Quintero - automatic
|
|
13
21
|
* @updatedUser Andrés Quintero - automatic
|
|
14
|
-
* @updatedAt
|
|
22
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
15
23
|
* @createdAt 2024-12-27 08:28:33 - automatic
|
|
16
24
|
* @author Andrés Quintero - automatic
|
|
17
25
|
*/
|
|
@@ -99,7 +107,7 @@ const menuItemStyles = {
|
|
|
99
107
|
* Estilos para el icono de los items del menú
|
|
100
108
|
* @author SebastianM - automatic
|
|
101
109
|
* @createdAt 2024-12-02 19:12:14 - automatic
|
|
102
|
-
* @updatedAt
|
|
110
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
103
111
|
* @updatedUser Andrés Quintero - automatic
|
|
104
112
|
*/
|
|
105
113
|
menuItemIcon: () => ({
|
|
@@ -111,7 +119,7 @@ const menuItemStyles = {
|
|
|
111
119
|
* Estilos para el icono de los items del menú cuando están seleccionados
|
|
112
120
|
* @author SebastianM - automatic
|
|
113
121
|
* @createdAt 2024-12-13 12:45:48 - automatic
|
|
114
|
-
* @updatedAt
|
|
122
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
115
123
|
* @updatedUser Andrés Quintero - automatic
|
|
116
124
|
*/
|
|
117
125
|
menuItemIconChecked: ({ ownerState }) => ({
|
|
@@ -125,7 +133,7 @@ const menuItemStyles = {
|
|
|
125
133
|
* Estilos para la tipografía del menú item
|
|
126
134
|
* @author SebastianM - automatic
|
|
127
135
|
* @createdAt 2024-12-13 12:45:48 - automatic
|
|
128
|
-
* @updatedAt
|
|
136
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
129
137
|
* @updatedUser Andrés Quintero - automatic
|
|
130
138
|
*/
|
|
131
139
|
menuItemTypography: () => ({}),
|
|
@@ -142,7 +150,7 @@ const menuItemStyles = {
|
|
|
142
150
|
* Estilos para el contenedor de los items del menú en skeleton
|
|
143
151
|
* @author Bruce Escobar - automatic
|
|
144
152
|
* @createdAt 2024-10-22 10:38:00 - automatic
|
|
145
|
-
* @updatedAt
|
|
153
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
146
154
|
* @updatedUser Andrés Quintero - automatic
|
|
147
155
|
*/
|
|
148
156
|
skeletonMenuItem: ({ theme, ownerState }) => ({
|
|
@@ -16,7 +16,7 @@ import { PopoverProps } from './types';
|
|
|
16
16
|
* Componente Popover que se utiliza para mostrar información adicional en un área emergente.
|
|
17
17
|
* @author Andrés Quintero - automatic
|
|
18
18
|
* @createdAt 2024-12-27 08:27:31 - automatic
|
|
19
|
-
* @updatedAt
|
|
19
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
20
20
|
* @updatedUser Andrés Quintero - automatic
|
|
21
21
|
*/
|
|
22
22
|
export declare const Popover: (props: PopoverProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -5,7 +5,7 @@ import { SelectProps } from './types';
|
|
|
5
5
|
* @returns {JSX.Element} The rendered Select component.
|
|
6
6
|
* @author SebastianM - automatic
|
|
7
7
|
* @createdAt 2024-12-23 10:47:53 - automatic
|
|
8
|
-
* @updatedAt
|
|
8
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
9
9
|
* @updatedUser Andrés Quintero - automatic
|
|
10
10
|
*/
|
|
11
11
|
export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -100,7 +100,7 @@ const Select = (props) => {
|
|
|
100
100
|
* @param {React.KeyboardEvent} event - The key down event.
|
|
101
101
|
* @author SebastianM - automatic
|
|
102
102
|
* @createdAt 2024-12-23 10:47:53 - automatic
|
|
103
|
-
* @updatedAt
|
|
103
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
104
104
|
* @updatedUser Andrés Quintero - automatic
|
|
105
105
|
*/
|
|
106
106
|
onKeyDown: (event) => {
|
|
@@ -3,7 +3,7 @@ const selectStyles = {
|
|
|
3
3
|
* Estilos para el componente Select
|
|
4
4
|
* @author Bruce Escobar - automatic
|
|
5
5
|
* @createdAt 2024-10-22 10:30:26 - automatic
|
|
6
|
-
* @updatedAt
|
|
6
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
7
7
|
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
selectRoot: ({ theme, ownerState }) => ({
|
|
@@ -191,7 +191,7 @@ const selectStyles = {
|
|
|
191
191
|
* Estilos para el ícono de la fila
|
|
192
192
|
* @author Bruce Escobar - automatic
|
|
193
193
|
* @createdAt 2024-10-22 10:30:26 - automatic
|
|
194
|
-
* @updatedAt
|
|
194
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
195
195
|
* @updatedUser Andrés Quintero - automatic
|
|
196
196
|
*/
|
|
197
197
|
iconButton: ({ theme }) => ({
|
|
@@ -206,7 +206,7 @@ const selectStyles = {
|
|
|
206
206
|
* @returns {object} The styles for the render option container
|
|
207
207
|
* @author SebastianM - automatic
|
|
208
208
|
* @createdAt 2024-12-18 15:11:13 - automatic
|
|
209
|
-
* @updatedAt
|
|
209
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
210
210
|
* @updatedUser Andrés Quintero - automatic
|
|
211
211
|
*/
|
|
212
212
|
renderOptionContainer: ({ theme, ownerState }) => ({
|
|
@@ -236,7 +236,7 @@ const selectStyles = {
|
|
|
236
236
|
* Styles for the label option
|
|
237
237
|
* @author SebastianM - automatic
|
|
238
238
|
* @createdAt 2024-12-23 10:47:53 - automatic
|
|
239
|
-
* @updatedAt
|
|
239
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
240
240
|
* @updatedUser Andrés Quintero - automatic
|
|
241
241
|
*/
|
|
242
242
|
labelOption: ({ theme }) => ({
|
|
@@ -248,7 +248,7 @@ const selectStyles = {
|
|
|
248
248
|
* @returns {object} The styles for the label placeholder
|
|
249
249
|
* @author SebastianM - automatic
|
|
250
250
|
* @createdAt 2024-12-26 14:16:33 - automatic
|
|
251
|
-
* @updatedAt
|
|
251
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
252
252
|
* @updatedUser Andrés Quintero - automatic
|
|
253
253
|
*/
|
|
254
254
|
labelPlaceholer: ({ theme }) => ({
|
|
@@ -261,7 +261,7 @@ const selectStyles = {
|
|
|
261
261
|
* @returns {object} The styles for the menu options
|
|
262
262
|
* @author SebastianM - automatic
|
|
263
263
|
* @createdAt 2024-12-18 15:11:13 - automatic
|
|
264
|
-
* @updatedAt
|
|
264
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
265
265
|
* @updatedUser Andrés Quintero - automatic
|
|
266
266
|
*/
|
|
267
267
|
menuOptions: ({ theme }) => ({
|
|
@@ -274,7 +274,7 @@ const selectStyles = {
|
|
|
274
274
|
* @returns {object} The styles for the menu item select
|
|
275
275
|
* @author SebastianM - automatic
|
|
276
276
|
* @createdAt 2024-12-26 14:16:33 - automatic
|
|
277
|
-
* @updatedAt
|
|
277
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
278
278
|
* @updatedUser Andrés Quintero - automatic
|
|
279
279
|
*/
|
|
280
280
|
menuItemSelect: ({ theme }) => ({
|
|
@@ -285,7 +285,7 @@ const selectStyles = {
|
|
|
285
285
|
* Styles for the skeleton select component
|
|
286
286
|
* @author SebastianM - automatic
|
|
287
287
|
* @createdAt 2024-12-17 15:54:22 - automatic
|
|
288
|
-
* @updatedAt
|
|
288
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
289
289
|
* @updatedUser Andrés Quintero - automatic
|
|
290
290
|
*/
|
|
291
291
|
skeletonSelect: ({ theme, ownerState }) => ({
|
|
@@ -33,7 +33,7 @@ export type selectOption = {
|
|
|
33
33
|
* variant - Variante del Select.
|
|
34
34
|
* @author Bruce Escobar - automatic
|
|
35
35
|
* @createdAt 2024-10-22 10:30:26 - automatic
|
|
36
|
-
* @updatedAt
|
|
36
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
37
37
|
* @updatedUser Andrés Quintero - automatic
|
|
38
38
|
*/
|
|
39
39
|
export interface SelectProps extends Omit<MUISelectProps, 'size' | 'onChange' | 'value' | 'error' | 'variant' | 'color'> {
|
|
@@ -3,7 +3,7 @@ import { TextFieldProps } from './types';
|
|
|
3
3
|
* Componente TextField extended de MUI-MATERIAL componente de entrada de datos en una interfaz de usuario que permite a los usuarios ingresar y editar texto. Es comúnmente utilizado en formularios y otros contextos donde se requiere la entrada de texto por parte del usuario.
|
|
4
4
|
* @author Bruce Escobar - automatic
|
|
5
5
|
* @createdAt 2024-10-22 19:27:22 - automatic
|
|
6
|
-
* @updatedAt
|
|
6
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
7
7
|
* @updatedUser Andrés Quintero - automatic
|
|
8
8
|
*/
|
|
9
9
|
export declare const TextField: import('react').ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -6,7 +6,7 @@ const textFieldStyles = {
|
|
|
6
6
|
* Estilos personalizados para el componente TextField.
|
|
7
7
|
* @author SebastianM - automatic
|
|
8
8
|
* @createdAt 2024-11-29 10:03:37 - automatic
|
|
9
|
-
* @updatedAt
|
|
9
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
10
10
|
* @updatedUser Andrés Quintero - automatic
|
|
11
11
|
*/
|
|
12
12
|
root: ({ ownerState, theme }) => ({
|
|
@@ -127,7 +127,7 @@ const textFieldStyles = {
|
|
|
127
127
|
* Estilos personalizados para el componente Skeleton.
|
|
128
128
|
* @author SebastianM - automatic
|
|
129
129
|
* @createdAt 2024-11-29 10:03:37 - automatic
|
|
130
|
-
* @updatedAt
|
|
130
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
131
131
|
* @updatedUser Andrés Quintero - automatic
|
|
132
132
|
*/
|
|
133
133
|
skeleton: ({ ownerState, theme }) => ({
|
|
@@ -19,7 +19,7 @@ import { TypographyProps } from './types';
|
|
|
19
19
|
* @returns {JSX.Element} The rendered Typography component.
|
|
20
20
|
* @author Bruce Escobar - automatic
|
|
21
21
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
22
|
-
* @updatedAt
|
|
23
|
-
* @updatedUser
|
|
22
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
23
|
+
* @updatedUser Andrés Quintero - automatic
|
|
24
24
|
*/
|
|
25
25
|
export declare function Typography(props: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,16 +16,18 @@ function Typography(props) {
|
|
|
16
16
|
className,
|
|
17
17
|
dataTestid,
|
|
18
18
|
children,
|
|
19
|
+
disabled,
|
|
19
20
|
...other
|
|
20
21
|
} = props;
|
|
21
22
|
const isSkeleton = useModuleSkeleton();
|
|
22
23
|
const { currentSize } = useComponentSize(size);
|
|
23
24
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
24
25
|
const ownerState = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
disabled,
|
|
27
|
+
color,
|
|
28
|
+
size: adjustedSize,
|
|
29
|
+
skeletonRows,
|
|
30
|
+
variant
|
|
29
31
|
};
|
|
30
32
|
return /* @__PURE__ */ jsx(
|
|
31
33
|
StyledMUITypography,
|
|
@@ -41,15 +41,18 @@ export interface TypographyProps extends Omit<MUITypographyProps, 'color' | 'var
|
|
|
41
41
|
dataTestid?: string;
|
|
42
42
|
/** Sirve para vincular un elemento de etiqueta con un elemento de formulario, como un campo de entrada, lo que permite que al hacer clic en el texto de la etiqueta, se active el campo correspondiente*/
|
|
43
43
|
htmlFor?: string | undefined;
|
|
44
|
+
/** Si esta disabled, el texto pasa a text.disabled */
|
|
45
|
+
disabled?: boolean;
|
|
44
46
|
}
|
|
45
47
|
/**
|
|
46
48
|
* Define valores de estado necesarios para estilar el componente.
|
|
47
49
|
*/
|
|
48
50
|
export interface TypographyOwnerState {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
color: TypographyProps['color'];
|
|
53
|
+
variant: TypographyProps['variant'];
|
|
54
|
+
size: TypographyProps['size'];
|
|
55
|
+
skeletonRows: TypographyProps['skeletonRows'];
|
|
53
56
|
}
|
|
54
57
|
/**
|
|
55
58
|
* Agrupa la lista de slots del componente.
|
|
@@ -59,4 +62,4 @@ export type TypographySlotsType = keyof typeof TypographySlots;
|
|
|
59
62
|
* Define las capacidades de estilos css disponibles para los slots del componente,
|
|
60
63
|
* también asocia la clase TYPOGRAPHY_KEY_COMPONENT a cada slot.
|
|
61
64
|
*/
|
|
62
|
-
export type TypographyStyles =
|
|
65
|
+
export type TypographyStyles = OverridesStyleRules<TypographySlotsType, typeof TYPOGRAPHY_KEY_COMPONENT, Theme>;
|
|
@@ -5,7 +5,7 @@ const typographyStyles = {
|
|
|
5
5
|
* Componente extendido de MUI Typography, que permite personalizar los estilos del componente.
|
|
6
6
|
* @author Bruce Escobar - automatic
|
|
7
7
|
* @createdAt 2024-10-22 09:41:31 - automatic
|
|
8
|
-
* @updatedAt
|
|
8
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
9
9
|
* @updatedUser Andrés Quintero - automatic
|
|
10
10
|
*/
|
|
11
11
|
root: ({ ownerState, theme }) => ({
|
|
@@ -14,27 +14,27 @@ const typographyStyles = {
|
|
|
14
14
|
// Estilos generales 🌐
|
|
15
15
|
// skeleton spacing when multiple rows 🦴
|
|
16
16
|
fontFamily: theme.typography.fontFamily,
|
|
17
|
-
...ownerState.
|
|
17
|
+
...ownerState.skeletonRows && ownerState.skeletonRows > 1 && {
|
|
18
18
|
display: "flex",
|
|
19
19
|
flexDirection: "column"
|
|
20
20
|
},
|
|
21
21
|
// Override de estilos generales de MUI 🚫
|
|
22
22
|
// color text.primary 🎨
|
|
23
|
-
...ownerState.
|
|
23
|
+
...ownerState.color === "text.primary" && {
|
|
24
24
|
color: theme.vars.palette.text.primary
|
|
25
25
|
},
|
|
26
26
|
// color text.secondary 🎨
|
|
27
|
-
...ownerState.
|
|
27
|
+
...ownerState.color === "text.secondary" && {
|
|
28
28
|
color: theme.vars.palette.text.secondary
|
|
29
29
|
},
|
|
30
30
|
// color text.disabled 🎨
|
|
31
|
-
...ownerState.
|
|
31
|
+
...(ownerState.disabled || ownerState.color === "text.disabled") && {
|
|
32
32
|
color: theme.vars.palette.text.disabled
|
|
33
33
|
},
|
|
34
34
|
...getTypographyStyles(
|
|
35
35
|
theme.generalSettings.isMobile,
|
|
36
|
-
ownerState.
|
|
37
|
-
ownerState.
|
|
36
|
+
ownerState.size || "medium",
|
|
37
|
+
ownerState.variant || "body"
|
|
38
38
|
)
|
|
39
39
|
}
|
|
40
40
|
}),
|
|
@@ -2,10 +2,14 @@ import { FormFocusHookReturnType } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* useFormFocus: Custom hook creado para facilitar el manejo de estado de interacción de usuario para los
|
|
4
4
|
* componentes de formulario. Aporta los estados Focus, TabSelected y
|
|
5
|
-
*
|
|
5
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
6
6
|
*/
|
|
7
7
|
/**
|
|
8
8
|
* TODO: Documentar
|
|
9
9
|
* @deprecated no se debe usar, esto era para una metodologia donde en js se manejaba el estado de los componentes
|
|
10
|
+
* @author Andrés Quintero - automatic
|
|
11
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
12
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
13
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
14
|
*/
|
|
11
15
|
export declare const useFormFocus: <ElmentType extends HTMLElement>() => FormFocusHookReturnType<ElmentType>;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ interface HostThemeProviderMockProps {
|
|
|
7
7
|
* TODO: Documentar
|
|
8
8
|
* @author Andrés Quintero - automatic
|
|
9
9
|
* @createdAt 2024-12-31 11:23:51 - automatic
|
|
10
|
-
* @updatedAt
|
|
10
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
11
11
|
* @updatedUser Andrés Quintero - automatic
|
|
12
12
|
*/
|
|
13
13
|
declare const HostThemeProviderMock: (props: HostThemeProviderMockProps) => import("react/jsx-runtime").JSX.Element;
|
package/test/TestAppWrapper.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ interface TestAppWrapperProps {
|
|
|
26
26
|
* );
|
|
27
27
|
* @author Cesar Garces - automatic
|
|
28
28
|
* @createdAt 2024-10-25 14:12:46 - automatic
|
|
29
|
-
* @updatedAt
|
|
29
|
+
* @updatedAt 2025-01-03 11:42:15 - automatic
|
|
30
30
|
* @updatedUser Andrés Quintero - automatic
|
|
31
31
|
*/
|
|
32
32
|
declare const TestAppWrapper: FC<TestAppWrapperProps>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Envoltorio para el estado de error
|
|
3
|
+
* @author Andrés Quintero - automatic
|
|
4
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
5
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
6
|
+
* @updatedUser Andrés Quintero - automatic
|
|
3
7
|
*/
|
|
4
8
|
export declare const TestFormAutoValidation: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,9 @@ import { Sizes, SizesComponentsTypes } from '@m4l/styles';
|
|
|
8
8
|
* @param variantSize - Variante de tamaño que se desea aplicar al componente.
|
|
9
9
|
* @param css - Estilos css adicionales o una función que devuelve un objeto de estilos. Si es una función, recibe `heightSize` como argumento.
|
|
10
10
|
* @returns Objeto con los estilos calculados.
|
|
11
|
+
* @author Andrés Quintero - automatic
|
|
12
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
13
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
14
|
+
* @updatedUser Andrés Quintero - automatic
|
|
11
15
|
*/
|
|
12
16
|
export declare const getHeightSizeStyles: (isMobile: boolean, size: Extract<Sizes, "small" | "medium">, variantSize: SizesComponentsTypes, css?: Record<string, any> | ((heightSize: string | number) => Record<string, any>)) => any;
|
|
@@ -7,5 +7,9 @@ import { FontProperties, Sizes, TypographyVariants } from '@m4l/styles';
|
|
|
7
7
|
* theme.generalSettings.isMobile.
|
|
8
8
|
* [size]: Formato de tamaño definido por el componente o el contexto de AppearanceComponentProvider, puede ser small,
|
|
9
9
|
* medium o large.
|
|
10
|
+
* @author Andrés Quintero - automatic
|
|
11
|
+
* @createdAt 2025-01-08 10:36:40 - automatic
|
|
12
|
+
* @updatedAt 2025-01-08 10:36:41 - automatic
|
|
13
|
+
* @updatedUser Andrés Quintero - automatic
|
|
10
14
|
*/
|
|
11
15
|
export declare const getTypographyStyles: (isMobile: boolean, size: Extract<Sizes, "small" | "medium">, variant: TypographyVariants) => FontProperties;
|