@m4l/components 9.3.19-BE093025-beta.1 → 9.3.19-BE101025-beta.2

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.
Files changed (125) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/Card/constants.d.ts +1 -1
  3. package/components/Chip/constants.d.ts +1 -1
  4. package/components/ContainerFlow/constants.d.ts +1 -1
  5. package/components/DataGrid/subcomponents/editors/EditLabelEditor/formatter.d.ts +8 -0
  6. package/components/DataGrid/subcomponents/editors/EditLabelEditor/index.d.ts +3 -0
  7. package/components/DataGrid/subcomponents/editors/EditLabelEditor/types.d.ts +5 -0
  8. package/components/DataGrid/subcomponents/editors/EditLabelEditor/useColumnEditLabel.d.ts +9 -0
  9. package/components/DataGrid/tests/helpers/types.d.ts +2 -0
  10. package/components/EditLabel/EditLabel.d.ts +7 -0
  11. package/components/EditLabel/EditLabel.styles.d.ts +2 -0
  12. package/components/EditLabel/constants.d.ts +2 -0
  13. package/components/EditLabel/hooks/useEditLabel.d.ts +23 -0
  14. package/components/EditLabel/icons.d.ts +5 -0
  15. package/components/EditLabel/index.d.ts +2 -0
  16. package/components/EditLabel/slots/EditLabelEnum.d.ts +8 -0
  17. package/components/EditLabel/slots/EditLabelSlots.d.ts +18 -0
  18. package/components/EditLabel/test/EditLabel.test.d.ts +1 -0
  19. package/components/EditLabel/types.d.ts +43 -0
  20. package/components/FormContainer/constants.d.ts +1 -1
  21. package/components/GridLayout/subcomponents/GridItem/index.js +2 -2
  22. package/components/Image/constant.d.ts +1 -1
  23. package/components/ImageText/ImageText.styles.js +1 -1
  24. package/components/ImageText/constants.d.ts +1 -1
  25. package/components/MFIsolationApp/MFIsolationApp.js +13 -5
  26. package/components/MFIsolationApp/icons.d.ts +3 -0
  27. package/components/MFIsolationApp/icons.js +6 -0
  28. package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.d.ts +4 -0
  29. package/components/MFIsolationApp/subcomponents/AppBarSettings/AppBarSettings.js +21 -0
  30. package/components/MFIsolationApp/subcomponents/AppBarSettings/index.d.ts +1 -0
  31. package/components/MFIsolationApp/subcomponents/AppBarSettings/index.js +1 -0
  32. package/components/MFIsolationApp/types.d.ts +1 -0
  33. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.d.ts +5 -0
  34. package/components/MFIsolationAppStorybook/MFIsolationAppStorybook.js +154 -0
  35. package/components/MFIsolationAppStorybook/constants.d.ts +1 -0
  36. package/components/MFIsolationAppStorybook/icons.d.ts +3 -0
  37. package/components/MFIsolationAppStorybook/icons.js +6 -0
  38. package/components/MFIsolationAppStorybook/index.d.ts +1 -0
  39. package/components/MFIsolationAppStorybook/index.js +1 -0
  40. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/AppBarSettings.d.ts +4 -0
  41. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/AppBarSettings.js +21 -0
  42. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/index.d.ts +1 -0
  43. package/components/MFIsolationAppStorybook/subcomponents/AppBarSettings/index.js +1 -0
  44. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.d.ts +5 -0
  45. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/MFAuthAppStorybook.js +44 -0
  46. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.d.ts +1 -0
  47. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/index.js +1 -0
  48. package/components/MFIsolationAppStorybook/subcomponents/MFAuthAppStorybook/types.d.ts +4 -0
  49. package/components/MFIsolationAppStorybook/types.d.ts +31 -0
  50. package/components/MenuActions/constants.d.ts +1 -1
  51. package/components/ModalDialog/ModalDialog.js +1 -0
  52. package/components/NoItemSelected/constant.d.ts +1 -1
  53. package/components/Stepper/Stepper.styles.js +17 -14
  54. package/components/Stepper/helpers/getInitialFieldValues/index.d.ts +12 -0
  55. package/components/Stepper/helpers/getInitialFieldValues/index.js +14 -0
  56. package/components/Stepper/helpers/index.d.ts +2 -0
  57. package/components/Stepper/helpers/parseWatchedValues/index.d.ts +17 -0
  58. package/components/Stepper/helpers/parseWatchedValues/index.js +12 -0
  59. package/components/Stepper/hooks/useDynamicValidation/index.d.ts +11 -0
  60. package/components/Stepper/hooks/useDynamicValidation/index.js +69 -0
  61. package/components/Stepper/hooks/useStepperActions/index.js +19 -3
  62. package/components/Stepper/store/StepperStore/index.js +20 -1
  63. package/components/Stepper/subcomponents/StepArea/index.js +45 -25
  64. package/components/Stepper/subcomponents/StepArea/subcomponents/Inidicator/index.js +18 -10
  65. package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.d.ts +2 -1
  66. package/components/Stepper/subcomponents/StepperButtons/StepperCancelButton/index.js +38 -5
  67. package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.d.ts +2 -1
  68. package/components/Stepper/subcomponents/StepperButtons/StepperNextButton/index.js +5 -3
  69. package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.d.ts +2 -1
  70. package/components/Stepper/subcomponents/StepperButtons/StepperPrevButton/index.js +5 -3
  71. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.d.ts +2 -1
  72. package/components/Stepper/subcomponents/StepperButtons/StepperSubmitButton/index.js +5 -3
  73. package/components/Stepper/subcomponents/StepperContent/subcomponents/Step/index.js +30 -11
  74. package/components/Stepper/subcomponents/StepperFooter/subcomponents/StepperFooterRightActions/index.js +20 -10
  75. package/components/Stepper/types.d.ts +7 -0
  76. package/components/WindowBase/constants.d.ts +1 -1
  77. package/components/extended/React-Json-Viewer/constants.d.ts +1 -1
  78. package/components/extended/React-resizable-panels/SplitLayout.js +1 -1
  79. package/components/formatters/ChipStatusFormatter/constants.d.ts +1 -1
  80. package/components/formatters/EditLabelFormatter/EditLabelFormatter.d.ts +5 -0
  81. package/components/formatters/EditLabelFormatter/EditLabelFormatter.styles.d.ts +2 -0
  82. package/components/formatters/EditLabelFormatter/constants.d.ts +5 -0
  83. package/components/formatters/EditLabelFormatter/index.d.ts +2 -0
  84. package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterEnum.d.ts +4 -0
  85. package/components/formatters/EditLabelFormatter/slots/EditLabelFormatterSlots.d.ts +5 -0
  86. package/components/formatters/EditLabelFormatter/test/EditLabelFormatter.test.d.ts +1 -0
  87. package/components/formatters/EditLabelFormatter/types.d.ts +23 -0
  88. package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +8 -2
  89. package/components/hook-form/RHFAutocomplete/types.d.ts +13 -0
  90. package/components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js +8 -2
  91. package/components/hook-form/RHFCheckbox/constants.d.ts +1 -1
  92. package/components/hook-form/RHFSelect/constants.d.ts +1 -1
  93. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +25 -1
  94. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +5 -1
  95. package/components/hook-form/RHFormContext/index.d.ts +110 -10
  96. package/components/hook-form/RHFormContext/index.js +35 -8
  97. package/components/hook-form/RHFormContext/types.d.ts +64 -1
  98. package/components/index.d.ts +1 -0
  99. package/components/mui_extended/Autocomplete/Autocomplete.js +6 -2
  100. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.d.ts +3 -1
  101. package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +9 -3
  102. package/components/mui_extended/Autocomplete/types.d.ts +8 -0
  103. package/components/mui_extended/Button/Button.js +15 -4
  104. package/components/mui_extended/Button/ButtonStyles.js +155 -82
  105. package/components/mui_extended/Button/{constans.d.ts → constants.d.ts} +1 -0
  106. package/components/mui_extended/Button/constants.js +8 -0
  107. package/components/mui_extended/Button/slots/ButtonSlots.js +1 -1
  108. package/components/mui_extended/Button/types.d.ts +1 -1
  109. package/components/mui_extended/IconButton/constants.d.ts +1 -1
  110. package/components/mui_extended/IconButton/constants.js +4 -1
  111. package/components/mui_extended/MenuItem/MenuItem.js +1 -1
  112. package/components/mui_extended/MenuItem/constants.d.ts +1 -1
  113. package/components/mui_extended/NavLink/constants.d.ts +1 -1
  114. package/components/mui_extended/Select/Select.js +2 -2
  115. package/components/mui_extended/Select/constants.d.ts +1 -1
  116. package/components/mui_extended/TextField/constants.d.ts +1 -1
  117. package/components/mui_extended/Tooltip/Tooltip.styles.js +8 -1
  118. package/components/mui_extended/Tooltip/constants.d.ts +1 -1
  119. package/components/mui_extended/Typography/constants.d.ts +1 -1
  120. package/components/mui_extended/Typography/types.d.ts +1 -1
  121. package/contexts/AppearanceComponentContext/AppearanceComponentContext.js +6 -1
  122. package/index.js +12 -10
  123. package/package.json +1 -1
  124. package/utils/getComponentSlotRoot.d.ts +3 -1
  125. package/components/mui_extended/Button/constans.js +0 -4
