@photoroom/ui 0.1.689 → 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" })
@@ -60950,44 +60944,46 @@ var fDe = Object.assign(Q7, {
60950
60944
  })
60951
60945
  ]
60952
60946
  })
60953
- }), TDe = function({ placement: e = "default", variant: t = "default", title: n, subtitle: r, overline: i, cta: a, className: o, ...s }) {
60954
- let c = e === "side" || !!a, l = t === "on-dark", u = Te(r) ? !!r.props?.children : !!r;
60947
+ }), TDe = function({ placement: e = "default", variant: t = "default", emphasis: n = "regular", title: r, subtitle: i, overline: a, cta: o, className: s, ...c }) {
60948
+ let l = e === "side" || !!o, u = t === "on-dark", d = Te(i) ? !!i.props?.children : !!i;
60955
60949
  return /* @__PURE__ */ L("div", {
60956
60950
  className: U("mx-auto w-full max-w-[1200px]", "flex flex-col gap-4", {
60957
- "items-center text-center": !c,
60958
- "items-start text-start": c,
60959
- "text-content-white-primary": l
60960
- }, o),
60961
- ...s,
60951
+ "items-center text-center": !l,
60952
+ "items-start text-start": l,
60953
+ "text-content-white-primary": u
60954
+ }, s),
60955
+ ...c,
60962
60956
  children: [/* @__PURE__ */ L("div", {
60963
60957
  className: H("flex w-full flex-col gap-1", {
60964
- "items-center": !c,
60965
- "items-start": c
60958
+ "items-center": !l,
60959
+ "items-start": l
60966
60960
  }),
60967
- children: [!!i && /* @__PURE__ */ I("div", {
60961
+ children: [!!a && /* @__PURE__ */ I("div", {
60968
60962
  className: H("component-700 max-w-[760px]", {
60969
- "text-content-accent": !l,
60970
- "text-accent-300": l
60963
+ "text-content-accent": !u,
60964
+ "text-accent-300": u
60971
60965
  }),
60972
- children: i
60966
+ children: a
60973
60967
  }), /* @__PURE__ */ L("div", {
60974
- className: H("flex w-full items-start gap-4", "heading-thin-800 sm:heading-extra-thin-900", {
60975
- "justify-center": !c,
60976
- "justify-between": c
60968
+ className: H("flex w-full items-start gap-4", "heading-thin-800", {
60969
+ "sm:heading-extra-thin-900": n === "regular",
60970
+ "sm:heading-extra-thin-1100 lg:text-1500 lg:leading-none lg:-tracking-[0.0414em]": n === "high",
60971
+ "justify-center": !l,
60972
+ "justify-between": l
60977
60973
  }),
60978
60974
  children: [/* @__PURE__ */ I("h2", {
60979
- className: "w-full max-w-[760px] text-balance",
60980
- children: n
60981
- }), !!a && /* @__PURE__ */ I("div", {
60975
+ className: "w-full max-w-[760px] text-balance wrap-break-word",
60976
+ children: r
60977
+ }), !!o && /* @__PURE__ */ I("div", {
60982
60978
  className: "hidden h-lh items-center lg:inline-flex",
60983
- children: a
60979
+ children: o
60984
60980
  })]
60985
60981
  })]
60986
- }), u && /* @__PURE__ */ I("div", {
60987
- className: H("w-full max-w-[760px]", { "mx-auto flex justify-center": !c }),
60982
+ }), d && /* @__PURE__ */ I("div", {
60983
+ className: H("w-full max-w-[760px]", { "mx-auto flex justify-center": !l }),
60988
60984
  children: /* @__PURE__ */ I("div", {
60989
- className: H("body-light-600 sm:body-light-700 w-[clamp(80%,512px,100%)] text-pretty", l ? "text-content-white-secondary" : "text-content-secondary"),
60990
- children: r
60985
+ className: H("body-light-600 sm:body-light-700 w-[clamp(80%,512px,100%)] text-pretty", u ? "text-content-white-secondary" : "text-content-secondary"),
60986
+ children: i
60991
60987
  })
60992
60988
  })]
60993
60989
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.689",
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",