@m4l/components 9.2.32 → 9.2.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/export.d.ts +0 -3
- package/@types/types.d.ts +29 -21
- package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js +1 -0
- package/components/DynamicFilter/DynamicFilter.d.ts +3 -3
- package/components/DynamicFilter/store/DynamicFilterContext.js +3 -3
- package/components/ObjectLogs/ObjectLogs.d.ts +5 -0
- package/components/ObjectLogs/components/DetailFormatter/index.js +2 -3
- package/components/ObjectLogs/index.d.ts +1 -5
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.d.ts +18 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.js +66 -28
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/RHFUploadImage.styles.js +117 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/constants.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/constants.js +4 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageEnum.d.ts +13 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageEnum.js +17 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.d.ts +33 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/slots/RHFUploadImageSlots.js +65 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.d.ts +5 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/UploadImage.js +113 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/dictionary.d.ts +10 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/dictionary.js +14 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/tests/UploadImage.test.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/types.d.ts +24 -8
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/RHFUploadImage.test.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/types.d.ts +13 -11
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Divider/Divider.js +38 -0
- package/components/mui_extended/Divider/Divider.styles.js +51 -0
- package/components/mui_extended/Divider/constants.js +4 -0
- package/components/mui_extended/Divider/slots/DividerEnum.js +8 -0
- package/components/mui_extended/Divider/slots/DividerSlots.js +17 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +14 -17
- package/index.js +1 -1
- package/package.json +1 -1
- package/storybook/hook-form/RHFUploadImage/RHFUploadImage.stories.d.ts +8 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/constants.js +0 -4
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.d.ts +0 -22
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/index.js +0 -57
- package/components/hook-form/RHFUpload/RHFUploadImage/classes/types.d.ts +0 -18
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/styles.js +0 -9
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.d.ts +0 -5
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/index.js +0 -146
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/styles.js +0 -7
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.d.ts +0 -5
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/index.js +0 -23
- package/components/hook-form/RHFUpload/RHFUploadImage/subcomponents/UploadImage/subcomponents/Skeleton/types.d.ts +0 -3
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.d.ts +0 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/constants.js +0 -4
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.d.ts +0 -2
- package/components/hook-form/RHFUpload/RHFUploadImage/tests/utils.js +0 -7
- /package/components/ObjectLogs/{index.js → ObjectLogs.js} +0 -0
package/@types/export.d.ts
CHANGED
|
@@ -31,9 +31,6 @@ declare module '@mui/material/styles' {
|
|
|
31
31
|
M4LRHFDateTime?: {
|
|
32
32
|
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFDateTime'];
|
|
33
33
|
};
|
|
34
|
-
M4LRHFUploadImage?: {
|
|
35
|
-
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFUploadImage'];
|
|
36
|
-
};
|
|
37
34
|
M4LIcon?: {
|
|
38
35
|
styleOverrides?: ComponentsOverrides<Theme>['M4LIcon'];
|
|
39
36
|
};
|
package/@types/types.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ import { AvatarOwnerState, AvatarSlotsType } from '../components/mui_extended/Av
|
|
|
116
116
|
import { ToggleButtonOwnerState, ToggleButtonSlotsType } from '../components/mui_extended/ToggleButton/types';
|
|
117
117
|
import { BooleanFormatterOwnerState, PresentationType } from '../components/formatters/BooleanFormatter/types';
|
|
118
118
|
import { ToggleIconButtonOwnerState, ToggleIconButtonSlotsType } from '../components/mui_extended/ToggleIconButton/types';
|
|
119
|
-
import { TabsSlotsType,TabsOwnerState } from '../components/mui_extended/Tabs/types';
|
|
119
|
+
import { TabsSlotsType, TabsOwnerState } from '../components/mui_extended/Tabs/types';
|
|
120
120
|
import { PopoverOwnerState, PopoverSlotsType } from '../components/mui_extended/Popover/types';
|
|
121
121
|
import { NumberInputOwnerState, NumberInputSlotsType } from '../components/NumberInput/types';
|
|
122
122
|
import { AccountPopoverOwnerState, AccountPopoverSlotsType } from '../components/AccountPopover/types';
|
|
@@ -138,11 +138,12 @@ import { DividerOwnerState, DividerSlotsType } from '../components/mui_extended/
|
|
|
138
138
|
import { NoItemSelectedOwnerState, NoItemSelectedSlotsType } from '../components/NoItemSelected/types';
|
|
139
139
|
import { ActionFormIntroOwnerState, ActionFormIntroSlotsType } from '../components/CommonActions/components/ActionFormIntro/types';
|
|
140
140
|
import { AreasViewerOwnerState, AreasViewerType } from '../components/areas/components/AreasViewer/types';
|
|
141
|
-
import { TimePickerOwnerState,TimePickerSlotsType } from '../components/mui_extended/TimePicker/types';
|
|
141
|
+
import { TimePickerOwnerState, TimePickerSlotsType } from '../components/mui_extended/TimePicker/types';
|
|
142
142
|
import { DataGridOwnerState, DataGridSlotsType } from '../components/DataGrid/types';
|
|
143
143
|
import { DynamicFilterAndSortOwnerState, DynamicFilterAndSortSlotsType } from '../hooks/useDynamicFilterAndSort/types';
|
|
144
144
|
import { RHFUploadSingleFileOwnerState, RHFUploadSingleFileSlotsType } from '../components/hook-form/RHFUpload/RHFUploadSingleFile/types';
|
|
145
145
|
import { ChipStatusFormatterSlotsType } from '../components/formatters/ChipStatusFormatter/types';
|
|
146
|
+
import { RHFUploadImageOwnerState, RHFUploadImageSlotsType } from '../components/hook-form/RHFUpload/RHFUploadImage/types';
|
|
146
147
|
import { PrintingSystemOwnerState, PrintingSystemSlotsType } from '../components/PrintingSystem/types';
|
|
147
148
|
|
|
148
149
|
declare module '@mui/material/styles' {
|
|
@@ -219,6 +220,7 @@ declare module '@mui/material/styles' {
|
|
|
219
220
|
M4LDynamicFilterAndSort: DynamicFilterAndSortSlotsType;
|
|
220
221
|
M4LRHFUploadSingleFile: RHFUploadSingleFileSlotsType;
|
|
221
222
|
M4LChipStatusFormatter: ChipStatusFormatterSlotsType;
|
|
223
|
+
M4LRHFUploadImage: RHFUploadImageSlotsType;
|
|
222
224
|
M4LPrintingSystem: PrintingSystemSlotsType;
|
|
223
225
|
}
|
|
224
226
|
interface ComponentsPropsList {
|
|
@@ -280,20 +282,21 @@ declare module '@mui/material/styles' {
|
|
|
280
282
|
M4LMenuDivider: Partial<MenuDividerOwnerState>;
|
|
281
283
|
M4LNavLink: Partial<NavLinkOwnerState>;
|
|
282
284
|
M4LRHFSelect: Partial<RHFSelectOwnerState>;
|
|
283
|
-
M4LActionFormCancel
|
|
285
|
+
M4LActionFormCancel: Partial<ActionFormCancelOwnerState>;
|
|
284
286
|
M4LScrollBar: Partial<ScrollBarOwnerState>;
|
|
285
287
|
M4LAreasAdmin: Partial<AreasAdminOwnerState>;
|
|
286
288
|
M4LStack: Partial<StackOwnerState>;
|
|
287
289
|
M4LDateTimePicker: Partial<DateTimePickerOwnerState>;
|
|
288
290
|
M4LDivider: Partial<DividerOwnerState>;
|
|
289
291
|
M4LNoItemSelected: Partial<NoItemSelectedOwnerState>;
|
|
290
|
-
M4LActionFormIntro
|
|
292
|
+
M4LActionFormIntro: Partial<ActionFormIntroOwnerState>;
|
|
291
293
|
M4LAreasViewer: Partial<AreasViewerOwnerState>;
|
|
292
294
|
M4LTimePicker: Partial<TimePickerOwnerState>;
|
|
293
295
|
M4LDataGrid: Partial<DataGridOwnerState>;
|
|
294
296
|
M4LDynamicFilterAndSort: Partial<DynamicFilterAndSortOwnerState>;
|
|
295
297
|
M4LRHFUploadSingleFile: Partial<RHFUploadSingleFileOwnerState>;
|
|
296
298
|
M4LChipStatusFormatter: Partial<ChipStatusFormatterOwnerState>;
|
|
299
|
+
M4LRHFUploadImage: Partial<RHFUploadImageOwnerState>;
|
|
297
300
|
M4LPrintingSystem: Partial<PrintingSystemOwnerState>;
|
|
298
301
|
}
|
|
299
302
|
interface Components {
|
|
@@ -568,14 +571,14 @@ declare module '@mui/material/styles' {
|
|
|
568
571
|
variants?: ComponentsVariants['M4LLinearProgressIndeterminate'];
|
|
569
572
|
};
|
|
570
573
|
M4LMenuDivider?: {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
574
|
+
defaultProps?: ComponentsPropsList['M4LMenuDivider'];
|
|
575
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LMenuDivider'];
|
|
576
|
+
variants?: ComponentsVariants['M4LMenuDivider'];
|
|
577
|
+
};
|
|
575
578
|
M4LRHFSelect?: {
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
+
defaultProps?: ComponentsPropsList['M4LRHFSelect'];
|
|
580
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFSelect'];
|
|
581
|
+
variants?: ComponentsVariants['M4LRHFSelect'];
|
|
579
582
|
};
|
|
580
583
|
M4LActionFormCancel: {
|
|
581
584
|
defaultProps?: ComponentsPropsList['M4LActionFormCancel'];
|
|
@@ -593,9 +596,9 @@ declare module '@mui/material/styles' {
|
|
|
593
596
|
variants?: ComponentsVariants['M4LRHFSelect'];
|
|
594
597
|
};
|
|
595
598
|
M4LScrollBar?: {
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
+
defaultProps?: ComponentsPropsList['M4LScrollBar'];
|
|
600
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LScrollBar'];
|
|
601
|
+
variants?: ComponentsVariants['M4LScrollBar'];
|
|
599
602
|
}
|
|
600
603
|
M4LAreasAdmin?: {
|
|
601
604
|
defaultProps?: ComponentsPropsList['M4LAreasAdmin'];
|
|
@@ -613,14 +616,14 @@ declare module '@mui/material/styles' {
|
|
|
613
616
|
variants?: ComponentsVariants['M4LDateTimePicker'];
|
|
614
617
|
};
|
|
615
618
|
M4LNoItemSelected?: {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
+
defaultProps?: ComponentsPropsList['M4LNoItemSelected'];
|
|
620
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LNoItemSelected'];
|
|
621
|
+
variants?: ComponentsVariants['M4LNoItemSelected'];
|
|
619
622
|
}
|
|
620
623
|
M4LActionFormIntro?: {
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
+
defaultProps?: ComponentsPropsList['M4LActionFormIntro '];
|
|
625
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LActionFormIntro '];
|
|
626
|
+
variants?: ComponentsVariants['M4LActionFormIntro '];
|
|
624
627
|
};
|
|
625
628
|
M4LDivider?: {
|
|
626
629
|
defaultProps?: ComponentsPropsList['M4LDivider'];
|
|
@@ -662,10 +665,15 @@ declare module '@mui/material/styles' {
|
|
|
662
665
|
styleOverrides?: ComponentsOverrides<Theme>['M4LChipStatusFormatter'];
|
|
663
666
|
variants?: ComponentsVariants['M4LChipStatusFormatter'];
|
|
664
667
|
};
|
|
668
|
+
M4LRHFUploadImage?: {
|
|
669
|
+
defaultProps?: ComponentsPropsList['M4LRHFUploadImage'];
|
|
670
|
+
styleOverrides?: ComponentsOverrides<Theme>['M4LRHFUploadImage'];
|
|
671
|
+
variants?: ComponentsVariants['M4LRHFUploadImage'];
|
|
672
|
+
};
|
|
665
673
|
M4LPrintingSystem?: {
|
|
666
674
|
defaultProps?: ComponentsPropsList['M4LPrintingSystem'];
|
|
667
675
|
styleOverrides?: ComponentsOverrides<Theme>['M4LPrintingSystem'];
|
|
668
676
|
variants?: ComponentsVariants['M4LPrintingSystem'];
|
|
669
677
|
};
|
|
670
|
-
|
|
678
|
+
}
|
|
671
679
|
}
|
package/components/DataGrid/subcomponents/Actions/subcomponents/hooks/useModalSettings/index.js
CHANGED
|
@@ -39,6 +39,7 @@ const useModalSettings = () => {
|
|
|
39
39
|
{
|
|
40
40
|
title: getLabel("data_grid.settings_title"),
|
|
41
41
|
iconUrl: `${host_static_assets}/${environment_assets}/${pathIcons.configuration}`,
|
|
42
|
+
onClose: onCloseSettings,
|
|
42
43
|
children: /* @__PURE__ */ jsxs(ContentModalSettingStyled, { children: [
|
|
43
44
|
/* @__PURE__ */ jsx(DataGridRootStyled, { children: /* @__PURE__ */ jsx(TableContainerStyled, { children: /* @__PURE__ */ jsx(TableWrapperDataGridStyled, { children: /* @__PURE__ */ jsx(
|
|
44
45
|
ColumnsConfig,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DynamicFilterProps, DynamicFilterRef } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* DynamicFilter: Componente que renderiza filtros dinámicos para una lista de elementos.
|
|
4
|
+
* Permite filtrar datos junto con inputs, botón clear y refresh.
|
|
4
5
|
*
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
*
|
|
6
|
+
* ### Dependecias:
|
|
7
|
+
* - **`useFlagsPresent:`** Hook que permite verificar si una lista de flags se encuentran presentes.
|
|
8
8
|
*/
|
|
9
9
|
export declare const DynamicFilter: import('react').ForwardRefExoticComponent<DynamicFilterProps & import('react').RefAttributes<DynamicFilterRef>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
3
|
-
import { useIsMobile, useFirstRender } from "@m4l/graphics";
|
|
4
2
|
import { createContext, forwardRef, useRef, useImperativeHandle, useEffect } from "react";
|
|
5
3
|
import { useStore } from "zustand";
|
|
6
4
|
import { shallow } from "zustand/shallow";
|
|
5
|
+
import { useModuleDictionary, useEnvironment, useModuleSkeleton } from "@m4l/core";
|
|
6
|
+
import { useIsMobile, useFirstRender } from "@m4l/graphics";
|
|
7
7
|
import { A as ALL_FIELD } from "../constants.js";
|
|
8
|
-
import { f as formatToInitialFilters } from "../helpers/formatToInitialFilters.js";
|
|
9
8
|
import { f as formatToRawFilter } from "../helpers/formatToRowFilter.js";
|
|
9
|
+
import { f as formatToInitialFilters } from "../helpers/formatToInitialFilters.js";
|
|
10
10
|
import { c as createDynamicFilterStore } from "./DynamicFilterStore.js";
|
|
11
11
|
import { u as useComponentSize } from "../../../hooks/useComponentSize/useComponentSize.js";
|
|
12
12
|
const DynamicFilterContext = createContext(null);
|
|
@@ -9,14 +9,13 @@ import { S as Stack } from "../../../mui_extended/Stack/Stack.js";
|
|
|
9
9
|
import { W as WindowBase } from "../../../WindowBase/WindowBase.js";
|
|
10
10
|
function DetailFormatter(props) {
|
|
11
11
|
const { log_id } = props;
|
|
12
|
-
const { openModal } = useModal();
|
|
12
|
+
const { openModal, closeModal } = useModal();
|
|
13
13
|
const { getLabel } = useModuleDictionary();
|
|
14
14
|
const { host_static_assets, environment_assets } = useEnvironment();
|
|
15
15
|
const isDesktop = !useIsMobile();
|
|
16
16
|
const onClickDetail = () => {
|
|
17
17
|
openModal({
|
|
18
|
-
|
|
19
|
-
window: /* @__PURE__ */ jsx(WindowBase, { title: getLabel("data_grid.settings_title"), children: /* @__PURE__ */ jsx(Stack, { direction: "column", flexGrow: 1, children: /* @__PURE__ */ jsx(DetailDialog, { log_id }) }) }),
|
|
18
|
+
window: /* @__PURE__ */ jsx(WindowBase, { onClose: closeModal, title: getLabel("data_grid.settings_title"), children: /* @__PURE__ */ jsx(Stack, { direction: "column", flexGrow: 1, children: /* @__PURE__ */ jsx(DetailDialog, { log_id }) }) }),
|
|
20
19
|
fullScreen: !isDesktop ? true : false
|
|
21
20
|
});
|
|
22
21
|
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
import { RHFUploadImageProps } from './types';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* RHFUploadImage es un componente que permite subir una imagen con react-hook-form
|
|
4
|
+
* ### Dependencias:
|
|
5
|
+
* - **`useFormContext:`** Hook que provee acceso a los métodos y propiedades de un formulario react-hook-form.
|
|
6
|
+
* - **`useFormatter:`** Hook que permite acceder a los diferentes formatters de la aplicación.
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* const ExampleComponent = () => {
|
|
10
|
+
* const { control } = useForm();
|
|
11
|
+
* return (
|
|
12
|
+
* <RHFUploadImage
|
|
13
|
+
* name="image"
|
|
14
|
+
* control={control}
|
|
15
|
+
* size="medium"
|
|
16
|
+
* variant="outlined"
|
|
17
|
+
* label="Imagen"
|
|
18
|
+
* helperMessage="Seleccione una imagen"
|
|
19
|
+
* />
|
|
4
20
|
*/
|
|
5
|
-
export declare function RHFUploadImage(
|
|
21
|
+
export declare function RHFUploadImage(props: RHFUploadImageProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,40 +1,78 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useCallback } from "react";
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
3
2
|
import { useFormContext, Controller } from "react-hook-form";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { R as RHFUploadImageRootStyled } from "./slots/RHFUploadImageSlots.js";
|
|
4
|
+
import { U as UploadImage } from "./subcomponents/UploadImage/UploadImage.js";
|
|
5
|
+
import { u as useComponentSize } from "../../../../hooks/useComponentSize/useComponentSize.js";
|
|
6
|
+
import { L as Label } from "../../../Label/Label.js";
|
|
6
7
|
import { H as HelperError } from "../../../HelperError/HelperError.js";
|
|
7
|
-
function RHFUploadImage(
|
|
8
|
-
const {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
);
|
|
24
|
-
return /* @__PURE__ */ jsx(
|
|
8
|
+
function RHFUploadImage(props) {
|
|
9
|
+
const {
|
|
10
|
+
name,
|
|
11
|
+
size,
|
|
12
|
+
accept,
|
|
13
|
+
label,
|
|
14
|
+
mandatory,
|
|
15
|
+
mandatoryMessage,
|
|
16
|
+
maxSize,
|
|
17
|
+
helperMessage,
|
|
18
|
+
...other
|
|
19
|
+
} = props;
|
|
20
|
+
const { currentSize } = useComponentSize(size);
|
|
21
|
+
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
22
|
+
const { control } = useFormContext();
|
|
23
|
+
return /* @__PURE__ */ jsx(RHFUploadImageRootStyled, { ownerState: {}, children: /* @__PURE__ */ jsx(
|
|
25
24
|
Controller,
|
|
26
25
|
{
|
|
27
26
|
name,
|
|
28
27
|
control,
|
|
29
|
-
render: ({ field, fieldState: { error } }) => {
|
|
30
|
-
const checkError = !!error && !
|
|
31
|
-
return /* @__PURE__ */ jsxs(
|
|
32
|
-
/* @__PURE__ */ jsx(
|
|
33
|
-
|
|
28
|
+
render: ({ field: { value, onChange }, fieldState: { error } }) => {
|
|
29
|
+
const checkError = !!error && !value;
|
|
30
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
+
label && /* @__PURE__ */ jsx(
|
|
32
|
+
Label,
|
|
33
|
+
{
|
|
34
|
+
error: checkError,
|
|
35
|
+
label,
|
|
36
|
+
mandatory,
|
|
37
|
+
mandatoryMessage,
|
|
38
|
+
helperMessage,
|
|
39
|
+
size: adjustedSize
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ jsx(
|
|
43
|
+
UploadImage,
|
|
44
|
+
{
|
|
45
|
+
onDrop: (acceptedFiles) => {
|
|
46
|
+
const file = acceptedFiles[0];
|
|
47
|
+
if (file) {
|
|
48
|
+
onChange(
|
|
49
|
+
Object.assign(file, {
|
|
50
|
+
preview: URL.createObjectURL(file)
|
|
51
|
+
})
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
onRemove: () => {
|
|
56
|
+
onChange(null);
|
|
57
|
+
},
|
|
58
|
+
error: checkError,
|
|
59
|
+
...other,
|
|
60
|
+
file: value,
|
|
61
|
+
size: adjustedSize,
|
|
62
|
+
maxSize
|
|
63
|
+
}
|
|
64
|
+
),
|
|
65
|
+
checkError && /* @__PURE__ */ jsx(
|
|
66
|
+
HelperError,
|
|
67
|
+
{
|
|
68
|
+
message: error?.message,
|
|
69
|
+
size: adjustedSize
|
|
70
|
+
}
|
|
71
|
+
)
|
|
34
72
|
] });
|
|
35
73
|
}
|
|
36
74
|
}
|
|
37
|
-
);
|
|
75
|
+
) });
|
|
38
76
|
}
|
|
39
77
|
export {
|
|
40
78
|
RHFUploadImage as R
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
const rhfUploadImageStyles = {
|
|
2
|
+
/**
|
|
3
|
+
* rhfUploadImageRoot: estilos del contenedor principal
|
|
4
|
+
*/
|
|
5
|
+
rhfUploadImageRoot: ({ theme }) => ({
|
|
6
|
+
width: "100%",
|
|
7
|
+
display: "flex",
|
|
8
|
+
flexDirection: "column",
|
|
9
|
+
maxWidth: "100%",
|
|
10
|
+
gap: theme.vars.size.baseSpacings["sp0-5"]
|
|
11
|
+
}),
|
|
12
|
+
/**
|
|
13
|
+
* uploadImageRoot: estilos del contenedor principal
|
|
14
|
+
*/
|
|
15
|
+
uploadImageRoot: ({ theme, ownerState }) => ({
|
|
16
|
+
padding: `${theme.vars.size.baseSpacings.sp2}`,
|
|
17
|
+
border: theme.vars.size.borderStroke.container,
|
|
18
|
+
borderRadius: theme.vars.size.borderRadius.r1,
|
|
19
|
+
borderColor: theme.vars.palette.border.default,
|
|
20
|
+
width: "100%",
|
|
21
|
+
...ownerState.isDragAccept && {
|
|
22
|
+
borderColor: theme.vars.palette.primary.main
|
|
23
|
+
},
|
|
24
|
+
...ownerState.isDragReject && {
|
|
25
|
+
borderColor: theme.vars.palette.error.main
|
|
26
|
+
},
|
|
27
|
+
...ownerState.error && {
|
|
28
|
+
borderColor: theme.vars.palette.error.main
|
|
29
|
+
}
|
|
30
|
+
}),
|
|
31
|
+
/**
|
|
32
|
+
* contentModuleLayout: estilos del contenedor de contenido
|
|
33
|
+
*/
|
|
34
|
+
contentModuleLayout: ({ theme }) => ({
|
|
35
|
+
padding: theme.vars.size.baseSpacings["sp2-5"],
|
|
36
|
+
background: theme.vars.palette.background.neutral,
|
|
37
|
+
borderRadius: theme.vars.size.borderRadius["r0-5"],
|
|
38
|
+
display: "flex",
|
|
39
|
+
gap: theme.vars.size.baseSpacings.sp4,
|
|
40
|
+
flexDirection: "column",
|
|
41
|
+
"&:hover": {
|
|
42
|
+
button: {
|
|
43
|
+
display: "flex !important"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}),
|
|
47
|
+
/**
|
|
48
|
+
* contentImage: estilos del contenedor de la imagen
|
|
49
|
+
*/
|
|
50
|
+
contentImage: ({ theme }) => ({
|
|
51
|
+
display: "flex",
|
|
52
|
+
flexDirection: "column",
|
|
53
|
+
alignItems: "center",
|
|
54
|
+
justifyContent: "center",
|
|
55
|
+
gap: theme.vars.size.baseSpacings.sp2,
|
|
56
|
+
width: "100%",
|
|
57
|
+
maxWidth: "200px"
|
|
58
|
+
}),
|
|
59
|
+
/**
|
|
60
|
+
* contentImageText: estilos del contenedor de texto de la imagen
|
|
61
|
+
*/
|
|
62
|
+
contentImageText: ({ theme }) => ({
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexDirection: "column",
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
gap: theme.vars.size.baseSpacings.sp1
|
|
67
|
+
}),
|
|
68
|
+
/**
|
|
69
|
+
* contentMessage: estilos del contenedor de mensaje
|
|
70
|
+
*/
|
|
71
|
+
contentMessage: ({ theme }) => ({
|
|
72
|
+
display: "flex",
|
|
73
|
+
alignItems: "center",
|
|
74
|
+
width: "100%",
|
|
75
|
+
gap: theme.vars.size.baseSpacings.sp2
|
|
76
|
+
}),
|
|
77
|
+
typography: ({ theme }) => ({
|
|
78
|
+
color: theme.vars.palette.text.secondary
|
|
79
|
+
}),
|
|
80
|
+
/**
|
|
81
|
+
* buttonStyled: estilos del botón
|
|
82
|
+
*/
|
|
83
|
+
button: () => ({
|
|
84
|
+
width: "fit-content",
|
|
85
|
+
alignSelf: "center",
|
|
86
|
+
"& span": {
|
|
87
|
+
cursor: "pointer"
|
|
88
|
+
}
|
|
89
|
+
}),
|
|
90
|
+
/**
|
|
91
|
+
* iconButtonRemove: estilos del botón de remover
|
|
92
|
+
*/
|
|
93
|
+
iconButtonRemove: () => ({
|
|
94
|
+
display: "none !important",
|
|
95
|
+
position: "absolute",
|
|
96
|
+
top: "7px",
|
|
97
|
+
right: "7px",
|
|
98
|
+
zIndex: 1
|
|
99
|
+
}),
|
|
100
|
+
divider: ({ theme }) => ({
|
|
101
|
+
height: theme.vars.size.borderStroke.container
|
|
102
|
+
}),
|
|
103
|
+
/**
|
|
104
|
+
* containPreview: estilos del contenedor de la vista previa
|
|
105
|
+
*/
|
|
106
|
+
containPreview: () => ({
|
|
107
|
+
position: "relative",
|
|
108
|
+
display: "flex",
|
|
109
|
+
"& img": {
|
|
110
|
+
width: "100%",
|
|
111
|
+
height: "auto"
|
|
112
|
+
}
|
|
113
|
+
})
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
rhfUploadImageStyles as r
|
|
117
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RHF_UPLOAD_IMAGE_KEY_COMPONENT = "M4LRHFUploadImage";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum UploadImageSlots {
|
|
2
|
+
rhfUploadImageRoot = "rhfUploadImageRoot",
|
|
3
|
+
uploadImageRoot = "uploadImageRoot",
|
|
4
|
+
contentModuleLayout = "contentModuleLayout",
|
|
5
|
+
contentImage = "contentImage",
|
|
6
|
+
contentImageText = "contentImageText",
|
|
7
|
+
contentMessage = "contentMessage",
|
|
8
|
+
typography = "typography",
|
|
9
|
+
button = "button",
|
|
10
|
+
iconButtonRemove = "iconButtonRemove",
|
|
11
|
+
containPreview = "containPreview",
|
|
12
|
+
divider = "divider"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var UploadImageSlots = /* @__PURE__ */ ((UploadImageSlots2) => {
|
|
2
|
+
UploadImageSlots2["rhfUploadImageRoot"] = "rhfUploadImageRoot";
|
|
3
|
+
UploadImageSlots2["uploadImageRoot"] = "uploadImageRoot";
|
|
4
|
+
UploadImageSlots2["contentModuleLayout"] = "contentModuleLayout";
|
|
5
|
+
UploadImageSlots2["contentImage"] = "contentImage";
|
|
6
|
+
UploadImageSlots2["contentImageText"] = "contentImageText";
|
|
7
|
+
UploadImageSlots2["contentMessage"] = "contentMessage";
|
|
8
|
+
UploadImageSlots2["typography"] = "typography";
|
|
9
|
+
UploadImageSlots2["button"] = "button";
|
|
10
|
+
UploadImageSlots2["iconButtonRemove"] = "iconButtonRemove";
|
|
11
|
+
UploadImageSlots2["containPreview"] = "containPreview";
|
|
12
|
+
UploadImageSlots2["divider"] = "divider";
|
|
13
|
+
return UploadImageSlots2;
|
|
14
|
+
})(UploadImageSlots || {});
|
|
15
|
+
export {
|
|
16
|
+
UploadImageSlots as U
|
|
17
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const RHFUploadImageRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
2
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
3
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
4
|
+
export declare const UploadImageRootStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
5
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
6
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
7
|
+
export declare const ContentModuleLayoutStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
8
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
9
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
10
|
+
export declare const ContentImageStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
11
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
12
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
13
|
+
export declare const ContentImageTextStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
14
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
15
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
16
|
+
export declare const ContentMessageStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
17
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
18
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
19
|
+
export declare const TypographyStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../mui_extended/Typography/types').TypographyProps, keyof import('../../../../mui_extended/Typography/types').TypographyProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
20
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
export declare const ButtonStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/Button').ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "variant" | "translate" | "className" | "classes" | "sx" | "form" | "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" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "href" | "skeletonWidth" | "startIcon" | "endIcon" | keyof import('react').RefAttributes<HTMLButtonElement> | "disableElevation" | "fullWidth"> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
23
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
24
|
+
}, {}, {}>;
|
|
25
|
+
export declare const IconButtonRemoveStyled: import('@emotion/styled').StyledComponent<Pick<Omit<import('../../../../mui_extended/IconButton/types').IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>, "value" | "size" | "children" | "title" | "component" | "name" | "id" | "type" | "selected" | "disabled" | "action" | "hidden" | "color" | "content" | "style" | "icon" | "tooltip" | "variant" | "translate" | "className" | "classes" | "src" | "sx" | "form" | "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" | "instaceDataTestId" | "rotationAngle" | "placement" | "tooltipContent" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "edge" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "badgeContent" | "dictionaryTooltipId" | keyof import('react').RefAttributes<HTMLButtonElement>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
26
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
27
|
+
}, {}, {}>;
|
|
28
|
+
export declare const ContainPreviewStyled: import('@emotion/styled').StyledComponent<import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
29
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
30
|
+
}, Pick<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('react').ClassAttributes<HTMLDivElement> | keyof import('react').HTMLAttributes<HTMLDivElement>>, {}>;
|
|
31
|
+
export declare const DividerStyled: import('@emotion/styled').StyledComponent<Pick<import('../../../../mui_extended/Divider/types').DividerProps, keyof import('../../../../mui_extended/Divider/types').DividerProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material/styles').Theme> & Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown> & {
|
|
32
|
+
ownerState: Partial<import('../types').RHFUploadImageOwnerState> & Record<string, unknown>;
|
|
33
|
+
}, {}, {}>;
|