@photoroom/ui 0.1.690 → 0.1.691

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 +1 @@
1
- {"version":3,"file":"ProductListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItem.tsx"],"names":[],"mappings":"AAMA,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,8DAA8D;IAC9D,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,uJAYzB,oBAAoB,gCAuFtB,CAAC"}
1
+ {"version":3,"file":"ProductListItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItem.tsx"],"names":[],"mappings":"AAMA,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,8DAA8D;IAC9D,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,uJAYzB,oBAAoB,gCA4FtB,CAAC"}
@@ -1,8 +1,10 @@
1
- export type ProductListItemStatusVariant = "draft" | "active" | "archived" | "unlisted" | "none";
1
+ export type ProductListItemStatusVariant = "draft" | "active" | "archived" | "unlisted" | "unpublished" | "none";
2
2
  export type ProductListItemStatusProps = {
3
3
  /**
4
- * Status variant — drives the dot color. `none` renders only the (tertiary)
5
- * label and no dot, for products that don't (yet) have a platform status.
4
+ * Status variant — drives the dot color. `unpublished` renders a hollow ring,
5
+ * for products that aren't published to a store. `none` renders only the
6
+ * (tertiary) label and no dot, for products that don't (yet) have a platform
7
+ * status.
6
8
  */
7
9
  status: ProductListItemStatusVariant;
8
10
  /** Translated status label, e.g. "Draft" or "Unpublished". */
@@ -1 +1 @@
1
- {"version":3,"file":"ProductListItemStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItemStatus.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,4BAA4B,GAAG,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC;AASjG,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;OAGG;IACH,MAAM,EAAE,4BAA4B,CAAC;IACrC,8DAA8D;IAC9D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,sBAAuB,0BAA0B,gCAoBlF,CAAC"}
1
+ {"version":3,"file":"ProductListItemStatus.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListItemStatus.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,4BAA4B,GACpC,OAAO,GACP,QAAQ,GACR,UAAU,GACV,UAAU,GACV,aAAa,GACb,MAAM,CAAC;AAUX,MAAM,MAAM,0BAA0B,GAAG;IACvC;;;;;OAKG;IACH,MAAM,EAAE,4BAA4B,CAAC;IACrC,8DAA8D;IAC9D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,sBAAuB,0BAA0B,gCAoBlF,CAAC"}
@@ -1,10 +1,16 @@
1
1
  export type ProductListNewItemProps = {
2
2
  /** Translated call to action, e.g. "Add product". */
3
3
  label: string;
4
+ /**
5
+ * Line the add square up with the thumbnail of a `ProductListItem` that has
6
+ * `selection`, for lists whose rows carry a checkbox. Same meaning as
7
+ * `ColumnHeader`'s `reserveSelection`.
8
+ */
9
+ reserveSelection?: boolean;
4
10
  onClick: () => void;
5
11
  className?: string;
6
12
  } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onClick" | "type" | "children"> & React.RefAttributes<HTMLButtonElement>;
7
- export declare function ProductListNewItem({ label, onClick, className, ref, ...props }: ProductListNewItemProps): import("react").JSX.Element;
13
+ export declare function ProductListNewItem({ label, reserveSelection, onClick, className, ref, ...props }: ProductListNewItemProps): import("react").JSX.Element;
8
14
  export declare namespace ProductListNewItem {
9
15
  var displayName: string;
10
16
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ProductListNewItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListNewItem.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,uBAAuB,GAAG;IACpC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC,GACtF,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;2CAEN,EACjC,KAAK,EACL,OAAO,EACP,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,uBAAuB"}
1
+ {"version":3,"file":"ProductListNewItem.d.ts","sourceRoot":"","sources":["../../../../src/components/content/ProductListItem/ProductListNewItem.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,uBAAuB,GAAG;IACpC,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,UAAU,CAAC,GACtF,KAAK,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;2CAEN,EACjC,KAAK,EACL,gBAAgB,EAChB,OAAO,EACP,SAAS,EACT,GAAG,EACH,GAAG,KAAK,EACT,EAAE,uBAAuB"}