@m4l/components 0.1.12 → 0.1.13
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/assets/Logo/index.228dcb5a.js +86 -0
- package/commonjs.565e6834.js +12 -0
- package/components/CommonActions/components/ActionCancel/index.cba1b460.js +17 -0
- package/components/CommonActions/components/ActionFormCancel/index.be2fe891.js +49 -0
- package/components/CommonActions/components/ActionFormIntro/index.ca4d2674.js +31 -0
- package/components/CommonActions/components/ActionIntro/index.cc4b1e0e.js +18 -0
- package/components/CommonActions/components/Actions/index.e8148d98.js +743 -0
- package/components/CompanyLogo/{index.js → index.f81c179c.js} +42 -48
- package/components/DataGrid/index.b688877d.js +894 -0
- package/components/DynamicFilter/index.82ce857e.js +1158 -0
- package/components/ErrorLabel/index.c8615f16.js +19 -0
- package/components/Icon/index.cbca79b0.js +70 -0
- package/components/Image/index.e790b50b.js +122 -0
- package/components/LanguagePopover/index.3d9611cb.js +87 -0
- package/components/Loadable/index.f5518558.js +15 -0
- package/components/ModalDialog/index.3850c053.js +168 -0
- package/components/NoItemSelected/{index.js → index.12f0ca67.js} +43 -50
- package/components/ObjectLogs/index.27ef875d.js +266 -0
- package/components/Page/index.6d69977e.js +35 -0
- package/components/Page/index.d.ts +1 -1
- package/components/PaperForm/index.d7c74064.js +105 -0
- package/components/Period/index.5e68286a.js +160 -0
- package/components/PropertyValue/index.ab3dd7e9.js +116 -0
- package/components/Resizeable/{index.js → index.45995d2b.js} +21 -19
- package/components/ScrollBar/index.39eeb2de.js +49 -0
- package/components/ScrollToTop/index.e06f98f6.js +11 -0
- package/components/SplitLayout/{index.js → index.4032673d.js} +35 -35
- package/components/animate/IconButtonAnimate/index.d.ts +1 -1
- package/components/animate/LoadingScreen/{index.js → index.f1cec7db.js} +29 -27
- package/components/animate/MotionContainer/index.8d9f9d80.js +30 -0
- package/components/animate/MotionLazyContainer/index.572dd012.js +15 -0
- package/components/animate/features.0fbf41e1.js +5 -0
- package/components/animate/variants/{bounce.js → bounce.784aaaaa.js} +15 -16
- package/components/animate/variants/container.11f82b76.js +20 -0
- package/components/animate/variants/fade.b561c0fc.js +59 -0
- package/components/animate/variants/{index.js → index.7a912140.js} +0 -0
- package/components/animate/variants/transition.bd46b9ce.js +15 -0
- package/components/formatters/BooleanFormatter/index.cca53b7f.js +42 -0
- package/components/formatters/DateFormatter/index.ad8d9b8e.js +57 -0
- package/components/formatters/index.55856d65.js +106 -0
- package/components/hook-form/FormProvider/index.257acd9f.js +55 -0
- package/components/hook-form/RHFAutocomplete/index.6ed76d4c.js +122 -0
- package/components/hook-form/RHFAutocompleteAsync/index.8f2c97ea.js +153 -0
- package/components/hook-form/RHFCheckbox/index.f9ce6c39.js +59 -0
- package/components/hook-form/RHFDateTime/index.fc5cbafe.js +68 -0
- package/components/hook-form/RHFMultiCheckbox/index.2680b3b6.js +34 -0
- package/components/hook-form/RHFPeriod/index.23c254e9.js +45 -0
- package/components/hook-form/RHFRadioGroup/index.b3335e13.js +43 -0
- package/components/hook-form/RHFSelect/index.b6ca8bb2.js +36 -0
- package/components/hook-form/RHFTextField/index.4c455f75.js +77 -0
- package/components/hook-form/RHFTextField/index.d.ts +1 -1
- package/components/hook-form/RHFUpload/index.ed3d739f.js +244 -0
- package/components/mui_extended/Accordion/index.2116e423.js +103 -0
- package/components/mui_extended/Avatar/index.0a2a4523.js +32 -0
- package/components/mui_extended/Avatar/index.d.ts +1 -1
- package/components/mui_extended/BoxIcon/index.e638ecc8.js +22 -0
- package/components/mui_extended/Breadcrumbs/index.5e37d903.js +89 -0
- package/components/mui_extended/Button/index.84d8898c.js +110 -0
- package/components/mui_extended/IconButton/index.88f3aadb.js +98 -0
- package/components/mui_extended/LinkWithRoute/index.d4b263de.js +28 -0
- package/components/mui_extended/MenuPopover/index.488fc536.js +131 -0
- package/components/mui_extended/Pager/index.0576814f.js +126 -0
- package/components/mui_extended/Tab/index.e0653a0a.js +28 -0
- package/components/mui_extended/Typography/index.0c4604b3.js +22 -0
- package/contexts/ModalContext/index.2188b69e.js +150 -0
- package/hooks/useFormAddEdit/index.d4845f1a.js +26 -0
- package/hooks/useModal/index.6571d2d9.js +6 -0
- package/index.js +162 -70
- package/lodash.e09401f0.js +32 -0
- package/node_modules.168cb897.js +55 -0
- package/package.json +1 -1
- package/react-data-grid.d46d625e.js +2115 -0
- package/react-draggable.20e95c61.js +714 -0
- package/react-json-view.f56a7f8e.js +2762 -0
- package/react-lazy-load-image-component.45b56650.js +784 -0
- package/react-resizable.5277deaf.js +371 -0
- package/react-splitter-layout.7810ac1b.js +165 -0
- package/utils/index.214d9542.js +435 -0
- package/assets/Logo/index.js +0 -91
- package/commonjs.js +0 -9
- package/components/CommonActions/components/ActionCancel/index.js +0 -15
- package/components/CommonActions/components/ActionFormCancel/index.js +0 -62
- package/components/CommonActions/components/ActionFormIntro/index.js +0 -35
- package/components/CommonActions/components/ActionIntro/index.js +0 -16
- package/components/CommonActions/components/Actions/index.js +0 -859
- package/components/DataGrid/index.js +0 -1067
- package/components/DynamicFilter/index.js +0 -1573
- package/components/ErrorLabel/index.js +0 -18
- package/components/Icon/index.js +0 -80
- package/components/Image/index.js +0 -128
- package/components/LanguagePopover/index.js +0 -93
- package/components/Loadable/index.js +0 -13
- package/components/ModalDialog/index.js +0 -180
- package/components/ObjectLogs/index.js +0 -284
- package/components/Page/index.js +0 -36
- package/components/PaperForm/index.js +0 -110
- package/components/Period/index.js +0 -230
- package/components/PropertyValue/index.js +0 -142
- package/components/ScrollBar/index.js +0 -52
- package/components/ScrollToTop/index.js +0 -10
- package/components/animate/MotionContainer/index.js +0 -31
- package/components/animate/MotionLazyContainer/index.js +0 -13
- package/components/animate/features.js +0 -2
- package/components/animate/variants/container.js +0 -20
- package/components/animate/variants/fade.js +0 -61
- package/components/animate/variants/transition.js +0 -16
- package/components/formatters/BooleanFormatter/index.js +0 -52
- package/components/formatters/DateFormatter/index.js +0 -66
- package/components/formatters/index.js +0 -112
- package/components/hook-form/FormProvider/index.js +0 -61
- package/components/hook-form/RHFAutocomplete/index.js +0 -144
- package/components/hook-form/RHFAutocompleteAsync/index.js +0 -191
- package/components/hook-form/RHFCheckbox/index.js +0 -65
- package/components/hook-form/RHFDateTime/index.js +0 -79
- package/components/hook-form/RHFMultiCheckbox/index.js +0 -32
- package/components/hook-form/RHFPeriod/index.js +0 -47
- package/components/hook-form/RHFRadioGroup/index.js +0 -41
- package/components/hook-form/RHFSelect/index.js +0 -34
- package/components/hook-form/RHFTextField/index.js +0 -87
- package/components/hook-form/RHFUpload/index.js +0 -255
- package/components/mui_extended/Accordion/index.js +0 -105
- package/components/mui_extended/Avatar/index.js +0 -33
- package/components/mui_extended/BoxIcon/index.js +0 -20
- package/components/mui_extended/Breadcrumbs/index.js +0 -92
- package/components/mui_extended/Button/index.js +0 -131
- package/components/mui_extended/IconButton/index.js +0 -108
- package/components/mui_extended/LinkWithRoute/index.js +0 -30
- package/components/mui_extended/MenuPopover/index.js +0 -135
- package/components/mui_extended/Pager/index.js +0 -137
- package/components/mui_extended/Tab/index.js +0 -30
- package/components/mui_extended/Typography/index.js +0 -21
- package/contexts/ModalContext/index.js +0 -165
- package/hooks/useFormAddEdit/index.js +0 -42
- package/hooks/useModal/index.js +0 -4
- package/lodash.js +0 -62
- package/node_modules.js +0 -54
- package/react-data-grid.js +0 -2652
- package/react-draggable.js +0 -960
- package/react-json-view.js +0 -2764
- package/react-lazy-load-image-component.js +0 -792
- package/react-resizable.js +0 -541
- package/react-splitter-layout.js +0 -165
- package/utils/index.js +0 -572
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { useFormContext as c, Controller as x } from "react-hook-form";
|
|
2
|
+
import { Skeleton as h, TextField as g } from "@mui/material";
|
|
3
|
+
import { styled as k } from "@mui/material/styles";
|
|
4
|
+
import { DateTimePicker as F } from "@mui/x-date-pickers";
|
|
5
|
+
import { useModuleSkeleton as v, useEnvironment as C } from "@m4l/core";
|
|
6
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
7
|
+
const T = k("div")(({
|
|
8
|
+
theme: t
|
|
9
|
+
}) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
width: "100%",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
border: `1px solid ${t.palette.divider}`,
|
|
14
|
+
padding: "12px 14px",
|
|
15
|
+
borderRadius: t.spacing(1)
|
|
16
|
+
}));
|
|
17
|
+
function D(t) {
|
|
18
|
+
const {
|
|
19
|
+
name: i,
|
|
20
|
+
autoComplete: a = "off",
|
|
21
|
+
skeletonProps: s = {}
|
|
22
|
+
} = t, {
|
|
23
|
+
width: m = "100%",
|
|
24
|
+
height: l = 14
|
|
25
|
+
} = s, d = v(), {
|
|
26
|
+
control: p
|
|
27
|
+
} = c(), {
|
|
28
|
+
dfnsFormat: {
|
|
29
|
+
datetime_format: f,
|
|
30
|
+
datetime_mask: u
|
|
31
|
+
}
|
|
32
|
+
} = C();
|
|
33
|
+
return d ? /* @__PURE__ */ e(T, {
|
|
34
|
+
children: /* @__PURE__ */ e(h, {
|
|
35
|
+
variant: "text",
|
|
36
|
+
width: m,
|
|
37
|
+
height: l
|
|
38
|
+
})
|
|
39
|
+
}) : /* @__PURE__ */ e(x, {
|
|
40
|
+
name: i,
|
|
41
|
+
control: p,
|
|
42
|
+
render: ({
|
|
43
|
+
field: r,
|
|
44
|
+
fieldState: {
|
|
45
|
+
error: n
|
|
46
|
+
}
|
|
47
|
+
}) => /* @__PURE__ */ e(F, {
|
|
48
|
+
ampm: !1,
|
|
49
|
+
inputFormat: f,
|
|
50
|
+
mask: u,
|
|
51
|
+
label: "",
|
|
52
|
+
value: r.value,
|
|
53
|
+
onChange: (o) => {
|
|
54
|
+
isNaN(o) ? r.onChange(void 0) : r.onChange(o);
|
|
55
|
+
},
|
|
56
|
+
renderInput: (o) => /* @__PURE__ */ e(g, {
|
|
57
|
+
autoComplete: a,
|
|
58
|
+
fullWidth: !0,
|
|
59
|
+
error: !!n,
|
|
60
|
+
helperText: n?.message,
|
|
61
|
+
...o
|
|
62
|
+
})
|
|
63
|
+
})
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
D as R
|
|
68
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { useFormContext as m, Controller as s } from "react-hook-form";
|
|
2
|
+
import { FormGroup as C, FormControlLabel as h, Checkbox as x } from "@mui/material";
|
|
3
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
4
|
+
function k({
|
|
5
|
+
name: n,
|
|
6
|
+
options: l,
|
|
7
|
+
...c
|
|
8
|
+
}) {
|
|
9
|
+
const {
|
|
10
|
+
control: t
|
|
11
|
+
} = m();
|
|
12
|
+
return /* @__PURE__ */ o(s, {
|
|
13
|
+
name: n,
|
|
14
|
+
control: t,
|
|
15
|
+
render: ({
|
|
16
|
+
field: e
|
|
17
|
+
}) => {
|
|
18
|
+
const u = (r) => e.value.includes(r) ? e.value.filter((a) => a !== r) : [...e.value, r];
|
|
19
|
+
return /* @__PURE__ */ o(C, {
|
|
20
|
+
children: l.map((r) => /* @__PURE__ */ o(h, {
|
|
21
|
+
control: /* @__PURE__ */ o(x, {
|
|
22
|
+
checked: e.value.includes(r),
|
|
23
|
+
onChange: () => e.onChange(u(r))
|
|
24
|
+
}),
|
|
25
|
+
label: r,
|
|
26
|
+
...c
|
|
27
|
+
}, r))
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
k as R
|
|
34
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { styled as m } from "@mui/material";
|
|
2
|
+
import { useFormContext as a, Controller as l } from "react-hook-form";
|
|
3
|
+
import { E as f } from "../../ErrorLabel/index.c8615f16.js";
|
|
4
|
+
import { P as p } from "../../Period/index.5e68286a.js";
|
|
5
|
+
import { jsx as t, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
const d = m("div")(({
|
|
7
|
+
theme: e
|
|
8
|
+
}) => ({
|
|
9
|
+
width: "100%",
|
|
10
|
+
display: "flex",
|
|
11
|
+
flexDirection: "column",
|
|
12
|
+
justifyContent: "center",
|
|
13
|
+
alignItems: "flex-start",
|
|
14
|
+
gap: e.spacing(1)
|
|
15
|
+
})), C = (e) => {
|
|
16
|
+
const {
|
|
17
|
+
name: o
|
|
18
|
+
} = e, {
|
|
19
|
+
control: s
|
|
20
|
+
} = a();
|
|
21
|
+
return /* @__PURE__ */ t(l, {
|
|
22
|
+
name: o,
|
|
23
|
+
control: s,
|
|
24
|
+
render: ({
|
|
25
|
+
field: {
|
|
26
|
+
onChange: n,
|
|
27
|
+
value: i
|
|
28
|
+
},
|
|
29
|
+
fieldState: {
|
|
30
|
+
error: r
|
|
31
|
+
}
|
|
32
|
+
}) => /* @__PURE__ */ c(d, {
|
|
33
|
+
children: [/* @__PURE__ */ t(p, {
|
|
34
|
+
value: i,
|
|
35
|
+
onChange: n,
|
|
36
|
+
error: !!r
|
|
37
|
+
}), r && /* @__PURE__ */ t(f, {
|
|
38
|
+
message: r.message || ""
|
|
39
|
+
})]
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
C as R
|
|
45
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { useFormContext as s, Controller as u } from "react-hook-form";
|
|
2
|
+
import { RadioGroup as c, FormControlLabel as x, Radio as p, FormHelperText as f } from "@mui/material";
|
|
3
|
+
import { jsx as r, jsxs as R } from "react/jsx-runtime";
|
|
4
|
+
function j({
|
|
5
|
+
name: l,
|
|
6
|
+
options: m,
|
|
7
|
+
getOptionLabel: e,
|
|
8
|
+
...n
|
|
9
|
+
}) {
|
|
10
|
+
const {
|
|
11
|
+
control: a
|
|
12
|
+
} = s();
|
|
13
|
+
return /* @__PURE__ */ r(u, {
|
|
14
|
+
name: l,
|
|
15
|
+
control: a,
|
|
16
|
+
render: ({
|
|
17
|
+
field: d,
|
|
18
|
+
fieldState: {
|
|
19
|
+
error: t
|
|
20
|
+
}
|
|
21
|
+
}) => /* @__PURE__ */ R("div", {
|
|
22
|
+
children: [/* @__PURE__ */ r(c, {
|
|
23
|
+
...d,
|
|
24
|
+
row: !0,
|
|
25
|
+
...n,
|
|
26
|
+
children: m.map((o, i) => /* @__PURE__ */ r(x, {
|
|
27
|
+
value: o,
|
|
28
|
+
control: /* @__PURE__ */ r(p, {}),
|
|
29
|
+
label: e?.length ? e[i] : o
|
|
30
|
+
}, o))
|
|
31
|
+
}), !!t && /* @__PURE__ */ r(f, {
|
|
32
|
+
error: !0,
|
|
33
|
+
sx: {
|
|
34
|
+
px: 2
|
|
35
|
+
},
|
|
36
|
+
children: t.message
|
|
37
|
+
})]
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
j as R
|
|
43
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useFormContext as m, Controller as s } from "react-hook-form";
|
|
2
|
+
import { TextField as u } from "@mui/material";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
function x({
|
|
5
|
+
name: r,
|
|
6
|
+
children: o,
|
|
7
|
+
...l
|
|
8
|
+
}) {
|
|
9
|
+
const {
|
|
10
|
+
control: n
|
|
11
|
+
} = m();
|
|
12
|
+
return /* @__PURE__ */ t(s, {
|
|
13
|
+
name: r,
|
|
14
|
+
control: n,
|
|
15
|
+
render: ({
|
|
16
|
+
field: i,
|
|
17
|
+
fieldState: {
|
|
18
|
+
error: e
|
|
19
|
+
}
|
|
20
|
+
}) => /* @__PURE__ */ t(u, {
|
|
21
|
+
...i,
|
|
22
|
+
select: !0,
|
|
23
|
+
fullWidth: !0,
|
|
24
|
+
SelectProps: {
|
|
25
|
+
native: !0
|
|
26
|
+
},
|
|
27
|
+
error: !!e,
|
|
28
|
+
helperText: e?.message,
|
|
29
|
+
...l,
|
|
30
|
+
children: o
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
x as R
|
|
36
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { useFormContext as R, Controller as T } from "react-hook-form";
|
|
2
|
+
import { Skeleton as k, TextField as C } from "@mui/material";
|
|
3
|
+
import { styled as S } from "@mui/material/styles";
|
|
4
|
+
import { forwardRef as b } from "react";
|
|
5
|
+
import { useModuleSkeleton as y } from "@m4l/core";
|
|
6
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
+
const H = S("div")(({
|
|
8
|
+
theme: e
|
|
9
|
+
}) => ({
|
|
10
|
+
display: "flex",
|
|
11
|
+
width: "100%",
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
border: `1px solid ${e.palette.divider}`,
|
|
14
|
+
padding: "12px 14px",
|
|
15
|
+
borderRadius: e.spacing(1)
|
|
16
|
+
})), v = b((e, l) => {
|
|
17
|
+
const {
|
|
18
|
+
name: a,
|
|
19
|
+
autoComplete: d = "off",
|
|
20
|
+
skeletonProps: s = {},
|
|
21
|
+
type: o,
|
|
22
|
+
...p
|
|
23
|
+
} = e, {
|
|
24
|
+
width: m = "100%",
|
|
25
|
+
height: f = 14
|
|
26
|
+
} = s, u = y(), {
|
|
27
|
+
control: x
|
|
28
|
+
} = R();
|
|
29
|
+
return u ? /* @__PURE__ */ t(H, {
|
|
30
|
+
children: /* @__PURE__ */ t(k, {
|
|
31
|
+
variant: "text",
|
|
32
|
+
width: m,
|
|
33
|
+
height: f
|
|
34
|
+
})
|
|
35
|
+
}) : /* @__PURE__ */ t(T, {
|
|
36
|
+
name: a,
|
|
37
|
+
control: x,
|
|
38
|
+
render: ({
|
|
39
|
+
field: {
|
|
40
|
+
onChange: n,
|
|
41
|
+
onBlur: c,
|
|
42
|
+
value: g,
|
|
43
|
+
name: h,
|
|
44
|
+
ref: F
|
|
45
|
+
},
|
|
46
|
+
fieldState: {
|
|
47
|
+
error: i
|
|
48
|
+
}
|
|
49
|
+
}) => /* @__PURE__ */ t(
|
|
50
|
+
C,
|
|
51
|
+
{
|
|
52
|
+
inputRef: l,
|
|
53
|
+
autoComplete: d,
|
|
54
|
+
onChange: (r) => {
|
|
55
|
+
if (o === "number" && r.target.value) {
|
|
56
|
+
n(Number(r.target.value));
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
n(r);
|
|
60
|
+
},
|
|
61
|
+
onBlur: c,
|
|
62
|
+
value: g,
|
|
63
|
+
name: h,
|
|
64
|
+
ref: F,
|
|
65
|
+
fullWidth: !0,
|
|
66
|
+
error: !!i,
|
|
67
|
+
helperText: i?.message,
|
|
68
|
+
type: o,
|
|
69
|
+
...p
|
|
70
|
+
}
|
|
71
|
+
)
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
v.displayName = "RHFTextField";
|
|
75
|
+
export {
|
|
76
|
+
v as R
|
|
77
|
+
};
|
|
@@ -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, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps"> | Pick<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps"> | Pick<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export declare const RHFTextField: import("react").ForwardRefExoticComponent<(Pick<RHFTextFieldProps & import("@mui/material").StandardTextFieldProps, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps"> | Pick<RHFTextFieldProps & import("@mui/material").FilledTextFieldProps, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps"> | Pick<RHFTextFieldProps & import("@mui/material").OutlinedTextFieldProps, "className" | "style" | "classes" | "color" | "margin" | "translate" | "label" | "slot" | "select" | "title" | "children" | "sx" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "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-describedby" | "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-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "name" | "type" | "autoFocus" | "disabled" | "value" | "autoComplete" | "required" | "size" | "rows" | "error" | "variant" | "focused" | "inputProps" | "inputRef" | "fullWidth" | "hiddenLabel" | "InputProps" | "FormHelperTextProps" | "helperText" | "InputLabelProps" | "multiline" | "maxRows" | "minRows" | "SelectProps" | "skeletonProps">) & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { styled as y, FormHelperText as f } from "@mui/material";
|
|
2
|
+
import { useCallback as x } from "react";
|
|
3
|
+
import { useFormContext as v, Controller as C } from "react-hook-form";
|
|
4
|
+
import { i as b } from "../../../lodash.e09401f0.js";
|
|
5
|
+
import { useDropzone as w } from "react-dropzone";
|
|
6
|
+
import { styled as o, alpha as I } from "@mui/material/styles";
|
|
7
|
+
import { I as h } from "../../Image/index.e790b50b.js";
|
|
8
|
+
import { useEnvironment as _, useModuleDictionary as R } from "@m4l/core";
|
|
9
|
+
import { jsxs as a, Fragment as j, jsx as e } from "react/jsx-runtime";
|
|
10
|
+
import "../../../react-lazy-load-image-component.45b56650.js";
|
|
11
|
+
const D = o("div")(({
|
|
12
|
+
theme: t
|
|
13
|
+
}) => ({
|
|
14
|
+
width: "inherit",
|
|
15
|
+
height: "100%",
|
|
16
|
+
minWidth: t.spacing(20),
|
|
17
|
+
margin: "auto",
|
|
18
|
+
borderRadius: t.spacing(1),
|
|
19
|
+
padding: t.spacing(1),
|
|
20
|
+
border: `1px dashed ${t.palette.grey[50032]}`
|
|
21
|
+
})), S = o("div")(({
|
|
22
|
+
theme: t
|
|
23
|
+
}) => ({
|
|
24
|
+
zIndex: 0,
|
|
25
|
+
width: "100%",
|
|
26
|
+
height: "100%",
|
|
27
|
+
outline: "none",
|
|
28
|
+
display: "flex",
|
|
29
|
+
overflow: "hidden",
|
|
30
|
+
borderRadius: t.spacing(1),
|
|
31
|
+
position: "relative",
|
|
32
|
+
alignItems: "center",
|
|
33
|
+
justifyContent: "center",
|
|
34
|
+
"& > *": {
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%"
|
|
37
|
+
},
|
|
38
|
+
"&:hover": {
|
|
39
|
+
cursor: "pointer",
|
|
40
|
+
"& .placeholder": {
|
|
41
|
+
zIndex: 9
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
})), U = o("div")(({
|
|
45
|
+
theme: t
|
|
46
|
+
}) => ({
|
|
47
|
+
"&:hover": {
|
|
48
|
+
opacity: 1
|
|
49
|
+
},
|
|
50
|
+
display: "flex",
|
|
51
|
+
justifyContent: "center",
|
|
52
|
+
position: "absolute",
|
|
53
|
+
zIndex: "2",
|
|
54
|
+
inset: "0",
|
|
55
|
+
transition: t.transitions.create("opacity", {
|
|
56
|
+
easing: t.transitions.easing.easeInOut,
|
|
57
|
+
duration: t.transitions.duration.shorter
|
|
58
|
+
}),
|
|
59
|
+
overflow: "auto"
|
|
60
|
+
})), W = o("div")(({
|
|
61
|
+
theme: t
|
|
62
|
+
}) => ({
|
|
63
|
+
padding: t.spacing(3, 5),
|
|
64
|
+
display: "flex",
|
|
65
|
+
flexWrap: "wrap",
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
width: "100%",
|
|
68
|
+
height: "100%",
|
|
69
|
+
gap: t.spacing(3)
|
|
70
|
+
})), z = o("div")(({
|
|
71
|
+
theme: t
|
|
72
|
+
}) => ({
|
|
73
|
+
display: "flex",
|
|
74
|
+
justifyContent: "center",
|
|
75
|
+
flexDirection: "column",
|
|
76
|
+
gap: t.spacing(3)
|
|
77
|
+
})), F = o("span")(({
|
|
78
|
+
theme: t
|
|
79
|
+
}) => ({
|
|
80
|
+
...t.typography.subtitle2,
|
|
81
|
+
width: "fit-content"
|
|
82
|
+
})), P = o("span")(({
|
|
83
|
+
theme: t
|
|
84
|
+
}) => ({
|
|
85
|
+
...t.typography.body2,
|
|
86
|
+
minWidth: t.spacing(20)
|
|
87
|
+
})), $ = o("span")(({
|
|
88
|
+
theme: t
|
|
89
|
+
}) => ({
|
|
90
|
+
...t.typography.caption,
|
|
91
|
+
width: "fit-content"
|
|
92
|
+
})), H = o("div")(({
|
|
93
|
+
theme: t
|
|
94
|
+
}) => ({
|
|
95
|
+
display: "flex",
|
|
96
|
+
alignItems: "center",
|
|
97
|
+
maxWidth: t.spacing(20)
|
|
98
|
+
}));
|
|
99
|
+
o("div")(() => ({
|
|
100
|
+
width: "100%",
|
|
101
|
+
height: "100%",
|
|
102
|
+
position: "absolute",
|
|
103
|
+
inset: "0",
|
|
104
|
+
display: "flex",
|
|
105
|
+
justifyContent: "center",
|
|
106
|
+
alignItems: "center"
|
|
107
|
+
}));
|
|
108
|
+
function L({
|
|
109
|
+
error: t,
|
|
110
|
+
file: i,
|
|
111
|
+
helperText: s,
|
|
112
|
+
sx: l,
|
|
113
|
+
...c
|
|
114
|
+
}) {
|
|
115
|
+
const {
|
|
116
|
+
getRootProps: r,
|
|
117
|
+
getInputProps: n,
|
|
118
|
+
isDragActive: d,
|
|
119
|
+
isDragReject: g
|
|
120
|
+
} = w({
|
|
121
|
+
multiple: !1,
|
|
122
|
+
...c
|
|
123
|
+
}), {
|
|
124
|
+
host_static_assets: m,
|
|
125
|
+
environment_assets: u
|
|
126
|
+
} = _(), {
|
|
127
|
+
getLabel: p
|
|
128
|
+
} = R();
|
|
129
|
+
return /* @__PURE__ */ a(j, {
|
|
130
|
+
children: [/* @__PURE__ */ e(D, {
|
|
131
|
+
id: "RootStyle",
|
|
132
|
+
sx: {
|
|
133
|
+
...(g || t) && {
|
|
134
|
+
borderColor: "error.light"
|
|
135
|
+
},
|
|
136
|
+
...l
|
|
137
|
+
},
|
|
138
|
+
children: /* @__PURE__ */ a(S, {
|
|
139
|
+
id: "DropZoneStyle",
|
|
140
|
+
...r(),
|
|
141
|
+
sx: {
|
|
142
|
+
...d && {
|
|
143
|
+
opacity: 0.72
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
children: [/* @__PURE__ */ e("input", {
|
|
147
|
+
...n()
|
|
148
|
+
}), i && /* @__PURE__ */ e(h, {
|
|
149
|
+
alt: "avatar",
|
|
150
|
+
src: b(i) ? i : i.preview,
|
|
151
|
+
sx: {
|
|
152
|
+
zIndex: 8
|
|
153
|
+
}
|
|
154
|
+
}), /* @__PURE__ */ e(U, {
|
|
155
|
+
id: "PlaceholderStyle",
|
|
156
|
+
className: "placeholder",
|
|
157
|
+
sx: {
|
|
158
|
+
...i ? {
|
|
159
|
+
bgcolor: I("#161C24", 0.72),
|
|
160
|
+
color: "common.white",
|
|
161
|
+
opacity: 0
|
|
162
|
+
} : {
|
|
163
|
+
opacity: 1
|
|
164
|
+
},
|
|
165
|
+
...(g || t) && {
|
|
166
|
+
bgcolor: "error.lighter",
|
|
167
|
+
borderColor: "error.light",
|
|
168
|
+
color: "error.main"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
children: /* @__PURE__ */ a(W, {
|
|
172
|
+
className: "ContainerUploadBody",
|
|
173
|
+
children: [/* @__PURE__ */ e(H, {
|
|
174
|
+
children: /* @__PURE__ */ e(h, {
|
|
175
|
+
src: `${m}/${u}/frontend/components/upload_image/assets/img/upload_image_illustration.svg`,
|
|
176
|
+
effect: "opacity",
|
|
177
|
+
width: "100%",
|
|
178
|
+
height: "auto",
|
|
179
|
+
mb: 1
|
|
180
|
+
})
|
|
181
|
+
}), /* @__PURE__ */ a(z, {
|
|
182
|
+
children: [/* @__PURE__ */ e(F, {
|
|
183
|
+
children: p(i ? "upload_image.title_update" : "upload_image.title_upload")
|
|
184
|
+
}), /* @__PURE__ */ e(P, {
|
|
185
|
+
children: p("upload_image.description")
|
|
186
|
+
}), /* @__PURE__ */ e($, {
|
|
187
|
+
children: p("upload_image.conditions")
|
|
188
|
+
})]
|
|
189
|
+
})]
|
|
190
|
+
})
|
|
191
|
+
})]
|
|
192
|
+
})
|
|
193
|
+
}), s && s]
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
const O = y("div")(() => ({
|
|
197
|
+
width: "inherit",
|
|
198
|
+
height: "inherit",
|
|
199
|
+
padding: "1px"
|
|
200
|
+
}));
|
|
201
|
+
function G({
|
|
202
|
+
name: t,
|
|
203
|
+
...i
|
|
204
|
+
}) {
|
|
205
|
+
const {
|
|
206
|
+
control: s,
|
|
207
|
+
setValue: l
|
|
208
|
+
} = v(), c = x((r) => {
|
|
209
|
+
const n = r[0];
|
|
210
|
+
n && l(t, Object.assign(n, {
|
|
211
|
+
preview: URL.createObjectURL(n)
|
|
212
|
+
}));
|
|
213
|
+
}, [l]);
|
|
214
|
+
return /* @__PURE__ */ e(C, {
|
|
215
|
+
name: t,
|
|
216
|
+
control: s,
|
|
217
|
+
render: ({
|
|
218
|
+
field: r,
|
|
219
|
+
fieldState: {
|
|
220
|
+
error: n
|
|
221
|
+
}
|
|
222
|
+
}) => {
|
|
223
|
+
const d = !!n && !r.value;
|
|
224
|
+
return /* @__PURE__ */ a(O, {
|
|
225
|
+
children: [/* @__PURE__ */ e(L, {
|
|
226
|
+
onDrop: c,
|
|
227
|
+
error: d,
|
|
228
|
+
...i,
|
|
229
|
+
file: r.value
|
|
230
|
+
}), d && /* @__PURE__ */ e(f, {
|
|
231
|
+
error: !0,
|
|
232
|
+
sx: {
|
|
233
|
+
px: 2,
|
|
234
|
+
textAlign: "center"
|
|
235
|
+
},
|
|
236
|
+
children: n.message
|
|
237
|
+
})]
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
export {
|
|
243
|
+
G as R
|
|
244
|
+
};
|