@m4l/components 9.2.28 → 9.2.30

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 (59) hide show
  1. package/@types/types.d.ts +8 -0
  2. package/components/Label/Label.js +5 -4
  3. package/components/Label/Label.styles.js +7 -44
  4. package/components/Label/test/Label.test.d.ts +1 -0
  5. package/components/Label/types.d.ts +6 -4
  6. package/components/MFIsolationApp/MFIsolationApp.js +4 -4
  7. package/components/hook-form/RHFCheckbox/slots/RHFCheckBoxSlots.d.ts +1 -1
  8. package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
  9. package/components/hook-form/RHFSelect/RHFSelect.js +0 -2
  10. package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
  11. package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
  12. package/components/hook-form/RHFTimePicker/slots/RHFTimePickerEnum.d.ts +4 -1
  13. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.d.ts +7 -0
  14. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js +74 -0
  15. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.d.ts +2 -0
  16. package/components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.styles.js +147 -0
  17. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.d.ts +23 -0
  18. package/components/hook-form/RHFUpload/RHFUploadSingleFile/constants.js +34 -0
  19. package/components/hook-form/RHFUpload/RHFUploadSingleFile/dictionary.d.ts +15 -0
  20. package/components/hook-form/RHFUpload/RHFUploadSingleFile/dictionary.js +15 -0
  21. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/formatFileSize.d.ts +6 -0
  22. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/formatFileSize.js +16 -0
  23. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/getReadableFileType.d.ts +6 -0
  24. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/getReadableFileType.js +55 -0
  25. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/uploadReducer.d.ts +5 -0
  26. package/components/hook-form/RHFUpload/RHFUploadSingleFile/helpers/uploadReducer.js +17 -0
  27. package/components/hook-form/RHFUpload/RHFUploadSingleFile/index.d.ts +1 -0
  28. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileEnum.d.ts +22 -0
  29. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileEnum.js +26 -0
  30. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.d.ts +60 -0
  31. package/components/hook-form/RHFUpload/RHFUploadSingleFile/slots/RHFUploadSingleFileSlots.js +110 -0
  32. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.d.ts +5 -0
  33. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/BlockContent.js +77 -0
  34. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/BlockContent/types.d.ts +5 -0
  35. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.d.ts +5 -0
  36. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/Preview.js +36 -0
  37. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/Preview/types.d.ts +6 -0
  38. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.d.ts +5 -0
  39. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/index.js +89 -0
  40. package/components/hook-form/RHFUpload/RHFUploadSingleFile/subcomponents/UploadSingleFile/types.d.ts +38 -0
  41. package/components/hook-form/RHFUpload/RHFUploadSingleFile/test/RHFUploadsinglefile.test.d.ts +1 -0
  42. package/components/hook-form/RHFUpload/RHFUploadSingleFile/types.d.ts +42 -0
  43. package/components/hook-form/index.d.ts +1 -1
  44. package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
  45. package/components/mui_extended/Button/ButtonStyles.js +88 -59
  46. package/components/mui_extended/LinearProgress/index.js +1 -1
  47. package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +1 -1
  48. package/index.js +2 -2
  49. package/package.json +1 -1
  50. package/storybook/components/Label/Label.stories.d.ts +6 -4
  51. package/storybook/hook-form/RHFUploadSingleFile/RHFUploadSingleFile.stories.d.ts +11 -0
  52. package/components/MFIsolationApp/constants.js +0 -4
  53. package/components/hook-form/RHFUpload/RHFUploadFile/components/UploadSingleFile/index.d.ts +0 -13
  54. package/components/hook-form/RHFUpload/RHFUploadFile/components/UploadSingleFile/index.js +0 -84
  55. package/components/hook-form/RHFUpload/RHFUploadFile/index.d.ts +0 -9
  56. package/components/hook-form/RHFUpload/RHFUploadFile/index.js +0 -31
  57. package/components/hook-form/RHFUpload/components/UploadComponents/BlockContent.js +0 -36
  58. package/components/hook-form/RHFUpload/components/UploadComponents/RejectionFiles.js +0 -31
  59. package/storybook/hook-form/RHFUploadImage/RHFUploadFile.stories.d.ts +0 -6
