@photoroom/ui 0.1.631 → 0.1.632

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/index.mjs CHANGED
@@ -16327,7 +16327,7 @@ var cce = 3, lce = _se({ protocol: /^https$/ }).max(2048), uce = iS({
16327
16327
  productName: Qx().max(200),
16328
16328
  imageUrl: lce.optional(),
16329
16329
  toolKey: Qx().max(64),
16330
- dimension: Qx().max(64).optional()
16330
+ dimensionLabel: Qx().max(80).optional()
16331
16331
  });
16332
16332
  iS({
16333
16333
  v: Wse(1),
@@ -49941,17 +49941,21 @@ var Q4 = (e, t) => (n) => 100 * (n - e) / (t - e), $4 = [
49941
49941
  }, e.value))
49942
49942
  })] })]
49943
49943
  });
49944
- }, t3 = ({ fullscreen: e = !0, children: t, showOverlay: n, className: r, onDragEnter: i, onDragLeave: a, onDragOver: o, onDrop: s }) => {
49944
+ }, t3 = ({ fullscreen: e = !0, captureWindowEvents: t = e, children: n, showOverlay: r, className: i, onDragEnter: a, onDragLeave: o, onDragOver: s, onDrop: c }) => {
49945
+ let l = V(null), u = B((e) => {
49946
+ let t = "nativeEvent" in e ? e.nativeEvent : e;
49947
+ l.current !== t && (l.current = t, c(e));
49948
+ }, [c]);
49945
49949
  WH({
49946
- enabled: e,
49947
- onDragEnter: i
49950
+ enabled: t,
49951
+ onDragEnter: a
49948
49952
  }), WH({
49949
- enabled: e && n,
49950
- onDragOver: o,
49951
- onDrop: s,
49952
- onDragLeave: a
49953
+ enabled: t && r,
49954
+ onDragOver: s,
49955
+ onDrop: u,
49956
+ onDragLeave: o
49953
49957
  });
49954
- let c = /* @__PURE__ */ I(fc, { children: n && /* @__PURE__ */ I(iu.div, {
49958
+ let d = /* @__PURE__ */ I(fc, { children: r && /* @__PURE__ */ I(iu.div, {
49955
49959
  transition: {
49956
49960
  ease: "easeOut",
49957
49961
  duration: .2
@@ -49959,26 +49963,27 @@ var Q4 = (e, t) => (n) => 100 * (n - e) / (t - e), $4 = [
49959
49963
  initial: { opacity: 0 },
49960
49964
  animate: { opacity: 1 },
49961
49965
  exit: { opacity: 0 },
49962
- onDragLeave: a,
49963
- onDragOver: o,
49964
- onDrop: s,
49965
- className: H(e ? "fixed" : "absolute", "inset-0 z-20 *:pointer-events-none", r),
49966
- children: t
49967
- }) }), l = typeof document < "u" ? document.querySelector("body") : null;
49968
- return e && l ? Le.createPortal(c, l) : c;
49969
- }, n3 = ({ className: e, showOverlay: t, overlay: n, overlayClassName: r, children: i, onDrop: a, onDragEnter: o, onDragLeave: s, onDragOver: c }) => /* @__PURE__ */ L(_e, { children: [/* @__PURE__ */ I("div", {
49966
+ onDragLeave: t ? void 0 : o,
49967
+ onDragOver: s,
49968
+ onDrop: u,
49969
+ className: H(e ? "fixed" : "absolute", "inset-0 z-20 *:pointer-events-none", i),
49970
+ children: n
49971
+ }) }), f = typeof document < "u" ? document.querySelector("body") : null;
49972
+ return e && f ? Le.createPortal(d, f) : d;
49973
+ }, n3 = ({ className: e, showOverlay: t, captureWindowEvents: n, overlay: r, overlayClassName: i, children: a, onDrop: o, onDragEnter: s, onDragLeave: c, onDragOver: l }) => /* @__PURE__ */ L(_e, { children: [/* @__PURE__ */ I("div", {
49970
49974
  className: e,
49971
- onDragEnter: o,
49972
- children: i
49975
+ onDragEnter: s,
49976
+ children: a
49973
49977
  }), /* @__PURE__ */ I(t3, {
49974
49978
  fullscreen: !1,
49975
- className: r,
49979
+ captureWindowEvents: n,
49980
+ className: i,
49976
49981
  showOverlay: t,
49977
- onDragEnter: o,
49978
- onDragLeave: s,
49979
- onDragOver: c,
49980
- onDrop: a,
49981
- children: n
49982
+ onDragEnter: s,
49983
+ onDragLeave: c,
49984
+ onDragOver: l,
49985
+ onDrop: o,
49986
+ children: r
49982
49987
  })] }), Oye = ({ className: e, showOverlay: t, overlay: n, onDrop: r, onDragEnter: i, onDragLeave: a, onDragOver: o }) => /* @__PURE__ */ I(t3, {
49983
49988
  className: e,
49984
49989
  showOverlay: t,
@@ -50010,18 +50015,18 @@ var Q4 = (e, t) => (n) => 100 * (n - e) / (t - e), $4 = [
50010
50015
  })
50011
50016
  ]
50012
50017
  })
50013
- }), i3 = ({ showOverlay: e, className: t, title: n, description: r, tip: i, onDragEnter: a, onDragLeave: o, onDragOver: s, onDrop: c }) => /* @__PURE__ */ I(Oye, {
50018
+ }), i3 = ({ showOverlay: e, className: t, title: n, description: r, tip: i, overlay: a, onDragEnter: o, onDragLeave: s, onDragOver: c, onDrop: l }) => /* @__PURE__ */ I(Oye, {
50014
50019
  className: t,
50015
- overlay: /* @__PURE__ */ I(r3, {
50020
+ overlay: a ?? /* @__PURE__ */ I(r3, {
50016
50021
  title: n,
50017
50022
  description: r,
50018
50023
  tip: i
50019
50024
  }),
50020
50025
  showOverlay: e,
50021
- onDragEnter: a,
50022
- onDragLeave: o,
50023
- onDragOver: s,
50024
- onDrop: c
50026
+ onDragEnter: o,
50027
+ onDragLeave: s,
50028
+ onDragOver: c,
50029
+ onDrop: l
50025
50030
  }), a3 = ({ onChange: e, multiple: t = !1, directory: n = !1, accept: r, ref: i }) => /* @__PURE__ */ I("input", {
50026
50031
  accept: r?.join(",") || l_.join(","),
50027
50032
  "aria-hidden": !0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.631",
3
+ "version": "0.1.632",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [