@overmap-ai/core 1.0.38-component-fields.19 → 1.0.38-component-fields.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.
@@ -9681,11 +9681,15 @@ class FieldInputClonerField extends CustomField {
9681
9681
  super(options, FieldInputCloner);
9682
9682
  }
9683
9683
  }
9684
- const previewImage$1 = "_previewImage_ebhyt_1";
9685
- const nameContainer = "_nameContainer_ebhyt_9";
9686
- const hasPreview = "_hasPreview_ebhyt_14";
9687
- const useEllipsis = "_useEllipsis_ebhyt_19";
9684
+ const displayFileContainer = "_displayFileContainer_1bb3a_1";
9685
+ const infoContainer = "_infoContainer_1bb3a_5";
9686
+ const previewImage$1 = "_previewImage_1bb3a_9";
9687
+ const nameContainer = "_nameContainer_1bb3a_19";
9688
+ const hasPreview = "_hasPreview_1bb3a_24";
9689
+ const useEllipsis = "_useEllipsis_1bb3a_29";
9688
9690
  const styles$4 = {
9691
+ displayFileContainer,
9692
+ infoContainer,
9689
9693
  previewImage: previewImage$1,
9690
9694
  nameContainer,
9691
9695
  hasPreview,
@@ -9830,7 +9834,7 @@ const DisplayFile = memo((props) => {
9830
9834
  },
9831
9835
  [name, resolvedFile]
9832
9836
  );
9833
- return /* @__PURE__ */ jsxs(Card, { children: [
9837
+ return /* @__PURE__ */ jsxs(Card, { className: styles$4.displayFileContainer, size: "1", children: [
9834
9838
  /* @__PURE__ */ jsx(Inset, { clip: "border-box", side: "top", pb: "0", children: url && /* @__PURE__ */ jsxs(Fragment, { children: [
9835
9839
  /* @__PURE__ */ jsx(
9836
9840
  "img",
@@ -9853,33 +9857,35 @@ const DisplayFile = memo((props) => {
9853
9857
  }
9854
9858
  )
9855
9859
  ] }) }),
9856
- /* @__PURE__ */ jsx(Flex, { style: { marginBottom: "calc(-1 * var(--space-1))" }, children: /* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
9857
- /* @__PURE__ */ jsxs(Flex, { className: classNames$1(styles$4.nameContainer, { [styles$4.hasPreview]: !!url }), gap: "1", children: [
9858
- /* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, children: name }),
9859
- /* @__PURE__ */ jsx(Text, { size: "1", children: size }),
9860
+ /* @__PURE__ */ jsx(Flex, { className: styles$4.infoContainer, children: /* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
9861
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", grow: "1", children: [
9862
+ /* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, size: "1", children: name }),
9863
+ /* @__PURE__ */ jsx(Text, { size: "1", children: `(${size})` }),
9860
9864
  error2 && /* @__PURE__ */ jsx(Text, { size: "1", severity: "danger", children: error2 })
9861
9865
  ] }),
9862
- /* @__PURE__ */ jsx(
9863
- IconButton,
9864
- {
9865
- variant: "soft",
9866
- "aria-label": `Download ${name}`,
9867
- onClick: handleDownload,
9868
- disabled: !resolvedFile,
9869
- children: /* @__PURE__ */ jsx(DownloadIcon, {})
9870
- }
9871
- ),
9872
- /* @__PURE__ */ jsx(
9873
- IconButton,
9874
- {
9875
- severity: "info",
9876
- variant: "soft",
9877
- "aria-label": `Remove ${name}`,
9878
- disabled,
9879
- onClick: onRemove,
9880
- children: /* @__PURE__ */ jsx(Cross1Icon, {})
9881
- }
9882
- )
9866
+ /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
9867
+ /* @__PURE__ */ jsx(
9868
+ IconButton,
9869
+ {
9870
+ variant: "ghost",
9871
+ "aria-label": `Download ${name}`,
9872
+ onClick: handleDownload,
9873
+ disabled: !resolvedFile,
9874
+ children: /* @__PURE__ */ jsx(DownloadIcon, {})
9875
+ }
9876
+ ),
9877
+ /* @__PURE__ */ jsx(
9878
+ IconButton,
9879
+ {
9880
+ severity: "info",
9881
+ variant: "ghost",
9882
+ "aria-label": `Remove ${name}`,
9883
+ disabled,
9884
+ onClick: onRemove,
9885
+ children: /* @__PURE__ */ jsx(Cross1Icon, {})
9886
+ }
9887
+ )
9888
+ ] })
9883
9889
  ] }) })
9884
9890
  ] });
9885
9891
  });