@photoroom/ui 0.1.773 → 0.1.774
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/components/website/HeaderBanner/HeaderBanner.d.ts +2 -3
- package/components/website/HeaderBanner/HeaderBanner.d.ts.map +1 -1
- package/components/website/PromoBannerBlock/PromoBannerBlock.d.ts +1 -3
- package/components/website/PromoBannerBlock/PromoBannerBlock.d.ts.map +1 -1
- package/index.css +1 -1
- package/index.mjs +39 -46
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -59221,35 +59221,34 @@ var wTe = ({ titleBlock: e, children: t, className: n, ...r }) => /* @__PURE__ *
|
|
|
59221
59221
|
className: "size-6 text-white"
|
|
59222
59222
|
})
|
|
59223
59223
|
});
|
|
59224
|
-
}, O7 = {}, k7 = ({ variant: e, className: t,
|
|
59225
|
-
let [
|
|
59224
|
+
}, O7 = {}, k7 = ({ variant: e, className: t, children: n, isHiddenSessionKey: r, closeLabel: i, closeButtonVariant: a = "secondary-on-dark", forceShow: o, ...s }) => {
|
|
59225
|
+
let [c, l] = Pe(() => r ? O7[r] ?? !0 : !1), u = !o && c;
|
|
59226
59226
|
De(() => {
|
|
59227
|
-
if (!
|
|
59227
|
+
if (!r) return;
|
|
59228
59228
|
let e;
|
|
59229
59229
|
try {
|
|
59230
|
-
let t = sessionStorage.getItem(
|
|
59230
|
+
let t = sessionStorage.getItem(r);
|
|
59231
59231
|
e = t ? !!JSON.parse(t) : !1;
|
|
59232
59232
|
} catch {
|
|
59233
59233
|
e = !1;
|
|
59234
59234
|
}
|
|
59235
|
-
O7[
|
|
59236
|
-
}, [
|
|
59237
|
-
let
|
|
59238
|
-
|
|
59239
|
-
}, [
|
|
59240
|
-
return
|
|
59241
|
-
className: U("relative text-white", "ps-4 pe-16 sm:ps-6 md:ps-8 lg:px-16",
|
|
59242
|
-
|
|
59243
|
-
...c,
|
|
59235
|
+
O7[r] = e, l(e);
|
|
59236
|
+
}, [r]);
|
|
59237
|
+
let d = V(() => {
|
|
59238
|
+
o || (l(!0), r && (sessionStorage.setItem(r, JSON.stringify(!0)), O7[r] = !0));
|
|
59239
|
+
}, [r, o]);
|
|
59240
|
+
return u ? null : /* @__PURE__ */ R("div", {
|
|
59241
|
+
className: U("relative text-white", "ps-4 pe-16 sm:ps-6 md:ps-8 lg:px-16", e === "dark" ? "bg-neutral-900" : "bg-neutral-800", t),
|
|
59242
|
+
...s,
|
|
59244
59243
|
children: [/* @__PURE__ */ L("div", {
|
|
59245
|
-
className: "mx-auto flex
|
|
59246
|
-
children:
|
|
59244
|
+
className: U("mx-auto flex max-w-[1200px] items-center lg:justify-center", e === "dark" ? "min-h-14" : "min-h-16"),
|
|
59245
|
+
children: n
|
|
59247
59246
|
}), /* @__PURE__ */ L(sd, {
|
|
59248
|
-
"aria-label":
|
|
59249
|
-
className: "absolute end-5 top-5",
|
|
59250
|
-
variant:
|
|
59247
|
+
"aria-label": i || "Close",
|
|
59248
|
+
className: U("absolute end-5", e === "dark" ? "top-4" : "top-5"),
|
|
59249
|
+
variant: a,
|
|
59251
59250
|
size: "small",
|
|
59252
|
-
onClick:
|
|
59251
|
+
onClick: d
|
|
59253
59252
|
})]
|
|
59254
59253
|
});
|
|
59255
59254
|
}, kTe = ({ title: e, backgroundColor: t, bgImageDesktop: n, bgImageMobile: r, className: i, ...a }) => /* @__PURE__ */ R("div", {
|
|
@@ -60629,41 +60628,35 @@ var TEe = Object.assign(J7, {
|
|
|
60629
60628
|
}, e.id))
|
|
60630
60629
|
]
|
|
60631
60630
|
});
|
|
60632
|
-
}, Y7 = "is-promo-banner-hidden", jEe = ({ contextLabel: e, closeAriaLabel: t,
|
|
60633
|
-
variant: "
|
|
60634
|
-
cssBackgroundColor: n,
|
|
60631
|
+
}, Y7 = "is-promo-banner-hidden", jEe = ({ contextLabel: e, closeAriaLabel: t, cta: n, linkAs: r = "a", description: i, forceShow: a, ...o }) => /* @__PURE__ */ L(k7, {
|
|
60632
|
+
variant: "dark",
|
|
60635
60633
|
isHiddenSessionKey: Y7,
|
|
60636
60634
|
closeLabel: t,
|
|
60637
60635
|
closeButtonVariant: "borderless-on-dark",
|
|
60638
|
-
forceShow:
|
|
60639
|
-
...
|
|
60636
|
+
forceShow: a,
|
|
60637
|
+
...o,
|
|
60640
60638
|
children: /* @__PURE__ */ R("div", {
|
|
60641
|
-
className: "flex flex-
|
|
60642
|
-
children: [
|
|
60643
|
-
|
|
60644
|
-
|
|
60645
|
-
|
|
60646
|
-
|
|
60647
|
-
|
|
60648
|
-
className: "
|
|
60649
|
-
children:
|
|
60650
|
-
|
|
60651
|
-
|
|
60652
|
-
|
|
60653
|
-
|
|
60654
|
-
children: o
|
|
60655
|
-
})]
|
|
60656
|
-
}), i && /* @__PURE__ */ L(td, {
|
|
60657
|
-
as: a,
|
|
60658
|
-
href: i.href,
|
|
60639
|
+
className: "flex flex-col items-start gap-3 py-4 lg:flex-row lg:items-center lg:gap-4 lg:py-3",
|
|
60640
|
+
children: [
|
|
60641
|
+
e && /* @__PURE__ */ R("div", {
|
|
60642
|
+
className: "component-semi-strong-500 flex shrink-0 items-center gap-2.5",
|
|
60643
|
+
children: [/* @__PURE__ */ L("span", { className: "from-brand-blue to-brand-purple size-2.5 shrink-0 rounded-full bg-linear-to-r" }), e]
|
|
60644
|
+
}),
|
|
60645
|
+
/* @__PURE__ */ L("span", {
|
|
60646
|
+
className: "component-light-500 [&_a]:underline [&>p]:inline",
|
|
60647
|
+
children: i
|
|
60648
|
+
}),
|
|
60649
|
+
n && /* @__PURE__ */ L(td, {
|
|
60650
|
+
as: r,
|
|
60651
|
+
href: n.href,
|
|
60659
60652
|
variant: "secondary-on-dark",
|
|
60660
60653
|
size: "medium",
|
|
60661
60654
|
density: "compact",
|
|
60662
60655
|
className: "shrink-0",
|
|
60663
|
-
...
|
|
60664
|
-
children:
|
|
60665
|
-
})
|
|
60666
|
-
|
|
60656
|
+
...n.extraAttrs,
|
|
60657
|
+
children: n.label
|
|
60658
|
+
})
|
|
60659
|
+
]
|
|
60667
60660
|
})
|
|
60668
60661
|
}), MEe = ({ title: e, visualElement: t, largeVisualAsset: n, widget: r, widgetLabel: i, background: a = "neutral-50", bgColor: o, ...s }) => /* @__PURE__ */ L(h7, {
|
|
60669
60662
|
as: "div",
|