@@ -0,0 +1,77 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { useModuleDictionary, useEnvironment } from "@m4l/core";
3
+ import { C as ContainerBlockContentStyled, B as BlockContentGroupStyled, I as IllustrationUploadStyled, T as TitleStyled, D as DescriptionStyled, a as DividerStyled, b as DividerTextStyled, c as ButtonStyled } from "../../slots/RHFUploadSingleFileSlots.js";
4
+ import { C as COMPONENTS_DICTIONARY_KEYS } from "../../dictionary.js";
5
+ import { a as RHF_UPLOAD_SINGLE_FILE_CLASSES, I as ILLUSTRATION_UPLOAD } from "../../constants.js";
6
+ import { L as LinearProgress } from "../../../../../mui_extended/LinearProgress/index.js";
7
+ const BlockContent = (props) => {
8
+ const { value, hidden, size } = props;
9
+ const { getLabel } = useModuleDictionary();
10
+ const { host_static_assets, environment_assets } = useEnvironment();
11
+ return /* @__PURE__ */ jsxs(ContainerBlockContentStyled, { ownerState: { hidden }, children: [
12
+ /* @__PURE__ */ jsxs(BlockContentGroupStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.blockContentGroup, children: [
13
+ /* @__PURE__ */ jsx(
14
+ IllustrationUploadStyled,
15
+ {
16
+ ownerState: {},
17
+ src: `${host_static_assets}/${environment_assets}/${ILLUSTRATION_UPLOAD}`,
18
+ width: 100,
19
+ height: 100,
20
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.illustrationUpload,
21
+ size
22
+ }
23
+ ),
24
+ /* @__PURE__ */ jsx(
25
+ TitleStyled,
26
+ {
27
+ ownerState: {},
28
+ skeletonWidth: 100,
29
+ variant: "bodyDens",
30
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.title,
31
+ size,
32
+ children: getLabel(COMPONENTS_DICTIONARY_KEYS.title)
33
+ }
34
+ ),
35
+ /* @__PURE__ */ jsx(
36
+ DescriptionStyled,
37
+ {
38
+ ownerState: {},
39
+ skeletonWidth: 200,
40
+ skeletonRows: 2,
41
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.description,
42
+ variant: "body",
43
+ color: "text.secondary",
44
+ size,
45
+ children: getLabel(COMPONENTS_DICTIONARY_KEYS.description)
46
+ }
47
+ ),
48
+ /* @__PURE__ */ jsx(DividerStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(
49
+ DividerTextStyled,
50
+ {
51
+ ownerState: {},
52
+ skeletonWidth: 10,
53
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.dividerText,
54
+ variant: "bodyDens",
55
+ color: "text.secondary",
56
+ size,
57
+ children: getLabel(COMPONENTS_DICTIONARY_KEYS.dividerText)
58
+ }
59
+ ) })
60
+ ] }),
61
+ /* @__PURE__ */ jsx(
62
+ ButtonStyled,
63
+ {
64
+ ownerState: {},
65
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.button,
66
+ variant: "contained",
67
+ color: "primary",
68
+ label: getLabel(COMPONENTS_DICTIONARY_KEYS.buttonText),
69
+ size
70
+ }
71
+ ),
72
+ value && /* @__PURE__ */ jsx(LinearProgress, { className: RHF_UPLOAD_SINGLE_FILE_CLASSES.linearProgress, variant: "determinate", value })
73
+ ] });
74
+ };
75
+ export {
76
+ BlockContent as B
77
+ };
@@ -0,0 +1,5 @@
1
+ import { RHFUploadSingleFileProps } from '../../types';
2
+ export interface BlockContentProps extends Pick<RHFUploadSingleFileProps, 'size'> {
3
+ value: number | null;
4
+ hidden: boolean;
5
+ }
@@ -0,0 +1,5 @@
1
+ import { PreviewProps } from './types';
2
+ /**
3
+ * Componente de preview para el componente RHFUploadSingleFile.
4
+ */
5
+ export declare const Preview: (props: PreviewProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,36 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { F as FILES_ICONS, a as RHF_UPLOAD_SINGLE_FILE_CLASSES, C as CLOSE_PREVIEW_ICON } from "../../constants.js";
3
+ import { d as ContainerPreviewStyled, e as ImagePreviewStyled, f as ContainerNameSizeStyled, N as NamePreviewStyled, S as SizePreviewStyled, g as ClosePreviewStyled } from "../../slots/RHFUploadSingleFileSlots.js";
4
+ import { useEnvironment } from "@m4l/core";
5
+ import { f as formatFileSize } from "../../helpers/formatFileSize.js";
6
+ const Preview = (props) => {
7
+ const { file, onChange, onClose } = props;
8
+ const { host_static_assets, environment_assets } = useEnvironment();
9
+ const icon = `${host_static_assets}/${environment_assets}/${FILES_ICONS[file.type] || FILES_ICONS["application/octet-stream"]}`;
10
+ const closePreviewIcon = `${host_static_assets}/${environment_assets}/${CLOSE_PREVIEW_ICON}`;
11
+ return /* @__PURE__ */ jsxs(ContainerPreviewStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.containerPreview, children: [
12
+ /* @__PURE__ */ jsx(ImagePreviewStyled, { enableIntersectionObserver: false, role: "img", "aria-label": "image-preview", ownerState: {}, src: icon, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.imagePreview }),
13
+ /* @__PURE__ */ jsxs(ContainerNameSizeStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.containerNameSize, children: [
14
+ /* @__PURE__ */ jsx(NamePreviewStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.namePreview, children: file.name }),
15
+ /* @__PURE__ */ jsx(SizePreviewStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.sizePreview, color: "text.secondary", children: formatFileSize(file.size) })
16
+ ] }),
17
+ /* @__PURE__ */ jsx(
18
+ ClosePreviewStyled,
19
+ {
20
+ role: "button",
21
+ "aria-label": "button-close-preview",
22
+ ownerState: {},
23
+ icon: closePreviewIcon,
24
+ className: RHF_UPLOAD_SINGLE_FILE_CLASSES.closePreview,
25
+ onClick: (e) => {
26
+ e.stopPropagation();
27
+ onChange && onChange(null);
28
+ onClose();
29
+ }
30
+ }
31
+ )
32
+ ] });
33
+ };
34
+ export {
35
+ Preview as P
36
+ };
@@ -0,0 +1,6 @@
1
+ import { UploadSingleFileProps } from '../UploadSingleFile/types';
2
+ export interface PreviewProps extends Pick<UploadSingleFileProps, 'onChange' | 'size'> {
3
+ uploadProgress: number | null;
4
+ file: File;
5
+ onClose: () => void;
6
+ }
@@ -0,0 +1,5 @@
1
+ import { UploadSingleFileProps } from './types';
2
+ /**
3
+ * Componente de carga de un solo archivo con barra de progreso.
4
+ */
5
+ export default function UploadSingleFile(props: UploadSingleFileProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,89 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { useDropzone } from "react-dropzone";
3
+ import { useReducer, useEffect } from "react";
4
+ import { h as ContainerDropZoneStyled, i as DropZoneStyled } from "../../slots/RHFUploadSingleFileSlots.js";
5
+ import { useHostTools, useModuleDictionary, useModuleSkeleton } from "@m4l/core";
6
+ import { C as COMPONENTS_DICTIONARY_KEYS } from "../../dictionary.js";
7
+ import { B as BlockContent } from "../BlockContent/BlockContent.js";
8
+ import { P as Preview } from "../Preview/Preview.js";
9
+ import { a as RHF_UPLOAD_SINGLE_FILE_CLASSES } from "../../constants.js";
10
+ import { u as uploadReducer } from "../../helpers/uploadReducer.js";
11
+ import { f as formatFileSize } from "../../helpers/formatFileSize.js";
12
+ import { g as getReadableFileType } from "../../helpers/getReadableFileType.js";
13
+ function UploadSingleFile(props) {
14
+ const { file, accept, onChange, maxFileSize, size } = props;
15
+ const { toast } = useHostTools();
16
+ const { getLabel } = useModuleDictionary();
17
+ const isSkeleton = useModuleSkeleton();
18
+ const [uploadState, dispatch] = useReducer(uploadReducer, {
19
+ progress: null,
20
+ preview: false,
21
+ validFile: false
22
+ });
23
+ const { getRootProps, getInputProps } = useDropzone({
24
+ multiple: false,
25
+ /**
26
+ * Maneja el evento de drop del archivo
27
+ */
28
+ onDrop: (acceptedFiles) => {
29
+ try {
30
+ dispatch({ type: "RESET" });
31
+ if (acceptedFiles.length > 0) {
32
+ const fileAccepted = acceptedFiles[0];
33
+ const isValid = Object.entries(accept).some(([mimeType]) => {
34
+ if (mimeType === "*/*") {
35
+ return true;
36
+ }
37
+ if (fileAccepted.type === mimeType) {
38
+ return true;
39
+ }
40
+ if (mimeType.endsWith("/*") && fileAccepted.type.startsWith(mimeType.slice(0, -2))) {
41
+ return true;
42
+ }
43
+ return false;
44
+ });
45
+ const sizeAccepted = fileAccepted.size <= maxFileSize;
46
+ if (!isValid || !sizeAccepted) {
47
+ if (!isValid) {
48
+ toast({ title: `${getLabel(COMPONENTS_DICTIONARY_KEYS.errorFileRejected)} ${getLabel(COMPONENTS_DICTIONARY_KEYS.acceptFile)} ${getReadableFileType(Object.keys(accept)[0])}.` }, { type: "error" });
49
+ }
50
+ if (!sizeAccepted) {
51
+ toast({ title: `${getLabel(COMPONENTS_DICTIONARY_KEYS.errorMaxSize)} ${getLabel(COMPONENTS_DICTIONARY_KEYS.acceptSize)} ${formatFileSize(maxFileSize)}.` }, { type: "error" });
52
+ }
53
+ } else {
54
+ onChange?.(fileAccepted);
55
+ dispatch({ type: "SET_VALID_FILE", payload: true });
56
+ }
57
+ }
58
+ } catch (error) {
59
+ console.error("Error in file drop:", error);
60
+ }
61
+ }
62
+ });
63
+ useEffect(() => {
64
+ let interval;
65
+ if (uploadState.validFile && !!file) {
66
+ interval = setInterval(() => {
67
+ dispatch({ type: "SET_PROGRESS", payload: (uploadState.progress ?? 0) + 10 });
68
+ if (uploadState.progress !== null && uploadState.progress >= 100) {
69
+ clearInterval(interval);
70
+ dispatch({ type: "SET_PROGRESS", payload: null });
71
+ dispatch({ type: "SET_PREVIEW", payload: true });
72
+ }
73
+ }, 100);
74
+ }
75
+ return () => {
76
+ if (interval) {
77
+ clearInterval(interval);
78
+ }
79
+ };
80
+ }, [file, uploadState.progress, uploadState.validFile]);
81
+ return /* @__PURE__ */ jsx(ContainerDropZoneStyled, { ownerState: {}, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.containerDropZone, children: /* @__PURE__ */ jsxs(DropZoneStyled, { ...getRootProps(), ownerState: { isSkeleton }, className: RHF_UPLOAD_SINGLE_FILE_CLASSES.dropZone, children: [
82
+ /* @__PURE__ */ jsx(BlockContent, { value: uploadState.progress, hidden: uploadState.preview, size }),
83
+ uploadState.preview && !!file && /* @__PURE__ */ jsx(Preview, { uploadProgress: uploadState.progress, file, onChange, onClose: () => dispatch({ type: "RESET" }), size }),
84
+ !isSkeleton && /* @__PURE__ */ jsx("input", { role: "button", "aria-label": "button-upload-single-file", ...getInputProps() })
85
+ ] }) });
86
+ }
87
+ export {
88
+ UploadSingleFile as U
89
+ };
@@ -0,0 +1,38 @@
1
+ import { DropzoneProps } from 'react-dropzone/.';
2
+ import { Accept } from 'react-dropzone';
3
+ import { RHFUploadSingleFileProps } from '../../types';
4
+ export interface UploadSingleFileProps extends Omit<DropzoneProps, 'accept'>, Pick<RHFUploadSingleFileProps, 'size'> {
5
+ /**
6
+ * Archivo seleccionado
7
+ */
8
+ file: File | null;
9
+ /**
10
+ * Función para cambiar el archivo seleccionado
11
+ */
12
+ onChange?: (file: File | null) => void;
13
+ /**
14
+ * Tamaño máximo del archivo
15
+ */
16
+ maxFileSize: number;
17
+ /**
18
+ * Tipos de archivos aceptados
19
+ */
20
+ accept: Accept;
21
+ }
22
+ export interface UploadState {
23
+ progress: number | null;
24
+ preview: boolean;
25
+ validFile: boolean;
26
+ }
27
+ export type UploadAction = {
28
+ type: 'SET_PROGRESS';
29
+ payload: number | null;
30
+ } | {
31
+ type: 'SET_PREVIEW';
32
+ payload: boolean;
33
+ } | {
34
+ type: 'SET_VALID_FILE';
35
+ payload: boolean;
36
+ } | {
37
+ type: 'RESET';
38
+ };
@@ -0,0 +1,42 @@
1
+ import { Theme } from '@mui/material';
2
+ import { M4LOverridesStyleRules } from '../../../../@types/augmentations';
3
+ import { RHF_UPLOAD_SINGLE_FILE_KEY_COMPONENT } from './constants';
4
+ import { RHFUploadSingleFileSlots } from './slots/RHFUploadSingleFileEnum';
5
+ import { LabelProps } from '../../../Label/types';
6
+ import { Sizes } from '@m4l/styles';
7
+ export interface RHFUploadSingleFileProps extends Omit<LabelProps, 'size' | 'error' | 'disabled' | 'children'> {
8
+ /**
9
+ * Nombre del campo del formulario usado en react-hook-form.
10
+ */
11
+ name: string;
12
+ /**
13
+ * Identificador único para el componente.
14
+ */
15
+ dataTestId?: string;
16
+ /**
17
+ * Tamaño del componente.
18
+ */
19
+ size?: Extract<Sizes, 'small' | 'medium'>;
20
+ /**
21
+ * Clase CSS personalizada.
22
+ */
23
+ className?: string;
24
+ /**
25
+ * Variante del componente.
26
+ */
27
+ variant?: 'standard';
28
+ /**
29
+ * Tamaño máximo del archivo en bytes.
30
+ */
31
+ maxFileSize?: number;
32
+ /**
33
+ * Tipos de archivos aceptados.
34
+ */
35
+ accept?: string;
36
+ }
37
+ export type RHFUploadSingleFileSlotsType = keyof typeof RHFUploadSingleFileSlots;
38
+ export type RHFUploadSingleFileOwnerState = Pick<RHFUploadSingleFileProps, 'size' | 'variant'> & {
39
+ hidden: boolean;
40
+ isSkeleton: boolean;
41
+ };
42
+ export type RHFUploadSingleFileStyles = M4LOverridesStyleRules<keyof typeof RHFUploadSingleFileSlots, typeof RHF_UPLOAD_SINGLE_FILE_KEY_COMPONENT, Theme>;
@@ -13,5 +13,5 @@ export * from './RHFTextFieldPassword';
13
13
  export * from './RHFPeriod';
14
14
  export { RHFRadioGroup } from './RHFRadioGroup';
15
15
  export { RHFNumberInput } from './RHFNumberInput/RHFNumberInput';
16
- export { RHFUploadFile } from './RHFUpload/RHFUploadFile';
16
+ export { RHFUploadSingleFile } from './RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile';
17
17
  export * from './RHFUpload';
@@ -18,7 +18,7 @@ export declare const MenuListStyled: import('@emotion/styled').StyledComponent<P
18
18
  export declare const CircularProgressStyled: import('@emotion/styled').StyledComponent<Pick<import('../../CircularProgress/types').CircularProgressProps, keyof import('../../CircularProgress/types').CircularProgressProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
19
19
  ownerState: Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown>;
20
20
  }, {}, {}>;
