react-hook-form-cloudscape 1.7.3 → 1.7.4
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/package.json
CHANGED
|
@@ -728,15 +728,7 @@ const zr = ({
|
|
|
728
728
|
control: f,
|
|
729
729
|
defaultValue: s,
|
|
730
730
|
name: u,
|
|
731
|
-
render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(
|
|
732
|
-
mr,
|
|
733
|
-
{
|
|
734
|
-
ref: n,
|
|
735
|
-
checked: i,
|
|
736
|
-
onChange: p.bind(null, a),
|
|
737
|
-
...l
|
|
738
|
-
}
|
|
739
|
-
),
|
|
731
|
+
render: ({ field: { ref: n, onChange: a, value: i = !1 } }) => /* @__PURE__ */ h.jsx(mr, { ref: n, checked: i, onChange: p.bind(null, a), ...l }),
|
|
740
732
|
rules: c,
|
|
741
733
|
shouldUnregister: d
|
|
742
734
|
}
|
|
@@ -762,14 +754,7 @@ const zr = ({
|
|
|
762
754
|
control: f,
|
|
763
755
|
defaultValue: s,
|
|
764
756
|
name: u,
|
|
765
|
-
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(
|
|
766
|
-
Rr,
|
|
767
|
-
{
|
|
768
|
-
selectedItems: a,
|
|
769
|
-
onSelectionChange: p.bind(null, n),
|
|
770
|
-
...l
|
|
771
|
-
}
|
|
772
|
-
),
|
|
757
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Rr, { selectedItems: a, onSelectionChange: p.bind(null, n), ...l }),
|
|
773
758
|
rules: c,
|
|
774
759
|
shouldUnregister: d
|
|
775
760
|
}
|
|
@@ -971,22 +956,16 @@ const zr = ({
|
|
|
971
956
|
shouldUnregister: d
|
|
972
957
|
}
|
|
973
958
|
);
|
|
974
|
-
}, te = (u = []) => u != null && u.length ? u.map((f) => "options" in f ? te(f.options) : f.value).flat() : [], ne = (u = [], f = []) => u != null && u.length && (f != null && f.length) ? u.reduce(
|
|
975
|
-
(
|
|
976
|
-
if (
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
c.options,
|
|
980
|
-
f
|
|
981
|
-
);
|
|
982
|
-
d != null && d.length && s.push(...d);
|
|
983
|
-
}
|
|
984
|
-
"value" in c && f.find((d) => d === c.value) && s.push(c);
|
|
959
|
+
}, te = (u = []) => u != null && u.length ? u.map((f) => "options" in f ? te(f.options) : f.value).flat() : [], ne = (u = [], f = []) => u != null && u.length && (f != null && f.length) ? u.reduce((s, c) => {
|
|
960
|
+
if (u != null && u.length) {
|
|
961
|
+
if ("options" in c) {
|
|
962
|
+
const d = ne(c.options, f);
|
|
963
|
+
d != null && d.length && s.push(...d);
|
|
985
964
|
}
|
|
986
|
-
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
|
|
965
|
+
"value" in c && f.find((d) => d === c.value) && s.push(c);
|
|
966
|
+
}
|
|
967
|
+
return s;
|
|
968
|
+
}, []).flat() : [], nt = { transformMultiselectOptionsToArray: te, mapSelectedOptionsWithOptions: ne }, at = ({
|
|
990
969
|
name: u,
|
|
991
970
|
control: f,
|
|
992
971
|
options: s,
|
|
@@ -1127,10 +1106,7 @@ const zr = ({
|
|
|
1127
1106
|
return u && f && (s = u.reduce(
|
|
1128
1107
|
(c, d) => {
|
|
1129
1108
|
if ("options" in d) {
|
|
1130
|
-
const t = De(
|
|
1131
|
-
d.options,
|
|
1132
|
-
f
|
|
1133
|
-
);
|
|
1109
|
+
const t = De(d.options, f);
|
|
1134
1110
|
t && c.push(t);
|
|
1135
1111
|
}
|
|
1136
1112
|
return "value" in d && d.value === f && c.push(d), c;
|
|
@@ -1346,15 +1322,7 @@ const zr = ({
|
|
|
1346
1322
|
control: f,
|
|
1347
1323
|
defaultValue: c,
|
|
1348
1324
|
name: u,
|
|
1349
|
-
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(
|
|
1350
|
-
Ir,
|
|
1351
|
-
{
|
|
1352
|
-
items: l.items,
|
|
1353
|
-
value: a,
|
|
1354
|
-
onChange: p.bind(null, n),
|
|
1355
|
-
...l
|
|
1356
|
-
}
|
|
1357
|
-
),
|
|
1325
|
+
render: ({ field: { onChange: n, value: a } }) => /* @__PURE__ */ h.jsx(Ir, { items: l.items, value: a, onChange: p.bind(null, n), ...l }),
|
|
1358
1326
|
rules: d,
|
|
1359
1327
|
shouldUnregister: t
|
|
1360
1328
|
}
|