@@ -1,84 +1,166 @@
1
1
  import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
2
+ import { B as BUTTON_CLASSES } from "./constants.js";
2
3
  const buttonStyles = {
3
4
  /**
4
5
  * Styles for the root element of the button component.
5
6
  */
6
- buttonRoot: ({ theme, ownerState }) => ({
7
- display: "flex",
8
- flexWrap: "nowrap",
9
- alignItems: "center",
10
- gap: theme.vars.size.baseSpacings.sp1,
11
- padding: `0px ${theme.vars.size.baseSpacings.sp2}`,
12
- boxShadow: "none",
13
- borderRadius: theme.vars.size.borderRadius["r1-5"],
14
- maxWidth: "200px",
15
- minWidth: "0",
16
- flexShrink: 0,
17
- "&:hover": {
18
- backgroundColor: ownerState?.color === "default" ? ownerState?.paletteColor?.hover : ownerState?.paletteColor?.hoverOpacity,
19
- borderColor: ownerState?.paletteColor?.hover
20
- },
21
- "&:active": {
22
- boxShadow: "none",
23
- borderColor: ownerState?.paletteColor?.active,
24
- backgroundColor: ownerState?.paletteColor?.activeOpacity
25
- },
26
- "&:focus-visible": {
27
- boxShadow: "none",
28
- backgroundColor: ownerState?.paletteColor?.activeOpacity
29
- },
30
- "&:disabled": {
31
- backgroundColor: "none",
32
- "&&& .M4LIcon-icon": {
33
- backgroundColor: theme.vars.palette.text.disabled
34
- },
7
+ buttonRoot: ({ theme, ownerState }) => {
8
+ const selectionEffect = {
9
+ boxShadow: `inset 0px 0px 0px 1px ${theme.vars.palette.border.main}`
10
+ };
11
+ return {
12
+ // Configuración general
13
+ display: "flex",
14
+ flexWrap: "nowrap",
15
+ alignItems: "center",
16
+ gap: theme.vars.size.baseSpacings.sp1,
17
+ padding: `0px ${theme.vars.size.baseSpacings.sp2}`,
18
+ borderRadius: theme.vars.size.borderRadius["r1-5"],
19
+ maxWidth: "200px",
20
+ minWidth: "0",
21
+ flexShrink: 0,
22
+ border: "unset!important",
23
+ // Tamaño de altura
24
+ ...getSizeStyles(
25
+ theme,
26
+ ownerState?.size || "medium",
27
+ "action",
28
+ (size) => {
29
+ return {
30
+ height: "auto!important",
31
+ minHeight: size
32
+ };
33
+ }
34
+ ),
35
+ // Variante Contained
35
36
  ...ownerState?.variant === "contained" && {
36
- backgroundColor: ownerState?.paletteColor?.enabled
37
- }
38
- },
39
- ...ownerState?.variant === "contained" && {
40
- backgroundColor: ownerState?.paletteColor?.enabled,
41
- "&:hover": {
42
- backgroundColor: ownerState?.paletteColor?.hover
37
+ backgroundColor: ownerState?.paletteColor?.enabled,
38
+ boxShadow: "unset",
39
+ // Color del texto
40
+ [`&&& .${BUTTON_CLASSES.textButton}`]: {
41
+ color: ownerState?.paletteColor?.contrastText
42
+ },
43
+ // Color de los adornos laterales
44
+ "&&& .M4LIcon-icon": {
45
+ backgroundColor: ownerState?.paletteColor?.contrastText
46
+ },
47
+ // Estado Hover
48
+ "&:hover": {
49
+ backgroundColor: ownerState?.paletteColor?.hover,
50
+ boxShadow: "unset"
51
+ },
52
+ // Estado Active
53
+ "&:active": {
54
+ backgroundColor: ownerState?.paletteColor?.activeOpacity,
55
+ boxShadow: "unset"
56
+ },
57
+ // Estado focus visible
58
+ "&:focus-visible": {
59
+ backgroundColor: ownerState?.paletteColor?.activeOpacity,
60
+ ...selectionEffect
61
+ }
43
62
  },
44
- "&:active": {
45
- boxShadow: "none",
46
- backgroundColor: ownerState?.paletteColor?.active
47
- }
48
- },
49
- ...ownerState?.variant === "outlined" && {
50
- borderColor: ownerState?.paletteColor?.enabled,
51
- "&&& .M4LIcon-icon": {
52
- backgroundColor: ownerState?.paletteColor?.semanticText
53
- }
54
- },
55
- ...ownerState?.variant === "text" && {
56
- color: ownerState?.paletteColor?.semanticText,
57
- borderColor: ownerState?.paletteColor?.enabled,
58
- "&&& .M4LIcon-icon": {
59
- backgroundColor: ownerState?.paletteColor?.semanticText
60
- }
61
- },
62
- "& span": {
63
- margin: "0px"
64
- },
65
- ...getSizeStyles(
66
- theme,
67
- ownerState?.size || "medium",
68
- "action",
69
- (size) => {
70
- return {
71
- height: "auto!important",
72
- minHeight: size
73
- };
63
+ // Variante Outlined
64
+ ...ownerState?.variant === "outlined" && {
65
+ "&&&": {
66
+ // Borde
67
+ ...ownerState?.color === "default" ? {
68
+ outline: `1px solid ${theme.vars.palette.border.default}`,
69
+ outlineOffset: "-1px"
70
+ } : {
71
+ outline: `1px solid ${ownerState?.paletteColor?.enabled}`,
72
+ outlineOffset: "-1px"
73
+ },
74
+ // Color del texto
75
+ [`& .${BUTTON_CLASSES.textButton}`]: {
76
+ ...ownerState?.color === "default" ? {
77
+ color: theme.vars.palette.text.primary
78
+ } : {
79
+ color: ownerState?.paletteColor?.semanticText
80
+ }
81
+ },
82
+ // Color de los adornos laterales
83
+ "& .M4LIcon-icon": {
84
+ backgroundColor: ownerState?.paletteColor?.semanticText
85
+ },
86
+ // Estado Hover
87
+ "&:hover": {
88
+ backgroundColor: ownerState?.paletteColor?.hoverOpacity,
89
+ outline: `1px solid ${ownerState?.paletteColor?.hover}`,
90
+ outlineOffset: "-1px",
91
+ boxShadow: "unset"
92
+ }
93
+ },
94
+ // Estado Active
95
+ "&&&:active": {
96
+ backgroundColor: ownerState?.paletteColor?.activeOpacity,
97
+ outline: `1px solid ${ownerState?.paletteColor?.active}`,
98
+ outlineOffset: "-1px"
99
+ },
100
+ // Estado focus visible
101
+ "&:focus-visible": {
102
+ backgroundColor: ownerState?.paletteColor?.activeOpacity,
103
+ outline: "unset!important",
104
+ //efecto de selección
105
+ ...selectionEffect
106
+ }
107
+ },
108
+ // Variante Text
109
+ ...ownerState?.variant === "text" && {
110
+ "&&&": {
111
+ backgroundColor: "unset",
112
+ outline: "unset",
113
+ // Color del texto
114
+ [`& .${BUTTON_CLASSES.textButton}`]: {
115
+ color: ownerState?.paletteColor?.semanticText
116
+ },
117
+ // Color de los adornos laterales
118
+ "& .M4LIcon-icon": {
119
+ backgroundColor: ownerState?.paletteColor?.semanticText
120
+ },
121
+ // Estado Hover
122
+ "&:hover": {
123
+ backgroundColor: ownerState?.paletteColor?.hoverOpacity,
124
+ boxShadow: "unset"
125
+ },
126
+ // Estado Active
127
+ "&:active": {
128
+ backgroundColor: ownerState?.paletteColor?.activeOpacity
129
+ },
130
+ // Estado focus visible
131
+ "&:focus-visible": {
132
+ backgroundColor: ownerState?.paletteColor?.activeOpacity,
133
+ //efecto de selección
134
+ ...selectionEffect
135
+ }
136
+ }
137
+ },
138
+ // Estado deshabilitado
139
+ "&:disabled": {
140
+ "&&&": {
141
+ backgroundColor: "unset",
142
+ // Color del texto
143
+ [`& .${BUTTON_CLASSES.textButton}`]: {
144
+ color: theme.vars.palette.text.disabled
145
+ },
146
+ // Color de los adornos laterales
147
+ "& .M4LIcon-icon": {
148
+ backgroundColor: theme.vars.palette.text.disabled
149
+ }
150
+ }
151
+ },
152
+ // Overrides
153
+ "& span": {
154
+ margin: "0px"
155
+ },
156
+ // Configuración de achura completa
157
+ ...ownerState?.fullWidth && {
158
+ width: "100%",
159
+ maxWidth: "unset",
160
+ minWidth: "unset"
74
161
  }
75
- ),
76
- ...ownerState?.fullWidth && {
77
- width: "100%",
78
- maxWidth: "unset",
79
- minWidth: "unset"
80
- }
81
- }),
162
+ };
163
+ },
82
164
  /**
83
165
  * Styles for the text of the button component.
84
166
  */
@@ -99,15 +181,6 @@ const buttonStyles = {
99
181
  display: "block",
100
182
  overflow: "hidden",
101
183
  textOverflow: "ellipsis"
102
- },
103
- ...ownerState.variant === "contained" && {
104
- color: ownerState.color === "default" ? ownerState.paletteColor?.semanticText : ownerState.paletteColor?.contrastText
105
- },
106
- ...(ownerState?.variant === "outlined" || ownerState?.variant === "text") && {
107
- color: ownerState?.paletteColor?.semanticText
108
- },
109
- ...ownerState?.disabled && {
110
- color: theme.vars.palette.text.disabled
111
184
  }
112
185
  }),
