@photoroom/ui 0.1.364 → 0.1.366

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
@@ -33014,13 +33014,13 @@ var cq = G(U("relative flex w-full overflow-hidden text-start outline-hidden", "
33014
33014
  className: "component-400 text-content-secondary line-clamp-2",
33015
33015
  children: r
33016
33016
  }) : null]
33017
- }), dq = ({ onClick: r, label: i, imageSrc: a, videoSrc: o, posterSrc: s, subtitle: c, badgeLabel: l, density: u = "regular", className: d, ...f }) => /* @__PURE__ */ n("button", {
33017
+ }), dq = ({ onClick: r, label: i, imageSrc: a, videoSrc: o, posterSrc: s, subtitle: c, badgeLabel: l, badgeVariant: u = "pro", density: d = "regular", className: f, ...p }) => /* @__PURE__ */ n("button", {
33018
33018
  type: "button",
33019
- className: W(cq({ density: u }), d),
33019
+ className: W(cq({ density: d }), f),
33020
33020
  onClick: r,
33021
- ...f,
33021
+ ...p,
33022
33022
  children: [
33023
- u === "compact" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
33023
+ d === "compact" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
33024
33024
  className: "component-500 text-content-primary line-clamp-2 min-w-0 flex-1",
33025
33025
  children: i
33026
33026
  }), /* @__PURE__ */ t(lq, {
@@ -33029,7 +33029,7 @@ var cq = G(U("relative flex w-full overflow-hidden text-start outline-hidden", "
33029
33029
  posterSrc: s,
33030
33030
  className: "rounded-200 size-16 shrink-0"
33031
33031
  })] }),
33032
- u === "regular" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(uq, {
33032
+ d === "regular" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(uq, {
33033
33033
  label: i,
33034
33034
  subtitle: c,
33035
33035
  className: "flex-1"
@@ -33039,7 +33039,7 @@ var cq = G(U("relative flex w-full overflow-hidden text-start outline-hidden", "
33039
33039
  posterSrc: s,
33040
33040
  className: "size-36 shrink-0 mask-[linear-gradient(to_right,transparent,black_66%)]"
33041
33041
  })] }),
33042
- u === "spacious" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
33042
+ d === "spacious" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
33043
33043
  className: "min-h-0 w-full flex-1",
33044
33044
  children: /* @__PURE__ */ t(lq, {
33045
33045
  imageSrc: a,
@@ -33053,9 +33053,9 @@ var cq = G(U("relative flex w-full overflow-hidden text-start outline-hidden", "
33053
33053
  className: "w-full p-6"
33054
33054
  })] }),
33055
33055
  l && /* @__PURE__ */ t(zc, {
33056
- variant: "pro",
33056
+ variant: u,
33057
33057
  size: "medium",
33058
- className: U("absolute z-10 shrink-0", u === "spacious" ? "inset-e-2 top-2" : "inset-e-1 top-1"),
33058
+ className: U("absolute z-10 shrink-0", d === "spacious" ? "inset-e-2 top-2" : "inset-e-1 top-1"),
33059
33059
  children: l
33060
33060
  })
33061
33061
  ]
