@overmap-ai/core 1.0.38-component-fields.20 → 1.0.38-component-fields.22
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 +15 -11
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +15 -11
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/style.css +17 -9
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -9681,14 +9681,18 @@ class FieldInputClonerField extends CustomField {
|
|
|
9681
9681
|
super(options, FieldInputCloner);
|
|
9682
9682
|
}
|
|
9683
9683
|
}
|
|
9684
|
-
const
|
|
9685
|
-
const
|
|
9686
|
-
const
|
|
9687
|
-
const
|
|
9684
|
+
const displayFileContainer = "_displayFileContainer_11gl2_1";
|
|
9685
|
+
const infoContainer = "_infoContainer_11gl2_6";
|
|
9686
|
+
const previewImage$1 = "_previewImage_11gl2_10";
|
|
9687
|
+
const fileSizeText = "_fileSizeText_11gl2_20";
|
|
9688
|
+
const nameContainer = "_nameContainer_11gl2_25";
|
|
9689
|
+
const useEllipsis = "_useEllipsis_11gl2_29";
|
|
9688
9690
|
const styles$4 = {
|
|
9691
|
+
displayFileContainer,
|
|
9692
|
+
infoContainer,
|
|
9689
9693
|
previewImage: previewImage$1,
|
|
9694
|
+
fileSizeText,
|
|
9690
9695
|
nameContainer,
|
|
9691
|
-
hasPreview,
|
|
9692
9696
|
useEllipsis
|
|
9693
9697
|
};
|
|
9694
9698
|
const convertBytesToLargestUnit = (bytes) => {
|
|
@@ -9830,7 +9834,7 @@ const DisplayFile = memo((props) => {
|
|
|
9830
9834
|
},
|
|
9831
9835
|
[name, resolvedFile]
|
|
9832
9836
|
);
|
|
9833
|
-
return /* @__PURE__ */ jsxs(Card, {
|
|
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,17 +9857,17 @@ const DisplayFile = memo((props) => {
|
|
|
9853
9857
|
}
|
|
9854
9858
|
)
|
|
9855
9859
|
] }) }),
|
|
9856
|
-
/* @__PURE__ */ jsx(Flex, {
|
|
9857
|
-
/* @__PURE__ */ jsxs(Flex, { align: "center", grow: "1", children: [
|
|
9860
|
+
/* @__PURE__ */ jsx(Flex, { className: styles$4.infoContainer, children: /* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
|
|
9861
|
+
/* @__PURE__ */ jsxs(Flex, { className: styles$4.nameContainer, align: "center", gap: "1", grow: "1", children: [
|
|
9858
9862
|
/* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, size: "1", children: name }),
|
|
9859
|
-
/* @__PURE__ */ jsx(Text, { size: "1", children: size }),
|
|
9863
|
+
/* @__PURE__ */ jsx(Text, { size: "1", className: styles$4.fileSizeText, children: `(${size})` }),
|
|
9860
9864
|
error2 && /* @__PURE__ */ jsx(Text, { size: "1", severity: "danger", children: error2 })
|
|
9861
9865
|
] }),
|
|
9862
9866
|
/* @__PURE__ */ jsxs(Flex, { align: "center", gap: "2", children: [
|
|
9863
9867
|
/* @__PURE__ */ jsx(
|
|
9864
9868
|
IconButton,
|
|
9865
9869
|
{
|
|
9866
|
-
variant: "
|
|
9870
|
+
variant: "ghost",
|
|
9867
9871
|
"aria-label": `Download ${name}`,
|
|
9868
9872
|
onClick: handleDownload,
|
|
9869
9873
|
disabled: !resolvedFile,
|
|
@@ -9874,7 +9878,7 @@ const DisplayFile = memo((props) => {
|
|
|
9874
9878
|
IconButton,
|
|
9875
9879
|
{
|
|
9876
9880
|
severity: "info",
|
|
9877
|
-
variant: "
|
|
9881
|
+
variant: "ghost",
|
|
9878
9882
|
"aria-label": `Remove ${name}`,
|
|
9879
9883
|
disabled,
|
|
9880
9884
|
onClick: onRemove,
|