@m4l/components 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CommonActions/components/ActionCancel/{index.465be070.js → index.6736b782.js} +1 -1
- package/components/CommonActions/components/ActionFormCancel/{index.0deaba48.js → index.281ee166.js} +2 -2
- package/components/CommonActions/components/ActionIntro/{index.235ecbe2.js → index.4665a611.js} +1 -1
- package/components/CommonActions/components/Actions/{index.798c6aee.js → index.cd7b2671.js} +7 -7
- package/components/DataGrid/{index.cb62609c.js → index.2caf6231.js} +3 -3
- package/components/DynamicFilter/{index.549adc46.js → index.f2377369.js} +13 -13
- package/components/LanguagePopover/styles.d.ts +2 -0
- package/components/ModalDialog/{index.0340fb86.js → index.bee344a5.js} +2 -2
- package/components/ObjectLogs/{index.b1dcc4db.js → index.6b6f95e6.js} +3 -3
- package/components/Page/index.4237c241.js +25 -0
- package/components/Period/index.a112ce37.js +175 -0
- package/components/Period/styles.d.ts +2 -2
- package/components/Period/types.d.ts +4 -1
- package/components/hook-form/RHFCheckbox/index.6dcec9e2.js +58 -0
- package/components/hook-form/RHFDateTime/index.9231a7c7.js +81 -0
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/index.d.ts +3 -0
- package/components/hook-form/RHFDateTime/{styles.d.ts → subcomponents/Skeleton/styles.d.ts} +0 -0
- package/components/hook-form/RHFDateTime/subcomponents/Skeleton/types.d.ts +2 -0
- package/components/hook-form/RHFPeriod/index.979d0898.js +51 -0
- package/components/hook-form/RHFPeriod/types.d.ts +3 -3
- package/components/hook-form/RHFTextField/index.ba2a8f67.js +129 -0
- package/components/hook-form/RHFTextField/index.d.ts +1 -1
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/styles.d.ts +1 -1
- package/components/hook-form/RHFTextField/subcomponents/Skeleton/types.d.ts +2 -4
- package/components/hook-form/RHFTextField/types.d.ts +1 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/styles.d.ts +1 -1
- package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/subcomponents/Skeleton/index.d.ts +2 -0
- package/components/hook-form/RHFUpload/RHFUploadImage/components/UploadImage/subcomponents/Skeleton/styles.d.ts +2 -0
- package/components/hook-form/RHFUpload/index.6347159a.js +258 -0
- package/components/mui_extended/Button/{index.ae47764f.js → index.52d18aea.js} +1 -1
- package/components/mui_extended/Pager/{index.298730a1.js → index.951b6975.js} +1 -1
- package/components/mui_extended/Popover/index.4da8587a.js +252 -0
- package/contexts/ModalContext/{index.73ab6934.js → index.5388dfd5.js} +3 -3
- package/hooks/useModal/{index.f2492b34.js → index.3b1ff084.js} +1 -1
- package/index.js +20 -20
- package/package.json +1 -1
- package/components/Page/index.fc660ee5.js +0 -27
- package/components/Period/index.05c1c5e0.js +0 -159
- package/components/hook-form/RHFCheckbox/index.6a40e25f.js +0 -55
- package/components/hook-form/RHFDateTime/index.5ed774e3.js +0 -66
- package/components/hook-form/RHFPeriod/index.6c6733eb.js +0 -45
- package/components/hook-form/RHFTextField/index.bab2a2cf.js +0 -113
- package/components/hook-form/RHFUpload/index.56e2e277.js +0 -239
- package/components/mui_extended/Popover/index.b6e4392a.js +0 -218
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { useModuleSkeleton as y, useEnvironment as C } from "@m4l/core";
|
|
2
|
+
import { styled as H, Skeleton as h, TextField as R, InputAdornment as S } from "@mui/material";
|
|
3
|
+
import { forwardRef as I, useState as T } from "react";
|
|
4
|
+
import { I as b } from "../../mui_extended/IconButton/index.4b5ce8b5.js";
|
|
5
|
+
import { useFormContext as W, Controller as $ } from "react-hook-form";
|
|
6
|
+
import { jsx as e, jsxs as P } from "react/jsx-runtime";
|
|
7
|
+
const u = H("div")(({
|
|
8
|
+
theme: t
|
|
9
|
+
}) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
width: "100%",
|
|
12
|
+
height: "42.25px",
|
|
13
|
+
alignItems: "center",
|
|
14
|
+
justifyContent: "space-between",
|
|
15
|
+
border: `1px solid ${t.palette.divider}`,
|
|
16
|
+
padding: "12px 14px",
|
|
17
|
+
borderRadius: t.spacing(1)
|
|
18
|
+
})), _ = (t) => {
|
|
19
|
+
const {
|
|
20
|
+
skeletonWidth: n,
|
|
21
|
+
skeletonHeight: o,
|
|
22
|
+
skeletonVariant: s
|
|
23
|
+
} = t;
|
|
24
|
+
return s === "text" ? /* @__PURE__ */ e(u, {
|
|
25
|
+
children: /* @__PURE__ */ e(h, {
|
|
26
|
+
variant: "text",
|
|
27
|
+
width: n,
|
|
28
|
+
height: o
|
|
29
|
+
})
|
|
30
|
+
}) : /* @__PURE__ */ P(u, {
|
|
31
|
+
children: [/* @__PURE__ */ e(h, {
|
|
32
|
+
variant: "text",
|
|
33
|
+
width: n,
|
|
34
|
+
height: o
|
|
35
|
+
}), /* @__PURE__ */ e(h, {
|
|
36
|
+
variant: "circular",
|
|
37
|
+
width: "20px",
|
|
38
|
+
height: "20px"
|
|
39
|
+
})]
|
|
40
|
+
});
|
|
41
|
+
}, f = I((t, n) => {
|
|
42
|
+
const {
|
|
43
|
+
name: o,
|
|
44
|
+
autoComplete: s = "off",
|
|
45
|
+
skeletonWidth: d = "100%",
|
|
46
|
+
skeletonHeight: r = "18px",
|
|
47
|
+
type: i,
|
|
48
|
+
skeletonVariant: a = "text",
|
|
49
|
+
...l
|
|
50
|
+
} = t, x = y(), {
|
|
51
|
+
control: g
|
|
52
|
+
} = W();
|
|
53
|
+
return x ? /* @__PURE__ */ e(_, {
|
|
54
|
+
skeletonWidth: d,
|
|
55
|
+
skeletonHeight: r,
|
|
56
|
+
skeletonVariant: a
|
|
57
|
+
}) : /* @__PURE__ */ e($, {
|
|
58
|
+
name: o,
|
|
59
|
+
control: g,
|
|
60
|
+
render: ({
|
|
61
|
+
field: {
|
|
62
|
+
onChange: m,
|
|
63
|
+
onBlur: k,
|
|
64
|
+
value: w,
|
|
65
|
+
name: F,
|
|
66
|
+
ref: v
|
|
67
|
+
},
|
|
68
|
+
fieldState: {
|
|
69
|
+
error: c
|
|
70
|
+
}
|
|
71
|
+
}) => /* @__PURE__ */ e(
|
|
72
|
+
R,
|
|
73
|
+
{
|
|
74
|
+
inputRef: n,
|
|
75
|
+
autoComplete: s,
|
|
76
|
+
onChange: (p) => {
|
|
77
|
+
if (i === "number" && p.target.value) {
|
|
78
|
+
m(Number(p.target.value));
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
m(p);
|
|
82
|
+
},
|
|
83
|
+
onBlur: k,
|
|
84
|
+
value: w || "",
|
|
85
|
+
name: F,
|
|
86
|
+
ref: v,
|
|
87
|
+
fullWidth: !0,
|
|
88
|
+
error: !!c,
|
|
89
|
+
helperText: c?.message,
|
|
90
|
+
type: i,
|
|
91
|
+
...l
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
f.displayName = "RHFTextField";
|
|
97
|
+
const q = (t) => {
|
|
98
|
+
const {
|
|
99
|
+
name: n,
|
|
100
|
+
label: o,
|
|
101
|
+
skeletonWidth: s,
|
|
102
|
+
skeletonHeight: d
|
|
103
|
+
} = t, [r, i] = T(!1), {
|
|
104
|
+
host_static_assets: a,
|
|
105
|
+
environment_assets: l
|
|
106
|
+
} = C();
|
|
107
|
+
return /* @__PURE__ */ e(f, {
|
|
108
|
+
name: n,
|
|
109
|
+
label: o,
|
|
110
|
+
type: r ? "text" : "password",
|
|
111
|
+
skeletonVariant: "password",
|
|
112
|
+
autoComplete: "on",
|
|
113
|
+
skeletonWidth: s,
|
|
114
|
+
skeletonHeight: d,
|
|
115
|
+
InputProps: {
|
|
116
|
+
endAdornment: /* @__PURE__ */ e(S, {
|
|
117
|
+
position: "end",
|
|
118
|
+
children: /* @__PURE__ */ e(b, {
|
|
119
|
+
onClick: () => i(!r),
|
|
120
|
+
src: r ? `${a}/${l}/frontend/domain/host/login/assets/icons/eye.svg` : `${a}/${l}/frontend/domain/host/login/assets/icons/eye_off.svg`
|
|
121
|
+
})
|
|
122
|
+
})
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
export {
|
|
127
|
+
f as R,
|
|
128
|
+
q as a
|
|
129
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RHFTextFieldProps } from './types';
|
|
3
|
-
export declare const RHFTextField: import("react").ForwardRefExoticComponent<(Pick<RHFTextFieldProps & import("@mui/material").StandardTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonWidth" | "skeletonHeight">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export declare const RHFTextField: import("react").ForwardRefExoticComponent<(Pick<RHFTextFieldProps & import("@mui/material").StandardTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight"> | Pick<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "value" | "error" | "select" | "dir" | "label" | "slot" | "style" | "title" | "onChange" | "disabled" | "children" | "aria-label" | "aria-labelledby" | "tabIndex" | "key" | "rows" | "onFocus" | "className" | "onMouseEnter" | "id" | "aria-rowindex" | "onScroll" | "onCopy" | "onPaste" | "aria-describedby" | "onResize" | "type" | "hidden" | "name" | "placeholder" | "maxRows" | "minRows" | "aria-hidden" | "onDragStart" | "onDrag" | "onMouseDown" | "onMouseUp" | "onTouchStart" | "onTouchEnd" | "classes" | "color" | "margin" | "translate" | "sx" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "nonce" | "spellCheck" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-invalid" | "aria-keyshortcuts" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "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" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDownCapture" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoComplete" | "autoFocus" | "required" | "size" | "focused" | "variant" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "SelectProps" | "skeletonVariant" | "skeletonWidth" | "skeletonHeight">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const WrapperSkeletonRHFTextField: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const WrapperUploadImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
3
|
export declare const DropZoneStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
4
|
export declare const PlaceholderStyle: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
export declare const ContainerUploadBody: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const MaskSkeletonUploadImage: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
import { styled as w, Skeleton as p, FormHelperText as I } from "@mui/material";
|
|
2
|
+
import { useCallback as D } from "react";
|
|
3
|
+
import { useFormContext as y, Controller as N } from "react-hook-form";
|
|
4
|
+
import S from "lodash/isString";
|
|
5
|
+
import { useDropzone as m } from "react-dropzone";
|
|
6
|
+
import { styled as e, alpha as x } from "@mui/material/styles";
|
|
7
|
+
import { I as l } from "../../Image/index.c9da2d5a.js";
|
|
8
|
+
import { useEnvironment as z, useModuleDictionary as h, useModuleSkeleton as A } from "@m4l/core";
|
|
9
|
+
import { jsx as i, jsxs as n, Fragment as b } from "react/jsx-runtime";
|
|
10
|
+
const j = e("div")(({
|
|
11
|
+
theme: t
|
|
12
|
+
}) => ({
|
|
13
|
+
width: "inherit",
|
|
14
|
+
height: "100%",
|
|
15
|
+
minWidth: t.spacing(20),
|
|
16
|
+
margin: "auto",
|
|
17
|
+
borderRadius: t.spacing(1),
|
|
18
|
+
padding: t.spacing(1),
|
|
19
|
+
border: `1px dashed ${t.palette.divider}`
|
|
20
|
+
})), T = e("div")(({
|
|
21
|
+
theme: t
|
|
22
|
+
}) => ({
|
|
23
|
+
zIndex: 0,
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
outline: "none",
|
|
27
|
+
display: "flex",
|
|
28
|
+
overflow: "hidden",
|
|
29
|
+
borderRadius: t.spacing(1),
|
|
30
|
+
position: "relative",
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "center",
|
|
33
|
+
"& > *": {
|
|
34
|
+
width: "100%",
|
|
35
|
+
height: "100%"
|
|
36
|
+
},
|
|
37
|
+
"&:hover": {
|
|
38
|
+
cursor: "pointer",
|
|
39
|
+
"& .placeholder": {
|
|
40
|
+
zIndex: 9
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})), E = e("div")(({
|
|
44
|
+
theme: t
|
|
45
|
+
}) => ({
|
|
46
|
+
"&:hover": {
|
|
47
|
+
opacity: 1
|
|
48
|
+
},
|
|
49
|
+
display: "flex",
|
|
50
|
+
justifyContent: "center",
|
|
51
|
+
position: "absolute",
|
|
52
|
+
zIndex: "2",
|
|
53
|
+
inset: "0",
|
|
54
|
+
transition: t.transitions.create("opacity", {
|
|
55
|
+
easing: t.transitions.easing.easeInOut,
|
|
56
|
+
duration: t.transitions.duration.shorter
|
|
57
|
+
}),
|
|
58
|
+
overflow: "auto"
|
|
59
|
+
})), v = e("div")(({
|
|
60
|
+
theme: t
|
|
61
|
+
}) => ({
|
|
62
|
+
padding: t.spacing(3, 5),
|
|
63
|
+
display: "flex",
|
|
64
|
+
flexWrap: "wrap",
|
|
65
|
+
justifyContent: "center",
|
|
66
|
+
width: "100%",
|
|
67
|
+
height: "100%",
|
|
68
|
+
gap: t.spacing(3)
|
|
69
|
+
})), U = e("div")(({
|
|
70
|
+
theme: t
|
|
71
|
+
}) => ({
|
|
72
|
+
display: "flex",
|
|
73
|
+
justifyContent: "center",
|
|
74
|
+
flexDirection: "column",
|
|
75
|
+
gap: t.spacing(3)
|
|
76
|
+
})), Y = e("span")(({
|
|
77
|
+
theme: t
|
|
78
|
+
}) => ({
|
|
79
|
+
...t.typography.subtitle2,
|
|
80
|
+
width: "fit-content"
|
|
81
|
+
})), H = e("span")(({
|
|
82
|
+
theme: t
|
|
83
|
+
}) => ({
|
|
84
|
+
...t.typography.body2,
|
|
85
|
+
minWidth: t.spacing(20)
|
|
86
|
+
})), k = e("span")(({
|
|
87
|
+
theme: t
|
|
88
|
+
}) => ({
|
|
89
|
+
...t.typography.caption,
|
|
90
|
+
width: "fit-content"
|
|
91
|
+
})), G = e("div")(({
|
|
92
|
+
theme: t
|
|
93
|
+
}) => ({
|
|
94
|
+
display: "flex",
|
|
95
|
+
alignItems: "center",
|
|
96
|
+
maxWidth: t.spacing(20)
|
|
97
|
+
}));
|
|
98
|
+
e("div")(() => ({
|
|
99
|
+
width: "100%",
|
|
100
|
+
height: "100%",
|
|
101
|
+
position: "absolute",
|
|
102
|
+
inset: "0",
|
|
103
|
+
display: "flex",
|
|
104
|
+
justifyContent: "center",
|
|
105
|
+
alignItems: "center"
|
|
106
|
+
}));
|
|
107
|
+
const Q = w("div")(({
|
|
108
|
+
theme: t
|
|
109
|
+
}) => ({
|
|
110
|
+
maskPosition: "center!important",
|
|
111
|
+
maskRepeat: "no-repeat!important",
|
|
112
|
+
WebkitMaskRepeat: "no-repeat!important",
|
|
113
|
+
border: `1px dashed ${t.palette.divider}`,
|
|
114
|
+
width: "100%",
|
|
115
|
+
height: "100%",
|
|
116
|
+
mask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')",
|
|
117
|
+
WebkitMask: "url('data:image/svg+xml;base64, PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjMuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkNhcGFfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiCgkgdmlld0JveD0iMCAwIDcwIDcwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA3MCA3MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM2MzczODE7fQo8L3N0eWxlPgo8Zz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00NSw4LjdjMS40LTEuNSwzLjQtMi4zLDUuNC0yLjNzMy45LDAuOCw1LjQsMi4zczIuNCwzLjUsMi41LDUuN2MwLDIuMi0wLjksNC4yLTIuNCw1LjdzLTMuNSwyLjMtNS41LDIuMgoJCWMtMi4xLDAuMS00LTAuNy01LjUtMi4yYy0xLjQtMS41LTIuMy0zLjUtMi40LTUuN0M0Mi42LDEyLjIsNDMuNSwxMC4yLDQ1LDguN3oiLz4KCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik02OC40LDYyLjFjLTAuMywwLjUtMC43LDAuOC0xLjIsMS4xcy0xLDAuNC0xLjYsMC40SDQuM2MtMC42LDAtMS4xLTAuMS0xLjYtMC40cy0wLjktMC42LTEuMi0xLjEKCQljLTAuMi0wLjUtMC40LTEtMC40LTEuNXMwLjEtMS4xLDAuNC0xLjVsMjMtMzYuNGMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNHMwLjksMC42LDEuMiwxLjEKCQlsMTEuNSwxOC4yYzAuMiwwLjMsMC41LDAuNSwwLjgsMC43czAuNiwwLjMsMSwwLjNjMC4zLDAsMC43LTAuMSwxLTAuM3MwLjYtMC40LDAuOC0wLjdsMy4xLTQuOWMwLjMtMC41LDAuNy0wLjgsMS4yLTEuMQoJCXMxLTAuNCwxLjYtMC40czEuMSwwLjEsMS42LDAuNGMwLjUsMC4zLDAuOSwwLjYsMS4yLDEuMWwxNC42LDIzLjFjMC4zLDAuNSwwLjMsMSwwLjMsMS41UzY4LjcsNjEuNyw2OC40LDYyLjF6Ii8+CjwvZz4KPC9zdmc+Cg==')"
|
|
118
|
+
})), f = () => /* @__PURE__ */ i(j, {
|
|
119
|
+
children: /* @__PURE__ */ i(Q, {
|
|
120
|
+
children: /* @__PURE__ */ i(p, {
|
|
121
|
+
variant: "rectangular",
|
|
122
|
+
width: "100%",
|
|
123
|
+
height: "100%"
|
|
124
|
+
})
|
|
125
|
+
})
|
|
126
|
+
});
|
|
127
|
+
function Z({
|
|
128
|
+
error: t,
|
|
129
|
+
file: M,
|
|
130
|
+
helperText: s,
|
|
131
|
+
sx: a,
|
|
132
|
+
...c
|
|
133
|
+
}) {
|
|
134
|
+
const {
|
|
135
|
+
getRootProps: L,
|
|
136
|
+
getInputProps: o,
|
|
137
|
+
isDragActive: r,
|
|
138
|
+
isDragReject: d
|
|
139
|
+
} = m({
|
|
140
|
+
multiple: !1,
|
|
141
|
+
...c
|
|
142
|
+
}), {
|
|
143
|
+
host_static_assets: C,
|
|
144
|
+
environment_assets: g
|
|
145
|
+
} = z(), {
|
|
146
|
+
getLabel: u
|
|
147
|
+
} = h();
|
|
148
|
+
return A() ? /* @__PURE__ */ i(f, {}) : /* @__PURE__ */ n(b, {
|
|
149
|
+
children: [/* @__PURE__ */ i(j, {
|
|
150
|
+
sx: {
|
|
151
|
+
...(d || t) && {
|
|
152
|
+
borderColor: "error.light"
|
|
153
|
+
},
|
|
154
|
+
...a
|
|
155
|
+
},
|
|
156
|
+
children: /* @__PURE__ */ n(T, {
|
|
157
|
+
id: "DropZoneStyle",
|
|
158
|
+
...L(),
|
|
159
|
+
sx: {
|
|
160
|
+
...r && {
|
|
161
|
+
opacity: 0.72
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
children: [/* @__PURE__ */ i("input", {
|
|
165
|
+
...o()
|
|
166
|
+
}), M && /* @__PURE__ */ i(l, {
|
|
167
|
+
alt: "avatar",
|
|
168
|
+
src: S(M) ? M : M.preview || "",
|
|
169
|
+
width: "100%"
|
|
170
|
+
}), /* @__PURE__ */ i(E, {
|
|
171
|
+
id: "PlaceholderStyle",
|
|
172
|
+
className: "placeholder",
|
|
173
|
+
sx: {
|
|
174
|
+
...M ? {
|
|
175
|
+
bgcolor: x("#161C24", 0.72),
|
|
176
|
+
color: "common.white",
|
|
177
|
+
opacity: 0
|
|
178
|
+
} : {
|
|
179
|
+
opacity: 1
|
|
180
|
+
},
|
|
181
|
+
...(d || t) && {
|
|
182
|
+
bgcolor: "error.lighter",
|
|
183
|
+
borderColor: "error.light",
|
|
184
|
+
color: "error.main"
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
children: /* @__PURE__ */ n(v, {
|
|
188
|
+
className: "ContainerUploadBody",
|
|
189
|
+
children: [/* @__PURE__ */ i(G, {
|
|
190
|
+
children: /* @__PURE__ */ i(l, {
|
|
191
|
+
src: `${C}/${g}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
192
|
+
width: "100%",
|
|
193
|
+
height: "auto"
|
|
194
|
+
})
|
|
195
|
+
}), /* @__PURE__ */ n(U, {
|
|
196
|
+
children: [/* @__PURE__ */ i(Y, {
|
|
197
|
+
children: u(M ? "upload_image.title_update" : "upload_image.title_upload")
|
|
198
|
+
}), /* @__PURE__ */ i(H, {
|
|
199
|
+
children: u("upload_image.description")
|
|
200
|
+
}), /* @__PURE__ */ i(k, {
|
|
201
|
+
children: u("upload_image.conditions")
|
|
202
|
+
})]
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
})]
|
|
206
|
+
})
|
|
207
|
+
}), s && s]
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
const W = w("div")(() => ({
|
|
211
|
+
width: "inherit",
|
|
212
|
+
height: "inherit",
|
|
213
|
+
padding: "1px"
|
|
214
|
+
}));
|
|
215
|
+
function $({
|
|
216
|
+
name: t,
|
|
217
|
+
...M
|
|
218
|
+
}) {
|
|
219
|
+
const {
|
|
220
|
+
control: s,
|
|
221
|
+
setValue: a
|
|
222
|
+
} = y(), c = D((L) => {
|
|
223
|
+
const o = L[0];
|
|
224
|
+
o && a(t, Object.assign(o, {
|
|
225
|
+
preview: URL.createObjectURL(o)
|
|
226
|
+
}));
|
|
227
|
+
}, [a]);
|
|
228
|
+
return /* @__PURE__ */ i(N, {
|
|
229
|
+
name: t,
|
|
230
|
+
control: s,
|
|
231
|
+
render: ({
|
|
232
|
+
field: L,
|
|
233
|
+
fieldState: {
|
|
234
|
+
error: o
|
|
235
|
+
}
|
|
236
|
+
}) => {
|
|
237
|
+
const r = !!o && !L.value;
|
|
238
|
+
return /* @__PURE__ */ n(W, {
|
|
239
|
+
children: [/* @__PURE__ */ i(Z, {
|
|
240
|
+
onDrop: c,
|
|
241
|
+
error: r,
|
|
242
|
+
...M,
|
|
243
|
+
file: L.value
|
|
244
|
+
}), r && /* @__PURE__ */ i(I, {
|
|
245
|
+
error: !0,
|
|
246
|
+
sx: {
|
|
247
|
+
px: 2,
|
|
248
|
+
textAlign: "center"
|
|
249
|
+
},
|
|
250
|
+
children: o.message
|
|
251
|
+
})]
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
export {
|
|
257
|
+
$ as R
|
|
258
|
+
};
|
|
@@ -5,7 +5,7 @@ import { jsx as i } from "react/jsx-runtime";
|
|
|
5
5
|
import { LoadingButton as b } from "@mui/lab";
|
|
6
6
|
import { I as x } from "../IconButton/index.4b5ce8b5.js";
|
|
7
7
|
import { styled as h, alpha as F } from "@mui/material/styles";
|
|
8
|
-
import { u as L } from "../../DynamicFilter/index.
|
|
8
|
+
import { u as L } from "../../DynamicFilter/index.f2377369.js";
|
|
9
9
|
import { useMemo as u } from "react";
|
|
10
10
|
import { I as $ } from "../../Image/index.c9da2d5a.js";
|
|
11
11
|
const G = (t) => g() ? /* @__PURE__ */ i(m, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo as y } from "react";
|
|
2
2
|
import { Skeleton as i, TablePagination as R } from "@mui/material";
|
|
3
|
-
import { P as S } from "../../CommonActions/components/Actions/index.
|
|
3
|
+
import { P as S } from "../../CommonActions/components/Actions/index.cd7b2671.js";
|
|
4
4
|
import { styled as a } from "@mui/material/styles";
|
|
5
5
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
6
6
|
a("div")(() => ({
|