113
186
  /**
@@ -6,3 +6,4 @@
6
6
  * @default 'M4LButton'
7
7
  */
8
8
  export declare const BUTTON_KEY_COMPONENT = "M4LButton";
9
+ export declare const BUTTON_CLASSES: Record<"buttonRoot" | "skeletonButton" | "buttonIcon" | "textButton", string>;
@@ -0,0 +1,8 @@
1
+ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
2
+ import { B as ButtonSlots } from "./slots/ButtonEnum.js";
3
+ const BUTTON_KEY_COMPONENT = "M4LButton";
4
+ const BUTTON_CLASSES = getComponentClasses(BUTTON_KEY_COMPONENT, ButtonSlots);
5
+ export {
6
+ BUTTON_CLASSES as B,
7
+ BUTTON_KEY_COMPONENT as a
8
+ };
@@ -1,7 +1,7 @@
1
1
  import { Button } from "@mui/material";
2
2
  import { styled } from "@mui/material/styles";
3
3
  import { b as buttonStyles } from "../ButtonStyles.js";
4
- import { B as BUTTON_KEY_COMPONENT } from "../constans.js";
4
+ import { a as BUTTON_KEY_COMPONENT } from "../constants.js";
5
5
  import { B as ButtonSlots } from "./ButtonEnum.js";
