@photoroom/ui 0.1.113 → 0.1.115
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/content/ProductTile/ProductTile.d.ts +3 -3
- package/components/content/ProductTile/ProductTile.d.ts.map +1 -1
- package/components/content/ProgressTimer/ProgressTimer.d.ts.map +1 -1
- package/components/content/VideoTile/VideoTile.d.ts +7 -4
- package/components/content/VideoTile/VideoTile.d.ts.map +1 -1
- package/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -4,11 +4,11 @@ type ProductTileProps = {
|
|
|
4
4
|
imageUrl?: string;
|
|
5
5
|
mediaCount: number;
|
|
6
6
|
onClick?: () => void;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
hasUnpublishedChanges?: boolean;
|
|
8
|
+
unpublishedChangesLabel: React.ReactNode;
|
|
9
9
|
sellScore?: SellScoreProps;
|
|
10
10
|
className?: string;
|
|
11
11
|
};
|
|
12
|
-
export declare const ProductTile: ({ title, imageUrl, sellScore, mediaCount, onClick,
|
|
12
|
+
export declare const ProductTile: ({ title, imageUrl, sellScore, mediaCount, onClick, hasUnpublishedChanges, unpublishedChangesLabel, className, }: ProductTileProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
export {};
|
|
14
14
|
//# sourceMappingURL=ProductTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductTile/ProductTile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,
|
|
1
|
+
{"version":3,"file":"ProductTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductTile/ProductTile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAK9D,KAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC;IACzC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,iHASzB,gBAAgB,4CAqBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressTimer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProgressTimer/ProgressTimer.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"ProgressTimer.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProgressTimer/ProgressTimer.tsx"],"names":[],"mappings":"AAIA,MAAM,MAAM,kBAAkB,GAAG;IAC/B,6EAA6E;IAC7E,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IAC5B;;;;;OAKG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;;OAKG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAqBF,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,WAAW,EACX,SAAS,GACV,EAAE,kBAAkB,2CAsHpB"}
|
|
@@ -6,9 +6,12 @@ export type VideoTileProps = {
|
|
|
6
6
|
sizeLabel?: string;
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
className?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
/**
|
|
10
|
+
* When provided the tile enters generating mode: controls are hidden and the
|
|
11
|
+
* node is rendered as an overlay. Pass a `<ProgressTimer />` here.
|
|
12
|
+
*/
|
|
13
|
+
loader?: React.ReactNode;
|
|
14
|
+
/** Blur the content behind the loader overlay. */
|
|
12
15
|
loadingBlur?: boolean;
|
|
13
16
|
/** Passed directly to `Tile.trailingTop` without wrapping — use when the caller already provides a fully-rendered menu node. Takes precedence over `moreMenu`. */
|
|
14
17
|
trailingTop?: React.ReactNode;
|
|
@@ -24,5 +27,5 @@ export type VideoTileProps = {
|
|
|
24
27
|
/** Label shown after the save button has been clicked. */
|
|
25
28
|
savedLabel?: string;
|
|
26
29
|
};
|
|
27
|
-
export declare function VideoTile({ contentStyle, label, showLabel, sizeLabel, children, className,
|
|
30
|
+
export declare function VideoTile({ contentStyle, label, showLabel, sizeLabel, children, className, loader, loadingBlur, trailingTop, moreMenu, isSelected, onSelectedChange, onClick, onSave, saveLabel, savedLabel, }: VideoTileProps): import("react/jsx-runtime").JSX.Element;
|
|
28
31
|
//# sourceMappingURL=VideoTile.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoTile/VideoTile.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"VideoTile.d.ts","sourceRoot":"","sources":["../../../../src/components/content/VideoTile/VideoTile.tsx"],"names":[],"mappings":"AASA,MAAM,MAAM,cAAc,GAAG;IAC3B,qDAAqD;IACrD,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,kDAAkD;IAClD,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,kKAAkK;IAClK,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,kGAAkG;IAClG,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAClD,kFAAkF;IAClF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,4CAA4C;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,wBAAgB,SAAS,CAAC,EACxB,YAAY,EACZ,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,UAAkB,EAClB,gBAAgB,EAChB,OAAO,EACP,MAAM,EACN,SAAkB,EAClB,UAAoB,GACrB,EAAE,cAAc,2CAiEhB"}
|
package/index.mjs
CHANGED
|
@@ -32845,7 +32845,7 @@ var rG = ({ checkerboard: e, cover: t, imageUrl: n, loading: r, bottomRightIcon:
|
|
|
32845
32845
|
mG.Label = fG, mG.Gauge = uG;
|
|
32846
32846
|
//#endregion
|
|
32847
32847
|
//#region src/components/status/UnpublishedStatus/UnpublishedStatus.tsx
|
|
32848
|
-
var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 items-center justify-center gap-1", {
|
|
32848
|
+
var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-center justify-center gap-1", {
|
|
32849
32849
|
variants: { background: {
|
|
32850
32850
|
true: "bg-background-subdued text-content-black-primary dark:bg-background-white px-2",
|
|
32851
32851
|
false: "text-content-primary"
|
|
@@ -32901,7 +32901,7 @@ var hG = U("rounded-300 component-semi-strong-300 inline-flex h-5 items-center j
|
|
|
32901
32901
|
className: "flex h-full w-full items-center justify-center",
|
|
32902
32902
|
children: /* @__PURE__ */ T(xe, { className: "text-content-tertiary icon-size-600" })
|
|
32903
32903
|
})
|
|
32904
|
-
}), yG = ({ title: e, imageUrl: t, sellScore: n, mediaCount: r, onClick: i,
|
|
32904
|
+
}), yG = ({ title: e, imageUrl: t, sellScore: n, mediaCount: r, onClick: i, hasUnpublishedChanges: a = !1, unpublishedChangesLabel: o, className: s }) => /* @__PURE__ */ E("div", {
|
|
32905
32905
|
onClick: i,
|
|
32906
32906
|
className: H("rounded-500 bg-surface-high relative flex cursor-pointer items-center justify-start gap-3 p-1 pr-9", "border-misc-hairline misc-border-size-hairline hover:border-misc-border-emphasized", "active:bg-background-subdued-down", s),
|
|
32907
32907
|
children: [/* @__PURE__ */ T(vG, {
|