@photoroom/ui 0.1.177 → 0.1.178
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,6 +1,12 @@
|
|
|
1
1
|
import { type SellScoreProps } from "../../status/SellScore/types";
|
|
2
2
|
import { type ProductListItemStatusVariant } from "./ProductListItemStatus";
|
|
3
|
-
type
|
|
3
|
+
export type ProductListItemSelection = {
|
|
4
|
+
selected: boolean;
|
|
5
|
+
onSelectedChange: (selected: boolean) => void;
|
|
6
|
+
/** Accessible label for the selection checkbox, e.g. "Select Sienna Canvas Tote Bag". */
|
|
7
|
+
selectionLabel: string;
|
|
8
|
+
};
|
|
9
|
+
export type ProductListItemProps = {
|
|
4
10
|
title: string;
|
|
5
11
|
imageUrl?: string;
|
|
6
12
|
/** Translated count text, e.g. "4 images". */
|
|
@@ -18,14 +24,15 @@ type ProductListItemProps = {
|
|
|
18
24
|
sellScore?: SellScoreProps;
|
|
19
25
|
/** Accessible label for the empty listing-score slot, e.g. "No listing score". */
|
|
20
26
|
noListingScoreLabel: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
/**
|
|
28
|
+
* Selection cell on the left (checkbox). When omitted, the checkbox is
|
|
29
|
+
* not rendered and the row collapses the gap so the thumbnail sits flush
|
|
30
|
+
* with the row's left padding. Mirrors `ColumnHeader`'s `selection` prop.
|
|
31
|
+
*/
|
|
32
|
+
selection?: ProductListItemSelection;
|
|
25
33
|
/** Click handler for the whole row (e.g. open the product details page). */
|
|
26
34
|
onClick?: () => void;
|
|
27
35
|
className?: string;
|
|
28
36
|
};
|
|
29
|
-
export declare const ProductListItem: ({ title, imageUrl, imageCountLabel, status, statusLabel, unpublishedChangesLabel, sellScore, noListingScoreLabel,
|
|
30
|
-
export {};
|
|
37
|
+
export declare const ProductListItem: ({ title, imageUrl, imageCountLabel, status, statusLabel, unpublishedChangesLabel, sellScore, noListingScoreLabel, selection, onClick, className, }: ProductListItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
31
38
|
//# sourceMappingURL=ProductListItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,EAAyB,KAAK,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEnG,KAAK,oBAAoB,GAAG;
|
|
1
|
+
{"version":3,"file":"ProductListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAKnE,OAAO,EAAyB,KAAK,4BAA4B,EAAE,MAAM,yBAAyB,CAAC;AAEnG,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,yFAAyF;IACzF,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,oEAAoE;IACpE,MAAM,EAAE,4BAA4B,CAAC;IACrC,qEAAqE;IACrE,WAAW,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B;;;OAGG;IACH,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1C,6EAA6E;IAC7E,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,kFAAkF;IAClF,mBAAmB,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;IACrC,4EAA4E;IAC5E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,oJAY7B,oBAAoB,4CA+EtB,CAAC"}
|