@overmap-ai/core 1.0.38-component-fields.19 → 1.0.38-component-fields.20
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/overmap-core.js +30 -28
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +30 -28
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/style.css +9 -7
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -9681,10 +9681,10 @@ class FieldInputClonerField extends CustomField {
|
|
|
9681
9681
|
super(options, FieldInputCloner);
|
|
9682
9682
|
}
|
|
9683
9683
|
}
|
|
9684
|
-
const previewImage$1 = "
|
|
9685
|
-
const nameContainer = "
|
|
9686
|
-
const hasPreview = "
|
|
9687
|
-
const useEllipsis = "
|
|
9684
|
+
const previewImage$1 = "_previewImage_1piva_1";
|
|
9685
|
+
const nameContainer = "_nameContainer_1piva_11";
|
|
9686
|
+
const hasPreview = "_hasPreview_1piva_16";
|
|
9687
|
+
const useEllipsis = "_useEllipsis_1piva_21";
|
|
9688
9688
|
const styles$4 = {
|
|
9689
9689
|
previewImage: previewImage$1,
|
|
9690
9690
|
nameContainer,
|
|
@@ -9830,7 +9830,7 @@ const DisplayFile = memo((props) => {
|
|
|
9830
9830
|
},
|
|
9831
9831
|
[name, resolvedFile]
|
|
9832
9832
|
);
|
|
9833
|
-
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
9833
|
+
return /* @__PURE__ */ jsxs(Card, { style: { width: "100%" }, size: "1", children: [
|
|
9834
9834
|
/* @__PURE__ */ jsx(Inset, { clip: "border-box", side: "top", pb: "0", children: url && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
9835
9835
|
/* @__PURE__ */ jsx(
|
|
9836
9836
|
"img",
|
|
@@ -9854,32 +9854,34 @@ const DisplayFile = memo((props) => {
|
|
|
9854
9854
|
)
|
|
9855
9855
|
] }) }),
|
|
9856
9856
|
/* @__PURE__ */ jsx(Flex, { style: { marginBottom: "calc(-1 * var(--space-1))" }, children: /* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
|
|
9857
|
-
/* @__PURE__ */ jsxs(Flex, {
|
|
9858
|
-
/* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, children: name }),
|
|
9857
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", grow: "1", children: [
|
|
9858
|
+
/* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, size: "1", children: name }),
|
|
9859
9859
|
/* @__PURE__ */ jsx(Text, { size: "1", children: size }),
|
|
9860
9860
|
error2 && /* @__PURE__ */ jsx(Text, { size: "1", severity: "danger", children: error2 })
|
|
9861
9861
|
] }),
|
|
9862
|
-
/* @__PURE__ */
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9862
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
|
|
9863
|
+
/* @__PURE__ */ jsx(
|
|
9864
|
+
IconButton,
|
|
9865
|
+
{
|
|
9866
|
+
variant: "soft",
|
|
9867
|
+
"aria-label": `Download ${name}`,
|
|
9868
|
+
onClick: handleDownload,
|
|
9869
|
+
disabled: !resolvedFile,
|
|
9870
|
+
children: /* @__PURE__ */ jsx(DownloadIcon, {})
|
|
9871
|
+
}
|
|
9872
|
+
),
|
|
9873
|
+
/* @__PURE__ */ jsx(
|
|
9874
|
+
IconButton,
|
|
9875
|
+
{
|
|
9876
|
+
severity: "info",
|
|
9877
|
+
variant: "soft",
|
|
9878
|
+
"aria-label": `Remove ${name}`,
|
|
9879
|
+
disabled,
|
|
9880
|
+
onClick: onRemove,
|
|
9881
|
+
children: /* @__PURE__ */ jsx(Cross1Icon, {})
|
|
9882
|
+
}
|
|
9883
|
+
)
|
|
9884
|
+
] })
|
|
9883
9885
|
] }) })
|
|
9884
9886
|
] });
|
|
9885
9887
|
});
|