6
6
  import { S as Skeleton } from "../../Skeleton/Skeleton.js";
7
7
  import { T as Typography } from "../../Typography/Typography.js";
@@ -1,6 +1,6 @@
1
1
  import { ButtonProps as MUIButtonProps, PaletteColor, Theme } from '@mui/material';
2
2
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
3
- import { BUTTON_KEY_COMPONENT } from './constans';
3
+ import { BUTTON_KEY_COMPONENT } from './constants';
4
4
  import { ButtonSlots } from './slots/ButtonEnum';
5
5
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
6
6
  import { ReactNode } from 'react';
@@ -2,4 +2,4 @@ export declare const ICON_BUTTON_KEY_COMPONENT = "M4LIconButton";
2
2
  /**
3
3
  * Inventario de clases CSS para el componente TextField
4
4
  */
5
- export declare const ICON_BUTTON_CLASSES: Record<string, string>;
5
+ export declare const ICON_BUTTON_CLASSES: Record<"text" | "selected" | "contained" | "skeleton" | "icon" | "outline" | "styledMUIIconButton" | "badgeIconButton", string>;
@@ -2,7 +2,10 @@ import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js
2
2
  import { I as IconButtonSlots } from "./slots/IconButtonEnum.js";
3
3
  const ICON_BUTTON_KEY_COMPONENT = "M4LIconButton";
