@overmap-ai/core 1.0.38-component-fields.18 → 1.0.38-component-fields.19

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.
@@ -7722,15 +7722,15 @@ function withBreakpoints(value, classPrefix = "", valueMap) {
7722
7722
  }
7723
7723
  return classes.join(" ");
7724
7724
  }
7725
- const paddingValues = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
7725
+ const paddingValues$1 = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
7726
7726
  const paddingPropDefs = {
7727
- p: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7728
- px: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7729
- py: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7730
- pt: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7731
- pr: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7732
- pb: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7733
- pl: { type: "enum", values: paddingValues, default: void 0, responsive: true }
7727
+ p: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7728
+ px: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7729
+ py: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7730
+ pt: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7731
+ pr: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7732
+ pb: { type: "enum", values: paddingValues$1, default: void 0, responsive: true },
7733
+ pl: { type: "enum", values: paddingValues$1, default: void 0, responsive: true }
7734
7734
  };
7735
7735
  function extractPaddingProps(props) {
7736
7736
  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;
@@ -7871,6 +7871,26 @@ const flexPropDefs = {
7871
7871
  wrap: { type: "enum", values: wrapValues, default: void 0, responsive: true },
7872
7872
  gap: { type: "enum", values: gapValues, default: void 0, responsive: true }
7873
7873
  };
7874
+ const sides = ["all", "x", "y", "top", "bottom", "left", "right"];
7875
+ const clipValues = ["border-box", "padding-box"];
7876
+ const paddingValues = ["current", "0"];
7877
+ const insetPropDefs = {
7878
+ side: { type: "enum", values: sides, default: "all", responsive: true },
7879
+ clip: { type: "enum", values: clipValues, default: "border-box", responsive: true },
7880
+ p: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7881
+ px: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7882
+ py: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7883
+ pt: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7884
+ pr: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7885
+ pb: { type: "enum", values: paddingValues, default: void 0, responsive: true },
7886
+ pl: { type: "enum", values: paddingValues, default: void 0, responsive: true }
7887
+ };
7888
+ const Inset = React.forwardRef((props, forwardedRef) => {
7889
+ const { rest: marginRest, ...marginProps } = extractMarginProps(props);
7890
+ const { className, side = insetPropDefs.side.default, clip = insetPropDefs.clip.default, p, px, py, pt, pr, pb, pl, ...insetProps } = marginRest;
7891
+ return React.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)) });
7892
+ });
7893
+ Inset.displayName = "Inset";
7874
7894
  const sizes$4 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
7875
7895
  const headingPropDefs = {
7876
7896
  size: { type: "enum", values: sizes$4, default: "6", responsive: true },
@@ -9810,46 +9830,8 @@ const DisplayFile = memo((props) => {
9810
9830
  },
9811
9831
  [name, resolvedFile]
9812
9832
  );
9813
- return /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Flex, { direction: { initial: "column", sm: "row" }, gap: "3", justify: "between", children: [
9814
- /* @__PURE__ */ jsxs(Flex, { direction: "row", gap: "3", align: "center", grow: "1", shrink: "0", children: [
9815
- /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
9816
- /* @__PURE__ */ jsx(
9817
- IconButton,
9818
- {
9819
- variant: "soft",
9820
- "aria-label": `Download ${name}`,
9821
- onClick: handleDownload,
9822
- disabled: !resolvedFile,
9823
- children: /* @__PURE__ */ jsx(DownloadIcon, {})
9824
- }
9825
- ),
9826
- /* @__PURE__ */ jsx(
9827
- IconButton,
9828
- {
9829
- severity: "info",
9830
- variant: "soft",
9831
- "aria-label": `Remove ${name}`,
9832
- disabled,
9833
- onClick: onRemove,
9834
- children: /* @__PURE__ */ jsx(Cross1Icon, {})
9835
- }
9836
- )
9837
- ] }),
9838
- /* @__PURE__ */ jsxs(
9839
- Flex,
9840
- {
9841
- className: classNames$1(styles$4.nameContainer, { [styles$4.hasPreview]: !!url }),
9842
- direction: "column",
9843
- gap: "1",
9844
- children: [
9845
- /* @__PURE__ */ jsx(Text, { className: styles$4.useEllipsis, children: name }),
9846
- /* @__PURE__ */ jsx(Text, { size: "1", children: size }),
9847
- error2 && /* @__PURE__ */ jsx(Text, { size: "1", severity: "danger", children: error2 })
9848
- ]
9849
- }
9850
- )
9851
- ] }),
9852
- url && /* @__PURE__ */ jsxs(Fragment, { children: [
9833
+ return /* @__PURE__ */ jsxs(Card, { children: [
9834
+ /* @__PURE__ */ jsx(Inset, { clip: "border-box", side: "top", pb: "0", children: url && /* @__PURE__ */ jsxs(Fragment, { children: [
9853
9835
  /* @__PURE__ */ jsx(
9854
9836
  "img",
9855
9837
  {
@@ -9870,8 +9852,36 @@ const DisplayFile = memo((props) => {
9870
9852
  setShowPreview
9871
9853
  }
9872
9854
  )
9873
- ] })
9874
- ] }) });
9855
+ ] }) }),
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
+ error2 && /* @__PURE__ */ jsx(Text, { size: "1", severity: "danger", children: error2 })
9861
+ ] }),
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
+ )
9883
+ ] }) })
9884
+ ] });
9875
9885
  });
9876
9886
  DisplayFile.displayName = "DisplayFile";
9877
9887
  const emptyUploadField = {