@@ -35204,9 +35204,9 @@ var ZY = ({ color: e, onChange: r, label: i }) => {
35204
35204
  }), oX = ({ className: e, label: r, icon: i, trailing: a, ref: o, ...s }) => /* @__PURE__ */ t("button", {
35205
35205
  ...s,
35206
35206
  ref: o,
35207
- className: W("group w-full appearance-none", "border-misc-divider border-b", "focus-visible:outline-hidden", "disabled:cursor-not-allowed disabled:opacity-30", e),
35207
+ className: W("group w-full appearance-none", "focus-visible:outline-hidden", "disabled:cursor-not-allowed disabled:opacity-30", e),
35208
35208
  children: /* @__PURE__ */ n("div", {
35209
- className: U("flex justify-between gap-1", "rounded-500", "hover:bg-background-subdued-hover group-focus-visible:bg-background-subdued-hover group-active:bg-background-subdued-down", "group-focus-visible:ring-misc-focus-indicator group-focus-visible:misc-border-size-focus-ring", "interaction-transition transition-colors"),
35209
+ className: U("flex justify-between gap-1", "rounded-500", "hover:bg-background-borderless-subdued-hover group-focus-visible:bg-background-borderless-subdued-hover group-active:bg-background-borderless-subdued-down", "group-focus-visible:ring-misc-focus-indicator group-focus-visible:misc-border-size-focus-ring", "interaction-transition transition-colors"),
35210
35210
  children: [/* @__PURE__ */ n("div", {
35211
35211
  className: "flex items-center gap-3 px-3 py-2.5",
35212
35212
  children: [!!i && /* @__PURE__ */ t("span", {
@@ -35298,7 +35298,7 @@ var cX = ({ icon: r, label: i, className: a, chevron: o = !1, tooltip: s, ref: c
35298
35298
  ...l,
35299
35299
  ref: c,
35300
35300
  "aria-label": l["aria-label"] ?? (u ? s : void 0),
35301
- className: U("group shrink-0 cursor-pointer outline-hidden", "inline-flex items-center justify-center", "rounded-300", "hover:bg-background-subdued-hover", "active:bg-background-subdued-down", "focus-visible:bg-background-subdued-hover", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "text-content-primary", "disabled:cursor-not-allowed disabled:opacity-30", "interaction-transition transition-all", u && !o && "size-400", u && o && "size-h-400 content-to-edge-ps-250 content-to-edge-pe-150 gap-1", d && !o && "content-to-edge-px-400 size-h-400", d && o && "content-to-edge-ps-400 content-to-edge-pe-250 size-h-400 gap-1", f && !o && "content-to-edge-pe-400 icon-to-edge-ps-400 size-h-400 gap-2", f && o && "icon-to-edge-ps-400 content-to-edge-pe-250 size-h-400 gap-1", a),
35301
+ className: U("group shrink-0 cursor-pointer outline-hidden", "inline-flex items-center justify-center", "rounded-300", "hover:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "focus-visible:bg-background-borderless-subdued-hover", "focus-visible:ring-misc-focus-indicator focus-visible:misc-border-size-focus-ring", "text-content-primary", "disabled:cursor-not-allowed disabled:opacity-30", "interaction-transition transition-all", u && !o && "size-400", u && o && "size-h-400 content-to-edge-ps-250 content-to-edge-pe-150 gap-1", d && !o && "content-to-edge-px-400 size-h-400", d && o && "content-to-edge-ps-400 content-to-edge-pe-250 size-h-400 gap-1", f && !o && "content-to-edge-pe-400 icon-to-edge-ps-400 size-h-400 gap-2", f && o && "icon-to-edge-ps-400 content-to-edge-pe-250 size-h-400 gap-1", a),
35302
35302
  children: o ? /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
35303
35303
  className: "flex items-center gap-2",
35304
35304
  children: m
@@ -35339,9 +35339,9 @@ var uX = G([
35339
35339
  active: {
35340
35340
  false: [
35341
35341
  "text-content-primary",
35342
- "hover:bg-background-subdued-hover",
35343
- "active:bg-background-subdued-down",
35344
- "focus-visible:bg-background-subdued-hover"
35342
+ "hover:bg-background-borderless-subdued-hover",
35343
+ "active:bg-background-borderless-subdued-down",
35344
+ "focus-visible:bg-background-borderless-subdued-hover"
35345
35345
  ],
35346
35346
  true: [
35347
35347
  "bg-background-default text-content-white-primary-inverted",
@@ -53387,7 +53387,7 @@ var n9 = {
53387
53387
  }), r9 = ({ size: e = "default", className: n, children: r, ...i }) => /* @__PURE__ */ t("button", {
53388
53388
  ...i,
53389
53389
  type: "button",
53390
- className: W("bg-surface-high flex w-10 items-center justify-center outline-hidden", e === "compact" ? "size-h-400" : "size-h-500", "border-misc-border-box border", "first:rounded-s-500 first:border-e-0", "last:rounded-e-500 last:border-s-0", "hover:bg-background-subdued-hover", "active:bg-background-subdued-down", "group-hover:border-misc-border-box-hover", "group-focus-visible:border-misc-border-box-hover", "disabled:pointer-events-none", "group", n),
53390
+ className: W("bg-surface-high flex w-10 items-center justify-center outline-hidden", e === "compact" ? "size-h-400" : "size-h-500", "border-misc-border-box border", "first:rounded-s-500 first:border-e-0", "last:rounded-e-500 last:border-s-0", "hover:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", "group-hover:border-misc-border-box-hover", "group-focus-visible:border-misc-border-box-hover", "disabled:pointer-events-none", "group", n),
53391
53391
  tabIndex: -1,
53392
53392
  children: /* @__PURE__ */ t("span", {
53393
53393
  className: "group-disabled:opacity-30",
@@ -53401,7 +53401,7 @@ var n9 = {
53401
53401
  ref: i,
53402
53402
  className: "max-h-80 w-[var(--radix-popover-trigger-width)] min-w-[80px] overflow-auto p-1",
53403
53403
  children: e.map((e, i) => /* @__PURE__ */ t("li", {
53404
- className: U("component-500 misc-dropdown-inner-rounding flex h-10 w-full items-center justify-center outline-hidden", "cursor-pointer outline-hidden select-none", "text-content-primary truncate px-2", "hover:bg-background-subdued-hover", "active:bg-background-subdued-down", n === i && "bg-background-subdued-hover"),
53404
+ className: U("component-500 misc-dropdown-inner-rounding flex h-10 w-full items-center justify-center outline-hidden", "cursor-pointer outline-hidden select-none", "text-content-primary truncate px-2", "hover:bg-background-borderless-subdued-hover", "active:bg-background-borderless-subdued-down", n === i && "bg-background-borderless-subdued-hover"),
53405
53405
  children: /* @__PURE__ */ t("button", {
53406
53406
  className: "h-full flex-1",
53407
53407
  onClick: () => r(e),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.364",
3
+ "version": "0.1.366",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [