@m4l/components 9.23.0 → 9.23.1
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.
|
@@ -4,36 +4,36 @@ import { useComponentSize as y } from "../../../../hooks/useComponentSize/index.
|
|
|
4
4
|
import { RHFUploadImageRootStyled as H } from "./slots/RHFUploadImageSlots.js";
|
|
5
5
|
import { UploadImage as I } from "./subcomponents/UploadImage/UploadImage.js";
|
|
6
6
|
import { Label as L } from "../../../Label/Label.js";
|
|
7
|
-
import { HelperError as
|
|
8
|
-
function A(
|
|
7
|
+
import { HelperError as v } from "../../../HelperError/HelperError.js";
|
|
8
|
+
function A(n) {
|
|
9
9
|
const {
|
|
10
|
-
name:
|
|
11
|
-
size:
|
|
12
|
-
accept:
|
|
10
|
+
name: l,
|
|
11
|
+
size: d,
|
|
12
|
+
accept: C,
|
|
13
13
|
label: i,
|
|
14
|
-
mandatory:
|
|
15
|
-
mandatoryMessage:
|
|
16
|
-
maxSize:
|
|
17
|
-
helperMessage:
|
|
18
|
-
disabled:
|
|
19
|
-
...
|
|
20
|
-
} =
|
|
14
|
+
mandatory: c,
|
|
15
|
+
mandatoryMessage: p,
|
|
16
|
+
maxSize: f,
|
|
17
|
+
helperMessage: u,
|
|
18
|
+
disabled: g,
|
|
19
|
+
...z
|
|
20
|
+
} = n, { currentSize: r } = y(d), o = r === "small" || r === "medium" ? r : "medium", { control: S } = h();
|
|
21
21
|
return /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
22
22
|
F,
|
|
23
23
|
{
|
|
24
|
-
name:
|
|
25
|
-
control:
|
|
26
|
-
render: ({ field: { value:
|
|
27
|
-
const t = !!
|
|
24
|
+
name: l,
|
|
25
|
+
control: S,
|
|
26
|
+
render: ({ field: { value: b, onChange: s }, fieldState: { error: a }, formState: { isSubmitting: R } }) => {
|
|
27
|
+
const t = !!a;
|
|
28
28
|
return /* @__PURE__ */ x(U, { children: [
|
|
29
29
|
i && /* @__PURE__ */ e(
|
|
30
30
|
L,
|
|
31
31
|
{
|
|
32
32
|
error: t,
|
|
33
33
|
label: i,
|
|
34
|
-
mandatory:
|
|
35
|
-
mandatoryMessage:
|
|
36
|
-
helperMessage:
|
|
34
|
+
mandatory: c,
|
|
35
|
+
mandatoryMessage: p,
|
|
36
|
+
helperMessage: u,
|
|
37
37
|
size: o
|
|
38
38
|
}
|
|
39
39
|
),
|
|
@@ -42,27 +42,27 @@ function A(l) {
|
|
|
42
42
|
{
|
|
43
43
|
onDrop: (j) => {
|
|
44
44
|
const m = j[0];
|
|
45
|
-
m &&
|
|
45
|
+
m && s(
|
|
46
46
|
Object.assign(m, {
|
|
47
47
|
preview: URL.createObjectURL(m)
|
|
48
48
|
})
|
|
49
49
|
);
|
|
50
50
|
},
|
|
51
51
|
onRemove: () => {
|
|
52
|
-
|
|
52
|
+
s(null);
|
|
53
53
|
},
|
|
54
54
|
error: t,
|
|
55
|
-
disabled:
|
|
56
|
-
...
|
|
57
|
-
file:
|
|
55
|
+
disabled: g || R,
|
|
56
|
+
...z,
|
|
57
|
+
file: b,
|
|
58
58
|
size: o,
|
|
59
|
-
maxSize:
|
|
59
|
+
maxSize: f
|
|
60
60
|
}
|
|
61
61
|
),
|
|
62
62
|
t && /* @__PURE__ */ e(
|
|
63
|
-
|
|
63
|
+
v,
|
|
64
64
|
{
|
|
65
|
-
message:
|
|
65
|
+
message: a?.message,
|
|
66
66
|
size: o
|
|
67
67
|
}
|
|
68
68
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.23.
|
|
3
|
+
"version": "9.23.1",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"nprogress": "0.2.0",
|
|
53
53
|
"react-transition-group": "4.4.5",
|
|
54
54
|
"react-color": "2.19.3",
|
|
55
|
+
"react-rnd": "10.5.2",
|
|
55
56
|
"@mui/x-date-pickers": "6.20.2",
|
|
57
|
+
"date-fns": "2.30.0",
|
|
56
58
|
"react-draggable": "4.5.0",
|
|
57
59
|
"react-dropzone": "14.4.1",
|
|
58
|
-
"date-fns": "2.30.0",
|
|
59
|
-
"react-rnd": "10.5.2",
|
|
60
60
|
"react-spinners": "0.13.8",
|
|
61
61
|
"chart.js": "4.5.1",
|
|
62
62
|
"chartjs-chart-error-bars": "4.4.5",
|