@photoroom/ui 0.1.576 → 0.1.577
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
|
@@ -56662,8 +56662,8 @@ var iSe = ({ titleBlock: e, children: t, className: n, ...r }) => /* @__PURE__ *
|
|
|
56662
56662
|
className: "size-6 text-white"
|
|
56663
56663
|
})
|
|
56664
56664
|
});
|
|
56665
|
-
}, P7 = {}, F7 = ({ variant: e, className: t, cssBackgroundColor: n, children: r, isHiddenSessionKey: i, closeLabel: a,
|
|
56666
|
-
let [
|
|
56665
|
+
}, P7 = {}, F7 = ({ variant: e, className: t, cssBackgroundColor: n, children: r, isHiddenSessionKey: i, closeLabel: a, closeButtonVariant: o = "secondary-on-dark", forceShow: s, ...c }) => {
|
|
56666
|
+
let [l, u] = Ne(() => i ? P7[i] ?? !0 : !1), d = !s && l;
|
|
56667
56667
|
Ee(() => {
|
|
56668
56668
|
if (!i) return;
|
|
56669
56669
|
let e;
|
|
@@ -56673,24 +56673,24 @@ var iSe = ({ titleBlock: e, children: t, className: n, ...r }) => /* @__PURE__ *
|
|
|
56673
56673
|
} catch {
|
|
56674
56674
|
e = !1;
|
|
56675
56675
|
}
|
|
56676
|
-
P7[i] = e,
|
|
56676
|
+
P7[i] = e, u(e);
|
|
56677
56677
|
}, [i]);
|
|
56678
|
-
let
|
|
56679
|
-
|
|
56680
|
-
}, [i,
|
|
56681
|
-
return
|
|
56682
|
-
className: H("relative text-white", "ps-4 pe-16 sm:ps-6 md:ps-8 lg:px-16", !n && e === "
|
|
56678
|
+
let f = B(() => {
|
|
56679
|
+
s || (u(!0), i && (sessionStorage.setItem(i, JSON.stringify(!0)), P7[i] = !0));
|
|
56680
|
+
}, [i, s]);
|
|
56681
|
+
return d ? null : /* @__PURE__ */ L("div", {
|
|
56682
|
+
className: H("relative text-white", "ps-4 pe-16 sm:ps-6 md:ps-8 lg:px-16", !n && e === "black" && "bg-black", !n && e === "neutral" && "bg-neutral-800", t),
|
|
56683
56683
|
style: n ? { backgroundColor: n } : void 0,
|
|
56684
|
-
...
|
|
56684
|
+
...c,
|
|
56685
56685
|
children: [/* @__PURE__ */ I("div", {
|
|
56686
56686
|
className: "mx-auto flex min-h-[64px] max-w-[1200px] items-center md:justify-center",
|
|
56687
56687
|
children: r
|
|
56688
56688
|
}), /* @__PURE__ */ I(vd, {
|
|
56689
56689
|
"aria-label": a || "Close",
|
|
56690
56690
|
className: "absolute end-5 top-5",
|
|
56691
|
-
variant:
|
|
56691
|
+
variant: o,
|
|
56692
56692
|
size: "small",
|
|
56693
|
-
onClick:
|
|
56693
|
+
onClick: f
|
|
56694
56694
|
})]
|
|
56695
56695
|
});
|
|
56696
56696
|
}, lSe = ({ title: e, backgroundColor: t, bgImageDesktop: n, bgImageMobile: r, className: i, ...a }) => /* @__PURE__ */ L("div", {
|
|
@@ -57934,16 +57934,17 @@ var oCe = Object.assign($7, {
|
|
|
57934
57934
|
children: e
|
|
57935
57935
|
})
|
|
57936
57936
|
}), e9 = "is-promo-banner-hidden", sCe = ({ contextLabel: e, closeAriaLabel: t, cssBackgroundColor: n, thumbnail: r, cta: i, linkAs: a = "a", description: o, forceShow: s, ...c }) => /* @__PURE__ */ I(F7, {
|
|
57937
|
-
variant: "
|
|
57937
|
+
variant: "black",
|
|
57938
57938
|
cssBackgroundColor: n,
|
|
57939
57939
|
isHiddenSessionKey: e9,
|
|
57940
57940
|
closeLabel: t,
|
|
57941
|
+
closeButtonVariant: "borderless-on-dark",
|
|
57941
57942
|
forceShow: s,
|
|
57942
57943
|
...c,
|
|
57943
57944
|
children: /* @__PURE__ */ L("div", {
|
|
57944
57945
|
className: "flex flex-wrap items-center gap-x-4 gap-y-2 py-4",
|
|
57945
57946
|
children: [e && /* @__PURE__ */ I("div", {
|
|
57946
|
-
className: "component-semi-strong-
|
|
57947
|
+
className: "component-semi-strong-500 shrink-0",
|
|
57947
57948
|
children: e
|
|
57948
57949
|
}), /* @__PURE__ */ L("div", {
|
|
57949
57950
|
className: "flex flex-wrap items-center gap-x-4 gap-y-2",
|
|
@@ -57953,20 +57954,18 @@ var oCe = Object.assign($7, {
|
|
|
57953
57954
|
className: "relative size-8 shrink-0 overflow-hidden rounded",
|
|
57954
57955
|
children: r
|
|
57955
57956
|
}), /* @__PURE__ */ I("span", {
|
|
57956
|
-
className: "component-
|
|
57957
|
+
className: "component-light-500 [&_a]:underline [&>p]:inline",
|
|
57957
57958
|
children: o
|
|
57958
57959
|
})]
|
|
57959
|
-
}), i && /* @__PURE__ */
|
|
57960
|
+
}), i && /* @__PURE__ */ I(fd, {
|
|
57960
57961
|
as: a,
|
|
57961
57962
|
href: i.href,
|
|
57962
|
-
variant: "on-dark",
|
|
57963
|
-
|
|
57964
|
-
|
|
57963
|
+
variant: "secondary-on-dark",
|
|
57964
|
+
size: "medium",
|
|
57965
|
+
density: "compact",
|
|
57966
|
+
className: "shrink-0",
|
|
57965
57967
|
...i.extraAttrs,
|
|
57966
|
-
children:
|
|
57967
|
-
"aria-hidden": "true",
|
|
57968
|
-
className: "after:content-['→']"
|
|
57969
|
-
})]
|
|
57968
|
+
children: i.label
|
|
57970
57969
|
})]
|
|
57971
57970
|
})]
|
|
57972
57971
|
})
|