@m4l/components 9.1.57 → 9.1.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/Label/Label.styles.js +1 -1
  3. package/components/PaperForm/PaperForm.d.ts +2 -2
  4. package/components/PaperForm/PaperForm.js +33 -5
  5. package/components/PaperForm/styles.js +15 -14
  6. package/components/PaperForm/types.d.ts +2 -1
  7. package/components/PropertyValue/PropertyValue.d.ts +1 -1
  8. package/components/PropertyValue/PropertyValue.js +24 -10
  9. package/components/PropertyValue/types.d.ts +5 -0
  10. package/components/hook-form/RHFTextField/RHFTextField.js +0 -1
  11. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.d.ts +1 -1
  12. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.js +67 -37
  13. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.d.ts +2 -0
  14. package/components/hook-form/RHFTextFieldPassword/RHFTextFieldPassword.styles.js +69 -0
  15. package/components/hook-form/RHFTextFieldPassword/constanst.d.ts +1 -0
  16. package/components/hook-form/RHFTextFieldPassword/constanst.js +4 -0
  17. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordEnum.d.ts +5 -0
  18. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordEnum.js +9 -0
  19. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +12 -0
  20. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.js +29 -0
  21. package/components/hook-form/RHFTextFieldPassword/slots/index.d.ts +2 -0
  22. package/components/hook-form/RHFTextFieldPassword/slots/index.js +1 -0
  23. package/components/hook-form/RHFTextFieldPassword/tests/RHFTextFieldPassword.test.d.ts +1 -0
  24. package/components/hook-form/RHFTextFieldPassword/types.d.ts +9 -0
  25. package/components/mui_extended/IconButton/IconButton.js +1 -0
  26. package/components/mui_extended/TextField/TextField.js +2 -1
  27. package/components/mui_extended/TextField/types.d.ts +0 -8
  28. package/package.json +1 -1
  29. package/components/hook-form/RHFTextFieldPassword/classes/index.d.ts +0 -9
  30. package/components/hook-form/RHFTextFieldPassword/classes/index.js +0 -25
  31. package/components/hook-form/RHFTextFieldPassword/classes/types.d.ts +0 -4
  32. package/components/hook-form/RHFTextFieldPassword/styles.d.ts +0 -1
  33. package/components/hook-form/RHFTextFieldPassword/styles.js +0 -7
  34. package/components/hook-form/RHFTextFieldPassword/tests/constants.d.ts +0 -2
  35. package/components/hook-form/RHFTextFieldPassword/tests/constants.js +0 -4
  36. package/components/hook-form/RHFTextFieldPassword/tests/utils.d.ts +0 -2
  37. package/components/hook-form/RHFTextFieldPassword/tests/utils.js +0 -7
package/@types/types.d.ts CHANGED
@@ -136,6 +136,7 @@ import { ToggleIconButtonOwnerState, ToggleIconButtonSlotsType } from '../compon
136
136
  import { PopoverOwnerState, PopoverSlotsType } from '../components/mui_extended/Popover/types';
137
137
  import { AccountPopoverOwnerState, AccountPopoverSlotsType } from '../components/AccountPopover/types';
138
138
  import { PropertyVaLueOwnerState, PropertyValueType } from '../components/PropertyValue/types';
139
+ import { RHFTextFieldPasswordOwnerState, RHFTextFieldPasswordType } from '../components/hook-form/RHFTextFieldPassword/types';
139
140
 
140
141
  import { RHFAutocompleteOwnerState, RHFAutocompleteSlotsType } from '../components/hook-form/RHFAutocomplete/types';
141
142
 
@@ -191,6 +192,7 @@ declare module '@mui/material/styles' {
191
192
  RHFM4LAutocomplete: RHFAutocompleteSlotsType;
192
193
  M4LAccountPopover: AccountPopoverSlotsType;
193
194
  M4LPropertyValue: PropertyValueType;
195
+ M4LRHFTextFieldPassword: RHFTextFieldPasswordType;
194
196
  }
195
197
 
196
198
  interface ComponentsPropsList {
@@ -244,6 +246,7 @@ declare module '@mui/material/styles' {
244
246
  M4LPropertyValue: Partial<PropertyVaLueOwnerState>;
245
247
  M4LColor: Partial<ColorOwnerState>;
246
248
  M4LRHFColorPicker: Partial<RHFColorPickerOwnerState>;
249
+ M4LRHFTextFieldPassword: Partial<RHFTextFieldPasswordOwnerState>;
247
250
  }
248
251
 
249
252
  interface Components {
@@ -587,5 +590,10 @@ declare module '@mui/material/styles' {
587
590
  styleOverrides?: ComponentsOverrides<Theme>['M4LAccountPopover'];
588
591
  variants?: ComponentsVariants['M4LAccountPopover'];
589
592
  };
593
+ M4LRHFTextFieldPassword?: {
594
+ defaultProps?: ComponentsPropsList['M4LRHFTextFieldPassword'];
595
+ styleOverrides?: ComponentsOverrides<Theme>['M4LRHFTextFieldPassword'];
596
+ variants?: ComponentsVariants['M4LRHFTextFieldPassword'];
597
+ };
590
598
  }
591
599
  }
