@photoroom/ui 0.1.557 → 0.1.559
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
|
@@ -59334,7 +59334,7 @@ function XCe({ label: e, value: t, children: n, className: r, ...i }) {
|
|
|
59334
59334
|
//#region src/components/website/WebsiteNavigation/WebsiteNavigationCtaSection.tsx
|
|
59335
59335
|
var I9 = ({ className: e, title: t, subtitle: n, icon: r, cta: i, ref: a, ...o }) => /* @__PURE__ */ L("div", {
|
|
59336
59336
|
ref: a,
|
|
59337
|
-
className: U("flex w-full flex-col rounded-2xl p-2 lg:w-[280px]", e),
|
|
59337
|
+
className: U("flex w-full max-w-full flex-col rounded-2xl p-2 lg:w-[280px]", e),
|
|
59338
59338
|
...o,
|
|
59339
59339
|
children: [
|
|
59340
59340
|
!!r && /* @__PURE__ */ I("span", {
|
|
@@ -59362,7 +59362,7 @@ I9.displayName = "WebsiteNavigationCtaSection";
|
|
|
59362
59362
|
//#region src/components/website/WebsiteNavigation/WebsiteNavigationItem.tsx
|
|
59363
59363
|
var L9 = (({ as: e = "a", className: t, title: n, subtitle: r, icon: i, ref: a, ...o }) => /* @__PURE__ */ L(e, {
|
|
59364
59364
|
ref: a,
|
|
59365
|
-
className: U("group inline-flex w-full items-center gap-3 rounded-2xl p-2 text-start", i ? "lg:w-[360px]" : "lg:w-[280px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59365
|
+
className: U("group inline-flex w-full max-w-full items-center gap-3 rounded-2xl p-2 text-start", i ? "lg:w-[360px]" : "lg:w-[280px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59366
59366
|
...o,
|
|
59367
59367
|
children: [
|
|
59368
59368
|
!!i && /* @__PURE__ */ I("span", {
|
|
@@ -59422,23 +59422,23 @@ z9.displayName = "WebsiteNavigationOverlayLink";
|
|
|
59422
59422
|
//#endregion
|
|
59423
59423
|
//#region src/components/website/WebsiteNavigation/WebsiteNavigationPanel.tsx
|
|
59424
59424
|
function ZCe({ trigger: e, children: t, stackTarget: n }) {
|
|
59425
|
-
let r = he.toArray(t), i = r.length >= 4 ? r.length - 2 : -1, [a, o] = Pe(!1), s =
|
|
59425
|
+
let r = he.toArray(t), i = r.length >= 4 ? r.length - 2 : -1, [a, o] = Pe(!1), s = i >= 0 && !a, c = V(0), l = V(null), u = B((e) => {
|
|
59426
59426
|
if (l.current?.disconnect(), l.current = null, !e || i < 0) return;
|
|
59427
59427
|
let t = () => {
|
|
59428
|
-
s
|
|
59429
|
-
let t = document.documentElement.clientWidth - 32
|
|
59430
|
-
|
|
59428
|
+
s && (c.current = e.scrollWidth);
|
|
59429
|
+
let t = document.documentElement.clientWidth - 32;
|
|
59430
|
+
o(c.current > t);
|
|
59431
59431
|
};
|
|
59432
59432
|
t();
|
|
59433
59433
|
let n = new ResizeObserver(t);
|
|
59434
59434
|
n.observe(e), n.observe(document.documentElement), l.current = n;
|
|
59435
|
-
}, [i]), d = r.map((e, t) => {
|
|
59435
|
+
}, [i, s]), d = r.map((e, t) => {
|
|
59436
59436
|
let n = t === i, r = n && a;
|
|
59437
59437
|
return /* @__PURE__ */ L(_e, { children: [t > 0 && /* @__PURE__ */ I("div", {
|
|
59438
59438
|
"aria-hidden": !0,
|
|
59439
|
-
className: H("bg-misc-divider w-px self-stretch", r && "hidden")
|
|
59439
|
+
className: H("bg-misc-divider w-px shrink-0 self-stretch", r && "hidden")
|
|
59440
59440
|
}), n ? /* @__PURE__ */ I("div", {
|
|
59441
|
-
className: r ? "hidden" : "
|
|
59441
|
+
className: r ? "hidden" : "flex",
|
|
59442
59442
|
children: e
|
|
59443
59443
|
}) : e] }, Ce(e) ? e.key ?? t : t);
|
|
59444
59444
|
});
|
|
@@ -59452,7 +59452,7 @@ function ZCe({ trigger: e, children: t, stackTarget: n }) {
|
|
|
59452
59452
|
className: H("absolute start-0 top-0", "data-[motion=from-start]:animate-nav-content-from-start", "data-[motion=from-end]:animate-nav-content-from-end", "data-[motion=to-start]:animate-nav-content-fade-out", "data-[motion=to-end]:animate-nav-content-fade-out"),
|
|
59453
59453
|
children: /* @__PURE__ */ I("div", {
|
|
59454
59454
|
ref: u,
|
|
59455
|
-
className: "flex min-h-64 w-max min-w-96 text-start whitespace-normal",
|
|
59455
|
+
className: H("flex min-h-64 w-max min-w-96 text-start whitespace-normal", "max-w-[calc(100vw-2rem)]", s && "[&>*]:shrink-0"),
|
|
59456
59456
|
children: d
|
|
59457
59457
|
})
|
|
59458
59458
|
})] });
|
|
@@ -59465,7 +59465,7 @@ var B9 = ({ className: e, title: t, children: n, footer: r, background: i = "sur
|
|
|
59465
59465
|
ref: a,
|
|
59466
59466
|
role: "group",
|
|
59467
59467
|
"aria-labelledby": s,
|
|
59468
|
-
className: U("flex flex-col p-4 lg:min-w-[280px] lg:
|
|
59468
|
+
className: U("flex flex-col p-4 lg:min-w-[280px] lg:p-6", i === "sand-50" ? "lg:bg-sand-50" : "lg:bg-surface-default", e),
|
|
59469
59469
|
...o,
|
|
59470
59470
|
children: [
|
|
59471
59471
|
/* @__PURE__ */ I("span", {
|
|
@@ -59489,7 +59489,7 @@ B9.displayName = "WebsiteNavigationSection";
|
|
|
59489
59489
|
//#region src/components/website/WebsiteNavigation/WebsiteNavigationStory.tsx
|
|
59490
59490
|
var V9 = (({ as: e = "a", className: t, title: n, category: r, visual: i, ref: a, ...o }) => /* @__PURE__ */ L(e, {
|
|
59491
59491
|
ref: a,
|
|
59492
|
-
className: U("group flex w-full flex-col gap-2 rounded-2xl p-2 text-start lg:w-[360px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59492
|
+
className: U("group flex w-full max-w-full flex-col gap-2 rounded-2xl p-2 text-start lg:w-[360px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59493
59493
|
...o,
|
|
59494
59494
|
children: [/* @__PURE__ */ I("span", {
|
|
59495
59495
|
className: H("rounded-400 relative aspect-video w-full shrink-0 overflow-hidden", "[&_img]:size-full [&_img]:object-cover"),
|
|
@@ -59510,7 +59510,7 @@ V9.displayName = "WebsiteNavigationStory";
|
|
|
59510
59510
|
//#region src/components/website/WebsiteNavigation/WebsiteNavigationTestimonial.tsx
|
|
59511
59511
|
var H9 = (({ as: e = "a", className: t, label: n, visual: r, ref: i, ...a }) => /* @__PURE__ */ L(e, {
|
|
59512
59512
|
ref: i,
|
|
59513
|
-
className: U("group inline-flex w-full items-start gap-3 rounded-2xl p-2 text-start lg:w-[440px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59513
|
+
className: U("group inline-flex w-full max-w-full items-start gap-3 rounded-2xl p-2 text-start lg:w-[440px]", "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", "interaction-transition outline-hidden transition-colors", t),
|
|
59514
59514
|
...a,
|
|
59515
59515
|
children: [/* @__PURE__ */ I("span", {
|
|
59516
59516
|
className: "rounded-400 bg-sand-50 border-misc-hairline misc-border-size-hairline aspect-video w-[120px] shrink-0 px-3 py-[7px]",
|