@m4l/components 9.3.16-BE091825-beta.4 → 9.3.16-BE091925-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/components/areas/icons.js +1 -1
- package/components/hook-form/RHFAutocomplete/RHFAutocomplete.js +3 -35
- package/components/hook-form/RHFAutocomplete/types.d.ts +1 -6
- package/components/index.d.ts +1 -0
- package/components/mui_extended/Autocomplete/Autocomplete.js +12 -6
- package/components/mui_extended/Autocomplete/Autocomplete.styles.js +48 -5
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.d.ts +1 -0
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +4 -3
- package/components/mui_extended/Autocomplete/hooks/useStartAdornments.js +4 -4
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +39 -4
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.d.ts +3 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteEnum.js +2 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +6 -0
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.js +11 -1
- package/components/mui_extended/Autocomplete/types.d.ts +1 -1
- package/components/mui_extended/Button/ButtonStyles.js +3 -6
- package/components/mui_extended/Popper/Popper.js +9 -2
- package/components/mui_extended/Popper/types.d.ts +1 -0
- package/components/mui_extended/Select/Select.js +17 -10
- package/components/mui_extended/Select/Select.styles.js +17 -10
- package/components/mui_extended/Select/types.d.ts +1 -1
- package/components/mui_extended/TextField/TextField.d.ts +2 -1
- package/components/mui_extended/TextField/TextField.js +25 -4
- package/components/mui_extended/TextField/TextField.styles.js +132 -125
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +3 -9
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +2 -1
- package/components/mui_extended/Typography/Typography.js +1 -1
- package/components/mui_extended/Typography/typography.styles.js +3 -1
- package/package.json +2 -2
- package/test/mocks/dictionary-mock.d.ts +433 -0
|
@@ -9,7 +9,7 @@ const selectStyles = {
|
|
|
9
9
|
return {
|
|
10
10
|
[`&.${SELECT_CLASSES.root}`]: {
|
|
11
11
|
width: "100%",
|
|
12
|
-
borderRadius: theme.vars.size.borderRadius
|
|
12
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
13
13
|
border: theme.vars.size.borderStroke.actionInput,
|
|
14
14
|
borderColor: ownerState?.error ? theme.vars.palette[color].enabled : theme.vars.palette.border.default,
|
|
15
15
|
padding: 0,
|
|
@@ -18,7 +18,7 @@ const selectStyles = {
|
|
|
18
18
|
display: "none"
|
|
19
19
|
},
|
|
20
20
|
'&:has(.MuiSelect-select[aria-expanded="true"])': {
|
|
21
|
-
border: `1px solid ${theme.vars.palette[color].
|
|
21
|
+
border: `1px solid ${theme.vars.palette[color].enabled}`
|
|
22
22
|
},
|
|
23
23
|
"& .M4LImage-root": {
|
|
24
24
|
...getHeightSizeStyles(
|
|
@@ -40,21 +40,26 @@ const selectStyles = {
|
|
|
40
40
|
overflow: "auto",
|
|
41
41
|
boxSizing: "border-box",
|
|
42
42
|
display: "flex",
|
|
43
|
-
flexDirection: "column"
|
|
43
|
+
flexDirection: "column",
|
|
44
|
+
flexWrap: "unset"
|
|
44
45
|
},
|
|
45
46
|
// Estilos para la variante text
|
|
46
|
-
[
|
|
47
|
+
[`&&&.${SELECT_CLASSES.text}`]: {
|
|
47
48
|
borderTop: 0,
|
|
48
49
|
borderRight: 0,
|
|
49
|
-
borderBottom: theme.vars.size.borderStroke.actionInput,
|
|
50
50
|
borderLeft: 0,
|
|
51
|
-
|
|
51
|
+
borderRadius: "unset"
|
|
52
52
|
},
|
|
53
53
|
"&:hover": {
|
|
54
54
|
backgroundColor: ownerState?.disabled ? "unset" : theme.vars.palette[color].hoverOpacity
|
|
55
55
|
},
|
|
56
56
|
"&:focus-within": {
|
|
57
|
-
borderColor: theme.vars.palette[color].
|
|
57
|
+
borderColor: theme.vars.palette[color].enabled,
|
|
58
|
+
...ownerState?.variant === "text" ? {
|
|
59
|
+
boxShadow: `0px 1.5px 0px 0px ${theme.vars.palette[color].selectedOpacity} !important`
|
|
60
|
+
} : {
|
|
61
|
+
boxShadow: `0px 0px 0px 1.5px ${theme.vars.palette[color].selectedOpacity} !important`
|
|
62
|
+
}
|
|
58
63
|
},
|
|
59
64
|
'&[aria-hidden="true"]': {
|
|
60
65
|
pointerEvents: "none"
|
|
@@ -90,13 +95,15 @@ const selectStyles = {
|
|
|
90
95
|
* Styles for the render option container
|
|
91
96
|
* @returns {object} The styles for the render option container
|
|
92
97
|
*/
|
|
93
|
-
renderValueContainer: ({ theme }) => ({
|
|
98
|
+
renderValueContainer: ({ theme, ownerState }) => ({
|
|
94
99
|
display: "flex",
|
|
95
100
|
alignItems: "center",
|
|
96
101
|
gap: theme.vars.size.baseSpacings.sp1,
|
|
97
|
-
flexWrap: "wrap",
|
|
98
102
|
overflow: "auto",
|
|
99
|
-
flexShrink: 1
|
|
103
|
+
flexShrink: 1,
|
|
104
|
+
...ownerState?.multiple && {
|
|
105
|
+
flexWrap: "wrap"
|
|
106
|
+
}
|
|
100
107
|
}),
|
|
101
108
|
arrowDown: {},
|
|
102
109
|
renderValueTypography: () => ({
|
|
@@ -72,7 +72,7 @@ export interface SelectProps<T extends string | number, Multiple extends boolean
|
|
|
72
72
|
* Propiedades internas que definen el estado del componente `Select`.
|
|
73
73
|
* paletteColor - Color de la paleta aplicado al Select.
|
|
74
74
|
*/
|
|
75
|
-
export interface SelectOwnerState<T extends string | number> extends Pick<SelectProps<T>, 'classes' | 'size' | 'error' | 'variant' | 'disabled'> {
|
|
75
|
+
export interface SelectOwnerState<T extends string | number, Multiple extends boolean | undefined = false> extends Pick<SelectProps<T, Multiple>, 'classes' | 'size' | 'error' | 'variant' | 'disabled' | 'multiple'> {
|
|
76
76
|
disabled?: boolean;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TextFieldProps } from './types';
|
|
2
|
+
import { default as React } from 'react';
|
|
2
3
|
/**
|
|
3
4
|
* Componente TextField extended de MUI-MATERIAL componente de entrada de datos en una interfaz de usuario que permite a los usuarios ingresar y editar texto. Es comúnmente utilizado en formularios y otros contextos donde se requiere la entrada de texto por parte del usuario.
|
|
4
5
|
*/
|
|
5
|
-
export declare const TextField:
|
|
6
|
+
export declare const TextField: React.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -6,8 +6,9 @@ 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
|
-
import { forwardRef } from "react";
|
|
9
|
+
import React, { forwardRef, useMemo, cloneElement } from "react";
|
|
10
10
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
+
import { I as IconButton } from "../IconButton/IconButton.js";
|
|
11
12
|
const TextField = forwardRef(function TextField2(props, ref) {
|
|
12
13
|
const {
|
|
13
14
|
value,
|
|
@@ -37,6 +38,24 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
37
38
|
color: error ? "error" : "default",
|
|
38
39
|
readOnly: InputProps?.readOnly
|
|
39
40
|
};
|
|
41
|
+
const renderStartAdornment = useMemo(() => {
|
|
42
|
+
if (InputProps?.startAdornment && React.isValidElement(InputProps?.startAdornment)) {
|
|
43
|
+
return cloneElement(InputProps?.startAdornment, {
|
|
44
|
+
size: adjustedSize
|
|
45
|
+
});
|
|
46
|
+
} else {
|
|
47
|
+
return InputProps?.startAdornment;
|
|
48
|
+
}
|
|
49
|
+
}, [InputProps?.startAdornment, adjustedSize]);
|
|
50
|
+
const renderEndAdornment = useMemo(() => {
|
|
51
|
+
if (InputProps?.endAdornment && React.isValidElement(InputProps?.endAdornment) && InputProps?.endAdornment.type === IconButton) {
|
|
52
|
+
return cloneElement(InputProps?.endAdornment, {
|
|
53
|
+
size: adjustedSize
|
|
54
|
+
});
|
|
55
|
+
} else {
|
|
56
|
+
return InputProps?.endAdornment;
|
|
57
|
+
}
|
|
58
|
+
}, [InputProps?.endAdornment, adjustedSize]);
|
|
40
59
|
const isSkeleton = useModuleSkeleton();
|
|
41
60
|
if (isSkeleton) {
|
|
42
61
|
return /* @__PURE__ */ jsx(
|
|
@@ -68,11 +87,13 @@ const TextField = forwardRef(function TextField2(props, ref) {
|
|
|
68
87
|
maxLength,
|
|
69
88
|
InputProps: {
|
|
70
89
|
...InputProps,
|
|
90
|
+
startAdornment: renderStartAdornment,
|
|
91
|
+
endAdornment: renderEndAdornment,
|
|
71
92
|
...maxLength && {
|
|
72
93
|
endAdornment: /* @__PURE__ */ jsxs(LimitContainerStyled, { children: [
|
|
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 }),
|
|
94
|
+
/* @__PURE__ */ jsx(LimitTextFirstStyled, { size: adjustedSize, role: "text", "aria-label": "current characters", variant: "body", color: "text.secondary", ownerState: { percent }, children: value.length }),
|
|
95
|
+
/* @__PURE__ */ jsx(LimitTextSeparatorStyled, { size: adjustedSize, variant: "body", color: "text.secondary", ownerState: { percent }, children: "/" }),
|
|
96
|
+
/* @__PURE__ */ jsx(LimitTextSecondStyled, { size: adjustedSize, role: "text", "aria-label": "limit characters", variant: "body", color: "text.secondary", ownerState: { percent }, children: maxLength }),
|
|
76
97
|
InputProps?.endAdornment
|
|
77
98
|
] })
|
|
78
99
|
},
|
|
@@ -14,141 +14,148 @@ const textFieldStyles = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Estilos personalizados para el componente TextField.
|
|
16
16
|
*/
|
|
17
|
-
root: ({ ownerState, theme }) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"& .MuiInputBase-root": {
|
|
24
|
-
// Estilos globales del TextField 🌎
|
|
25
|
-
// Paddings
|
|
26
|
-
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
27
|
-
paddingRight: 0,
|
|
28
|
-
paddingTop: 0,
|
|
29
|
-
paddingBottom: 0,
|
|
30
|
-
overflow: "hidden",
|
|
31
|
-
// Estilo de los bordes
|
|
32
|
-
border: theme.vars.size.borderStroke.actionInput,
|
|
33
|
-
borderColor: ownerState?.error && !ownerState?.readOnly ? `${ownerState?.paletteColor?.enabled}!important` : `${theme.vars.palette.border.secondary}!important`,
|
|
34
|
-
// Redondeado de los bordes
|
|
17
|
+
root: ({ ownerState, theme }) => {
|
|
18
|
+
return {
|
|
19
|
+
width: "100%",
|
|
20
|
+
height: "fit-content!important",
|
|
21
|
+
minHeight: "fit-content!important",
|
|
22
|
+
padding: 0,
|
|
35
23
|
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
24
|
+
display: "flex",
|
|
25
|
+
overflow: "visible",
|
|
26
|
+
"& .MuiInputBase-root": {
|
|
27
|
+
// Estilos globales del TextField 🌎
|
|
28
|
+
// Paddings
|
|
29
|
+
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
30
|
+
paddingRight: 0,
|
|
31
|
+
paddingTop: 0,
|
|
32
|
+
paddingBottom: 0,
|
|
33
|
+
overflow: "hidden",
|
|
34
|
+
// Redondeado de los bordes
|
|
35
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"],
|
|
36
|
+
// Altura
|
|
37
|
+
height: "100%",
|
|
38
|
+
// transición
|
|
39
|
+
transition: "all 0.2s ease",
|
|
40
|
+
// Espaciado entre elementos
|
|
41
|
+
...getSizeStyles(
|
|
42
|
+
theme,
|
|
43
|
+
ownerState?.size || "medium",
|
|
44
|
+
"action",
|
|
45
|
+
(size) => ({
|
|
46
|
+
height: "auto",
|
|
47
|
+
minHeight: size
|
|
48
|
+
})
|
|
49
|
+
),
|
|
50
|
+
"& .MuiInputBase-input.MuiInputBase-inputMultiline": {
|
|
51
|
+
paddingTop: theme.vars.size.baseSpacings.sp1,
|
|
52
|
+
paddingBottom: theme.vars.size.baseSpacings.sp1
|
|
53
|
+
},
|
|
54
|
+
// Variant Outlined TextField
|
|
55
|
+
...ownerState?.variant === "outlined" && {
|
|
56
|
+
// Estilos de borde
|
|
57
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
58
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
59
|
+
borderRadius: theme.vars.size.borderRadius["r1-5"]
|
|
60
|
+
},
|
|
61
|
+
// Variant Text TextField
|
|
62
|
+
...ownerState?.variant === "text" && {
|
|
63
|
+
// Estilos de borde por el formato de variante, solo se aplica para borde inferior.
|
|
64
|
+
borderBottom: theme.vars.size.borderStroke.actionInput,
|
|
65
|
+
borderColor: theme.vars.palette.border.secondary,
|
|
66
|
+
borderRadius: 0
|
|
67
|
+
},
|
|
68
|
+
// Variant Contained TextField
|
|
69
|
+
...ownerState?.variant === "contained" && {
|
|
70
|
+
border: theme.vars.size.borderStroke.actionInput,
|
|
71
|
+
borderColor: "transparent",
|
|
72
|
+
backgroundColor: theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "enabledOpacity"]
|
|
73
|
+
},
|
|
74
|
+
// state readOnly
|
|
75
|
+
...ownerState?.readOnly && {
|
|
76
|
+
backgroundColor: theme.vars.palette.default.enabledOpacity,
|
|
77
|
+
borderColor: `${theme.vars.palette.border.secondary}!important`,
|
|
78
|
+
"& .MuiInputBase-input": {
|
|
79
|
+
color: theme.vars.palette.text.primary
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
...!ownerState?.readOnly && {
|
|
83
|
+
...ownerState?.error && ownerState?.variant !== "contained" && {
|
|
84
|
+
borderColor: `${ownerState?.paletteColor?.enabled}`
|
|
85
|
+
},
|
|
86
|
+
/* State hover */
|
|
87
|
+
"&:hover": {
|
|
88
|
+
backgroundColor: ownerState?.error ? ownerState?.paletteColor?.hoverOpacity : theme.vars.palette.default.hoverOpacity,
|
|
89
|
+
...ownerState?.error && ownerState?.variant !== "contained" && {
|
|
90
|
+
borderColor: `${ownerState?.paletteColor?.hover}`
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
/* State focus */
|
|
94
|
+
"&:focus-within": {
|
|
95
|
+
backgroundColor: theme.vars.palette.background.default,
|
|
96
|
+
borderColor: `${theme.vars.palette.primary.selected}`,
|
|
97
|
+
...ownerState?.variant === "text" ? {
|
|
98
|
+
boxShadow: `0px 1.5px 0px 0px ${ownerState?.paletteColor?.selectedOpacity} !important`
|
|
99
|
+
} : {
|
|
100
|
+
boxShadow: `0px 0px 0px 1.5px ${ownerState?.paletteColor?.selectedOpacity} !important`
|
|
101
|
+
},
|
|
102
|
+
...ownerState?.error && {
|
|
103
|
+
borderColor: `${ownerState?.paletteColor?.focus}`
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
53
107
|
},
|
|
54
|
-
...ownerState?.readOnly ? {
|
|
55
|
-
backgroundColor: theme.vars.palette.background.neutral
|
|
56
|
-
} : {}
|
|
57
|
-
},
|
|
58
|
-
// ↴ Overrides ❌
|
|
59
|
-
// Estilos del input
|
|
60
|
-
"& .MuiInputBase-input": {
|
|
61
108
|
// ↴ Overrides ❌
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
theme.
|
|
70
|
-
ownerState?.
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
109
|
+
// Estilos del input
|
|
110
|
+
"& .MuiInputBase-input": {
|
|
111
|
+
// ↴ Overrides ❌
|
|
112
|
+
paddingLeft: theme.vars.size.baseSpacings.sp1,
|
|
113
|
+
paddingRight: theme.vars.size.baseSpacings.sp1,
|
|
114
|
+
paddingTop: 0,
|
|
115
|
+
paddingBottom: 0,
|
|
116
|
+
fontFamily: theme.typography.fontFamily,
|
|
117
|
+
color: ownerState?.disabled ? theme.vars.palette.text.disabled : theme.vars.palette.text.primary,
|
|
118
|
+
transition: "all 0.2s ease",
|
|
119
|
+
...getTypographyStyles(
|
|
120
|
+
theme.generalSettings.isMobile,
|
|
121
|
+
ownerState?.size || "medium",
|
|
122
|
+
"body"
|
|
123
|
+
),
|
|
124
|
+
"&::placeholder": {
|
|
125
|
+
color: `${theme.vars.palette.text.disabled}`
|
|
126
|
+
},
|
|
127
|
+
"&:focus": {
|
|
128
|
+
"&::placeholder": {
|
|
129
|
+
color: `${theme.vars.palette.text.primary}!important`
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"&:-webkit-autofill": {
|
|
133
|
+
backgroundColor: "transparent!important"
|
|
134
|
+
}
|
|
75
135
|
},
|
|
76
|
-
|
|
77
|
-
backgroundColor: "transparent!important"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
// Estilos de cuando esta deshabilitado
|
|
81
|
-
...ownerState?.disabled && {
|
|
82
|
-
borderColor: `${theme.vars.palette.border.disabled}!important`,
|
|
83
|
-
pointerEvents: ownerState?.disabled ? "none" : "auto"
|
|
84
|
-
},
|
|
85
|
-
// Estilos del los adorments
|
|
86
|
-
"& .MuiInputAdornment-root": {
|
|
87
|
-
height: "auto",
|
|
88
|
-
width: "auto",
|
|
89
|
-
// ↴ Overrides ❌
|
|
90
|
-
margin: 0
|
|
91
|
-
},
|
|
92
|
-
// Estilos de la mascara fieldset, es un elemento interno del textfield, material lo usa como mascara para el estilo.
|
|
93
|
-
// por practicidad se oculta en nuestra versión, sin embargo no se elimina porque es parte de la semántica del componente.
|
|
94
|
-
"& .MuiOutlinedInput-notchedOutline": {
|
|
95
|
-
all: "unset",
|
|
96
|
-
display: "none"
|
|
97
|
-
},
|
|
98
|
-
"& .MuiInputAdornment-root .M4LIcon-icon": {
|
|
99
|
-
backgroundColor: ownerState?.error ? ownerState?.paletteColor?.enabled : theme.vars.palette.text.primary,
|
|
136
|
+
// Estilos de cuando esta deshabilitado
|
|
100
137
|
...ownerState?.disabled && {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
"&:not(.M4LTextField-readOnly ) .MuiInputBase-root:hover": {
|
|
105
|
-
backgroundColor: theme.vars.palette.default.hoverOpacity,
|
|
106
|
-
...ownerState?.error && {
|
|
107
|
-
borderColor: `${ownerState?.paletteColor?.hover}!important`,
|
|
138
|
+
borderColor: `${theme.vars.palette.border.disabled}!important`,
|
|
139
|
+
pointerEvents: ownerState?.disabled ? "none" : "auto",
|
|
108
140
|
"& .MuiInputAdornment-root .M4LIcon-icon": {
|
|
109
|
-
backgroundColor:
|
|
141
|
+
backgroundColor: theme.vars.palette.text.disabled
|
|
110
142
|
}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"&:not(.M4LTextField-readOnly):focus": {
|
|
114
|
-
borderColor: `${ownerState?.paletteColor?.enabled}!important`,
|
|
115
|
-
"& .MuiInputAdornment-root .M4LIcon-icon": {
|
|
116
|
-
backgroundColor: ownerState?.paletteColor?.active
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
// Variant Outlined TextField
|
|
120
|
-
...ownerState?.variant === "outlined" && {
|
|
121
|
-
[`&.${TEXT_FIELD_CLASSES.outlined} .MuiInputBase-root`]: {
|
|
122
|
-
// Estilos de borde
|
|
123
|
-
border: theme.vars.size.borderStroke.actionInput
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
// Variant Text TextField
|
|
127
|
-
...ownerState?.variant === "text" && {
|
|
128
|
-
[`&.${TEXT_FIELD_CLASSES.text} .MuiInputBase-root`]: {
|
|
129
|
-
// Estilos de borde por el formato de variante, solo se aplica para borde inferior.
|
|
130
|
-
borderTop: 0,
|
|
131
|
-
borderLeft: 0,
|
|
132
|
-
borderRight: 0,
|
|
133
|
-
borderBottom: theme.vars.size.borderStroke.actionInput
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
// Variant Contained TextField
|
|
137
|
-
...ownerState?.variant === "contained" && {
|
|
138
|
-
[`&.${TEXT_FIELD_CLASSES.contained} .MuiInputBase-root`]: {
|
|
139
|
-
border: "none",
|
|
140
|
-
backgroundColor: ownerState?.readOnly ? theme.vars.palette.background.neutral : theme.vars.palette[ownerState?.color || "default"][ownerState?.error ? "toneOpacity" : "enabledOpacity"]
|
|
141
143
|
},
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
// Estilos del los adorments
|
|
145
|
+
"& .MuiInputAdornment-root": {
|
|
146
|
+
height: "auto",
|
|
147
|
+
width: "auto",
|
|
148
|
+
// ↴ Overrides ❌
|
|
149
|
+
margin: 0
|
|
145
150
|
},
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
151
|
+
// Estilos de la mascara fieldset, es un elemento interno del textfield, material lo usa como mascara para el estilo.
|
|
152
|
+
// por practicidad se oculta en nuestra versión, sin embargo no se elimina porque es parte de la semántica del componente.
|
|
153
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
154
|
+
all: "unset",
|
|
155
|
+
display: "none"
|
|
149
156
|
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
157
|
+
};
|
|
158
|
+
},
|
|
152
159
|
/**
|
|
153
160
|
* Estilos personalizados para el componente Skeleton.
|
|
154
161
|
*/
|
|
@@ -9,18 +9,12 @@ export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<P
|
|
|
9
9
|
export declare const LimitContainerStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
10
10
|
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
11
11
|
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
12
|
-
export declare const LimitTextFirstStyled: import('@emotion/styled').StyledComponent<Pick<import('
|
|
13
|
-
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;
|
|
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> & {
|
|
12
|
+
export declare const LimitTextFirstStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
15
13
|
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
16
14
|
}, {}, {}>;
|
|
17
|
-
export declare const LimitTextSeparatorStyled: import('@emotion/styled').StyledComponent<Pick<import('
|
|
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> & {
|
|
15
|
+
export declare const LimitTextSeparatorStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
20
16
|
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
21
17
|
}, {}, {}>;
|
|
22
|
-
export declare const LimitTextSecondStyled: import('@emotion/styled').StyledComponent<Pick<import('
|
|
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;
|
|
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> & {
|
|
18
|
+
export declare const LimitTextSecondStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Typography/types').TypographyProps, keyof import('../../Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
|
|
25
19
|
ownerState?: (Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>) | undefined;
|
|
26
20
|
}, {}, {}>;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { TextField
|
|
1
|
+
import { TextField } from "@mui/material";
|
|
2
2
|
import { styled } from "@mui/material/styles";
|
|
3
3
|
import { a as TEXT_FIELD_KEY_COMPONENT } from "../constants.js";
|
|
4
4
|
import { t as textFieldStyles } from "../TextField.styles.js";
|
|
5
5
|
import { T as TextFieldSlots } from "./TextFieldEnum.js";
|
|
6
6
|
import { S as Skeleton } from "../../Skeleton/Skeleton.js";
|
|
7
|
+
import { T as Typography } from "../../Typography/Typography.js";
|
|
7
8
|
const TextFieldRootStyled = styled(TextField, {
|
|
8
9
|
name: TEXT_FIELD_KEY_COMPONENT,
|
|
9
10
|
slot: TextFieldSlots.root
|
|
@@ -8,7 +8,9 @@ const typographyStyles = {
|
|
|
8
8
|
root: ({ ownerState, theme }) => ({
|
|
9
9
|
margin: 0,
|
|
10
10
|
cursor: "default",
|
|
11
|
-
fontFamily
|
|
11
|
+
...ownerState?.fontFamily && ownerState?.fontFamily !== "Inter" && {
|
|
12
|
+
fontFamily: ownerState?.fontFamily
|
|
13
|
+
},
|
|
12
14
|
"&.M4lclassCssSpecificity": {
|
|
13
15
|
// Estilos generales 🌐
|
|
14
16
|
// skeleton spacing when multiple rows 🦴
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.16-
|
|
3
|
+
"version": "9.3.16-BE091925-beta.1",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,7 +11,7 @@
|
|
|
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.1.4-
|
|
14
|
+
"@m4l/graphics": "7.1.4-BE091925-beta.1",
|
|
15
15
|
"@m4l/styles": "^7.0.0",
|
|
16
16
|
"@mui/lab": "5.0.0-alpha.173",
|
|
17
17
|
"@mui/material": "5.16.7",
|