@photoroom/ui 0.1.519 → 0.1.520
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
|
@@ -32606,7 +32606,7 @@ var YK = ({ label: e, onClick: n }) => /* @__PURE__ */ t("button", {
|
|
|
32606
32606
|
QK.displayName = "PreviewBox";
|
|
32607
32607
|
//#endregion
|
|
32608
32608
|
//#region src/components/content/VisualToolTile/VisualToolTile.tsx
|
|
32609
|
-
var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outline-hidden", "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-[inset_0_0_0_0.5px_var(--color-misc-hairline-emphasized)] after:content-['']", "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"), {
|
|
32609
|
+
var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outline-hidden", "transition-transform duration-200 ease-out", "after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] after:shadow-[inset_0_0_0_0.5px_var(--color-misc-hairline-emphasized)] after:content-['']", "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"), {
|
|
32610
32610
|
variants: { density: {
|
|
32611
32611
|
compact: "items-center gap-2 py-2 ps-4 pe-2",
|
|
32612
32612
|
regular: "items-center gap-2 ps-6",
|
|
@@ -32634,13 +32634,13 @@ var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outlin
|
|
|
32634
32634
|
className: "component-400 text-content-secondary line-clamp-2",
|
|
32635
32635
|
children: r
|
|
32636
32636
|
}) : null]
|
|
32637
|
-
}), nq = ({ onClick: r, label: i, imageSrc: a, videoSrc: o, posterSrc: s, subtitle: c, badgeLabel: l, badgeVariant: u = "pro",
|
|
32637
|
+
}), nq = ({ onClick: r, label: i, imageSrc: a, videoSrc: o, posterSrc: s, subtitle: c, badgeLabel: l, badgeVariant: u = "pro", dropLabel: d, isDropTarget: f, density: p = "regular", className: m, ...h }) => /* @__PURE__ */ n("button", {
|
|
32638
32638
|
type: "button",
|
|
32639
|
-
className: U($K({ density:
|
|
32639
|
+
className: U($K({ density: p }), f && "z-10 scale-[1.03]", m),
|
|
32640
32640
|
onClick: r,
|
|
32641
|
-
...
|
|
32641
|
+
...h,
|
|
32642
32642
|
children: [
|
|
32643
|
-
|
|
32643
|
+
p === "compact" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("span", {
|
|
32644
32644
|
className: "component-500 text-content-primary line-clamp-2 min-w-0 flex-1",
|
|
32645
32645
|
children: i
|
|
32646
32646
|
}), /* @__PURE__ */ t(eq, {
|
|
@@ -32649,7 +32649,7 @@ var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outlin
|
|
|
32649
32649
|
posterSrc: s,
|
|
32650
32650
|
className: "rounded-200 size-16 shrink-0"
|
|
32651
32651
|
})] }),
|
|
32652
|
-
|
|
32652
|
+
p === "regular" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t(tq, {
|
|
32653
32653
|
label: i,
|
|
32654
32654
|
subtitle: c,
|
|
32655
32655
|
className: "flex-1"
|
|
@@ -32659,7 +32659,7 @@ var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outlin
|
|
|
32659
32659
|
posterSrc: s,
|
|
32660
32660
|
className: "size-36 shrink-0 mask-[linear-gradient(to_right,transparent,black_66%)]"
|
|
32661
32661
|
})] }),
|
|
32662
|
-
|
|
32662
|
+
p === "spacious" && /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
|
|
32663
32663
|
className: "min-h-0 w-full flex-1",
|
|
32664
32664
|
children: /* @__PURE__ */ t(eq, {
|
|
32665
32665
|
imageSrc: a,
|
|
@@ -32677,6 +32677,13 @@ var $K = W(H("rounded-400 relative flex w-full overflow-hidden text-start outlin
|
|
|
32677
32677
|
size: "medium",
|
|
32678
32678
|
className: "absolute inset-e-1 top-1 z-10 shrink-0",
|
|
32679
32679
|
children: l
|
|
32680
|
+
}),
|
|
32681
|
+
f && /* @__PURE__ */ n("span", {
|
|
32682
|
+
className: H("bg-background-accent-fixed text-content-white-primary pointer-events-none absolute inset-0 z-20 flex items-center justify-center rounded-[inherit] p-4", p === "compact" ? "flex-row gap-2" : "flex-col gap-3"),
|
|
32683
|
+
children: [/* @__PURE__ */ t(w, { className: H("shrink-0", p === "compact" ? "size-8" : "size-10") }), /* @__PURE__ */ t("span", {
|
|
32684
|
+
className: "component-700 line-clamp-2 text-center",
|
|
32685
|
+
children: d
|
|
32686
|
+
})]
|
|
32680
32687
|
})
|
|
32681
32688
|
]
|
|
32682
32689
|
}), rq = Object.defineProperty, iq = (e, t) => rq(e, "name", {
|
package/package.json
CHANGED
package/theme.css
CHANGED
|
@@ -145,6 +145,7 @@
|
|
|
145
145
|
--color-background-accent-subdued: var(--color-background-accent-subdued);
|
|
146
146
|
--color-background-accent-subdued-hover: var(--color-background-accent-subdued-hover);
|
|
147
147
|
--color-background-accent-subdued-down: var(--color-background-accent-subdued-down);
|
|
148
|
+
--color-background-accent-fixed: var(--color-background-accent-fixed);
|
|
148
149
|
--color-background-positive: var(--color-background-positive);
|
|
149
150
|
--color-background-positive-hover: var(--color-background-positive-hover);
|
|
150
151
|
--color-background-positive-down: var(--color-background-positive-down);
|