@homefile/components-v2 2.14.19 → 2.14.21
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.
|
@@ -43,5 +43,5 @@ export const AIGridField = ({ children, onAISend, onRemove, onUpload, }) => {
|
|
|
43
43
|
}
|
|
44
44
|
onAISend === null || onAISend === void 0 ? void 0 : onAISend(form);
|
|
45
45
|
};
|
|
46
|
-
return (_jsxs(Flex, { align: "flex-end", gap: "base", children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(SingleImage, Object.assign({}, imageProps, { onUpload: handleUpload, onRemove: onRemove
|
|
46
|
+
return (_jsxs(Flex, { align: "flex-end", gap: "base", children: [_jsxs(Flex, { align: "center", gap: "base", children: [_jsx(SingleImage, Object.assign({}, imageProps, { onUpload: handleUpload, onRemove: onRemove })), _jsx(Text, { fontFamily: "secondary", textAlign: "center", children: "OR" })] }), _jsx(TextField, Object.assign({}, textProps)), _jsx(IconButton, { "aria-label": "Add new address line", variant: "iconOutlined", icon: _jsx(Plus, { size: 28, stroke: colors.blue[3] }), onClick: handleAISend, h: "input.md", disabled: !(model === null || model === void 0 ? void 0 : model.length) && !(imageField === null || imageField === void 0 ? void 0 : imageField.value) })] }));
|
|
47
47
|
};
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@ export const AIGridField = ({
|
|
|
32
32
|
|
|
33
33
|
const imageProps = {
|
|
34
34
|
id: imageField?.id ?? '',
|
|
35
|
-
value: imageField?.value ?? '',
|
|
35
|
+
value: imageField?.value as string ?? '',
|
|
36
36
|
placeholder: imageField?.name ?? imageField?.description,
|
|
37
37
|
icon: imageField?.icon
|
|
38
38
|
? (fieldIcons[imageField.icon] as IconTypes)
|
|
@@ -65,7 +65,7 @@ export const AIGridField = ({
|
|
|
65
65
|
{...imageProps}
|
|
66
66
|
onUpload={handleUpload}
|
|
67
67
|
onRemove={onRemove}
|
|
68
|
-
value={imageField?.value as string}
|
|
68
|
+
// value={imageField?.value as string}
|
|
69
69
|
/>
|
|
70
70
|
<Text fontFamily="secondary" textAlign="center">
|
|
71
71
|
OR
|