@overmap-ai/forms 1.0.32-react-flow-david-fixes.14 → 1.0.32-react-flow-david-fixes.16
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/dist/forms.js +4 -3
- package/dist/forms.umd.cjs +4 -3
- package/package.json +1 -1
package/dist/forms.js
CHANGED
|
@@ -3127,9 +3127,9 @@ const DateInput = memo((props) => {
|
|
|
3127
3127
|
const handleClosePopover = useCallback(
|
|
3128
3128
|
(open) => {
|
|
3129
3129
|
setPopoverOpen(open);
|
|
3130
|
-
if (!open) onBlur(
|
|
3130
|
+
if (!open) onBlur(value);
|
|
3131
3131
|
},
|
|
3132
|
-
[
|
|
3132
|
+
[onBlur, value]
|
|
3133
3133
|
);
|
|
3134
3134
|
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText: computedHelpText, severity, children: /* @__PURE__ */ jsx(
|
|
3135
3135
|
InputWithLabel,
|
|
@@ -32230,7 +32230,7 @@ const ImageCard = memo(
|
|
|
32230
32230
|
ref: forwardedRef,
|
|
32231
32231
|
...rest,
|
|
32232
32232
|
children: [
|
|
32233
|
-
!file && !error && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, {}) }),
|
|
32233
|
+
!file && !error && /* @__PURE__ */ jsx("div", { className: "absolute inset-0 grow flex items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, {}) }),
|
|
32234
32234
|
!!file && !error && /* @__PURE__ */ jsx(Card, { className: "flex max-w-full grow items-center !p-0 justify-center overflow-hidden bg-clip-padding", children: /* @__PURE__ */ jsx(
|
|
32235
32235
|
"img",
|
|
32236
32236
|
{
|
|
@@ -36263,6 +36263,7 @@ const FormRenderer = memo(
|
|
|
36263
36263
|
const initialValues = useMemo(() => {
|
|
36264
36264
|
return initializeFieldValues(flattenFields(schema.fields), values);
|
|
36265
36265
|
}, [schema.fields, values]);
|
|
36266
|
+
console.debug("initialValues", initialValues);
|
|
36266
36267
|
const handleSubmit = useCallback(
|
|
36267
36268
|
(values2) => {
|
|
36268
36269
|
onSubmit == null ? void 0 : onSubmit(
|
package/dist/forms.umd.cjs
CHANGED
|
@@ -3129,9 +3129,9 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
3129
3129
|
const handleClosePopover = React.useCallback(
|
|
3130
3130
|
(open) => {
|
|
3131
3131
|
setPopoverOpen(open);
|
|
3132
|
-
if (!open) onBlur(
|
|
3132
|
+
if (!open) onBlur(value);
|
|
3133
3133
|
},
|
|
3134
|
-
[
|
|
3134
|
+
[onBlur, value]
|
|
3135
3135
|
);
|
|
3136
3136
|
return /* @__PURE__ */ jsxRuntime.jsx(InputWithLabelAndHelpText, { helpText: computedHelpText, severity, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3137
3137
|
InputWithLabel,
|
|
@@ -32232,7 +32232,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
32232
32232
|
ref: forwardedRef,
|
|
32233
32233
|
...rest,
|
|
32234
32234
|
children: [
|
|
32235
|
-
!file && !error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(blocks.Spinner, {}) }),
|
|
32235
|
+
!file && !error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 grow flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(blocks.Spinner, {}) }),
|
|
32236
32236
|
!!file && !error && /* @__PURE__ */ jsxRuntime.jsx(blocks.Card, { className: "flex max-w-full grow items-center !p-0 justify-center overflow-hidden bg-clip-padding", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
32237
32237
|
"img",
|
|
32238
32238
|
{
|
|
@@ -36265,6 +36265,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${titl
|
|
|
36265
36265
|
const initialValues = React.useMemo(() => {
|
|
36266
36266
|
return initializeFieldValues(flattenFields(schema.fields), values);
|
|
36267
36267
|
}, [schema.fields, values]);
|
|
36268
|
+
console.debug("initialValues", initialValues);
|
|
36268
36269
|
const handleSubmit = React.useCallback(
|
|
36269
36270
|
(values2) => {
|
|
36270
36271
|
onSubmit == null ? void 0 : onSubmit(
|