@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.
package/index.mjs CHANGED
@@ -34871,7 +34871,8 @@ var tK = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
34871
34871
  draft: "bg-content-camera-accent",
34872
34872
  active: "bg-content-positive",
34873
34873
  archived: "bg-misc-stack-layer-1",
34874
- unlisted: "bg-misc-ai-image"
34874
+ unlisted: "bg-misc-ai-image",
34875
+ unpublished: "misc-border-size-default border-content-tertiary"
34875
34876
  }, cK = ({ status: e, label: t }) => {
34876
34877
  let n = e === "none";
34877
34878
  return /* @__PURE__ */ L("div", {
@@ -34902,71 +34903,64 @@ var tK = W("rounded-300 component-semi-strong-300 inline-flex h-5 w-fit items-ce
34902
34903
  onKeyDown: f,
34903
34904
  children: [/* @__PURE__ */ L("div", {
34904
34905
  className: "flex items-center px-4 pt-3",
34905
- children: [
34906
- c && /* @__PURE__ */ I("span", {
34907
- className: "flex h-10 w-9 shrink-0 items-center justify-center",
34908
- onClick: p,
34909
- onKeyDown: p,
34910
- children: /* @__PURE__ */ I(KG, {
34911
- checked: c.selected,
34912
- onCheckedChange: (e) => c.onSelectedChange(e === !0),
34913
- "aria-label": c.selectionLabel
34914
- })
34915
- }),
34916
- c && /* @__PURE__ */ I("span", {
34917
- className: "w-5 shrink-0",
34918
- "aria-hidden": "true"
34919
- }),
34920
- /* @__PURE__ */ L("div", {
34921
- className: H("flex min-w-0 flex-1 items-center", c && "ps-3"),
34922
- children: [
34923
- /* @__PURE__ */ L("div", {
34924
- className: "flex min-w-60 flex-1 items-center gap-4 ps-3",
34925
- children: [/* @__PURE__ */ I(oK, {
34926
- size: "small",
34927
- bordered: !0,
34928
- imageUrl: t,
34929
- alt: e
34930
- }), /* @__PURE__ */ L("div", {
34931
- className: "flex min-w-0 flex-col items-start justify-center",
34932
- children: [/* @__PURE__ */ I("p", {
34933
- className: "component-500 font-600 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
34934
- children: e
34935
- }), a != null && /* @__PURE__ */ I(nK, {
34936
- background: !1,
34937
- children: a
34938
- })]
34906
+ children: [c && /* @__PURE__ */ I("span", {
34907
+ className: "flex h-10 w-9 shrink-0 items-center justify-center",
34908
+ onClick: p,
34909
+ onKeyDown: p,
34910
+ children: /* @__PURE__ */ I(KG, {
34911
+ checked: c.selected,
34912
+ onCheckedChange: (e) => c.onSelectedChange(e === !0),
34913
+ "aria-label": c.selectionLabel
34914
+ })
34915
+ }), /* @__PURE__ */ L("div", {
34916
+ className: "flex min-w-0 flex-1 items-center",
34917
+ children: [
34918
+ /* @__PURE__ */ L("div", {
34919
+ className: H("flex flex-1 items-center gap-4", c ? "min-w-68 ps-2" : "min-w-60 ps-3"),
34920
+ children: [/* @__PURE__ */ I(oK, {
34921
+ size: "small",
34922
+ bordered: !0,
34923
+ imageUrl: t,
34924
+ alt: e
34925
+ }), /* @__PURE__ */ L("div", {
34926
+ className: "flex min-w-0 flex-col items-start justify-center",
34927
+ children: [/* @__PURE__ */ I("p", {
34928
+ className: "component-500 text-content-primary line-clamp-2 max-w-full wrap-anywhere",
34929
+ children: e
34930
+ }), a != null && /* @__PURE__ */ I(nK, {
34931
+ background: !1,
34932
+ children: a
34939
34933
  })]
34940
- }),
34941
- /* @__PURE__ */ I("span", {
34942
- className: "component-500 text-content-tertiary w-[245px] min-w-40 truncate ps-3",
34943
- children: n
34944
- }),
34945
- /* @__PURE__ */ I(cK, {
34946
- status: r,
34947
- label: i
34948
- }),
34949
- /* @__PURE__ */ I("div", {
34950
- className: "w-[245px] min-w-40 ps-3",
34951
- children: o ? /* @__PURE__ */ I(eK, { ...o }) : /* @__PURE__ */ I("span", {
34952
- className: "component-500 text-content-tertiary",
34953
- "aria-label": s,
34954
- children: "-"
34955
- })
34934
+ })]
34935
+ }),
34936
+ /* @__PURE__ */ I("span", {
34937
+ className: "component-500 text-content-tertiary w-[245px] min-w-40 truncate ps-3",
34938
+ children: n
34939
+ }),
34940
+ /* @__PURE__ */ I(cK, {
34941
+ status: r,
34942
+ label: i
34943
+ }),
34944
+ /* @__PURE__ */ I("div", {
34945
+ className: "w-[245px] min-w-40 ps-3",
34946
+ children: o ? /* @__PURE__ */ I(eK, { ...o }) : /* @__PURE__ */ I("span", {
34947
+ className: "component-500 text-content-tertiary",
34948
+ "aria-label": s,
34949
+ children: "-"
34956
34950
  })
34957
- ]
34958
- })
34959
- ]
34951
+ })
34952
+ ]
34953
+ })]
34960
34954
  }), /* @__PURE__ */ I(ZH, {})]
34961
34955
  });
34962
- }, uK = ({ label: e, onClick: n, className: r, ref: i, ...a }) => /* @__PURE__ */ I("button", {
34956
+ }, uK = ({ label: e, reserveSelection: n, onClick: r, className: i, ref: a, ...o }) => /* @__PURE__ */ I("button", {
34963
34957
  type: "button",
34964
- onClick: n,
34965
- ...a,
34966
- ref: i,
34967
- className: U("group bg-surface-primary-elevated flex w-full items-center py-3 ps-4 text-start", "border-b border-transparent", "cursor-pointer outline-hidden transition-colors", "hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none disabled:opacity-30", r),
34958
+ onClick: r,
34959
+ ...o,
34960
+ ref: a,
34961
+ className: U("group bg-surface-primary-elevated flex w-full items-center py-3 ps-4 text-start", "border-b border-transparent", "cursor-pointer outline-hidden transition-colors", "hover:bg-background-borderless-subdued-hover focus-visible:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "disabled:pointer-events-none disabled:opacity-30", i),
34968
34962
  children: /* @__PURE__ */ L("span", {
34969
- className: "flex items-center gap-4 ps-3",
34963
+ className: H("flex items-center gap-4", n ? "ps-11" : "ps-3"),
34970
34964
  children: [/* @__PURE__ */ I("span", {
34971
34965
  className: H("rounded-300 flex size-16 shrink-0 items-center justify-center transition-colors", "bg-background-subdued group-hover:bg-background-subdued-hover group-focus-visible:bg-background-subdued-hover", "group-active:bg-background-subdued-down"),
34972
34966
  children: /* @__PURE__ */ I(t, { className: "icon-size-600 text-content-tertiary" })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.690",
3
+ "version": "0.1.691",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [
@@ -46,7 +46,6 @@
46
46
  "@radix-ui/react-dialog": "1.1.23",
47
47
  "@radix-ui/react-direction": "1.1.4",
48
48
  "@radix-ui/react-dropdown-menu": "2.1.24",
49
- "@radix-ui/react-menu": "2.1.24",
50
49
  "@radix-ui/react-navigation-menu": "1.2.22",
51
50
  "@radix-ui/react-popover": "1.1.23",
52
51
  "@radix-ui/react-progress": "1.1.16",