4
4
  const IconButtonComplementaryClasses = {
5
- selected: "selected"
5
+ selected: "selected",
6
+ contained: "contained",
7
+ outline: "outline",
8
+ text: "text"
6
9
  };
7
10
  const IconButtonCombineClasses = {
8
11
  ...IconButtonSlots,
@@ -69,7 +69,7 @@ const MenuItem = (props) => {
69
69
  "data-testid": "SkeletonMenuItem",
70
70
  width: skeletonWidth,
71
71
  ownerState: { ...ownerState },
72
- className: MENUITEM_CLASSES.skeleton
72
+ className: MENUITEM_CLASSES.skeletonMenuItem
73
73
  }
74
74
  );
75
75
  }
@@ -9,4 +9,4 @@ export declare const MENUITEM_KEY_COMPONENT = "M4LMenuItem";
9
9
  /**
10
10
  * Inventario de clases CSS para el componente MenuItem
11
11
  */
12
- export declare const MENUITEM_CLASSES: Record<string, string>;
12
+ export declare const MENUITEM_CLASSES: Record<"root" | "menuItemIcon" | "menuItemIconChecked" | "menuItemContainer" | "skeletonMenuItem" | "menuItemTypography", string>;
@@ -11,4 +11,4 @@ export declare const NAV_LINK_SPECIFY = "M4lclassCssSpecificity";
11
11
  /**
12
12
  * Inventario de clases CSS para el componente Typography.
13
13
  */