@@ -106,7 +106,7 @@ const labelStyles = {
106
106
  borderRadius: theme.vars.size.borderRadius.r1,
107
107
  display: "flex",
108
108
  alignItems: "center",
109
- background: theme.vars.palette.skeleton.transition,
109
+ backgroundColor: theme.vars.palette.skeleton.transition,
110
110
  // Estilos específicos para el tamaño small
111
111
  ...ownerState.size === "small" && {
112
112
  ...theme.generalSettings.isMobile ? {
@@ -7,7 +7,7 @@ import { PaperFormProps } from './types';
7
7
  * **********************************************************************
8
8
  * @author Andrés Quintero - automatic
9
9
  * @createdAt 2024-11-20 14:00:24 - automatic
10
- * @updatedAt 2024-11-22 11:15:45 - automatic
11
- * @updatedUser Andrés Quintero - automatic
10
+ * @updatedAt 2025-01-08 15:43:10 - automatic
11
+ * @updatedUser cesar - automatic
12
12
  */
13
13
  export declare function PaperForm(props: PaperFormProps): import("react/jsx-runtime").JSX.Element;
@@ -4,14 +4,42 @@ import { P as PaperFormRootStyled, C as ContentStyled } from "./slots/PaperFormS
4
4
  import { useRef } from "react";
5
5
  import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
6
6
  import { P as PAPER_FORM_KEY } from "./constants.js";
7
+ import { P as PropertyValue } from "../PropertyValue/PropertyValue.js";
8
+ const isPropertyValue = (child) => typeof child === "object" && child !== null && "property" in child && "value" in child;
9
+ const renderChildren = (children) => {
10
+ if (Array.isArray(children)) {
11
+ return children.map(
12
+ (child) => isPropertyValue(child) ? /* @__PURE__ */ jsx(PropertyValue, { ...child }, child.property) : child
13
+ );
14
+ }
15
+ return children;
16
+ };
7
17
  function PaperForm(props) {
8
- const { urlIcon, title, children, dataTestId, color = "default", size } = props;
18
+ const {
19
+ urlIcon,
20
+ title,
21
+ children,
22
+ dataTestId,
23
+ color = "default",
24
+ size = "medium",
25
+ isForm = false,
26
+ variant = "standard"
27
+ } = props;
9
28
  const paperFormRef = useRef(null);
10
29
  const rootClass = getComponentSlotRoot(PAPER_FORM_KEY);
11
- return /* @__PURE__ */ jsxs(PaperFormRootStyled, { className: rootClass, ref: paperFormRef, ownerState: {}, ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {}, children: [
12
- /* @__PURE__ */ jsx(Header, { urlIcon, title, color, size }),
13
- /* @__PURE__ */ jsx(ContentStyled, { ownerState: {}, children })
14
- ] });
30
+ return /* @__PURE__ */ jsxs(
31
+ PaperFormRootStyled,
32
+ {
33
+ className: rootClass,
34
+ ref: paperFormRef,
35
+ ownerState: { isForm, color, variant },
36
+ ...process.env.NODE_ENV !== "production" ? { "data-testid": dataTestId } : {},
37
+ children: [
38
+ /* @__PURE__ */ jsx(Header, { urlIcon, title, color, size }),
39
+ /* @__PURE__ */ jsx(ContentStyled, { ownerState: { isForm }, children: renderChildren(children) })
40
+ ]
41
+ }
42
+ );
15
43
  }
16
44
  export {
17
45
  PaperForm as P
@@ -6,8 +6,8 @@ const paperFormStyles = {
6
6
  ***********************************************************
7
7
  * @author Andrés Quintero - automatic
8
8
  * @createdAt 2024-11-20 14:00:24 - automatic
9
- * @updatedAt 2024-11-22 10:38:00 - automatic
10
- * @updatedUser Andrés Quintero - automatic
9
+ * @updatedAt 2025-01-08 10:46:48 - automatic
10
+ * @updatedUser cesar - automatic
11
11
  */
12
12
  paperFormRoot: ({ theme }) => ({
13
13
  borderRadius: theme.size.borderRadius.r1,
@@ -25,8 +25,8 @@ const paperFormStyles = {
25
25
  ***********************************************************
26
26
  * @author Andrés Quintero - automatic
27
27
  * @createdAt 2024-11-20 14:00:24 - automatic
28
- * @updatedAt 2024-11-22 10:38:00 - automatic
29
- * @updatedUser Andrés Quintero - automatic
28
+ * @updatedAt 2025-01-08 10:46:48 - automatic
29
+ * @updatedUser cesar - automatic
30
30
  */
31
31
  containerHeader: ({ theme, ownerState }) => ({
32
32
  display: "flex",
@@ -46,8 +46,8 @@ const paperFormStyles = {
46
46
  ***********************************************************
47
47
  * @author Andrés Quintero - automatic
48
48
  * @createdAt 2024-11-20 14:00:24 - automatic
49
- * @updatedAt 2024-11-22 10:38:00 - automatic
50
- * @updatedUser Andrés Quintero - automatic
49
+ * @updatedAt 2025-01-08 10:46:48 - automatic
50
+ * @updatedUser cesar - automatic
51
51
  */
52
52
  containerTitle: ({ theme }) => ({
53
53
  color: theme.vars.palette.text.primary,
@@ -65,8 +65,8 @@ const paperFormStyles = {
65
65
  ***********************************************************
66
66
  * @author Andrés Quintero - automatic
67
67
  * @createdAt 2024-11-20 14:00:24 - automatic
68
- * @updatedAt 2024-11-22 10:38:00 - automatic
69
- * @updatedUser Andrés Quintero - automatic
68
+ * @updatedAt 2025-01-08 10:46:48 - automatic
69
+ * @updatedUser cesar - automatic
70
70
  */
71
71
  containerIcon: () => ({
72
72
  display: "grid",
@@ -79,17 +79,18 @@ const paperFormStyles = {
79
79
  ***********************************************************
80
80
  * @author Andrés Quintero - automatic
81
81
  * @createdAt 2024-11-20 14:00:24 - automatic
82
- * @updatedAt 2024-11-22 10:38:00 - automatic
83
- * @updatedUser Andrés Quintero - automatic
82
+ * @updatedAt 2025-01-08 10:46:48 - automatic
83
+ * @updatedUser cesar - automatic
84
84
  */
85
85
  containerContent: ({ theme, ownerState }) => ({
86
86
  width: "100%",
87
87
  height: "auto",
88
88
  display: "flex",
89
- flexDirection: "column",
90
- alignItems: "center",
91
- justifyContent: "center",
92
- gap: ownerState.isForm ? theme.vars.size.baseSpacings.sp2 : theme.vars.size.baseSpacings.sp0,
89
+ flexDirection: ownerState.isForm ? "row" : "column",
90
+ alignItems: ownerState.isForm ? "flex-start" : "center",
91
+ justifyContent: ownerState.isForm ? "flex-start" : "center",
92
+ gap: ownerState.isForm ? theme.vars.size.baseSpacings.sp3 : theme.vars.size.baseSpacings.sp0,
93
+ flexWrap: ownerState.isForm ? "wrap" : "nowrap",
93
94
  padding: theme.vars.size.baseSpacings.sp3,
94
95
  background: theme.vars.palette.background.default
95
96
  })
@@ -4,10 +4,11 @@ import { OverridesStyleRules } from '@mui/material/styles/overrides';
4
4
  import { PAPER_FORM_KEY } from './constants';
5
5
  import { Theme } from '@mui/material/styles';
6
6
  import { ComponentPalletColor, Sizes } from '@m4l/styles';
7
+ import { PropertyValueProps } from '../PropertyValue/types';
7
8
  export interface PaperFormProps {
8
9
  urlIcon?: string;
9
10
  title: string;
10
- children: ReactNode;
11
+ children?: ReactNode | PropertyValueProps[];
11
12
  variant?: 'standard';
12
13
  color?: Extract<ComponentPalletColor, 'default'>;
13
14
  size?: Extract<Sizes, 'small' | 'medium'>;
@@ -3,7 +3,7 @@ import { PropertyValueProps } from './types';
3
3
  * PropertyValue component is used to display a property and its value in a form or not.
4
4
  * @author cesar - automatic
5
5
  * @createdAt 2024-12-19 14:44:17 - automatic
6
- * @updatedAt 2024-12-30 09:30:27 - automatic
6
+ * @updatedAt 2025-01-08 11:15:49 - automatic
7
7
  * @updatedUser cesar - automatic
8
8
  */
9
9
  export declare function PropertyValue(props: PropertyValueProps): import("react/jsx-runtime").JSX.Element;
@@ -5,7 +5,9 @@ import { T as TEST_PROPS_DATA, P as PROPERTY_VALUE_KEY_COMPONENT, C as COMPONENT
5
5
  import { a as getPropDataTestId, g as getNameDataTestId } from "../../test/getNameDataTestId.js";
6
6
  import { P as PropertyValueRootStyled, a as PropertyStyled, V as ValueStyled } from "./slots/PropertyValueSlots.js";
7
7
  import { a as getComponentSlotRoot } from "../../utils/getComponentSlotRoot.js";
8
+ import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
8
9
  import { L as Label } from "../Label/Label.js";
10
+ import { T as TextField } from "../mui_extended/TextField/TextField.js";
9
11
  import { T as Typography } from "../mui_extended/Typography/Typography.js";
10
12
  import { I as Icon } from "../Icon/Icon.js";
11
13
  function PropertyValue(props) {
@@ -20,8 +22,11 @@ function PropertyValue(props) {
20
22
  mandatory,
21
23
  mandatoryMessage,
22
24
  helperMessage,
23
- semanticWidth = "fullWidth"
25
+ semanticWidth = "fullWidth",
26
+ size = "medium"
24
27
  } = props;
28
+ const { currentSize } = useComponentSize(size);
29
+ const normalizedSize = currentSize === "large" ? "medium" : currentSize;
25
30
  const ownerState = {
26
31
  disabled: isForm && disabled ? disabled : false,
27
32
  isForm: isForm ? true : false,
@@ -42,8 +47,23 @@ function PropertyValue(props) {
42
47
  return startAdornment;
43
48
  };
44
49
  const renderValue = () => {
50
+ if (isForm) {
51
+ if (typeof value === "string" || typeof value === "number") {
52
+ return /* @__PURE__ */ jsx(
53
+ TextField,
54
+ {
55
+ size: normalizedSize,
56
+ defaultValue: value,
57
+ disabled,
58
+ helperText: helperMessage,
59
+ fullWidth: true
60
+ }
61
+ );
62
+ }
63
+ return value;
64
+ }
45
65
  if (typeof value === "string") {
46
- return /* @__PURE__ */ jsx(Typography, { variant: "bodyDens", children: value });
66
+ return /* @__PURE__ */ jsx(Typography, { size: normalizedSize, variant: "bodyDens", children: value });
47
67
  }
48
68
  return value;
49
69
  };
@@ -64,6 +84,7 @@ function PropertyValue(props) {
64
84
  /* @__PURE__ */ jsx(
65
85
  Label,
66
86
  {
87
+ size: normalizedSize,
67
88
  label: property,
68
89
  mandatory,
69
90
  mandatoryMessage,
@@ -71,14 +92,7 @@ function PropertyValue(props) {
71
92
  }
72
93
  )
73
94
  ] }),
74
- /* @__PURE__ */ jsx(
75
- ValueStyled,
76
- {
77
- role: "property-value-value-role",
78
- ownerState,
79
- children: renderValue()
80
- }
81
- )
95
+ /* @__PURE__ */ jsx(ValueStyled, { role: "property-value-value-role", ownerState, children: renderValue() })
82
96
  ]
83
97
  }
84
98
  );
@@ -4,6 +4,7 @@ import { PROPERTY_VALUE_KEY_COMPONENT } from './constants';
4
4
  import { Theme } from '@mui/material';
5
5
  import { OverridesStyleRules } from '@mui/material/styles/overrides';
6
6
  import { PropertyValueSlots } from './slots/PropertyValueEnum';
7
+ import { Sizes } from '@m4l/styles';
7
8
  /**
8
9
  * Tipos de valores posibles para los componentes dentro de `PropertyValue`.
9
10
  */
@@ -77,6 +78,10 @@ export interface PropertyValueProps extends PropertyProps, ValueProps, Omit<Labe
77
78
  * Define el ancho semántico del componente según el contenido.
78
79
  */
79
80
  semanticWidth?: SemanticWidthOptions;
81
+ /**
82
+ * Propiedad de tamaño para el componente `PropertyValue`.
83
+ */
84
+ size?: Extract<Sizes, 'small' | 'medium'>;
80
85
  }
81
86
  /**
82
87
  * Estado del propietario para el componente `PropertyValue`, utilizado para personalizar estilos y comportamientos.
@@ -87,7 +87,6 @@ const RHFTextField = forwardRef((props, ref) => {
87
87
  value: type === "number" ? isNaN(parseFloat(value)) ? "" : value : value || "",
88
88
  inputProps: {
89
89
  name,
90
- role: "textbox",
91
90
  ss: 1,
92
91
  id: htmlForId,
93
92
  "aria-labelledby": ariaLabelledById,
@@ -6,6 +6,6 @@ import { RHFTextFieldPasswordProps } from './types';
6
6
  * @returns
7
7
  */
8
8
  /**
9
- * TODO: Documentar
9
+ * Props del componente RHFTextFieldPassword
10
10
  */
11
11
  export declare const RHFTextFieldPassword: (props: RHFTextFieldPasswordProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,11 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useEnvironment } from "@m4l/core";
3
3
  import { InputAdornment } from "@mui/material";
4
4
  import { useState } from "react";
5
- import { I as IconButton } from "../../mui_extended/IconButton/IconButton.js";
6
- import { R as RHFTextField } from "../RHFTextField/RHFTextField.js";
7
- import { R as RHFTextFieldPasswordRoot } from "./styles.js";
8
- import { u as useUtilityClasses } from "./classes/index.js";
9
- import { T as TEST_PROP_ID } from "../../../test/constants_no_mock.js";
10
- import { g as getNameDataTestId } from "./tests/utils.js";
5
+ import { useFormContext, Controller } from "react-hook-form";
6
+ import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
7
+ import { R as RHFTextFieldPasswordRoot, L as LabelStyled, T as TextFieldStyled, I as IconButtonStyled } from "./slots/RHFTextFieldPasswordSlots.js";
8
+ import { H as HelperError } from "../../HelperError/HelperError.js";
11
9
  const RHFTextFieldPassword = (props) => {
12
10
  const {
13
11
  name,
@@ -15,49 +13,81 @@ const RHFTextFieldPassword = (props) => {
15
13
  size,
16
14
  mandatory,
17
15
  mandatoryMessage,
18
- helperMessage
16
+ helperMessage,
17
+ disabled,
18
+ ...other
19
19
  } = props;
20
20
  const [showPassword, setShowPassword] = useState(false);
21
+ const { currentSize } = useComponentSize(size);
22
+ const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
21
23
  const { host_static_assets, environment_assets } = useEnvironment();
22
- const classes = useUtilityClasses();
23
- return (
24
- /* RHFTextFieldPasswordRoot: Contenedor principal del componente, es usado para aplicar los estilos css de los overrides
25
- que provienen del objeto del tema. Se usa para garantizar de que estos estilos no se propaguen a otros
26
- componentes de la plataforna web. */
27
- /* @__PURE__ */ jsx(
28
- RHFTextFieldPasswordRoot,
29
- {
30
- className: classes.root,
31
- ...process.env.NODE_ENV !== "production" ? { [TEST_PROP_ID]: getNameDataTestId("root") } : {},
32
- children: /* @__PURE__ */ jsx(
33
- RHFTextField,
24
+ const { control } = useFormContext();
25
+ return /* @__PURE__ */ jsx(RHFTextFieldPasswordRoot, { ownerState: {}, children: /* @__PURE__ */ jsx(
26
+ Controller,
27
+ {
28
+ name,
29
+ control,
30
+ render: ({ field: { onChange, value, ref }, fieldState: { error } }) => /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ label && /* @__PURE__ */ jsx(
32
+ LabelStyled,
34
33
  {
35
- name,
34
+ ownerState: { error: !!error },
35
+ size: adjustedSize,
36
36
  label,
37
+ htmlFor: name,
38
+ mandatory,
39
+ mandatoryMessage,
40
+ helperMessage
41
+ }
42
+ ),
43
+ /* @__PURE__ */ jsx(
44
+ TextFieldStyled,
45
+ {
46
+ ownerState: { error: !!error },
47
+ name,
48
+ id: name,
37
49
  type: showPassword ? "text" : "password",
38
- autoComplete: "on",
39
50
  size,
40
51
  mandatory,
41
52
  mandatoryMessage,
42
53
  helperMessage,
54
+ error: !!error,
55
+ disabled,
56
+ inputProps: {
57
+ role: "textbox",
58
+ "aria-label": name,
59
+ disabled,
60
+ name,
61
+ type: showPassword ? "text" : "password"
62
+ },
43
63
  InputProps: {
44
- endAdornment: (
45
- /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
46
- personalizado dentro del campo de texto*/
47
- /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
48
- IconButton,
49
- {
50
- onClick: () => setShowPassword(!showPassword),
51
- src: showPassword ? `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye.svg` : `${host_static_assets}/${environment_assets}/frontend/domain/host/login/assets/icons/eye_off.svg`
52
- }
53
- ) })
54
- )
55
- }
64
+ /* InputAdornment: Componente de la librería externa material ui, permite agregar un elemento gráfico
65
+ personalizado dentro del campo de texto*/
66
+ endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
67
+ IconButtonStyled,
68
+ {
69
+ ownerState: { error: !!error },
70
+ onClick: () => setShowPassword(!showPassword),
71
+ icon: showPassword ? `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view.svg` : `${host_static_assets}/${environment_assets}/frontend/components/rhftextfieldpassword/assests/icons/view_off.svg`
72
+ }
73
+ ) })
74
+ },
75
+ onChange,
76
+ value: value || "",
77
+ inputRef: ref,
78
+ ...other
79
+ }
80
+ ),
81
+ error?.message && /* @__PURE__ */ jsx(
82
+ HelperError,
83
+ {
84
+ message: error.message,
85
+ size
56
86
  }
57
87
  )
58
- }
59
- )
60
- );
88
+ ] })
89
+ }
90
+ ) });
61
91
  };
62
92
  export {
63
93
  RHFTextFieldPassword as R
@@ -0,0 +1,2 @@
1
+ import { RHFTextFieldPasswordStyles } from './types';
2
+ export declare const rhfTextFieldPasswordStyles: RHFTextFieldPasswordStyles;
@@ -0,0 +1,69 @@
1
+ import { g as getHeightSizeStyles } from "../../../utils/getHeightSizeStyles.js";
2
+ const rhfTextFieldPasswordStyles = {
3
+ /**
4
+ * Elemento Root
5
+ */
6
+ root: ({ theme, ownerState }) => ({
7
+ display: "flex",
8
+ flexDirection: "column",
9
+ borderAlingment: "center",
10
+ gap: theme.vars.size.baseSpacings["sp0-5"],
11
+ "& .MuiFormControl-root": {
12
+ minHeight: "100%",
13
+ ...getHeightSizeStyles(
14
+ theme.generalSettings.isMobile,
15
+ ownerState.size || "medium",
16
+ "action"
17
+ )
18
+ }
19
+ }),
20
+ /**
21
+ * Estilos personalizados para el componente RHFTextFieldPassword.
22
+ */
23
+ textField: {
24
+ "& .MuiInputBase-input": {
25
+ "&:-webkit-autofill": {
26
+ WebkitBoxShadow: "0 0 0 100px transparent inset !important",
27
+ WebkitTextFillColor: "inherit !important",
28
+ backgroundColor: "transparent !important",
29
+ fontFamily: "inherit !important",
30
+ fontSize: "inherit !important"
31
+ },
32
+ "&:-webkit-autofill:focus": {
33
+ WebkitBoxShadow: "0 0 0 100px transparent inset !important",
34
+ WebkitTextFillColor: "inherit !important",
35
+ backgroundColor: "transparent !important"
36
+ },
37
+ "&:-webkit-autofill:hover": {
38
+ WebkitBoxShadow: "0 0 0 100px transparent inset !important",
39
+ WebkitTextFillColor: "inherit !important",
40
+ backgroundColor: "transparent !important"
41
+ },
42
+ "&:-internal-autofill-selected": {
43
+ appearance: "none !important",
44
+ backgroundImage: "none !important",
45
+ backgroundColor: "transparent !important",
46
+ color: "inherit !important"
47
+ }
48
+ }
49
+ },
50
+ /**
51
+ * Estilos personalizados para el componente IconButton.
52
+ */
53
+ iconButtonStyled: ({ theme, ownerState }) => ({
54
+ "& .MuiIconButton-root": {
55
+ color: theme.vars.palette.text.primary
56
+ },
57
+ "&:hover": {
58
+ backgroundColor: "transparent"
59
+ },
60
+ ...ownerState.error && {
61
+ "& .MuiIconButton-root": {
62
+ color: theme.vars.palette.error.semanticText
63
+ }
64
+ }
65
+ })
66
+ };
67
+ export {
68
+ rhfTextFieldPasswordStyles as r
69
+ };
@@ -0,0 +1 @@
1
+ export declare const RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT = "RHFTextField";
@@ -0,0 +1,4 @@
1
+ const RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT = "RHFTextField";
2
+ export {
3
+ RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT as R
4
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum RHFTextFieldPasswordSlots {
2
+ root = "root",
3
+ textField = "textField",
4
+ iconButtonStyled = "iconButtonStyled"
5
+ }
@@ -0,0 +1,9 @@
1
+ var RHFTextFieldPasswordSlots = /* @__PURE__ */ ((RHFTextFieldPasswordSlots2) => {
2
+ RHFTextFieldPasswordSlots2["root"] = "root";
3
+ RHFTextFieldPasswordSlots2["textField"] = "textField";
4
+ RHFTextFieldPasswordSlots2["iconButtonStyled"] = "iconButtonStyled";
5
+ return RHFTextFieldPasswordSlots2;
6
+ })(RHFTextFieldPasswordSlots || {});
7
+ export {
8
+ RHFTextFieldPasswordSlots as R
9
+ };
@@ -0,0 +1,12 @@
1
+ export declare const RHFTextFieldPasswordRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown> & {
2
+ ownerState: Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown>;
3
+ }, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').HTMLAttributes<HTMLDivElement> | keyof import('react').ClassAttributes<HTMLDivElement>>, {}>;
4
+ export declare const TextFieldStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "children" | "value" | "title" | "component" | "size" | "name" | "error" | "select" | "rows" | "id" | "type" | "hidden" | "content" | "style" | "disabled" | "variant" | "margin" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "label" | keyof import('react').RefAttributes<HTMLDivElement> | "autoComplete" | "placeholder" | "required" | "dataTestId" | "maxRows" | "fullWidth" | "focused" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "inputProps" | "inputRef" | "multiline" | "minRows" | "SelectProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown> & {
5
+ ownerState: Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown>;
6
+ }, {}, {}>;
7
+ export declare const IconButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "children" | "value" | "title" | "component" | "size" | "name" | "id" | "type" | "selected" | "action" | "hidden" | "content" | "style" | "icon" | "tooltip" | "disabled" | "variant" | "translate" | "sx" | "classes" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "lang" | "nonce" | "slot" | "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" | "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" | "onResize" | "onResizeCapture" | "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" | "placement" | "form" | "src" | "rotationAngle" | "tooltipContent" | "instaceDataTestId" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "componentPaletteColor" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown> & {
8
+ ownerState: Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown>;
9
+ }, {}, {}>;
10
+ export declare const LabelStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../Label').LabelProps, keyof import('../../../Label').LabelProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown> & {
11
+ ownerState: Partial<import('../..').RHFTextFieldOwnerState> & Record<string, unknown>;
12
+ }, {}, {}>;
@@ -0,0 +1,29 @@
1
+ import { styled } from "@mui/material";
2
+ import { R as RHFTextFieldPasswordSlots } from "./RHFTextFieldPasswordEnum.js";
3
+ import { R as RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT } from "../constanst.js";
4
+ import { r as rhfTextFieldPasswordStyles } from "../RHFTextFieldPassword.styles.js";
5
+ import { T as TextField } from "../../../mui_extended/TextField/TextField.js";
6
+ import { I as IconButton } from "../../../mui_extended/IconButton/IconButton.js";
7
+ import { L as Label } from "../../../Label/Label.js";
8
+ const RHFTextFieldPasswordRoot = styled("div", {
9
+ name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
10
+ slot: RHFTextFieldPasswordSlots.root
11
+ })(rhfTextFieldPasswordStyles?.root);
12
+ const TextFieldStyled = styled(TextField, {
13
+ name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
14
+ slot: RHFTextFieldPasswordSlots.textField
15
+ })(rhfTextFieldPasswordStyles?.textField);
16
+ const IconButtonStyled = styled(IconButton, {
17
+ name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
18
+ slot: RHFTextFieldPasswordSlots.iconButtonStyled
19
+ })(rhfTextFieldPasswordStyles?.iconButtonStyled);
20
+ const LabelStyled = styled(Label, {
21
+ name: RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT,
22
+ slot: RHFTextFieldPasswordSlots.iconButtonStyled
23
+ })(rhfTextFieldPasswordStyles?.iconButtonStyled);
24
+ export {
25
+ IconButtonStyled as I,
26
+ LabelStyled as L,
27
+ RHFTextFieldPasswordRoot as R,
28
+ TextFieldStyled as T
29
+ };
@@ -0,0 +1,2 @@
1
+ export { RHFTextFieldPasswordSlots } from './RHFTextFieldPasswordEnum';
2
+ export * from './RHFTextFieldPasswordSlots';
@@ -1,2 +1,11 @@
1
+ import { OverridesStyleRules } from '@mui/material/styles/overrides';
1
2
  import { RHFTextFieldProps } from '../RHFTextField/types';
3
+ import { RHFTextFieldPasswordSlots } from './slots';
4
+ import { RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT } from './constanst';
5
+ import { Theme } from '@mui/material';
2
6
  export type RHFTextFieldPasswordProps = RHFTextFieldProps;
7
+ export type RHFTextFieldPasswordOwnerState = RHFTextFieldPasswordProps & {
8
+ error?: boolean;
9
+ };
10
+ export type RHFTextFieldPasswordSlotsType = keyof typeof RHFTextFieldPasswordSlots;
11
+ export type RHFTextFieldPasswordStyles = OverridesStyleRules<RHFTextFieldPasswordSlotsType, typeof RHF_TEXT_FIELD_PASSWORD_KEY_COMPONENT, Theme>;
@@ -87,6 +87,7 @@ const IconButton = forwardRef((props, ref) => {
87
87
  disabled,
88
88
  "data-testid": "IconButtonRoot",
89
89
  tabIndex: 0,
90
+ role: "button",
90
91
  ...other,
91
92
  children: badgeContent ? /* @__PURE__ */ jsx(
92
93
  BadgeStyled,
@@ -56,9 +56,10 @@ const TextField = forwardRef(function TextField2(props, ref) {
56
56
  inputMode: "numeric",
57
57
  disabled,
58
58
  inputProps: {
59
+ role: "textbox",
59
60
  ...inputProps,
60
61
  disabled,
61
- type: "text",
62
+ type: inputProps?.type || "text",
62
63
  "aria-invalid": error ? "true" : void 0
63
64
  },
64
65
  ...others
@@ -36,14 +36,6 @@ export interface TextFieldProps extends Omit<MUITextFieldProps, 'size' | 'color'
36
36
  * size="medium"
37
37
  */
38
38
  size?: Extract<Sizes, 'small' | 'medium'>;
39
- /**
40
- * Color del campo de texto.
41
- * color="primary"
42
- */
43
- /**
44
- * Indica si el campo de texto debe aceptar solo texto.
45
- */
46
- type?: string;
47
39
  }
48
40
  /**
49
41
  * Estado del propietario del campo de texto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.1.57",
3
+ "version": "9.1.59",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0"
@@ -1,9 +0,0 @@
1
- import { RHFTextFieldPasswordClassesType } from './types';
2
- export declare const RHFTextFieldPasswordClasses: RHFTextFieldPasswordClassesType;
3
- export declare function getRHFTextFieldPasswordUtilityClass(slot: string): string;
4
- /**
5
- * TODO: Documentar
6
- */
7
- export declare const useUtilityClasses: () => {
8
- root: string;
9
- };
@@ -1,25 +0,0 @@
1
- import { generateUtilityClasses, generateUtilityClass } from "@mui/material";
2
- import { unstable_composeClasses } from "@mui/base";
3
- generateUtilityClasses(
4
- "M4LRHFTextFieldPassword",
5
- [
6
- /* elements */
7
- "root"
8
- /* states or variants of elements */
9
- ]
10
- );
11
- function getRHFTextFieldPasswordUtilityClass(slot) {
12
- return generateUtilityClass("M4LRHFTextFieldPassword", slot);
13
- }
14
- const useUtilityClasses = () => {
15
- const slots = {
16
- root: ["root"]
17
- };
18
- const composedClasses = unstable_composeClasses(slots, getRHFTextFieldPasswordUtilityClass, {});
19
- return {
20
- ...composedClasses
21
- };
22
- };
23
- export {
24
- useUtilityClasses as u
25
- };
@@ -1,4 +0,0 @@
1
- export interface RHFTextFieldPasswordClassesType {
2
- root: string;
3
- }
4
- export type RHFTextFieldPasswordClassesKey = keyof RHFTextFieldPasswordClassesType;
@@ -1 +0,0 @@
1
- export declare const RHFTextFieldPasswordRoot: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme>, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -1,7 +0,0 @@
1
- import { styled } from "@mui/material/styles";
2
- const RHFTextFieldPasswordRoot = styled("div")(({ theme }) => ({
3
- ...theme.components?.M4LRHFTextFieldPassword?.styleOverrides || {}
4
- }));
5
- export {
6
- RHFTextFieldPasswordRoot as R
7
- };
@@ -1,2 +0,0 @@
1
- export declare const RHFTEXTFIELDPASSWORD_ROOT_TEST_ID = "RHFTextFieldPasswordRoot";
2
- export declare const RHFTEXTFIELDPASSWORD_PREFIX = "RHFTextFieldPassword";
@@ -1,4 +0,0 @@
1
- const RHFTEXTFIELDPASSWORD_PREFIX = "RHFTextFieldPassword";
2
- export {
3
- RHFTEXTFIELDPASSWORD_PREFIX as R
4
- };
@@ -1,2 +0,0 @@
1
- import { RHFTextFieldPasswordClassesType } from '../classes/types';
2
- export declare const getNameDataTestId: (KEY: keyof RHFTextFieldPasswordClassesType) => string;
@@ -1,7 +0,0 @@
1
- import { R as RHFTEXTFIELDPASSWORD_PREFIX } from "./constants.js";
2
- const getNameDataTestId = (KEY) => {
3
- return `${RHFTEXTFIELDPASSWORD_PREFIX}-${KEY}`;
4
- };
5
- export {
6
- getNameDataTestId as g
7
- };