@overmap-ai/core 1.0.38-component-fields.18 → 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.
@@ -7718,15 +7718,15 @@ var __publicField = (obj, key, value) => {
7718
7718
  }
7719
7719
  return classes.join(" ");
7720
7720
  }
7721
- const paddingValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
7721
+ const paddingValues$1 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
7722
7722
  const paddingPropDefs = {
7723
- p: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7724
- px: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7725
- py: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7726
- pt: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7727
- pr: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7728
- pb: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7729
- pl: { type: "enum", values: paddingValues, default: void 0, responsive: true }
7723
+ p: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7724
+ px: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7725
+ py: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7726
+ pt: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7727
+ pr: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7728
+ pb: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7729
+ pl: { type: "enum", values: paddingValues$1, default: void 0, responsive: true }
7730
7730
  };
7731
7731
  function extractPaddingProps(props) {
7732
7732
  const { p = layoutPropDefs.p.default, px = layoutPropDefs.px.default, py = layoutPropDefs.py.default, pt = layoutPropDefs.pt.default, pr = layoutPropDefs.pr.default, pb = layoutPropDefs.pb.default, pl = layoutPropDefs.pl.default, ...rest } = props;
@@ -7867,6 +7867,26 @@ var __publicField = (obj, key, value) => {
7867
7867
  wrap: { type: "enum", values: wrapValues, default: void 0, responsive: true },
7868
7868
  gap: { type: "enum", values: gapValues, default: void 0, responsive: true }
7869
7869
  };
7870
+ const sides = ["all", "x", "y", "top", "bottom", "left", "right"];
7871
+ const clipValues = ["border-box", "padding-box"];
7872
+ const paddingValues = ["current", "0"];
7873
+ const insetPropDefs = {
7874
+ side: { type: "enum", values: sides, default: "all", responsive: true },
7875
+ clip: { type: "enum", values: clipValues, default: "border-box", responsive: true },
7876
+ p: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7877
+ px: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7878
+ py: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7879
+ pt: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7880
+ pr: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7881
+ pb: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7882
+ pl: { type: "enum", values: paddingValues, default: void 0, responsive: true }
7883
+ };
7884
+ const Inset = React__namespace.forwardRef((props, forwardedRef) => {
7885
+ const { rest: marginRest, ...marginProps } = extractMarginProps(props);
7886
+ const { className, side = insetPropDefs.side.default, clip = insetPropDefs.clip.default, p, px, py, pt, pr, pb, pl, ...insetProps } = marginRest;
7887
+ return React__namespace.createElement("div", { ...insetProps, ref: forwardedRef, className: classNames("rt-Inset", className, withBreakpoints(side, "rt-r-side"), withBreakpoints(clip, "rt-r-clip"), withBreakpoints(p, "rt-r-p"), withBreakpoints(px, "rt-r-px"), withBreakpoints(py, "rt-r-py"), withBreakpoints(pt, "rt-r-pt"), withBreakpoints(pr, "rt-r-pr"), withBreakpoints(pb, "rt-r-pb"), withBreakpoints(pl, "rt-r-pl"), withMarginProps(marginProps)) });
7888
+ });
7889
+ Inset.displayName = "Inset";
7870
7890
  const sizes$4 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
7871
7891
  const headingPropDefs = {
7872
7892
  size: { type: "enum", values: sizes$4, default: "6", responsive: true },
@@ -9657,10 +9677,10 @@ var __publicField = (obj, key, value) => {
9657
9677
  super(options, FieldInputCloner);
9658
9678
  }
9659
9679
  }
9660
- const previewImage$1 = "_previewImage_ebhyt_1";
9661
- const nameContainer = "_nameContainer_ebhyt_9";
9662
- const hasPreview = "_hasPreview_ebhyt_14";
9663
- const useEllipsis = "_useEllipsis_ebhyt_19";
9680
+ const previewImage$1 = "_previewImage_1piva_1";
9681
+ const nameContainer = "_nameContainer_1piva_11";
9682
+ const hasPreview = "_hasPreview_1piva_16";
9683
+ const useEllipsis = "_useEllipsis_1piva_21";
9664
9684
  const styles$4 = {
9665
9685
  previewImage: previewImage$1,
9666
9686
  nameContainer,
@@ -9806,9 +9826,36 @@ var __publicField = (obj, key, value) => {
9806
9826
  },
9807
9827
  [name, resolvedFile]
9808
9828
  );
9809
- return /* @__PURE__ */ jsxRuntime.jsx(Card, { children: /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { direction: { initial: "column", sm: "row" }, gap: "3", justify: "between", children: [
9810
- /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { direction: "row", gap: "3", align: "center", grow: "1", shrink: "0", children: [
9811
- /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { direction: "column", gap: "2", children: [
9829
+ return /* @__PURE__ */ jsxRuntime.jsxs(Card, { style: { width: "100%" }, size: "1", children: [
9830
+ /* @__PURE__ */ jsxRuntime.jsx(Inset, { clip: "border-box", side: "top", pb: "0", children: url && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9831
+ /* @__PURE__ */ jsxRuntime.jsx(
9832
+ "img",
9833
+ {
9834
+ className: styles$4.previewImage,
9835
+ src: url,
9836
+ alt: name,
9837
+ onClick: () => {
9838
+ setShowPreview(true);
9839
+ }
9840
+ }
9841
+ ),
9842
+ showPreview && /* @__PURE__ */ jsxRuntime.jsx(
9843
+ FullScreenImagePreview,
9844
+ {
9845
+ file: resolvedFile,
9846
+ url,
9847
+ name,
9848
+ setShowPreview
9849
+ }
9850
+ )
9851
+ ] }) }),
9852
+ /* @__PURE__ */ jsxRuntime.jsx(blocks.Flex, { style: { marginBottom: "calc(-1 * var(--space-1))" }, children: /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { align: "center", width: "100%", children: [
9853
+ /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { align: "center", grow: "1", children: [
9854
+ /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { className: styles$4.useEllipsis, size: "1", children: name }),
9855
+ /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { size: "1", children: size }),
9856
+ error2 && /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { size: "1", severity: "danger", children: error2 })
9857
+ ] }),
9858
+ /* @__PURE__ */ jsxRuntime.jsxs(blocks.Flex, { align: "center", gap: "2", children: [
9812
9859
  /* @__PURE__ */ jsxRuntime.jsx(
9813
9860
  blocks.IconButton,
9814
9861
  {
@@ -9830,44 +9877,9 @@ var __publicField = (obj, key, value) => {
9830
9877
  children: /* @__PURE__ */ jsxRuntime.jsx(Cross1Icon, {})
9831
9878
  }
9832
9879
  )
9833
- ] }),
9834
- /* @__PURE__ */ jsxRuntime.jsxs(
9835
- blocks.Flex,
9836
- {
9837
- className: classNames$1(styles$4.nameContainer, { [styles$4.hasPreview]: !!url }),
9838
- direction: "column",
9839
- gap: "1",
9840
- children: [
9841
- /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { className: styles$4.useEllipsis, children: name }),
9842
- /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { size: "1", children: size }),
9843
- error2 && /* @__PURE__ */ jsxRuntime.jsx(blocks.Text, { size: "1", severity: "danger", children: error2 })
9844
- ]
9845
- }
9846
- )
9847
- ] }),
9848
- url && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
9849
- /* @__PURE__ */ jsxRuntime.jsx(
9850
- "img",
9851
- {
9852
- className: styles$4.previewImage,
9853
- src: url,
9854
- alt: name,
9855
- onClick: () => {
9856
- setShowPreview(true);
9857
- }
9858
- }
9859
- ),
9860
- showPreview && /* @__PURE__ */ jsxRuntime.jsx(
9861
- FullScreenImagePreview,
9862
- {
9863
- file: resolvedFile,
9864
- url,
9865
- name,
9866
- setShowPreview
9867
- }
9868
- )
9869
- ] })
9870
- ] }) });
9880
+ ] })
9881
+ ] }) })
9882
+ ] });
9871
9883
  });
9872
9884
  DisplayFile.displayName = "DisplayFile";
9873
9885
  const emptyUploadField = {