@photoroom/ui 0.1.773 → 0.1.775

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
@@ -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, cssBackgroundColor: n, children: r, isHiddenSessionKey: i, closeLabel: a, closeButtonVariant: o = "secondary-on-dark", forceShow: s, ...c }) => {
59225
- let [l, u] = Pe(() => i ? O7[i] ?? !0 : !1), d = !s && l;
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 (!i) return;
59227
+ if (!r) return;
59228
59228
  let e;
59229
59229
  try {
59230
- let t = sessionStorage.getItem(i);
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[i] = e, u(e);
59236
- }, [i]);
59237
- let f = V(() => {
59238
- s || (u(!0), i && (sessionStorage.setItem(i, JSON.stringify(!0)), O7[i] = !0));
59239
- }, [i, s]);
59240
- return d ? null : /* @__PURE__ */ R("div", {
59241
- className: U("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),
59242
- style: n ? { backgroundColor: n } : void 0,
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 min-h-[64px] max-w-[1200px] items-center md:justify-center",
59246
- children: r
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": a || "Close",
59249
- className: "absolute end-5 top-5",
59250
- variant: o,
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: f
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, cssBackgroundColor: n, thumbnail: r, cta: i, linkAs: a = "a", description: o, forceShow: s, ...c }) => /* @__PURE__ */ L(k7, {
60633
- variant: "black",
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: s,
60639
- ...c,
60636
+ forceShow: a,
60637
+ ...o,
60640
60638
  children: /* @__PURE__ */ R("div", {
60641
- className: "flex flex-wrap items-center gap-x-4 gap-y-2 py-4",
60642
- children: [e && /* @__PURE__ */ L("div", {
60643
- className: "component-semi-strong-500 shrink-0",
60644
- children: e
60645
- }), /* @__PURE__ */ R("div", {
60646
- className: "flex flex-wrap items-center gap-x-4 gap-y-2",
60647
- children: [/* @__PURE__ */ R("div", {
60648
- className: "flex items-center gap-2",
60649
- children: [r && /* @__PURE__ */ L("div", {
60650
- className: "relative size-8 shrink-0 overflow-hidden rounded",
60651
- children: r
60652
- }), /* @__PURE__ */ L("span", {
60653
- className: "component-light-500 [&_a]:underline [&>p]:inline",
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
- ...i.extraAttrs,
60664
- children: i.label
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.773",
3
+ "version": "0.1.775",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [