@m4l/components 9.3.2-B11082025-beta.1 → 9.3.2-B11082025-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.
- package/components/DynamicFilter/DynamicFilter.styles.js +4 -2
- package/components/DynamicSort/DynamicSort.styles.js +4 -2
- package/components/ObjectLogs/subcomponents/DetailDialog/index.js +3 -8
- package/components/ObjectLogs/types.d.ts +0 -2
- package/components/extended/React-Json-Viewer/ReactJsonViewer.d.ts +7 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.js +31 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.d.ts +2 -0
- package/components/extended/React-Json-Viewer/ReactJsonViewer.styles.js +12 -0
- package/components/extended/React-Json-Viewer/constants.d.ts +2 -0
- package/components/extended/React-Json-Viewer/constants.js +8 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.d.ts +8 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js +23 -0
- package/components/extended/React-Json-Viewer/helpers/getReactJsonViewerTheme/index.d.ts +1 -0
- package/components/extended/React-Json-Viewer/index.d.ts +1 -0
- package/components/extended/React-Json-Viewer/index.js +1 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.d.ts +3 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerEnum.js +7 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.d.ts +1 -0
- package/components/extended/React-Json-Viewer/slots/ReactJsonViewerSlots.js +11 -0
- package/components/extended/React-Json-Viewer/test/ReactJsonViewer.test.d.ts +1 -0
- package/components/extended/React-Json-Viewer/types.d.ts +12 -0
- package/components/extended/index.d.ts +1 -0
- package/components/mui_extended/Tab/Tab.styles.js +3 -3
- package/components/mui_extended/TabContent/TabContent.styles.js +1 -0
- package/components/mui_extended/TextField/TextField.js +5 -5
- package/components/mui_extended/TextField/TextField.styles.js +22 -2
- package/components/mui_extended/TextField/constants.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +1 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +1 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +5 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +6 -1
- package/hooks/useIsVisible/constants.d.ts +1 -0
- package/hooks/useIsVisible/constants.js +4 -0
- package/hooks/useIsVisible/useIsVisible.d.ts +21 -1
- package/hooks/useIsVisible/useIsVisible.js +2 -1
- package/index.js +42 -40
- package/package.json +3 -3
- package/storybook/components/extended/React-Json-Viewer/ReactJsonViewer.stories.d.ts +9 -0
|
@@ -264,7 +264,9 @@ const dynamicFilterStyles = {
|
|
|
264
264
|
/**
|
|
265
265
|
* popoverFilterActions: Estilos del contenedor de acciones del menú emergente de filtro.
|
|
266
266
|
*/
|
|
267
|
-
popoverFilterActions: {}
|
|
267
|
+
popoverFilterActions: ({ theme }) => ({
|
|
268
|
+
paddingTop: theme.vars.size.baseSpacings.sp6
|
|
269
|
+
}),
|
|
268
270
|
/**
|
|
269
271
|
* inputSortInputSkeleton: Estilos del esqueleto del campo de entrada de ordenamiento.
|
|
270
272
|
*/
|
|
@@ -290,7 +292,7 @@ const dynamicFilterStyles = {
|
|
|
290
292
|
popoverFilterContainerFields: ({ theme }) => ({
|
|
291
293
|
display: "flex",
|
|
292
294
|
flexDirection: "column",
|
|
293
|
-
gap: theme.vars.size.baseSpacings.
|
|
295
|
+
gap: theme.vars.size.baseSpacings.sp3
|
|
294
296
|
})
|
|
295
297
|
};
|
|
296
298
|
export {
|
|
@@ -267,12 +267,14 @@ const dynamicSortStyles = {
|
|
|
267
267
|
popoverSortContainerFields: ({ theme }) => ({
|
|
268
268
|
display: "flex",
|
|
269
269
|
flexDirection: "column",
|
|
270
|
-
gap: theme.vars.size.baseSpacings.
|
|
270
|
+
gap: theme.vars.size.baseSpacings.sp3
|
|
271
271
|
}),
|
|
272
272
|
/**
|
|
273
273
|
* popoverSortActions: Estilos del contenedor de acciones del menú emergente de ordenamiento.
|
|
274
274
|
*/
|
|
275
|
-
popoverSortActions: {}
|
|
275
|
+
popoverSortActions: ({ theme }) => ({
|
|
276
|
+
paddingTop: theme.vars.size.baseSpacings.sp6
|
|
277
|
+
}),
|
|
276
278
|
/**
|
|
277
279
|
* inputSortSkeleton: Estilos del esqueleto del campo de entrada de ordenamiento.
|
|
278
280
|
*/
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useNetwork } from "@m4l/core";
|
|
4
|
-
import { useHostTheme } from "@m4l/graphics";
|
|
5
|
-
import ReactJson from "@microlink/react-json-view";
|
|
6
4
|
import { a as OBJECT_LOGS_M4L_END_POINT, b as OBJECT_LOGS_OTHERS_END_POINT } from "../../constants.js";
|
|
5
|
+
import { R as ReactJsonViewer } from "../../../extended/React-Json-Viewer/ReactJsonViewer.js";
|
|
7
6
|
function DetailDialog(props) {
|
|
8
|
-
const { logId,
|
|
7
|
+
const { logId, type } = props;
|
|
9
8
|
const { networkOperation } = useNetwork();
|
|
10
|
-
const { hostThemeOptions } = useHostTheme();
|
|
11
9
|
const [detail, setDetail] = useState({});
|
|
12
10
|
useEffect(() => {
|
|
13
11
|
let mounted = true;
|
|
@@ -27,12 +25,9 @@ function DetailDialog(props) {
|
|
|
27
25
|
mounted = false;
|
|
28
26
|
};
|
|
29
27
|
}, []);
|
|
30
|
-
const modeTheme = hostThemeOptions.palette?.mode;
|
|
31
|
-
const appliedTheme = theme || (modeTheme === "dark" ? "summerfruit" : "rjv-default");
|
|
32
28
|
return /* @__PURE__ */ jsx(
|
|
33
|
-
|
|
29
|
+
ReactJsonViewer,
|
|
34
30
|
{
|
|
35
|
-
theme: appliedTheme,
|
|
36
31
|
name: null,
|
|
37
32
|
sortKeys: true,
|
|
38
33
|
displayDataTypes: false,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Maybe } from '@m4l/core';
|
|
2
|
-
import { ThemeKeys, ThemeObject } from '@microlink/react-json-view';
|
|
3
2
|
import { Theme } from '@mui/material';
|
|
4
3
|
import { ObjectLogsSlots } from './slots/ObjectLogsEnum';
|
|
5
4
|
import { OBJECT_LOGS_KEY_COMPONENT } from './constants';
|
|
@@ -35,7 +34,6 @@ export interface ObjectLogsQueryParams {
|
|
|
35
34
|
export interface DetailDialogProps {
|
|
36
35
|
type: 'm4l' | 'other';
|
|
37
36
|
logId: number | string;
|
|
38
|
-
theme?: ThemeKeys | ThemeObject;
|
|
39
37
|
}
|
|
40
38
|
export type ObjectLogsSlotsType = keyof typeof ObjectLogsSlots;
|
|
41
39
|
export type ObjectLogsOwnerState = {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactJsonViewerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Componente para visualizar datos en formato JSON.
|
|
4
|
+
* @param props - Props del componente.
|
|
5
|
+
* @returns Componente ReactJsonViewer.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ReactJsonViewer: (props: ReactJsonViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import ReactJson from "@microlink/react-json-view";
|
|
4
|
+
import { R as ReactJsonViewerRootStyled } from "./slots/ReactJsonViewerSlots.js";
|
|
5
|
+
import { R as REACT_JSON_VIEWER_CLASSES } from "./constants.js";
|
|
6
|
+
import { useTheme } from "@mui/material";
|
|
7
|
+
import { g as getReactJsonViewerTheme } from "./helpers/getReactJsonViewerTheme/getReactJsonViewerTheme.js";
|
|
8
|
+
const ReactJsonViewer = (props) => {
|
|
9
|
+
const { className, dataTestId, ...others } = props;
|
|
10
|
+
const muiTheme = useTheme();
|
|
11
|
+
const theme = getReactJsonViewerTheme(muiTheme);
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
ReactJsonViewerRootStyled,
|
|
14
|
+
{
|
|
15
|
+
className: clsx(REACT_JSON_VIEWER_CLASSES.root, className),
|
|
16
|
+
dataTestId,
|
|
17
|
+
role: "application",
|
|
18
|
+
"aria-label": "JSON data viewer",
|
|
19
|
+
children: /* @__PURE__ */ jsx(
|
|
20
|
+
ReactJson,
|
|
21
|
+
{
|
|
22
|
+
theme,
|
|
23
|
+
...others
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
ReactJsonViewer as R
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { g as getComponentClasses } from "../../../utils/getComponentSlotRoot.js";
|
|
2
|
+
import { R as ReactJsonViewerSlots } from "./slots/ReactJsonViewerEnum.js";
|
|
3
|
+
const REACT_JSON_VIEWER_KEY_COMPONENT = "M4LReactJsonViewer";
|
|
4
|
+
const REACT_JSON_VIEWER_CLASSES = getComponentClasses(REACT_JSON_VIEWER_KEY_COMPONENT, ReactJsonViewerSlots);
|
|
5
|
+
export {
|
|
6
|
+
REACT_JSON_VIEWER_CLASSES as R,
|
|
7
|
+
REACT_JSON_VIEWER_KEY_COMPONENT as a
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ThemeObject } from '@microlink/react-json-view';
|
|
2
|
+
import { Theme } from '@mui/material';
|
|
3
|
+
/**
|
|
4
|
+
* Función para obtener los colores del tema de MUI.
|
|
5
|
+
* @param muiTheme - Tema de MUI.
|
|
6
|
+
* @returns Colores del tema.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getReactJsonViewerTheme: (muiTheme: Theme) => ThemeObject;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const getReactJsonViewerTheme = (muiTheme) => {
|
|
2
|
+
return {
|
|
3
|
+
base00: muiTheme?.vars?.palette?.background?.default,
|
|
4
|
+
base01: muiTheme?.vars?.palette?.background?.base,
|
|
5
|
+
base02: muiTheme?.vars?.palette?.background?.neutral,
|
|
6
|
+
base03: muiTheme?.vars?.palette?.text?.disabled,
|
|
7
|
+
base04: muiTheme?.vars?.palette?.text?.secondary,
|
|
8
|
+
base05: muiTheme?.vars?.palette?.text?.primary,
|
|
9
|
+
base06: muiTheme?.vars?.palette?.text?.primary,
|
|
10
|
+
base07: muiTheme?.vars?.palette?.text?.primary,
|
|
11
|
+
base08: muiTheme?.vars?.palette?.chips?.error?.outlined?.colorTone,
|
|
12
|
+
base09: muiTheme?.vars?.palette?.chips?.orange?.outlined?.color,
|
|
13
|
+
base0A: muiTheme?.vars?.palette?.chips?.warning?.outlined?.colorTone,
|
|
14
|
+
base0B: muiTheme?.vars?.palette?.chips?.forest?.outlined?.color,
|
|
15
|
+
base0C: muiTheme?.vars?.palette?.chips?.aqua?.outlined?.colorTone,
|
|
16
|
+
base0D: muiTheme?.vars?.palette?.chips?.info?.outlined?.colorTone,
|
|
17
|
+
base0E: muiTheme?.vars?.palette?.chips?.pink?.outlined?.colorTone,
|
|
18
|
+
base0F: muiTheme?.vars?.palette?.chips?.persianGreen?.outlined?.colorTone
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
getReactJsonViewerTheme as g
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getReactJsonViewerTheme } from './getReactJsonViewerTheme';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReactJsonViewer } from './ReactJsonViewer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ReactJsonViewerRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Record<string, unknown>, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled } from "@mui/material/styles";
|
|
2
|
+
import { a as REACT_JSON_VIEWER_KEY_COMPONENT } from "../constants.js";
|
|
3
|
+
import { R as ReactJsonViewerSlots } from "./ReactJsonViewerEnum.js";
|
|
4
|
+
import { r as reactJsonViewerStyles } from "../ReactJsonViewer.styles.js";
|
|
5
|
+
const ReactJsonViewerRootStyled = styled("div", {
|
|
6
|
+
name: REACT_JSON_VIEWER_KEY_COMPONENT,
|
|
7
|
+
slot: ReactJsonViewerSlots.root
|
|
8
|
+
})(reactJsonViewerStyles?.root);
|
|
9
|
+
export {
|
|
10
|
+
ReactJsonViewerRootStyled as R
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactJsonViewProps } from '@microlink/react-json-view';
|
|
2
|
+
import { ReactJsonViewerSlots } from './slots/ReactJsonViewerEnum';
|
|
3
|
+
import { M4LOverridesStyleRules } from '../../../@types/augmentations';
|
|
4
|
+
import { REACT_JSON_VIEWER_KEY_COMPONENT } from './constants';
|
|
5
|
+
import { Theme } from '@mui/material';
|
|
6
|
+
export interface ReactJsonViewerProps extends Omit<ReactJsonViewProps, 'theme'> {
|
|
7
|
+
className?: string;
|
|
8
|
+
dataTestId?: string;
|
|
9
|
+
}
|
|
10
|
+
export type ReactJsonViewerOwnerState = {};
|
|
11
|
+
export type ReactJsonViewerSlotsType = keyof typeof ReactJsonViewerSlots;
|
|
12
|
+
export type ReactJsonViewerStyles = M4LOverridesStyleRules<ReactJsonViewerSlotsType, typeof REACT_JSON_VIEWER_KEY_COMPONENT, Theme>;
|
|
@@ -49,10 +49,10 @@ const tabStyles = {
|
|
|
49
49
|
},
|
|
50
50
|
//Default
|
|
51
51
|
"&:not(.Mui-selected)": {
|
|
52
|
-
".
|
|
53
|
-
backgroundColor: theme.vars.palette.text.secondary
|
|
52
|
+
"& .M4LIcon-icon": {
|
|
53
|
+
backgroundColor: `${theme.vars.palette.text.secondary} !important`
|
|
54
54
|
},
|
|
55
|
-
".M4LTab-tipography": {
|
|
55
|
+
"& .M4LTab-tipography": {
|
|
56
56
|
color: theme.vars.palette.text.secondary
|
|
57
57
|
}
|
|
58
58
|
},
|
|
@@ -24,6 +24,7 @@ const tabContentStyles = {
|
|
|
24
24
|
zIndex: "0",
|
|
25
25
|
top: "-1px",
|
|
26
26
|
...ownerState?.hasBackground ? {
|
|
27
|
+
backgroundColor: theme.vars.palette?.background.base,
|
|
27
28
|
paddingLeft: theme.vars.size.baseSpacings.sp2,
|
|
28
29
|
paddingRight: theme.vars.size.baseSpacings.sp2,
|
|
29
30
|
paddingBottom: theme.vars.size.baseSpacings.sp2
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useModuleSkeleton } from "@m4l/core";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { S as SkeletonStyled, T as TextFieldRootStyled, L as LimitContainerStyled, a as LimitTextFirstStyled, b as LimitTextSecondStyled } from "./slots/TextFieldSlots.js";
|
|
4
|
+
import { S as SkeletonStyled, T as TextFieldRootStyled, L as LimitContainerStyled, a as LimitTextFirstStyled, b as LimitTextSeparatorStyled, c as LimitTextSecondStyled } from "./slots/TextFieldSlots.js";
|
|
5
5
|
import { g as getPropDataTestId } from "../../../test/getNameDataTestId.js";
|
|
6
6
|
import { T as TEXT_FIELD_CLASSES, a as TEXT_FIELD_KEY_COMPONENT } from "./constants.js";
|
|
7
7
|
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 { T as Typography } from "../Typography/Typography.js";
|
|
12
11
|
const TextField = forwardRef(function TextField2(props, ref) {
|
|
13
12
|
const {
|
|
14
13
|
value,
|
|
@@ -28,6 +27,7 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
28
27
|
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
29
28
|
const theme = useTheme();
|
|
30
29
|
const paletteColor = error && theme.vars.palette.error || theme.vars.palette.primary;
|
|
30
|
+
const percent = maxLength ? value.length / maxLength * 100 : 0;
|
|
31
31
|
const ownerState = {
|
|
32
32
|
size: adjustedSize,
|
|
33
33
|
disabled,
|
|
@@ -70,9 +70,9 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
70
70
|
...InputProps,
|
|
71
71
|
...maxLength && {
|
|
72
72
|
endAdornment: /* @__PURE__ */ jsxs(LimitContainerStyled, { children: [
|
|
73
|
-
/* @__PURE__ */ jsx(LimitTextFirstStyled, { role: "text", "aria-label": "current characters", variant: "body", color: "text.secondary", ownerState: { percent
|
|
74
|
-
/* @__PURE__ */ jsx(
|
|
75
|
-
/* @__PURE__ */ jsx(LimitTextSecondStyled, { role: "text", "aria-label": "limit characters", variant: "body", color: "text.secondary", children: maxLength }),
|
|
73
|
+
/* @__PURE__ */ jsx(LimitTextFirstStyled, { role: "text", "aria-label": "current characters", variant: "body", color: "text.secondary", ownerState: { percent }, children: value.length }),
|
|
74
|
+
/* @__PURE__ */ jsx(LimitTextSeparatorStyled, { variant: "body", color: "text.secondary", ownerState: { percent }, children: "/" }),
|
|
75
|
+
/* @__PURE__ */ jsx(LimitTextSecondStyled, { role: "text", "aria-label": "limit characters", variant: "body", color: "text.secondary", ownerState: { percent }, children: maxLength }),
|
|
76
76
|
InputProps?.endAdornment
|
|
77
77
|
] })
|
|
78
78
|
},
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import { g as getTypographyStyles } from "../../../utils/getTypographyStyles.js";
|
|
2
2
|
import { a as getHeightSizeStyles, g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
|
|
3
3
|
import { T as TEXT_FIELD_CLASSES } from "./constants.js";
|
|
4
|
+
const getLimitTextColor = (percent, theme) => {
|
|
5
|
+
if (percent && percent > 79 && percent < 100) {
|
|
6
|
+
return theme.vars.palette.warning.semanticText;
|
|
7
|
+
}
|
|
8
|
+
if (percent === 100) {
|
|
9
|
+
return theme.vars.palette.chips.forest.outlined.colorTone;
|
|
10
|
+
}
|
|
11
|
+
return theme.vars.palette.text.secondary;
|
|
12
|
+
};
|
|
4
13
|
const textFieldStyles = {
|
|
5
14
|
/**
|
|
6
15
|
* Estilos personalizados para el componente TextField.
|
|
@@ -163,13 +172,24 @@ const textFieldStyles = {
|
|
|
163
172
|
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
164
173
|
paddingRight: theme.vars.size.baseSpacings.sp1
|
|
165
174
|
}),
|
|
175
|
+
/**
|
|
176
|
+
* Estilos personalizados para el texto de limite de caracteres.
|
|
177
|
+
*/
|
|
166
178
|
limitTextFirst: ({ ownerState, theme }) => ({
|
|
167
|
-
color: ownerState?.percent
|
|
179
|
+
color: getLimitTextColor(ownerState?.percent || 0, theme)
|
|
180
|
+
}),
|
|
181
|
+
/**
|
|
182
|
+
* Estilos personalizados para el texto de limite de caracteres.
|
|
183
|
+
*/
|
|
184
|
+
limitTextSeparator: ({ ownerState, theme }) => ({
|
|
185
|
+
color: getLimitTextColor(ownerState?.percent || 0, theme)
|
|
168
186
|
}),
|
|
169
187
|
/**
|
|
170
188
|
* Estilos personalizados para el texto de limite de caracteres.
|
|
171
189
|
*/
|
|
172
|
-
limitTextSecond: {}
|
|
190
|
+
limitTextSecond: ({ ownerState, theme }) => ({
|
|
191
|
+
color: getLimitTextColor(ownerState?.percent || 0, theme)
|
|
192
|
+
})
|
|
173
193
|
};
|
|
174
194
|
export {
|
|
175
195
|
textFieldStyles as t
|
|
@@ -9,6 +9,7 @@ export declare const COMBINATED_TEXTFIELD_ENUMS: {
|
|
|
9
9
|
skeleton: TextFieldSlots.skeleton;
|
|
10
10
|
limitContainer: TextFieldSlots.limitContainer;
|
|
11
11
|
limitTextFirst: TextFieldSlots.limitTextFirst;
|
|
12
|
+
limitTextSeparator: TextFieldSlots.limitTextSeparator;
|
|
12
13
|
limitTextSecond: TextFieldSlots.limitTextSecond;
|
|
13
14
|
};
|
|
14
15
|
/**
|
|
@@ -3,6 +3,7 @@ export declare enum TextFieldSlots {
|
|
|
3
3
|
skeleton = "skeleton",
|
|
4
4
|
limitContainer = "limitContainer",
|
|
5
5
|
limitTextFirst = "limitTextFirst",
|
|
6
|
+
limitTextSeparator = "limitTextSeparator",
|
|
6
7
|
limitTextSecond = "limitTextSecond"
|
|
7
8
|
}
|
|
8
9
|
export declare enum TextFieldComplementaryClasses {
|
|
@@ -3,6 +3,7 @@ var TextFieldSlots = /* @__PURE__ */ ((TextFieldSlots2) => {
|
|
|
3
3
|
TextFieldSlots2["skeleton"] = "skeleton";
|
|
4
4
|
TextFieldSlots2["limitContainer"] = "limitContainer";
|
|
5
5
|
TextFieldSlots2["limitTextFirst"] = "limitTextFirst";
|
|
6
|
+
TextFieldSlots2["limitTextSeparator"] = "limitTextSeparator";
|
|
6
7
|
TextFieldSlots2["limitTextSecond"] = "limitTextSecond";
|
|
7
8
|
return TextFieldSlots2;
|
|
8
9
|
})(TextFieldSlots || {});
|
|
@@ -14,6 +14,11 @@ export declare const LimitTextFirstStyled: import('@emotion/styled').StyledCompo
|
|
|
14
14
|
}, "children" | "zIndex" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "color" | "left" | "right" | "bottom" | "top" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping">, "children" | "ref" | "title" | "zIndex" | "id" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
15
15
|
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
16
16
|
}, {}, {}>;
|
|
17
|
+
export declare const LimitTextSeparatorStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
18
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
19
|
+
}, "children" | "zIndex" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "color" | "left" | "right" | "bottom" | "top" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping">, "children" | "ref" | "title" | "zIndex" | "id" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
|
+
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
21
|
+
}, {}, {}>;
|
|
17
22
|
export declare const LimitTextSecondStyled: import('@emotion/styled').StyledComponent<Pick<import('@mui/material').TypographyOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
18
23
|
ref?: ((instance: HTMLSpanElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLSpanElement> | null | undefined;
|
|
19
24
|
}, "children" | "zIndex" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "color" | "left" | "right" | "bottom" | "top" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping">, "children" | "ref" | "title" | "zIndex" | "id" | "paragraph" | "border" | "fontWeight" | "lineHeight" | "letterSpacing" | "fontSize" | "textTransform" | "fontFamily" | "typography" | "flex" | "hidden" | "color" | "left" | "right" | "bottom" | "top" | "content" | "style" | "position" | "padding" | "variant" | "borderRadius" | "width" | "display" | "borderColor" | "height" | "gap" | "minHeight" | "margin" | "overflow" | "boxShadow" | "minWidth" | "justifyContent" | "alignItems" | "paddingLeft" | "borderLeft" | "borderTop" | "maxWidth" | "flexDirection" | "paddingRight" | "borderRight" | "flexGrow" | "marginLeft" | "textOverflow" | "borderBottom" | "gridTemplateColumns" | "marginBottom" | "alignContent" | "alignSelf" | "boxSizing" | "columnGap" | "flexBasis" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateRows" | "justifyItems" | "justifySelf" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "marginRight" | "marginTop" | "maxHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingTop" | "rowGap" | "textAlign" | "translate" | "visibility" | "whiteSpace" | "gridArea" | "gridColumn" | "gridRow" | "marginBlock" | "marginInline" | "paddingBlock" | "paddingInline" | "className" | "classes" | "sx" | "p" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "variantMapping"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
@@ -20,6 +20,10 @@ const LimitTextFirstStyled = styled(Typography, {
|
|
|
20
20
|
name: TEXT_FIELD_KEY_COMPONENT,
|
|
21
21
|
slot: TextFieldSlots.limitTextFirst
|
|
22
22
|
})(textFieldStyles?.limitTextFirst);
|
|
23
|
+
const LimitTextSeparatorStyled = styled(Typography, {
|
|
24
|
+
name: TEXT_FIELD_KEY_COMPONENT,
|
|
25
|
+
slot: TextFieldSlots.limitTextSeparator
|
|
26
|
+
})(textFieldStyles?.limitTextSeparator);
|
|
23
27
|
const LimitTextSecondStyled = styled(Typography, {
|
|
24
28
|
name: TEXT_FIELD_KEY_COMPONENT,
|
|
25
29
|
slot: TextFieldSlots.limitTextSecond
|
|
@@ -29,5 +33,6 @@ export {
|
|
|
29
33
|
SkeletonStyled as S,
|
|
30
34
|
TextFieldRootStyled as T,
|
|
31
35
|
LimitTextFirstStyled as a,
|
|
32
|
-
|
|
36
|
+
LimitTextSeparatorStyled as b,
|
|
37
|
+
LimitTextSecondStyled as c
|
|
33
38
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_MIN_HEIGHT_THRESHOLD = 55;
|
|
@@ -1,8 +1,28 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Custom hook para verificar si el contenedor debería ser visible en la pantalla.
|
|
3
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
|
|
4
|
+
* Si es lo suficientemente alta, dice "sí, está visible" (true), si no, dice "no, está demasiado pequeña" (false).
|
|
5
|
+
* El hook useIsVisible es esencial ya que tanto las consultas de contenedor (container queries) como las consultas de medios (media queries) en css
|
|
6
|
+
* solo responden a cambios en el eje X del contenedor. No obstante, en este escenario de desarrollo, necesitamos evaluar también el eje Y.
|
|
5
7
|
* @param containerRef - Referencia al contenedor del componente.
|
|
8
|
+
* @param minHeightThreshold - Umbral mínimo de altura en píxeles para considerar el contenedor como visible (por defecto: 55).
|
|
6
9
|
* @returns true si el contenedor debería ser visible, false en caso contrario.
|
|
10
|
+
* @example
|
|
11
|
+
* ```tsx
|
|
12
|
+
* const MyComponent = () => {
|
|
13
|
+
* const containerRef = useRef<HTMLDivElement>(null);
|
|
14
|
+
* const isVisible = useIsVisible(containerRef, 100); // Visible solo si altura >= 100px
|
|
15
|
+
*
|
|
16
|
+
* return (
|
|
17
|
+
* <div ref={containerRef}>
|
|
18
|
+
* {isVisible ? (
|
|
19
|
+
* <img src="large-image.jpg" alt="Imagen grande" />
|
|
20
|
+
* ) : (
|
|
21
|
+
* <div>Contenedor demasiado pequeño para mostrar imagen</div>
|
|
22
|
+
* )}
|
|
23
|
+
* </div>
|
|
24
|
+
* );
|
|
25
|
+
* };
|
|
26
|
+
* ```
|
|
7
27
|
*/
|
|
8
28
|
export declare const useIsVisible: (containerRef: React.RefObject<HTMLDivElement>, minHeightThreshold?: number) => boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
|
|
2
|
+
import { D as DEFAULT_MIN_HEIGHT_THRESHOLD } from "./constants.js";
|
|
3
|
+
const useIsVisible = (containerRef, minHeightThreshold = DEFAULT_MIN_HEIGHT_THRESHOLD) => {
|
|
3
4
|
const [isVisible, setIsVisible] = useState(true);
|
|
4
5
|
useEffect(() => {
|
|
5
6
|
const observer = new ResizeObserver((entries) => {
|
package/index.js
CHANGED
|
@@ -73,6 +73,7 @@ import { S as S3 } from "./components/extended/React-resizable-panels/SplitLayou
|
|
|
73
73
|
import { P } from "./components/extended/React-Spinners/PropagateLoaderSpinner/PropagateLoaderSpinner.js";
|
|
74
74
|
import { F } from "./components/extended/React-Window/FixedSizeList/FixedSizeList.js";
|
|
75
75
|
import { V } from "./components/extended/React-Window/VariableSizeList/VariableSizeList.js";
|
|
76
|
+
import { R as R3 } from "./components/extended/React-Json-Viewer/ReactJsonViewer.js";
|
|
76
77
|
import { A as A14 } from "./components/mui_extended/Avatar/Avatar.js";
|
|
77
78
|
import { B as B2 } from "./components/mui_extended/BoxIcon/index.js";
|
|
78
79
|
import { B as B3 } from "./components/mui_extended/Breadcrumbs/index.js";
|
|
@@ -122,34 +123,34 @@ import { g as g17 } from "./components/formatters/DistanceToNowFormatter/diction
|
|
|
122
123
|
import { D as D9 } from "./components/formatters/DistanceToNowFormatter/DistanceToNowFormatter.js";
|
|
123
124
|
import { g as g18 } from "./components/formatters/dictionary.js";
|
|
124
125
|
import { G } from "./components/GridLayout/GridLayout.js";
|
|
125
|
-
import { R as
|
|
126
|
+
import { R as R4 } from "./components/GridLayout/subcomponents/Responsive/index.js";
|
|
126
127
|
import { c as c2, e as e2, d as d3 } from "./components/GridLayout/subcomponents/Responsive/responsiveUtils.js";
|
|
127
128
|
import { i, k } from "./components/GridLayout/utils.js";
|
|
128
129
|
import { w } from "./components/GridLayout/subcomponents/withSizeProvider/index.js";
|
|
129
130
|
import { H as H2 } from "./components/HelmetPage/index.js";
|
|
130
131
|
import { H as H3 } from "./components/HelperError/HelperError.js";
|
|
131
|
-
import { R as
|
|
132
|
+
import { R as R5 } from "./components/hook-form/RHFAutocomplete/RHFAutocomplete.js";
|
|
132
133
|
import { g as g19 } from "./components/hook-form/RHFAutocomplete/dictionary.js";
|
|
133
|
-
import { R as
|
|
134
|
+
import { R as R6 } from "./components/hook-form/RHFAutocompleteAsync/RHFAutocompleteAsync.js";
|
|
134
135
|
import { g as g20 } from "./components/hook-form/RHFAutocompleteAsync/dictionary.js";
|
|
135
|
-
import { R as
|
|
136
|
-
import { R as
|
|
137
|
-
import { R as
|
|
138
|
-
import { R as
|
|
139
|
-
import { R as
|
|
140
|
-
import { R as
|
|
141
|
-
import { R as
|
|
142
|
-
import { R as
|
|
143
|
-
import { R as
|
|
144
|
-
import { R as
|
|
136
|
+
import { R as R7 } from "./components/hook-form/RHFDateTime/RHFDateTime.js";
|
|
137
|
+
import { R as R8 } from "./components/hook-form/RHFMultiCheckbox/index.js";
|
|
138
|
+
import { R as R9 } from "./components/hook-form/RHFSelect/RHFSelect.js";
|
|
139
|
+
import { R as R10 } from "./components/hook-form/RHFHelperError/index.js";
|
|
140
|
+
import { R as R11 } from "./components/hook-form/RHFRadioGroup/RHFRadioGroup.js";
|
|
141
|
+
import { R as R12 } from "./components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js";
|
|
142
|
+
import { R as R13 } from "./components/hook-form/RHFColorPicker/RFHColorPicker.js";
|
|
143
|
+
import { R as R14 } from "./components/hook-form/RHFCheckbox/RHFCheckbox.js";
|
|
144
|
+
import { R as R15 } from "./components/hook-form/RHFTextField/RHFTextField.js";
|
|
145
|
+
import { R as R16 } from "./components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js";
|
|
145
146
|
import { g as g21 } from "./components/hook-form/RHFPeriod/subcomponents/Period/dictionary.js";
|
|
146
147
|
import { r } from "./components/hook-form/RHFPeriod/RHFPeriod.styles.js";
|
|
147
|
-
import { R as
|
|
148
|
-
import { R as
|
|
149
|
-
import { R as
|
|
150
|
-
import { N as N3, P as P6, R as
|
|
151
|
-
import { R as
|
|
152
|
-
import { R as
|
|
148
|
+
import { R as R17 } from "./components/hook-form/RHFPeriod/RHFPeriod.js";
|
|
149
|
+
import { R as R18 } from "./components/hook-form/RHFPeriod/constants.js";
|
|
150
|
+
import { R as R19 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodEnum.js";
|
|
151
|
+
import { N as N3, P as P6, R as R20, S as S7 } from "./components/hook-form/RHFPeriod/slots/RHFPeriodSlots.js";
|
|
152
|
+
import { R as R21 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
|
|
153
|
+
import { R as R22 } from "./components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js";
|
|
153
154
|
import { I as I4 } from "./components/Icon/Icon.js";
|
|
154
155
|
import { I as I5 } from "./components/Image/Image.js";
|
|
155
156
|
import { L as L6 } from "./components/Label/Label.js";
|
|
@@ -192,7 +193,7 @@ import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
|
192
193
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
193
194
|
import { S as S10 } from "./components/SettingsLayout/SettingsLayout.js";
|
|
194
195
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
195
|
-
import { F as F2, R as
|
|
196
|
+
import { F as F2, R as R23, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
196
197
|
import { g as g29 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
197
198
|
import { u as u17 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
198
199
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
@@ -334,28 +335,29 @@ export {
|
|
|
334
335
|
P11 as PrintingSystem,
|
|
335
336
|
P as PropagateLoaderSpinner,
|
|
336
337
|
P12 as PropertyValue,
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
338
|
+
R5 as RHFAutocomplete,
|
|
339
|
+
R6 as RHFAutocompleteAsync,
|
|
340
|
+
R14 as RHFCheckbox,
|
|
341
|
+
R13 as RHFColorPicker,
|
|
342
|
+
R7 as RHFDateTime,
|
|
343
|
+
R10 as RHFHelperError,
|
|
344
|
+
R8 as RHFMultiCheckbox,
|
|
345
|
+
R21 as RHFNumberInput,
|
|
346
|
+
R17 as RHFPeriod,
|
|
347
|
+
R20 as RHFPeriodRootStyled,
|
|
348
|
+
R19 as RHFPeriodSlots,
|
|
349
|
+
R11 as RHFRadioGroup,
|
|
350
|
+
R9 as RHFSelect,
|
|
351
|
+
R15 as RHFTextField,
|
|
352
|
+
R16 as RHFTextFieldPassword,
|
|
353
|
+
R22 as RHFUploadImage,
|
|
354
|
+
R12 as RHFUploadSingleFile,
|
|
355
|
+
R18 as RHF_PERIOD_KEY_COMPONENT,
|
|
356
|
+
R23 as RHFormProvider,
|
|
357
|
+
R3 as ReactJsonViewer,
|
|
356
358
|
R as Resizable,
|
|
357
359
|
R2 as ResizableBox,
|
|
358
|
-
|
|
360
|
+
R4 as Responsive,
|
|
359
361
|
S11 as SKELETON_SVG_ICON,
|
|
360
362
|
S8 as ScrollBar,
|
|
361
363
|
S as SectionCommercial,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.2-B11082025-beta.
|
|
3
|
+
"version": "9.3.2-B11082025-beta.2",
|
|
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": "7.
|
|
15
|
-
"@m4l/styles": "7.
|
|
14
|
+
"@m4l/graphics": "^7.0.0",
|
|
15
|
+
"@m4l/styles": "^7.0.0",
|
|
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,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { ReactJsonViewer } from '../../../../src/components/extended/React-Json-Viewer';
|
|
3
|
+
declare const meta: Meta<typeof ReactJsonViewer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ReactJsonViewer>;
|
|
6
|
+
/**
|
|
7
|
+
* ReactJsonViewer historia por defecto.
|
|
8
|
+
*/
|
|
9
|
+
export declare const ReactJsonViewerDefault: Story;
|