@photoroom/ui 0.1.720 → 0.1.721

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
@@ -33787,10 +33787,10 @@ var qW = W("group/checkbox-indicator rounded-200 relative flex h-5 w-5 shrink-0
33787
33787
  QW.displayName = "CheckboxPullDown";
33788
33788
  //#endregion
33789
33789
  //#region src/components/content/ColumnHeader/ColumnHeader.tsx
33790
- var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r, statusLabel: i, listingScoreLabel: a, className: o }) => {
33791
- let s = !e && t ? "min-w-[308px]" : "min-w-60";
33790
+ var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r, statusLabel: i, showStatus: a = !0, listingScoreLabel: o, className: s }) => {
33791
+ let c = !e && t ? "min-w-[308px]" : "min-w-60";
33792
33792
  return /* @__PURE__ */ L("div", {
33793
- className: U("bg-surface-primary-elevated flex flex-col gap-2 pt-2", o),
33793
+ className: U("bg-surface-primary-elevated flex flex-col gap-2 pt-2", s),
33794
33794
  children: [/* @__PURE__ */ L("div", {
33795
33795
  className: "flex items-center px-4",
33796
33796
  children: [e && /* @__PURE__ */ I(QW, {
@@ -33804,7 +33804,7 @@ var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r,
33804
33804
  className: H("flex min-w-0 flex-1 items-center", e && "ps-3"),
33805
33805
  children: [
33806
33806
  /* @__PURE__ */ I(eG, {
33807
- className: H("flex-1", s),
33807
+ className: H("flex-1", c),
33808
33808
  first: !0,
33809
33809
  children: n
33810
33810
  }),
@@ -33812,13 +33812,13 @@ var $W = ({ selection: e, reserveSelection: t, productLabel: n, imagesLabel: r,
33812
33812
  className: "w-[245px] min-w-40",
33813
33813
  children: r
33814
33814
  }),
33815
- /* @__PURE__ */ I(eG, {
33815
+ a && /* @__PURE__ */ I(eG, {
33816
33816
  className: "w-[245px] min-w-40",
33817
33817
  children: i
33818
33818
  }),
33819
33819
  /* @__PURE__ */ I(eG, {
33820
33820
  className: "w-[245px] min-w-40",
33821
- children: a
33821
+ children: o
33822
33822
  })
33823
33823
  ]
33824
33824
  })]
@@ -34987,38 +34987,38 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
34987
34987
  children: t
34988
34988
  })]
34989
34989
  });
34990
- }, sK = ({ title: e, imageUrl: t, imageCountLabel: n, status: r, statusLabel: i, unpublishedChangesLabel: a, sellScore: o, noListingScoreLabel: s, selection: c, onClick: l, className: u }) => {
34991
- let d = !!l, f = (e) => {
34992
- d && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), l?.());
34993
- }, p = (e) => {
34990
+ }, sK = ({ title: e, imageUrl: t, imageCountLabel: n, status: r, statusLabel: i, showStatus: a = !0, unpublishedChangesLabel: o, sellScore: s, noListingScoreLabel: c, selection: l, onClick: u, className: d }) => {
34991
+ let f = !!u, p = (e) => {
34992
+ f && e.target === e.currentTarget && (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u?.());
34993
+ }, m = (e) => {
34994
34994
  e.stopPropagation();
34995
34995
  };
34996
34996
  return /* @__PURE__ */ L("div", {
34997
- className: U("bg-surface-primary-elevated flex flex-col gap-3", d && [
34998
- "hover:bg-background-subdued-down cursor-pointer",
34997
+ className: U("bg-surface-primary-elevated flex flex-col gap-3", f && [
34998
+ "hover:bg-background-borderless-subdued-hover active:bg-background-borderless-subdued-down cursor-pointer",
34999
34999
  "outline-hidden transition-colors",
35000
35000
  "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring"
35001
- ], u),
35002
- role: d ? "button" : void 0,
35003
- tabIndex: d ? 0 : void 0,
35004
- onClick: l,
35005
- onKeyDown: f,
35001
+ ], d),
35002
+ role: f ? "button" : void 0,
35003
+ tabIndex: f ? 0 : void 0,
35004
+ onClick: u,
35005
+ onKeyDown: p,
35006
35006
  children: [/* @__PURE__ */ L("div", {
35007
35007
  className: "flex items-center px-4 pt-3",
35008
- children: [c && /* @__PURE__ */ I("span", {
35008
+ children: [l && /* @__PURE__ */ I("span", {
35009
35009
  className: "flex h-10 w-9 shrink-0 items-center justify-center",
35010
- onClick: p,
35011
- onKeyDown: p,
35010
+ onClick: m,
35011
+ onKeyDown: m,
35012
35012
  children: /* @__PURE__ */ I(WG, {
35013
- checked: c.selected,
35014
- onCheckedChange: (e) => c.onSelectedChange(e === !0),
35015
- "aria-label": c.selectionLabel
35013
+ checked: l.selected,
35014
+ onCheckedChange: (e) => l.onSelectedChange(e === !0),
35015
+ "aria-label": l.selectionLabel
35016
35016
  })
35017
35017
  }), /* @__PURE__ */ L("div", {
35018
35018
  className: "flex min-w-0 flex-1 items-center",
35019
35019
  children: [
35020
35020
  /* @__PURE__ */ L("div", {
35021
- className: H("flex flex-1 items-center gap-4", c ? "min-w-68 ps-2" : "min-w-60 ps-3"),
35021
+ className: H("flex flex-1 items-center gap-4", l ? "min-w-68 ps-2" : "min-w-60 ps-3"),
35022
35022
  children: [/* @__PURE__ */ I(iK, {
35023
35023
  size: "small",
35024
35024
  bordered: !0,
@@ -35029,9 +35029,9 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
35029
35029
  children: [/* @__PURE__ */ I("p", {
35030
35030
  className: "component-500 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
35031
35031
  children: e
35032
- }), a != null && /* @__PURE__ */ I(eK, {
35032
+ }), o != null && /* @__PURE__ */ I(eK, {
35033
35033
  background: !1,
35034
- children: a
35034
+ children: o
35035
35035
  })]
35036
35036
  })]
35037
35037
  }),
@@ -35039,15 +35039,15 @@ var $G = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
35039
35039
  className: "component-500 text-content-tertiary w-[245px] min-w-40 truncate ps-3",
35040
35040
  children: n
35041
35041
  }),
35042
- /* @__PURE__ */ I(oK, {
35042
+ a && /* @__PURE__ */ I(oK, {
35043
35043
  status: r,
35044
35044
  label: i
35045
35045
  }),
35046
35046
  /* @__PURE__ */ I("div", {
35047
35047
  className: "w-[245px] min-w-40 ps-3",
35048
- children: o ? /* @__PURE__ */ I(QG, { ...o }) : /* @__PURE__ */ I("span", {
35048
+ children: s ? /* @__PURE__ */ I(QG, { ...s }) : /* @__PURE__ */ I("span", {
35049
35049
  className: "component-500 text-content-tertiary",
35050
- "aria-label": s,
35050
+ "aria-label": c,
35051
35051
  children: "-"
35052
35052
  })
35053
35053
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.720",
3
+ "version": "0.1.721",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [