@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/components/unsorted/FileUploader/DropZoneAreaWrapper.d.ts +2 -2
- package/components/unsorted/FileUploader/DropZoneAreaWrapper.d.ts.map +1 -1
- package/components/unsorted/FileUploader/DropZoneFullscreen/DropZoneFullscreen.d.ts +3 -1
- package/components/unsorted/FileUploader/DropZoneFullscreen/DropZoneFullscreen.d.ts.map +1 -1
- package/components/unsorted/FileUploader/DropZoneOverlayWrapper.d.ts +6 -1
- package/components/unsorted/FileUploader/DropZoneOverlayWrapper.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +36 -31
- package/package.json +1 -1
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
|
-
|
|
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,
|
|
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:
|
|
49947
|
-
onDragEnter:
|
|
49950
|
+
enabled: t,
|
|
49951
|
+
onDragEnter: a
|
|
49948
49952
|
}), WH({
|
|
49949
|
-
enabled:
|
|
49950
|
-
onDragOver:
|
|
49951
|
-
onDrop:
|
|
49952
|
-
onDragLeave:
|
|
49953
|
+
enabled: t && r,
|
|
49954
|
+
onDragOver: s,
|
|
49955
|
+
onDrop: u,
|
|
49956
|
+
onDragLeave: o
|
|
49953
49957
|
});
|
|
49954
|
-
let
|
|
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:
|
|
49963
|
-
onDragOver:
|
|
49964
|
-
onDrop:
|
|
49965
|
-
className: H(e ? "fixed" : "absolute", "inset-0 z-20 *:pointer-events-none",
|
|
49966
|
-
children:
|
|
49967
|
-
}) }),
|
|
49968
|
-
return e &&
|
|
49969
|
-
}, n3 = ({ className: e, showOverlay: t,
|
|
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:
|
|
49972
|
-
children:
|
|
49975
|
+
onDragEnter: s,
|
|
49976
|
+
children: a
|
|
49973
49977
|
}), /* @__PURE__ */ I(t3, {
|
|
49974
49978
|
fullscreen: !1,
|
|
49975
|
-
|
|
49979
|
+
captureWindowEvents: n,
|
|
49980
|
+
className: i,
|
|
49976
49981
|
showOverlay: t,
|
|
49977
|
-
onDragEnter:
|
|
49978
|
-
onDragLeave:
|
|
49979
|
-
onDragOver:
|
|
49980
|
-
onDrop:
|
|
49981
|
-
children:
|
|
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,
|
|
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:
|
|
50022
|
-
onDragLeave:
|
|
50023
|
-
onDragOver:
|
|
50024
|
-
onDrop:
|
|
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,
|