@photoroom/ui 0.1.649 → 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.
@@ -1,9 +1,11 @@
1
1
  export type DialogSelectionThumbnailProps = Readonly<{
2
- /** Rendered in both stack layers, typically an `<img>` of the last selected item. */
2
+ /** The last selected item, typically an `<img>`. */
3
3
  image: React.ReactNode;
4
4
  /** Fans the stack out when more than one item is selected. */
5
5
  multiple?: boolean;
6
+ /** The item selected before `image`, shown on the back layer of the fanned-out stack. Falls back to `image`. */
7
+ previousImage?: React.ReactNode;
6
8
  className?: string;
7
9
  }>;
8
- export declare const DialogSelectionThumbnail: ({ image, multiple, className, }: DialogSelectionThumbnailProps) => import("react").JSX.Element;
10
+ export declare const DialogSelectionThumbnail: ({ image, multiple, previousImage, className, }: DialogSelectionThumbnailProps) => import("react").JSX.Element;
9
11
  //# sourceMappingURL=DialogSelectionThumbnail.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DialogSelectionThumbnail.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/BrowserDialog/DialogSelectionThumbnail.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC;IACnD,qFAAqF;IACrF,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,eAAO,MAAM,wBAAwB,oCAIlC,6BAA6B,gCAgB/B,CAAC"}
1
+ {"version":3,"file":"DialogSelectionThumbnail.d.ts","sourceRoot":"","sources":["../../../../src/components/dialog/BrowserDialog/DialogSelectionThumbnail.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAAC;IACnD,oDAAoD;IACpD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gHAAgH;IAChH,aAAa,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC,CAAC;AAEH,eAAO,MAAM,wBAAwB,mDAKlC,6BAA6B,gCAgB/B,CAAC"}
package/index.mjs CHANGED
@@ -36793,15 +36793,15 @@ var XJ = ({ className: e, children: t }) => /* @__PURE__ */ I("div", {
36793
36793
  className: "flex items-center gap-2",
36794
36794
  children: n
36795
36795
  })]
36796
- }), eY = ({ image: e, multiple: t = !1, className: n }) => {
36797
- 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");
36798
36798
  return /* @__PURE__ */ L("div", {
36799
- className: H("relative size-10", n),
36799
+ className: H("relative size-10", r),
36800
36800
  children: [/* @__PURE__ */ I("div", {
36801
- className: H(r, t && "-translate-x-0.5 -rotate-6"),
36802
- children: t && e
36801
+ className: H(i, t && "-translate-x-0.5 -rotate-6"),
36802
+ children: t && (n ?? e)
36803
36803
  }), /* @__PURE__ */ I("div", {
36804
- className: H(r, t && "translate-x-0.5 rotate-6"),
36804
+ className: H(i, t && "translate-x-0.5 rotate-6"),
36805
36805
  children: e
36806
36806
  })]
36807
36807
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.649",
3
+ "version": "0.1.650",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [