@m4l/components 9.3.2-B04082025-beta.2 → 9.3.2-B11082025-beta.1
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/types.d.ts +33 -3
- package/components/Card/Card.d.ts +7 -0
- package/components/Card/Card.styles.d.ts +2 -0
- package/components/Card/constants.d.ts +7 -0
- package/components/Card/helpers/getSizeSpacing.d.ts +7 -0
- package/components/Card/index.d.ts +1 -0
- package/components/Card/slots/CardEnum.d.ts +3 -0
- package/components/Card/slots/CardSlots.d.ts +3 -0
- package/components/Card/types.d.ts +59 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +3 -1
- package/components/DynamicSort/DynamicSort.styles.js +3 -1
- package/components/ImageText/ImageText.d.ts +7 -0
- package/components/ImageText/ImageText.js +62 -0
- package/components/ImageText/ImageText.styles.d.ts +2 -0
- package/components/ImageText/{components/NoItemPrivileges/NoItemPrivilegesStyles.js → ImageText.styles.js} +21 -4
- package/components/ImageText/constants.d.ts +16 -0
- package/components/ImageText/constants.js +10 -0
- package/components/ImageText/index.d.ts +1 -3
- package/components/ImageText/slots/ImageTextEnum.d.ts +8 -0
- package/components/ImageText/slots/ImageTextEnum.js +12 -0
- package/components/ImageText/slots/ImageTextSlots.d.ts +18 -0
- package/components/ImageText/slots/ImageTextSlots.js +38 -0
- package/components/ImageText/types.d.ts +40 -0
- package/components/NoItemPrivileges/NoItemPrivileges.js +33 -0
- package/components/NoItemPrivileges/NoItemPrivilegesStyles.js +6 -0
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.d.ts +0 -1
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/constants.js +3 -4
- package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +3 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +7 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +3 -0
- package/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +12 -0
- package/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
- package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/types.d.ts +1 -1
- package/components/NoItemSelected/NoItemSelected.js +34 -0
- package/components/NoItemSelected/NoItemSelected.styles.js +6 -0
- package/components/NoItemSelected/constant.d.ts +2 -0
- package/components/NoItemSelected/constant.js +8 -0
- package/components/{ImageText/components/NoItemSelected → NoItemSelected}/dictionary.d.ts +0 -2
- package/components/NoItemSelected/dictionary.js +12 -0
- package/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +3 -0
- package/components/NoItemSelected/slots/NoItemSelectedEnum.js +7 -0
- package/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +3 -0
- package/components/NoItemSelected/slots/NoItemSelectedSlots.js +12 -0
- package/components/NoItemSelected/test/NoItemSelected.test.d.ts +1 -0
- package/components/{ImageText/components/NoItemSelected → NoItemSelected}/types.d.ts +6 -7
- package/components/NumberInput/NumberInput.styles.js +1 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +1 -1
- package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
- package/components/ObjectLogs/hooks/useFilterAndSort.js +2 -1
- package/components/PaperForm/PaperForm.js +1 -2
- package/components/PaperForm/components/Header.js +1 -10
- package/components/PaperForm/styles.js +1 -4
- package/components/PropertyValue/PropertyValue.js +1 -1
- package/components/SettingsLayout/SettingsLayout.d.ts +5 -0
- package/components/SettingsLayout/SettingsLayout.js +34 -0
- package/components/SettingsLayout/SettingsLayout.styles.d.ts +2 -0
- package/components/SettingsLayout/SettingsLayout.styles.js +270 -0
- package/components/SettingsLayout/constants.d.ts +7 -0
- package/components/SettingsLayout/constants.js +10 -0
- package/components/SettingsLayout/dictionary.d.ts +8 -0
- package/components/SettingsLayout/dictionary.js +11 -0
- package/components/SettingsLayout/icons.d.ts +14 -0
- package/components/SettingsLayout/icons.js +17 -0
- package/components/SettingsLayout/index.d.ts +2 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.d.ts +17 -0
- package/components/SettingsLayout/slots/SettingsLayoutEnum.js +21 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.d.ts +47 -0
- package/components/SettingsLayout/slots/SettingsLayoutSlots.js +83 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/SettingColorPresets.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingColorPresets/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/SettingDirection.js +37 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingDirection/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/SettingFullscreen.js +40 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingFullscreen/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItem/SettingItem.js +23 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItem/types.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.d.ts +8 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/SettingItemColor.js +24 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingItemColor/types.d.ts +6 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingMode/SettingMode.js +36 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingMode/types.d.ts +3 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.d.ts +5 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/SettingsLayoutBase.js +76 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.d.ts +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/index.js +1 -0
- package/components/SettingsLayout/subcomponents/SettingsLayoutBase/types.d.ts +5 -0
- package/components/SettingsLayout/test/SettingsLayout.test.d.ts +18 -0
- package/components/SettingsLayout/types.d.ts +47 -0
- package/components/SideBar/subcomponents/ContentComponent/style.js +3 -0
- package/components/ToastContainer/ToastContainer.js +0 -1
- package/components/ToastContainer/ToastContainer.styles.js +126 -122
- package/components/ToastContainer/constants.d.ts +670 -0
- package/components/ToastContainer/constants.js +672 -1
- package/components/hook-form/RHFColorPicker/RHFColorPicker.styles.js +2 -1
- package/components/hook-form/RHFDateTime/RHFDateTime.styles.js +2 -1
- package/components/hook-form/RHFNumberInput/RHFNumberInput.styles.js +2 -1
- package/components/hook-form/RHFPeriod/RHFPeriod.styles.js +2 -5
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js +6 -6
- package/components/hook-form/RHFPeriod/subcomponents/Period/Period.js +13 -11
- package/components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js +1 -1
- package/components/hook-form/RHFPeriod/subcomponents/Period/types.d.ts +2 -2
- package/components/hook-form/RHFSelect/RHFSelect.styles.js +2 -1
- package/components/hook-form/RHFTextField/RHFTextField.js +5 -3
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +63 -55
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/index.d.ts +3 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Button/ButtonStyles.js +2 -1
- package/components/mui_extended/IconButton/IconButton.styles.js +1 -1
- package/components/mui_extended/MenuItem/MenuItem.styles.js +2 -1
- package/components/mui_extended/TextField/TextField.js +6 -8
- package/components/mui_extended/TextField/TextField.styles.js +1 -0
- package/components/mui_extended/TextField/constants.d.ts +5 -5
- package/components/mui_extended/TextField/constants.js +2 -2
- package/components/mui_extended/TextField/index.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +8 -8
- package/components/mui_extended/TextField/types.d.ts +1 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/useIsVisible/index.d.ts +1 -0
- package/hooks/useIsVisible/index.js +1 -0
- package/hooks/useIsVisible/useIsVisible.d.ts +8 -0
- package/{components/ImageText/hooks/useIsVisible/index.js → hooks/useIsVisible/useIsVisible.js} +3 -3
- package/index.js +21 -17
- package/package.json +3 -3
- package/storybook/components/Card/Card.stories.d.ts +45 -0
- package/storybook/components/Card/subcomponents/ContentCard.d.ts +8 -0
- package/storybook/components/Card/subcomponents/constants.d.ts +9 -0
- package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +1 -1
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
- package/storybook/components/SettingsLayout/SettingsLayout.stories.d.ts +6 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/SettingsLayoutsRender.d.ts +5 -0
- package/storybook/components/SettingsLayout/subcomponents/SettingsLayoutRender/index.d.ts +1 -0
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +1 -1
- package/storybook/components/paperForm/PaperForm.stories.d.ts +4 -0
- package/storybook/hook-form/RHFTextField/RHFTextField.stories.d.ts +4 -0
- package/storybook/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.stories.d.ts +19 -0
- package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.d.ts +2 -2
- package/utils/getLimitCharacters/index.js +1 -0
- package/utils/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
- package/utils/getLimitCharacters/types.d.ts +11 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.d.ts +0 -7
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.js +0 -25
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.d.ts +0 -2
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.js +0 -22
- package/components/ImageText/components/ImageTextContainer/constants.d.ts +0 -8
- package/components/ImageText/components/ImageTextContainer/constants.js +0 -8
- package/components/ImageText/components/ImageTextContainer/index.d.ts +0 -1
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.d.ts +0 -3
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.js +0 -7
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.d.ts +0 -3
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.js +0 -12
- package/components/ImageText/components/ImageTextContainer/types.d.ts +0 -22
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js +0 -65
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +0 -7
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +0 -11
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +0 -15
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +0 -33
- package/components/ImageText/components/NoItemSelected/NoItemSelected.js +0 -62
- package/components/ImageText/components/NoItemSelected/NoItemSelected.styles.js +0 -89
- package/components/ImageText/components/NoItemSelected/constant.d.ts +0 -2
- package/components/ImageText/components/NoItemSelected/constant.js +0 -8
- package/components/ImageText/components/NoItemSelected/dictionary.js +0 -11
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.d.ts +0 -8
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedEnum.js +0 -12
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.d.ts +0 -18
- package/components/ImageText/components/NoItemSelected/slots/NoItemSelectedSlots.js +0 -39
- package/components/ImageText/hooks/useIsVisible/index.d.ts +0 -6
- package/components/hook-form/RHFDateTime/styles.d.ts +0 -1
- package/components/mui_extended/TextField/helpers/getLimitCharacters/types.d.ts +0 -5
- /package/components/{ImageText/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts → Card/helpers/getSizeSpacing.test.d.ts} +0 -0
- /package/components/{mui_extended/TextField/helpers/getLimitCharacters/test/getLimitCharacters.test.d.ts → Card/test/Card.test.d.ts} +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivileges.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/NoItemPrivilegesStyles.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/dictionary.js +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemPrivileges}/index.d.ts +0 -0
- /package/components/{ImageText/components/ImageTextContainer → NoItemPrivileges}/index.js +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.d.ts +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/NoItemSelected.styles.d.ts +0 -0
- /package/components/{ImageText/components/NoItemSelected → NoItemSelected}/index.d.ts +0 -0
- /package/components/{ImageText/components/NoItemPrivileges → NoItemSelected}/index.js +0 -0
- /package/components/{ImageText/components/NoItemSelected → SettingsLayout}/index.js +0 -0
- /package/components/{mui_extended/TextField/helpers/getLimitCharacters → SettingsLayout/subcomponents/SettingColorPresets}/index.js +0 -0
- /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/getLimitCharacters.js +0 -0
- /package/{components/mui_extended/TextField/helpers → utils}/getLimitCharacters/index.d.ts +0 -0
|
@@ -8,7 +8,6 @@ import { T as TextFieldSlots } from "./slots/TextFieldEnum.js";
|
|
|
8
8
|
import { useTheme } from "@mui/material";
|
|
9
9
|
import { forwardRef } from "react";
|
|
10
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
import { g as getLimitCharacters } from "./helpers/getLimitCharacters/getLimitCharacters.js";
|
|
12
11
|
import { T as Typography } from "../Typography/Typography.js";
|
|
13
12
|
const TextField = forwardRef(function TextField2(props, ref) {
|
|
14
13
|
const {
|
|
@@ -22,7 +21,7 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
22
21
|
autoComplete = "off",
|
|
23
22
|
className,
|
|
24
23
|
inputProps,
|
|
25
|
-
|
|
24
|
+
maxLength,
|
|
26
25
|
...others
|
|
27
26
|
} = props;
|
|
28
27
|
const { currentSize } = useComponentSize(size);
|
|
@@ -38,8 +37,6 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
38
37
|
color: error ? "error" : "default",
|
|
39
38
|
readOnly: InputProps?.readOnly
|
|
40
39
|
};
|
|
41
|
-
const finalValue = limitCharacters ? getLimitCharacters({ limitCharacters, value }) : value;
|
|
42
|
-
const stringValue = String(finalValue || "");
|
|
43
40
|
const isSkeleton = useModuleSkeleton();
|
|
44
41
|
if (isSkeleton) {
|
|
45
42
|
return /* @__PURE__ */ jsx(
|
|
@@ -60,7 +57,7 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
60
57
|
className: clsx(TEXT_FIELD_CLASSES.root, TEXT_FIELD_CLASSES[variant], className, InputProps?.readOnly && TEXT_FIELD_CLASSES.readOnly),
|
|
61
58
|
...getPropDataTestId(TEXT_FIELD_KEY_COMPONENT, TextFieldSlots.root, dataTestId),
|
|
62
59
|
autoComplete,
|
|
63
|
-
value
|
|
60
|
+
value,
|
|
64
61
|
inputMode: "numeric",
|
|
65
62
|
disabled,
|
|
66
63
|
inputProps: {
|
|
@@ -68,13 +65,14 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
68
65
|
"aria-invalid": error ? "true" : void 0,
|
|
69
66
|
...inputProps
|
|
70
67
|
},
|
|
68
|
+
maxLength,
|
|
71
69
|
InputProps: {
|
|
72
70
|
...InputProps,
|
|
73
|
-
...
|
|
71
|
+
...maxLength && {
|
|
74
72
|
endAdornment: /* @__PURE__ */ jsxs(LimitContainerStyled, { children: [
|
|
75
|
-
/* @__PURE__ */ jsx(LimitTextFirstStyled, { role: "text", "aria-label": "current characters", variant: "body", color: "text.secondary", ownerState: { percent:
|
|
73
|
+
/* @__PURE__ */ jsx(LimitTextFirstStyled, { role: "text", "aria-label": "current characters", variant: "body", color: "text.secondary", ownerState: { percent: value.length / maxLength * 100 }, children: value.length }),
|
|
76
74
|
/* @__PURE__ */ jsx(Typography, { variant: "body", color: "text.secondary", children: "/" }),
|
|
77
|
-
/* @__PURE__ */ jsx(LimitTextSecondStyled, { role: "text", "aria-label": "limit characters", variant: "body", color: "text.secondary", children:
|
|
75
|
+
/* @__PURE__ */ jsx(LimitTextSecondStyled, { role: "text", "aria-label": "limit characters", variant: "body", color: "text.secondary", children: maxLength }),
|
|
78
76
|
InputProps?.endAdornment
|
|
79
77
|
] })
|
|
80
78
|
},
|
|
@@ -18,6 +18,7 @@ const textFieldStyles = {
|
|
|
18
18
|
paddingRight: 0,
|
|
19
19
|
paddingTop: 0,
|
|
20
20
|
paddingBottom: 0,
|
|
21
|
+
overflow: "hidden",
|
|
21
22
|
// Estilo de los bordes
|
|
22
23
|
border: theme.vars.size.borderStroke.actionInput,
|
|
23
24
|
borderColor: ownerState?.error && !ownerState?.readOnly ? `${ownerState?.paletteColor?.enabled}!important` : `${theme.vars.palette.border.secondary}!important`,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TextFieldComplementaryClasses, TextFieldSlots } from './slots';
|
|
2
2
|
export declare const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
|
|
3
3
|
export declare const COMBINATED_TEXTFIELD_ENUMS: {
|
|
4
|
-
outlined:
|
|
5
|
-
text:
|
|
6
|
-
contained:
|
|
7
|
-
readOnly:
|
|
4
|
+
outlined: TextFieldComplementaryClasses.outlined;
|
|
5
|
+
text: TextFieldComplementaryClasses.text;
|
|
6
|
+
contained: TextFieldComplementaryClasses.contained;
|
|
7
|
+
readOnly: TextFieldComplementaryClasses.readOnly;
|
|
8
8
|
root: TextFieldSlots.root;
|
|
9
9
|
skeleton: TextFieldSlots.skeleton;
|
|
10
10
|
limitContainer: TextFieldSlots.limitContainer;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as TextFieldComplementaryClasses, T as TextFieldSlots } from "./slots/TextFieldEnum.js";
|
|
3
3
|
const TEXT_FIELD_KEY_COMPONENT = "M4LTextField";
|
|
4
4
|
const COMBINATED_TEXTFIELD_ENUMS = {
|
|
5
5
|
...TextFieldSlots,
|
|
6
|
-
...
|
|
6
|
+
...TextFieldComplementaryClasses
|
|
7
7
|
};
|
|
8
8
|
const TEXT_FIELD_CLASSES = getComponentClasses(TEXT_FIELD_KEY_COMPONENT, COMBINATED_TEXTFIELD_ENUMS);
|
|
9
9
|
export {
|
|
@@ -5,7 +5,7 @@ export declare enum TextFieldSlots {
|
|
|
5
5
|
limitTextFirst = "limitTextFirst",
|
|
6
6
|
limitTextSecond = "limitTextSecond"
|
|
7
7
|
}
|
|
8
|
-
export declare enum
|
|
8
|
+
export declare enum TextFieldComplementaryClasses {
|
|
9
9
|
outlined = "outlined",
|
|
10
10
|
text = "text",
|
|
11
11
|
contained = "contained",
|
|
@@ -6,14 +6,14 @@ var TextFieldSlots = /* @__PURE__ */ ((TextFieldSlots2) => {
|
|
|
6
6
|
TextFieldSlots2["limitTextSecond"] = "limitTextSecond";
|
|
7
7
|
return TextFieldSlots2;
|
|
8
8
|
})(TextFieldSlots || {});
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return
|
|
15
|
-
})(
|
|
9
|
+
var TextFieldComplementaryClasses = /* @__PURE__ */ ((TextFieldComplementaryClasses2) => {
|
|
10
|
+
TextFieldComplementaryClasses2["outlined"] = "outlined";
|
|
11
|
+
TextFieldComplementaryClasses2["text"] = "text";
|
|
12
|
+
TextFieldComplementaryClasses2["contained"] = "contained";
|
|
13
|
+
TextFieldComplementaryClasses2["readOnly"] = "readOnly";
|
|
14
|
+
return TextFieldComplementaryClasses2;
|
|
15
|
+
})(TextFieldComplementaryClasses || {});
|
|
16
16
|
export {
|
|
17
17
|
TextFieldSlots as T,
|
|
18
|
-
|
|
18
|
+
TextFieldComplementaryClasses as a
|
|
19
19
|
};
|
|
@@ -40,7 +40,7 @@ export interface TextFieldProps extends Omit<MUITextFieldProps, 'size' | 'color'
|
|
|
40
40
|
* Limite de caracteres del campo de texto.
|
|
41
41
|
* limitCharacters={10}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
maxLength?: number;
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Estado del propietario del campo de texto.
|
package/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useIsVisible } from './useIsVisible';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Custom hook para verificar si el contenedor debería ser visible en la pantalla.
|
|
3
|
+
* Cada vez que el contenedor cambia de tamaño, el hook revisa si su altura es al menos de 55 píxeles o mayor (o el valor que se le pasa como argumento).
|
|
4
|
+
* Si es lo suficientemente alta, dice “sí, está visible” (true), si no, dice “no, está demasiado pequeña” (false).
|
|
5
|
+
* @param containerRef - Referencia al contenedor del componente.
|
|
6
|
+
* @returns true si el contenedor debería ser visible, false en caso contrario.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useIsVisible: (containerRef: React.RefObject<HTMLDivElement>, minHeightThreshold?: number) => boolean;
|
package/{components/ImageText/hooks/useIsVisible/index.js → hooks/useIsVisible/useIsVisible.js}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
const useIsVisible = (containerRef) => {
|
|
2
|
+
const useIsVisible = (containerRef, minHeightThreshold = 55) => {
|
|
3
3
|
const [isVisible, setIsVisible] = useState(true);
|
|
4
4
|
useEffect(() => {
|
|
5
5
|
const observer = new ResizeObserver((entries) => {
|
|
6
6
|
for (const entry of entries) {
|
|
7
|
-
const shouldBeVisible = entry.contentRect.height >=
|
|
7
|
+
const shouldBeVisible = entry.contentRect.height >= minHeightThreshold;
|
|
8
8
|
setIsVisible(shouldBeVisible);
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
if (containerRef.current) {
|
|
12
12
|
observer.observe(containerRef.current);
|
|
13
13
|
const rect = containerRef.current.getBoundingClientRect();
|
|
14
|
-
setIsVisible(rect.height >=
|
|
14
|
+
setIsVisible(rect.height >= minHeightThreshold);
|
|
15
15
|
}
|
|
16
16
|
return () => {
|
|
17
17
|
observer.disconnect();
|
package/index.js
CHANGED
|
@@ -147,7 +147,7 @@ import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
|
147
147
|
import { R as R16 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
148
148
|
import { R as R17 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
149
149
|
import { R as R18 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
|
|
150
|
-
import { P as P6, R as R19, S as S7
|
|
150
|
+
import { N as N3, P as P6, R as R19, S as S7 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
151
151
|
import { R as R20 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
|
|
152
152
|
import { R as R21 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
153
153
|
import { I as I4 } from "./components/Icon/Icon.js";
|
|
@@ -163,11 +163,11 @@ import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
|
163
163
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
164
164
|
import { M as M5 } from "./components/MFLoader/MFLoader.js";
|
|
165
165
|
import { g as g24 } from "./components/MFLoader/dictionary.js";
|
|
166
|
-
import {
|
|
167
|
-
import {
|
|
168
|
-
import {
|
|
169
|
-
import {
|
|
170
|
-
import {
|
|
166
|
+
import { I as I6 } from "./components/ImageText/ImageText.js";
|
|
167
|
+
import { N as N4 } from "./components/NoItemSelected/NoItemSelected.js";
|
|
168
|
+
import { g as g25 } from "./components/NoItemSelected/dictionary.js";
|
|
169
|
+
import { N as N5 } from "./components/NoItemPrivileges/NoItemPrivileges.js";
|
|
170
|
+
import { g as g26 } from "./components/NoItemPrivileges/dictionary.js";
|
|
171
171
|
import { g as g27 } from "./components/ObjectLogs/dictionary.js";
|
|
172
172
|
import { O } from "./components/ObjectLogs/ObjectLogs.js";
|
|
173
173
|
import { P as P7 } from "./components/PaperForm/PaperForm.js";
|
|
@@ -179,8 +179,8 @@ import { P as P11 } from "./components/PrintingSystem/PrintingSystem.js";
|
|
|
179
179
|
import { P as P12 } from "./components/PropertyValue/PropertyValue.js";
|
|
180
180
|
import { S as S8 } from "./components/ScrollBar/ScrollBar.js";
|
|
181
181
|
import { S as S9 } from "./components/SideBar/SideBar.js";
|
|
182
|
-
import { T as
|
|
183
|
-
import { T as
|
|
182
|
+
import { T as T17 } from "./components/ToastContainer/ToastContainer.js";
|
|
183
|
+
import { T as T18 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
184
184
|
import { W as W2 } from "./components/WindowBase/WindowBase.js";
|
|
185
185
|
import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
186
186
|
import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
@@ -190,6 +190,7 @@ import { D as D10, a as a13, M as M7 } from "./components/WindowBase/contexts/Dy
|
|
|
190
190
|
import { W as W4 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
191
191
|
import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
192
192
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
193
|
+
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
193
194
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
194
195
|
import { F as F2, R as R22, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
195
196
|
import { g as g29 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
@@ -205,11 +206,12 @@ import { u as u22 } from "./hooks/useInterval/index.js";
|
|
|
205
206
|
import { u as u23 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
206
207
|
import { u as u24 } from "./hooks/useFormReadyForUpdate/index.js";
|
|
207
208
|
import { u as u25 } from "./hooks/useStateRef/index.js";
|
|
208
|
-
import { S as
|
|
209
|
+
import { S as S11 } from "./hooks/useSvgColor/constants.js";
|
|
209
210
|
import { u as u26 } from "./hooks/useSvgColor/useSvgColor.js";
|
|
210
211
|
import { u as u27 } from "./hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js";
|
|
211
212
|
import { u as u28 } from "./hooks/useDataGridPersistence/useDataGridPersistence.js";
|
|
212
213
|
import { u as u29 } from "./hooks/usePopoverContainer/usePopoverContainer.js";
|
|
214
|
+
import { u as u30 } from "./hooks/useIsVisible/useIsVisible.js";
|
|
213
215
|
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
214
216
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
215
217
|
import { g as g31 } from "./utils/getComponentUtilityClass.js";
|
|
@@ -289,7 +291,7 @@ export {
|
|
|
289
291
|
I as IconButtonAnimate,
|
|
290
292
|
I5 as Image,
|
|
291
293
|
I3 as ImageButton,
|
|
292
|
-
I6 as
|
|
294
|
+
I6 as ImageText,
|
|
293
295
|
L2 as LABEL_FILTER_BUTTON,
|
|
294
296
|
L6 as Label,
|
|
295
297
|
L7 as LanguagePopover,
|
|
@@ -312,9 +314,10 @@ export {
|
|
|
312
314
|
M as MotionContainer,
|
|
313
315
|
M2 as MotionLazyContainer,
|
|
314
316
|
N2 as NavLink,
|
|
315
|
-
|
|
317
|
+
N5 as NoItemPrivileges,
|
|
316
318
|
N4 as NoItemSelected,
|
|
317
319
|
N as NumberEditor,
|
|
320
|
+
N3 as NumberInputStyled,
|
|
318
321
|
O as ObjectLogs,
|
|
319
322
|
O2 as ObjectQueue,
|
|
320
323
|
P8 as PDFViewer,
|
|
@@ -353,11 +356,12 @@ export {
|
|
|
353
356
|
R as Resizable,
|
|
354
357
|
R2 as ResizableBox,
|
|
355
358
|
R3 as Responsive,
|
|
356
|
-
|
|
359
|
+
S11 as SKELETON_SVG_ICON,
|
|
357
360
|
S8 as ScrollBar,
|
|
358
361
|
S as SectionCommercial,
|
|
359
362
|
S4 as Select,
|
|
360
363
|
S7 as SelectStyled,
|
|
364
|
+
S10 as SettingsLayout,
|
|
361
365
|
S9 as SideBar,
|
|
362
366
|
S5 as Skeleton,
|
|
363
367
|
S2 as SortCompareValues,
|
|
@@ -372,9 +376,8 @@ export {
|
|
|
372
376
|
a7 as TabProvider,
|
|
373
377
|
T5 as Tabs,
|
|
374
378
|
T2 as TextEditor,
|
|
375
|
-
T17 as
|
|
376
|
-
T18 as
|
|
377
|
-
T19 as ToastMessage,
|
|
379
|
+
T17 as ToastContainer,
|
|
380
|
+
T18 as ToastMessage,
|
|
378
381
|
T9 as ToggleButton,
|
|
379
382
|
T12 as ToggleButtonRootStyled,
|
|
380
383
|
T11 as ToggleButtonSlots,
|
|
@@ -428,8 +431,8 @@ export {
|
|
|
428
431
|
g23 as getMenuActionsComponentsDictionary,
|
|
429
432
|
a14 as getModalDialogComponentsDictionary,
|
|
430
433
|
g28 as getModalDictionary,
|
|
431
|
-
|
|
432
|
-
|
|
434
|
+
g26 as getNoItemPrivilegesComponentsDictionary,
|
|
435
|
+
g25 as getNoItemSelectedComponentsDictionary,
|
|
433
436
|
g38 as getNullGuard,
|
|
434
437
|
g27 as getObjectLogsComponentsDictionary,
|
|
435
438
|
g11 as getPagerComponentsDictionary,
|
|
@@ -473,6 +476,7 @@ export {
|
|
|
473
476
|
u24 as useFormReadyForUpdate,
|
|
474
477
|
u12 as useFormatPeriod,
|
|
475
478
|
u22 as useInterval,
|
|
479
|
+
u30 as useIsVisible,
|
|
476
480
|
u19 as useModal,
|
|
477
481
|
u29 as usePopoverContainer,
|
|
478
482
|
u13 as usePopupsStore,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.2-
|
|
3
|
+
"version": "9.3.2-B11082025-beta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
12
12
|
"@hookform/resolvers": "2.9.11",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
|
-
"@m4l/graphics": "
|
|
15
|
-
"@m4l/styles": "
|
|
14
|
+
"@m4l/graphics": "7.1.4-B11082025-beta.1",
|
|
15
|
+
"@m4l/styles": "7.1.31-B11082025-beta.1",
|
|
16
16
|
"@microlink/react-json-view": "^1.23.3",
|
|
17
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
18
18
|
"@mui/material": "5.16.7",
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { Card } from '../../../src/components/Card';
|
|
3
|
+
declare const meta: Meta<typeof Card>;
|
|
4
|
+
type Story = StoryObj<typeof Card>;
|
|
5
|
+
/**
|
|
6
|
+
* Base story for `Card` with variant outlined.
|
|
7
|
+
*/
|
|
8
|
+
export declare const H001_Variant_Outlined: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Base story for `Card` with variant text.
|
|
11
|
+
*/
|
|
12
|
+
export declare const H002_Variant_Text: Story;
|
|
13
|
+
/**
|
|
14
|
+
* Base story for `Card` with variant outlined and hover.
|
|
15
|
+
*/
|
|
16
|
+
export declare const H003_Variant_Outlined_Hover: Story;
|
|
17
|
+
/**
|
|
18
|
+
* Base story for `Card` with variant outlined and selected.
|
|
19
|
+
*/
|
|
20
|
+
export declare const H004_Variant_Outlined_Selected: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Base story for `Card` with variant outlined and active.
|
|
23
|
+
*/
|
|
24
|
+
export declare const H005_Variant_Outlined_Active: Story;
|
|
25
|
+
/**
|
|
26
|
+
* Base story for `Card` with variant outlined and focus visible.
|
|
27
|
+
*/
|
|
28
|
+
export declare const H006_Variant_Outlined_Focus_Visible: Story;
|
|
29
|
+
/**
|
|
30
|
+
* Base story for `Card` with variant text and hover.
|
|
31
|
+
*/
|
|
32
|
+
export declare const H007_Variant_Text_Hover: Story;
|
|
33
|
+
/**
|
|
34
|
+
* Base story for `Card` with variant text and hover.
|
|
35
|
+
*/
|
|
36
|
+
export declare const H008_Variant_Text_Selected: Story;
|
|
37
|
+
/**
|
|
38
|
+
* Base story for `Card` with variant text and active.
|
|
39
|
+
*/
|
|
40
|
+
export declare const H009_Variant_Text_Active: Story;
|
|
41
|
+
/**
|
|
42
|
+
* Base story for `Card` with variant text and focus visible.
|
|
43
|
+
*/
|
|
44
|
+
export declare const H010_Variant_Text_Focus_Visible: Story;
|
|
45
|
+
export default meta;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CardProps } from '../../../../src/components/Card/types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente que se renderiza en el contenido de la tarjeta
|
|
4
|
+
* @returns {React.ReactElement}
|
|
5
|
+
*/
|
|
6
|
+
export declare const ContentCard: ({ gap }: {
|
|
7
|
+
gap?: CardProps["gap"];
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { NoItemPrivileges } from '../../../src/components/
|
|
2
|
+
import { NoItemPrivileges } from '../../../src/components/NoItemPrivileges';
|
|
3
3
|
declare const meta: Meta<typeof NoItemPrivileges>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof NoItemPrivileges>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { NoItemSelected } from '../../../src/components/
|
|
2
|
+
import { NoItemSelected } from '../../../src/components/NoItemSelected';
|
|
3
3
|
declare const meta: Meta<typeof NoItemSelected>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof NoItemSelected>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { SettingsLayout } from '../../../src/components/SettingsLayout/SettingsLayout';
|
|
3
|
+
declare const meta: Meta<typeof SettingsLayout>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SettingsLayout>;
|
|
6
|
+
export declare const Open: Story;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SettingsLayoutProps } from '../../../../../src/components/SettingsLayout/';
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper para el componente SettingsLayout encargado de aplicar estilos y props por defecto
|
|
4
|
+
*/
|
|
5
|
+
export declare const SettingsLayoutRender: (props: Partial<SettingsLayoutProps>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SettingsLayoutRender } from './SettingsLayoutsRender';
|
|
@@ -24,7 +24,7 @@ export declare const WhitAdorment: Story;
|
|
|
24
24
|
/**
|
|
25
25
|
* Se aplica cuando el input tiene un limite de caracteres.
|
|
26
26
|
*/
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const WithMaxLength: Story;
|
|
28
28
|
/**
|
|
29
29
|
* Se aplica cuando el input tiene un skeleton.
|
|
30
30
|
*/
|
|
@@ -19,4 +19,8 @@ export declare const WithChildren: Story;
|
|
|
19
19
|
********************************************************/
|
|
20
20
|
export declare const WithPropertyValues: Story;
|
|
21
21
|
export declare const WithSimpleContent: Story;
|
|
22
|
+
/**
|
|
23
|
+
* State Skeleton
|
|
24
|
+
*/
|
|
25
|
+
export declare const Skeleton: Story;
|
|
22
26
|
export default meta;
|
|
@@ -16,6 +16,10 @@ export declare const RHFTextFieldReadOnly: Story;
|
|
|
16
16
|
* endAdornment
|
|
17
17
|
*/
|
|
18
18
|
export declare const RHFTextFieldAdornment: Story;
|
|
19
|
+
/**
|
|
20
|
+
* Input con límite de caracteres.
|
|
21
|
+
*/
|
|
22
|
+
export declare const RHFTextFieldMaxLength: Story;
|
|
19
23
|
export declare const RHFTextFieldError: Story;
|
|
20
24
|
export declare const SkeletonBase: Story;
|
|
21
25
|
export default meta;
|
|
@@ -2,7 +2,26 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
import { RHFTextFieldPassword } from '../../../src/components/hook-form/RHFTextFieldPassword';
|
|
3
3
|
declare const meta: Meta<typeof RHFTextFieldPassword>;
|
|
4
4
|
type Story = StoryObj<typeof RHFTextFieldPassword>;
|
|
5
|
+
/**
|
|
6
|
+
* Input con valor por defecto.
|
|
7
|
+
*/
|
|
5
8
|
export declare const RHFTextFieldPasswordDefault: Story;
|
|
9
|
+
/**
|
|
10
|
+
* Input con límite de caracteres.
|
|
11
|
+
*
|
|
12
|
+
* maxLength
|
|
13
|
+
*/
|
|
14
|
+
export declare const RHFTextFieldPasswordMaxLength: Story;
|
|
15
|
+
/**
|
|
16
|
+
* Input con error.
|
|
17
|
+
*
|
|
18
|
+
* error
|
|
19
|
+
*/
|
|
6
20
|
export declare const RHFTextFieldPasswordError: Story;
|
|
21
|
+
/**
|
|
22
|
+
* Input con skeleton.
|
|
23
|
+
*
|
|
24
|
+
* skeleton
|
|
25
|
+
*/
|
|
7
26
|
export declare const SkeletonBase: Story;
|
|
8
27
|
export default meta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetLimitCharactersProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Obtiene el valor limitado de caracteres del campo de texto.
|
|
4
4
|
* @param props - Propiedades del campo de texto.
|
|
5
5
|
* @returns El valor limitado de caracteres del campo de texto.
|
|
6
6
|
*/
|
|
7
|
-
export declare const getLimitCharacters: (props:
|
|
7
|
+
export declare const getLimitCharacters: (props: GetLimitCharactersProps) => unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TextFieldProps } from '../../components/mui_extended/TextField/types';
|
|
2
|
+
export interface GetLimitCharactersProps {
|
|
3
|
+
/**
|
|
4
|
+
* Límite de caracteres.
|
|
5
|
+
*/
|
|
6
|
+
limitCharacters?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Valor a limitar.
|
|
9
|
+
*/
|
|
10
|
+
value?: TextFieldProps['value'];
|
|
11
|
+
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ImageTextContainerProps } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Componente que representa un contenedor agrupar mensajes con imagen y texto.
|
|
4
|
-
* @param props - Propiedades del componente.
|
|
5
|
-
* @returns Un componente de tipo ReactNode.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ImageTextContainer: (props: ImageTextContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { I as ImageTextContainerSlots } from "./slots/ImageTextContainerEnum.js";
|
|
3
|
-
import { I as ImageTextContainerRoot } from "./slots/ImageTextContainerSlots.js";
|
|
4
|
-
import { g as getPropDataTestId } from "../../../../test/getNameDataTestId.js";
|
|
5
|
-
import { I as IMAGE_TEXT_CONTAINER_CLASSES, a as IMAGE_TEXT_CONTAINER_KEY_COMPONENT } from "./constants.js";
|
|
6
|
-
import { clsx } from "clsx";
|
|
7
|
-
const ImageTextContainer = (props) => {
|
|
8
|
-
const { className, dataTestId, children, ...others } = props;
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
ImageTextContainerRoot,
|
|
11
|
-
{
|
|
12
|
-
...others,
|
|
13
|
-
...getPropDataTestId(
|
|
14
|
-
IMAGE_TEXT_CONTAINER_KEY_COMPONENT,
|
|
15
|
-
ImageTextContainerSlots.root,
|
|
16
|
-
dataTestId
|
|
17
|
-
),
|
|
18
|
-
className: clsx(IMAGE_TEXT_CONTAINER_CLASSES.root, className),
|
|
19
|
-
children
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
ImageTextContainer as I
|
|
25
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const imageTextContainerStyles = {
|
|
2
|
-
/**
|
|
3
|
-
* Estilos para el contenedor principal del componente ImageTextContainer.
|
|
4
|
-
*/
|
|
5
|
-
root: ({ theme }) => ({
|
|
6
|
-
display: "flex",
|
|
7
|
-
flexDirection: "column",
|
|
8
|
-
alignItems: "center",
|
|
9
|
-
justifyContent: "center",
|
|
10
|
-
height: "80%",
|
|
11
|
-
width: "100%",
|
|
12
|
-
maxWidth: "600px",
|
|
13
|
-
minWidth: "200px",
|
|
14
|
-
padding: "10px",
|
|
15
|
-
gap: theme.vars.size.baseSpacings.sp2,
|
|
16
|
-
minHeight: "60px",
|
|
17
|
-
backgroundColor: theme.palette.background.default
|
|
18
|
-
})
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
imageTextContainerStyles as i
|
|
22
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Clave del componente ImageTextContainer.
|
|
3
|
-
*/
|
|
4
|
-
export declare const IMAGE_TEXT_CONTAINER_KEY_COMPONENT = "M4LImageTextContainer";
|
|
5
|
-
/**
|
|
6
|
-
* Clases del componente ImageTextContainer.
|
|
7
|
-
*/
|
|
8
|
-
export declare const IMAGE_TEXT_CONTAINER_CLASSES: Record<string, string>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { g as getComponentClasses } from "../../../../utils/getComponentSlotRoot.js";
|
|
2
|
-
import { I as ImageTextContainerSlots } from "./slots/ImageTextContainerEnum.js";
|
|
3
|
-
const IMAGE_TEXT_CONTAINER_KEY_COMPONENT = "M4LImageTextContainer";
|
|
4
|
-
const IMAGE_TEXT_CONTAINER_CLASSES = getComponentClasses(IMAGE_TEXT_CONTAINER_KEY_COMPONENT, ImageTextContainerSlots);
|
|
5
|
-
export {
|
|
6
|
-
IMAGE_TEXT_CONTAINER_CLASSES as I,
|
|
7
|
-
IMAGE_TEXT_CONTAINER_KEY_COMPONENT as a
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { ImageTextContainer } from './ImageTextContainer';
|