21
- export declare const RenderInputStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "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" | "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" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "helperText" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
21
+ export declare const RenderInputStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../TextField/types').TextFieldProps, "ref"> & import('react').RefAttributes<HTMLDivElement>, "value" | "size" | "children" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "slot" | "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" | "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" | "dataTestId" | "autoComplete" | "placeholder" | "required" | keyof import('react').RefAttributes<HTMLDivElement> | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
22
22
  ownerState: Partial<import('../types').AutocompleteOwnerState> & Record<string, unknown>;
23
23
  }, {}, {}>;
24
24
  export declare const TypographyStyled: 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> & {
@@ -1,3 +1,4 @@
1
+ import { g as getSizeStyles } from "../../../utils/getSizeStyles/getSizeStyles.js";
1
2
  const buttonStyles = {
2
3
  /**
3
4
  * Styles for the root element of the button component.
@@ -79,26 +80,35 @@ const buttonStyles = {
79
80
  "& span": {
80
81
  margin: "0px"
81
82
  },
82
- // Estilos específicos para el tamaño small
83
- ...ownerState.size === "small" && {
84
- ...theme.generalSettings.isMobile ? {
85
- height: theme.vars.size.mobile.small.action,
86
- minHeight: theme.vars.size.mobile.small.action
87
- } : {
88
- height: theme.vars.size.desktop.small.action,
89
- minHeight: theme.vars.size.desktop.small.action
90
- }
91
- },
92
- // Estilos específicos para el tamaño medium
93
- ...ownerState.size === "medium" && {
94
- ...theme.generalSettings.isMobile ? {
95
- height: theme.vars.size.mobile.medium.action,
96
- minHeight: theme.vars.size.mobile.medium.action
97
- } : {
98
- height: theme.vars.size.desktop.medium.action,
99
- minHeight: theme.vars.size.desktop.medium.action
100
- }
101
- }
83
+ ...getSizeStyles(
84
+ theme,
85
+ ownerState.size || "medium",
86
+ "action"
87
+ )
88
+ // // Estilos específicos para el tamaño small
89
+ // ...(ownerState.size === 'small' && {
90
+ // ...(theme.generalSettings.isMobile
91
+ // ? {
92
+ // height: theme.vars.size.mobile.small.action,
93
+ // minHeight: theme.vars.size.mobile.small.action,
94
+ // }
95
+ // : {
96
+ // height: theme.vars.size.desktop.small.action,
97
+ // minHeight: theme.vars.size.desktop.small.action,
98
+ // }),
99
+ // }),
100
+ // // Estilos específicos para el tamaño medium
101
+ // ...(ownerState.size === 'medium' && {
102
+ // ...(theme.generalSettings.isMobile
103
+ // ? {
104
+ // height: theme.vars.size.mobile.medium.action,
105
+ // minHeight: theme.vars.size.mobile.medium.action,
106
+ // }
107
+ // : {
108
+ // height: theme.vars.size.desktop.medium.action,
109
+ // minHeight: theme.vars.size.desktop.medium.action,
110
+ // }),
111
+ // }),
102
112
  }),
103
113
  buttonIcon: {},
104
114
  /**
@@ -119,45 +129,64 @@ const buttonStyles = {
119
129
  * Styles for the skeleton button component.
120
130
  */
121
131
  skeletonButton: ({ theme, ownerState }) => ({
122
- width: "100%",
123
- background: theme.vars.palette.skeleton.transition,
124
- // Estilos específicos para el tamaño small
125
- ...ownerState.size === "small" && {
126
- ...theme.generalSettings.isMobile ? {
127
- height: theme.vars.size.mobile.small.action,
128
- minHeight: theme.vars.size.mobile.small.action
129
- } : {
130
- height: theme.vars.size.desktop.small.action,
131
- minHeight: theme.vars.size.desktop.small.action
132
- },
133
- [theme.breakpoints.up("sm")]: {
134
- ...theme.generalSettings.isMobile ? {
135
- height: theme.vars.size.mobile.small.action,
136
- minHeight: theme.vars.size.mobile.small.action
137
- } : {
138
- height: theme.vars.size.desktop.small.action,
139
- minHeight: theme.vars.size.desktop.small.action
140
- }
141
- }
142
- },
143
- // Estilos específicos para el tamaño medium
144
- ...ownerState.size === "medium" && {
145
- ...theme.generalSettings.isMobile ? {
146
- height: theme.vars.size.mobile.medium.action,
147
- minHeight: theme.vars.size.mobile.medium.action
148
- } : {
149
- height: theme.vars.size.desktop.medium.action,
150
- minHeight: theme.vars.size.desktop.medium.action
151
- },
152
- [theme.breakpoints.up("md")]: {
153
- ...theme.generalSettings.isMobile ? {
154
- height: theme.vars.size.mobile.small.action,
155
- minHeight: theme.vars.size.mobile.small.action
156
- } : {
157
- height: theme.vars.size.desktop.small.action,
158
- minHeight: theme.vars.size.desktop.small.action
159
- }
160
- }
132
+ "&&&": {
133
+ width: "100%",
134
+ background: theme.vars.palette.skeleton.transition,
135
+ ...getSizeStyles(
136
+ theme,
137
+ ownerState.size || "medium",
138
+ "action",
139
+ (sizeValue) => ({
140
+ height: sizeValue,
141
+ minHeight: sizeValue
142
+ })
143
+ )
144
+ // // Estilos específicos para el tamaño small
145
+ // ...(ownerState.size === 'small' && {
146
+ // ...(theme.generalSettings.isMobile
147
+ // ? {
148
+ // height: theme.vars.size.mobile.small.action,
149
+ // minHeight: theme.vars.size.mobile.small.action,
150
+ // }
151
+ // : {
152
+ // height: theme.vars.size.desktop.small.action,
153
+ // minHeight: theme.vars.size.desktop.small.action,
154
+ // }),
155
+ // [theme.breakpoints.up('sm')]: {
156
+ // ...(theme.generalSettings.isMobile
157
+ // ? {
158
+ // height: theme.vars.size.mobile.small.action,
159
+ // minHeight: theme.vars.size.mobile.small.action,
160
+ // }
161
+ // : {
162
+ // height: theme.vars.size.desktop.small.action,
163
+ // minHeight: theme.vars.size.desktop.small.action,
164
+ // }),
165
+ // },
166
+ // }),
167
+ // // Estilos específicos para el tamaño medium
168
+ // ...(ownerState.size === 'medium' && {
169
+ // ...(theme.generalSettings.isMobile
170
+ // ? {
171
+ // height: theme.vars.size.mobile.medium.action,
172
+ // minHeight: theme.vars.size.mobile.medium.action,
173
+ // }
174
+ // : {
175
+ // height: theme.vars.size.desktop.medium.action,
176
+ // minHeight: theme.vars.size.desktop.medium.action,
177
+ // }),
178
+ // [theme.breakpoints.up('md')]: {
179
+ // ...(theme.generalSettings.isMobile
180
+ // ? {
181
+ // height: theme.vars.size.mobile.small.action,
182
+ // minHeight: theme.vars.size.mobile.small.action,
183
+ // }
184
+ // : {
185
+ // height: theme.vars.size.desktop.small.action,
186
+ // minHeight: theme.vars.size.desktop.small.action,
187
+ // }),
188
+ // },
189
+ // }),
161
190
  }
162
191
  })
163
192
  };
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { LinearProgress as LinearProgress$1 } from "@mui/material";
3
3
  const LinearProgress = (props) => {
4
4
  const { ...other } = props;
5
- return /* @__PURE__ */ jsx(LinearProgress$1, { ...other });
5
+ return /* @__PURE__ */ jsx(LinearProgress$1, { sx: { width: "100%" }, ...other });
6
6
  };
7
7
  export {
8
8
  LinearProgress as L
@@ -1,6 +1,6 @@
1
1
  export declare const TextFieldRootStyled: import('@emotion/styled').StyledComponent<Pick<{
2
2
  variant?: import('@mui/material').TextFieldVariants | undefined;
3
- } & Omit<import('@mui/material').OutlinedTextFieldProps | import('@mui/material').FilledTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant">, "value" | "size" | "children" | "ref" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "color" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "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" | "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" | "autoComplete" | "placeholder" | "required" | "maxRows" | "fullWidth" | "helperText" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
3
+ } & Omit<import('@mui/material').OutlinedTextFieldProps | import('@mui/material').FilledTextFieldProps | import('@mui/material').StandardTextFieldProps, "variant">, "value" | "size" | "children" | "ref" | "title" | "component" | "name" | "error" | "select" | "rows" | "id" | "type" | "disabled" | "hidden" | "color" | "content" | "style" | "variant" | "margin" | "translate" | "className" | "classes" | "sx" | "label" | "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" | "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" | "autoComplete" | "placeholder" | "required" | "maxRows" | "fullWidth" | "inputProps" | "inputRef" | "SelectProps" | "multiline" | "minRows" | "hiddenLabel" | "focused" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
4
4
  ownerState: Partial<import('../types').TextFieldOwnerState> & Record<string, unknown>;
5
5
  }, {}, {}>;
6
6
  export declare const SkeletonStyled: import('@emotion/styled').StyledComponent<Pick<import('../../Skeleton/types').SkeletonProps, keyof import('../../Skeleton/types').SkeletonProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & Record<string, unknown> & {
package/index.js CHANGED
@@ -133,7 +133,7 @@ import { R as R8 } from "./components/hook-form/RHFSelect/RHFSelect.js";
133
133
  import { R as R9 } from "./components/hook-form/RHFHelperError/index.js";
134
134
  import { R as R10 } from "./components/hook-form/RHFRadioGroup/RHFRadioGroup.js";
135
135
  import { R as R11 } from "./components/hook-form/RHFNumberInput/RHFNumberInput.js";
136
- import { R as R12 } from "./components/hook-form/RHFUpload/RHFUploadFile/index.js";
136
+ import { R as R12 } from "./components/hook-form/RHFUpload/RHFUploadSingleFile/RHFUploadSingleFile.js";
137
137
  import { R as R13 } from "./components/hook-form/RHFColorPicker/RFHColorPicker.js";
138
138
  import { R as R14 } from "./components/hook-form/RHFCheckbox/RHFCheckbox.js";
139
139
  import { R as R15 } from "./components/hook-form/RHFTextField/RHFTextField.js";
@@ -329,8 +329,8 @@ export {
329
329
  R8 as RHFSelect,
330
330
  R15 as RHFTextField,
331
331
  R16 as RHFTextFieldPassword,
332
- R12 as RHFUploadFile,
333
332
  R21 as RHFUploadImage,
333
+ R12 as RHFUploadSingleFile,
334
334
  R18 as RHF_PERIOD_KEY_COMPONENT,
335
335
  R22 as RHFormProvider,
336
336
  R as Resizable,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/components",
3
- "version": "9.2.28",
3
+ "version": "9.2.30",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0 --no-warn-ignored"