14
- export declare const classNavLinkRoot: Record<string, string>;
14
+ export declare const classNavLinkRoot: Record<"root" | "typographyStyled" | "skeletonStyled" | "routerNavLinkStyled", string>;
@@ -91,7 +91,7 @@ const Select = forwardRef(
91
91
  {
92
92
  src: icon,
93
93
  size: adjustedSize,
94
- className: SELECT_CLASSES.renderValueStartAdorment,
94
+ className: SELECT_CLASSES.adorment,
95
95
  disabled
96
96
  }
97
97
  );
@@ -201,7 +201,7 @@ const Select = forwardRef(
201
201
  return /* @__PURE__ */ jsx(
202
202
  MenuItemListStyled,
203
203
  {
204
- className: SELECT_CLASSES.menuItemList,
204
+ className: SELECT_CLASSES.menuItem,
205
205
  ownerState: { ...ownerState },
206
206
  size: adjustedSize,
207
207
  value: option.id,
@@ -28,4 +28,4 @@ export declare const COMBINATED_TEXTFIELD_ENUMS: {
28
28
  /**
29
29
  * Inventario de clases CSS para el componente Select
30
30
  */
31
- export declare const SELECT_CLASSES: Record<string, string>;
31
+ export declare const SELECT_CLASSES: Record<"text" | "menuItem" | "outlined" | "root" | "adorment" | "menuItemNoOptions" | "renderValueContainer" | "arrowDown" | "renderValueTypography" | "labelOption" | "labelPlaceholer" | "skeletonSelect", string>;
@@ -15,4 +15,4 @@ export declare const COMBINATED_TEXTFIELD_ENUMS: {
15
15
  /**
16
16
  * Inventario de clases CSS para el componente TextField
17
17
  */
18
- export declare const TEXT_FIELD_CLASSES: Record<string, string>;
18
+ export declare const TEXT_FIELD_CLASSES: Record<"text" | "contained" | "outlined" | "skeleton" | "root" | "readOnly" | "limitContainer" | "limitTextFirst" | "limitTextSeparator" | "limitTextSecond", string>;
@@ -23,7 +23,14 @@ const tooltipStyles = {
23
23
  padding: theme.vars.size.baseSpacings.sp2,
24
24
  borderRadius: theme.vars.size.borderRadius.r1,
25
25
  boxShadow: theme.vars.customShadows.z3,
26
- ".MuiTooltip-arrow": {
26
+ "&.MuiTooltip-tooltipPlacementLeft .MuiTooltip-arrow": {
27
+ marginRight: "-0.6em"
28
+ },
29
+ "&.MuiTooltip-tooltipPlacementTop .MuiTooltip-arrow": {
30
+ marginBottom: "-0.6em"
31
+ },
32
+ "&&& .MuiTooltip-arrow": {
33
+ overflow: "visible",
27
34
  "&::before": {
28
35
  backgroundColor: theme.vars.palette.background.contrastDefault,
29
36
  borderRadius: theme.vars.size.borderRadius["r1"],
@@ -2,7 +2,7 @@ export declare const TOOLTIP_KEY_COMPONENT = "M4LTooltip";
2
2
  /**
3
3
  * Clases del componente Tooltip
4
4
  */
5
- export declare const TOOLTIP_CLASSES: Record<string, string>;
5
+ export declare const TOOLTIP_CLASSES: Record<"text" | "tooltip" | "root", string>;
6
6
  /**
7
7
  * Desplazamiento predeterminado del tooltip (X, Y)
8
8
  */
@@ -10,7 +10,7 @@ export declare const TYPOGRAPHY_CLASS_NAME_SPECIFY = "M4lclassCssSpecificity";
10
10
  /**
11
11
  * Inventario de clases CSS para el componente Typography.
12
12
  */
13
- export declare const TYPOGRAPHY_CLASSES: Record<string, string>;
13
+ export declare const TYPOGRAPHY_CLASSES: Record<"skeleton" | "root", string>;
14
14
  export declare const TYPOGRAPHY_FONTS: {
15
15
  Inter: string;
16
16
  Jura: string;
@@ -3,7 +3,7 @@ import { Sizes, TypographyVariants } from '@m4l/styles';
3
3
  import { TypographySlots } from './slots/typographyEnum';
4
4
  import { TYPOGRAPHY_KEY_COMPONENT } from './constants';
5
5
  import { M4LOverridesStyleRules } from '../../../@types/augmentations';
6
- import { DeepKeyOf } from 'src/utils/types';
6
+ import { DeepKeyOf } from '../../../utils/types';
7
7
  /**
8
8
  * Define los colores de tipografía disponibles para el componente.
9
9
  */
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import { createContext, useRef } from "react";
2
+ import { createContext, useRef, useEffect } from "react";
3
3
  import { DEFAULT_SIZE } from "@m4l/styles";
4
4
  import { c as createAppearanceComponentStore } from "./AppearanceComponentStore.js";
5
5
  const AppearanceComponentContext = createContext(null);
@@ -12,6 +12,11 @@ function AppearanceComponentProvider(props) {
12
12
  storeId
13
13
  }, storeDevtoolsEnabled);
14
14
  }
15
+ useEffect(() => {
16
+ if (appearanceComponentStoreRef.current && defaultSize) {
17
+ appearanceComponentStoreRef.current.getState().actions.setDefaultSize(defaultSize);
18
+ }
19
+ }, [defaultSize]);
15
20
  return /* @__PURE__ */ jsx(AppearanceComponentContext.Provider, { value: appearanceComponentStoreRef.current, children });
16
21
  }
17
22
  export {
package/index.js CHANGED
@@ -164,7 +164,8 @@ import { g as g22 } from "./components/LoadingError/dictionary.js";
164
164
  import { g as g23 } from "./components/MenuActions/dictionary.js";
165
165
  import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
166
166
  import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
167
- import { M as M5 } from "./components/MFLoader/MFLoader.js";
167
+ import { M as M5 } from "./components/MFIsolationAppStorybook/MFIsolationAppStorybook.js";
168
+ import { M as M6 } from "./components/MFLoader/MFLoader.js";
168
169
  import { g as g24 } from "./components/MFLoader/dictionary.js";
169
170
  import { I as I6 } from "./components/ImageText/ImageText.js";
170
171
  import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
@@ -187,12 +188,12 @@ import { T as T18 } from "./components/ToastContainer/subcomponents/ToastMessage
187
188
  import { W as W2 } from "./components/WindowBase/WindowBase.js";
188
189
  import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
189
190
  import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
190
- import { M as M6, W as W3, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
191
+ import { M as M7, W as W3, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
191
192
  import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
192
- import { D as D10, a as a13, M as M7 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
193
+ import { D as D10, a as a13, M as M8 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
193
194
  import { W as W4 } from "./components/WindowConfirm/WindowConfirm.js";
194
195
  import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
195
- import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
196
+ import { M as M9 } from "./components/ModalDialog/ModalDialog.js";
196
197
  import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
197
198
  import { P as P13 } from "./components/Pager/Pager.js";
198
199
  import { u as u16 } from "./components/Stepper/hooks/useStepper/index.js";
@@ -212,7 +213,7 @@ import { F as F3, R as R23, u as u17 } from "./components/hook-form/RHFormContex
212
213
  import { g as g30 } from "./components/hook-form/RHFormContext/dictionary.js";
213
214
  import { u as u18 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
214
215
  import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
215
- import { a as a15, M as M9 } from "./contexts/ModalContext/index.js";
216
+ import { a as a15, M as M10 } from "./contexts/ModalContext/index.js";
216
217
  import { u as u19 } from "./hooks/useFormAddEdit/index.js";
217
218
  import { u as u20 } from "./hooks/useModal/index.js";
218
219
  import { u as u21 } from "./hooks/useTab/index.js";
@@ -322,14 +323,15 @@ export {
322
323
  L10 as LoadingError,
323
324
  L as LoadingScreen,
324
325
  M4 as MFIsolationApp,
325
- M5 as MFLoader,
326
- M7 as MemonizedDynamicMFParmsProvider,
326
+ M5 as MFIsolationAppStorybook,
327
+ M6 as MFLoader,
328
+ M8 as MemonizedDynamicMFParmsProvider,
327
329
  a9 as MemonizedMenuActions,
328
- M6 as MemonizedWindowToolsMFContext,
330
+ M7 as MemonizedWindowToolsMFContext,
329
331
  M3 as MenuActions,
330
332
  a15 as ModalContext,
331
- M8 as ModalDialog,
332
- M9 as ModalProvider,
333
+ M9 as ModalDialog,
334
+ M10 as ModalProvider,
333
335
  M as MotionContainer,
334
336
  M2 as MotionLazyContainer,
335
337
  N2 as NavLink,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.3.19-BE093025-beta.1",
3
+ "version": "9.3.19-BE101025-beta.2",
4
4
  "license": "UNLICENSED",
5
5
  "description": "M4L Components",
6
6
  "lint-staged": {
@@ -3,7 +3,9 @@
3
3
  * Esta función es utilizada para asignar un asignar un className a un componente
4
4
  */
5
5
  export declare function getComponentSlotRoot(componentKey: string): string;
6
+ type ComponentSlots = Record<string, string> | readonly string[];
6
7
  /**
7
8
  * Función para construir el nombre del slot para className de un componente.
8
9
  */
9
- export declare const getComponentClasses: <T extends Record<string, string> | string[]>(componentName: string, slotList: T) => Record<string, string>;
10
+ export declare const getComponentClasses: <T extends ComponentSlots>(componentName: string, slotList: T) => T extends readonly string[] ? Record<T[number], string> : Record<keyof T, string>;
11
+ export {};
@@ -1,4 +0,0 @@
1
- const BUTTON_KEY_COMPONENT = "M4LButton";
2
- export {
3
- BUTTON_KEY_COMPONENT as B
4
- };