@photoroom/ui 0.1.648 → 0.1.650

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
@@ -36685,7 +36685,7 @@ var WJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(AJ, {
36685
36685
  className: U("misc-dialog-overlay mobile:p-4 fixed inset-0 z-50 h-screen w-screen overflow-y-auto p-6 supports-[height:100dvh]:h-dvh", "radix-state-closed:animate-dialog-overlay-leave radix-state-open:animate-dialog-overlay-enter", e),
36686
36686
  ...n,
36687
36687
  children: /* @__PURE__ */ I("div", {
36688
- className: "grid h-full min-h-full place-items-center",
36688
+ className: "grid h-full min-h-full grid-rows-[minmax(0,1fr)] place-items-center",
36689
36689
  children: t
36690
36690
  })
36691
36691
  }), qJ = /* @__PURE__ */ Zee({
@@ -36724,7 +36724,7 @@ var WJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(AJ, {
36724
36724
  asChild: !0,
36725
36725
  children: r
36726
36726
  }), /* @__PURE__ */ I(hJ, { children: /* @__PURE__ */ I(KJ, { children: /* @__PURE__ */ L(GJ, {
36727
- className: U("flex h-fit w-full max-w-120 flex-col gap-6 p-6", d),
36727
+ className: U("flex h-fit max-h-full w-full max-w-120 flex-col gap-6 p-6", d),
36728
36728
  "data-testid": f,
36729
36729
  onEscapeKeyDown: l,
36730
36730
  onPointerDownOutside: u,
@@ -36739,7 +36739,10 @@ var WJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ I(AJ, {
36739
36739
  children: a
36740
36740
  })]
36741
36741
  }),
36742
- p,
36742
+ p && /* @__PURE__ */ I("div", {
36743
+ className: "-m-1 flex min-h-0 flex-col gap-6 overflow-y-auto p-1",
36744
+ children: p
36745
+ }),
36743
36746
  o,
36744
36747
  !s && /* @__PURE__ */ I("div", {
36745
36748
  className: "absolute inset-e-3 top-3",
@@ -36790,23 +36793,23 @@ var XJ = ({ className: e, children: t }) => /* @__PURE__ */ I("div", {
36790
36793
  className: "flex items-center gap-2",
36791
36794
  children: n
36792
36795
  })]
36793
- }), eY = ({ image: e, multiple: t = !1, className: n }) => {
36794
- let r = H("bg-surface-high absolute inset-1 overflow-hidden", "border-misc-hairline misc-border-size-hairline rounded-200 border", "transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)]", "[&_img]:size-full [&_img]:object-cover");
36796
+ }), eY = ({ image: e, multiple: t = !1, previousImage: n, className: r }) => {
36797
+ let i = H("bg-surface-high absolute inset-1 overflow-hidden", "border-misc-hairline misc-border-size-hairline rounded-200 border", "transition-transform duration-300 ease-[cubic-bezier(0.2,0,0,1)]", "[&_img]:size-full [&_img]:object-cover");
36795
36798
  return /* @__PURE__ */ L("div", {
36796
- className: H("relative size-10", n),
36799
+ className: H("relative size-10", r),
36797
36800
  children: [/* @__PURE__ */ I("div", {
36798
- className: H(r, t && "-translate-x-0.5 -rotate-6"),
36799
- children: t && e
36801
+ className: H(i, t && "-translate-x-0.5 -rotate-6"),
36802
+ children: t && (n ?? e)
36800
36803
  }), /* @__PURE__ */ I("div", {
36801
- className: H(r, t && "translate-x-0.5 rotate-6"),
36804
+ className: H(i, t && "translate-x-0.5 rotate-6"),
36802
36805
  children: e
36803
36806
  })]
36804
36807
  });
36805
36808
  }, tY = W("flex flex-col overflow-hidden", {
36806
36809
  variants: { size: {
36807
- small: "h-fit max-h-180 max-w-120",
36808
- medium: "h-fit max-h-160 max-w-180",
36809
- large: "h-fit max-h-244 max-w-256"
36810
+ small: "h-fit max-h-[min(720px,100%)] max-w-120",
36811
+ medium: "h-fit max-h-[min(640px,100%)] max-w-180",
36812
+ large: "h-fit max-h-[min(976px,100%)] max-w-256"
36810
36813
  } },
36811
36814
  defaultVariants: { size: "small" }
36812
36815
  }), nY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, header: i, accessory: a, footer: o, size: s, hideCloseButton: c = !1, closeButtonLabel: l, onEscapeKeyDown: u, onPointerDownOutside: d, className: f, contentClassName: p, testId: m, children: h }) => /* @__PURE__ */ L(lJ, {
@@ -37379,7 +37382,7 @@ var bY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, visual: i, tit
37379
37382
  children: r
37380
37383
  }), /* @__PURE__ */ I(hJ, { children: /* @__PURE__ */ I(KJ, { children: /* @__PURE__ */ L(GJ, {
37381
37384
  ref: g,
37382
- className: U("flex h-fit w-full max-w-160 flex-col", m),
37385
+ className: U("flex h-fit max-h-full w-full max-w-160 flex-col", m),
37383
37386
  "data-testid": h,
37384
37387
  onEscapeKeyDown: f,
37385
37388
  onPointerDownOutside: p,
@@ -37392,7 +37395,7 @@ var bY = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, visual: i, tit
37392
37395
  children: i
37393
37396
  }),
37394
37397
  /* @__PURE__ */ L("div", {
37395
- className: "flex flex-col items-center gap-6 p-6",
37398
+ className: "flex min-h-0 flex-col items-center gap-6 overflow-y-auto p-6",
37396
37399
  children: [/* @__PURE__ */ L("div", {
37397
37400
  className: "flex w-full flex-col items-center gap-3 text-center",
37398
37401
  children: [/* @__PURE__ */ I(EJ, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.648",
3
+ "version": "0.1.650",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [