@photoroom/ui 0.1.767 → 0.1.769

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
@@ -36793,16 +36793,7 @@ var SJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ L(sJ, {
36793
36793
  Root: () => Hq,
36794
36794
  Title: () => iJ,
36795
36795
  Trigger: () => Wq
36796
- }), EJ = ({ actions: e, detail: t, footnote: n, className: r }) => n ? /* @__PURE__ */ R("div", {
36797
- className: W("flex w-full flex-col gap-3", r),
36798
- children: [/* @__PURE__ */ L("div", {
36799
- className: "flex items-center gap-2",
36800
- children: e
36801
- }), /* @__PURE__ */ L("div", {
36802
- className: "component-400 text-content-secondary",
36803
- children: n
36804
- })]
36805
- }) : /* @__PURE__ */ R("div", {
36796
+ }), EJ = ({ actions: e, detail: t, footnote: n, className: r }) => n === void 0 ? /* @__PURE__ */ R("div", {
36806
36797
  className: W("flex w-full items-center gap-2", r),
36807
36798
  children: [t && /* @__PURE__ */ L("div", {
36808
36799
  className: "component-500 text-content-tertiary",
@@ -36811,6 +36802,15 @@ var SJ = ({ "aria-label": e = "Close", ...t }) => /* @__PURE__ */ L(sJ, {
36811
36802
  className: "flex flex-1 items-center justify-end gap-2",
36812
36803
  children: e
36813
36804
  })]
36805
+ }) : /* @__PURE__ */ R("div", {
36806
+ className: W("flex w-full flex-col gap-3", r),
36807
+ children: [/* @__PURE__ */ L("div", {
36808
+ className: "flex items-center gap-2",
36809
+ children: e
36810
+ }), n && /* @__PURE__ */ L("div", {
36811
+ className: "component-400 text-content-secondary",
36812
+ children: n
36813
+ })]
36814
36814
  }), DJ = ({ open: e, defaultOpen: t, onOpenChange: n, trigger: r, title: i, subtitle: a, footer: o, hideCloseButton: s = !1, closeButtonLabel: c, onEscapeKeyDown: l, onPointerDownOutside: u, onOpenAutoFocus: d, onCloseAutoFocus: f, className: p, testId: m, children: h }) => /* @__PURE__ */ R(Hq, {
36815
36815
  open: e,
36816
36816
  defaultOpen: t,
@@ -61421,52 +61421,49 @@ var e9 = ({ title: e, subtitle: t, visual: n, form: r, cta: i, className: a, ...
61421
61421
  e9.displayName = "RaterBannerBlock";
61422
61422
  //#endregion
61423
61423
  //#region src/components/website/RaterPromoBanner/RaterPromoBanner.tsx
61424
- var t9 = ({ title: e, subtitle: t, image: n, form: r, cta: i, dismiss: a, className: o, ...s }) => /* @__PURE__ */ L("div", {
61425
- className: W("@container", o),
61424
+ var t9 = ({ title: e, subtitle: t, image: n, form: r, cta: i, dismiss: a, className: o, ...s }) => /* @__PURE__ */ R("div", {
61425
+ className: W("rounded-500 border-misc-border misc-border-size-hairline relative flex gap-3 overflow-hidden", "theme-light bg-sand-50 px-4", { "sm:ps-0": !!n }, o),
61426
61426
  ...s,
61427
- children: /* @__PURE__ */ R("div", {
61428
- className: U("rounded-500 border-misc-border misc-border-size-hairline relative flex gap-3 overflow-hidden", "theme-light bg-sand-50 px-4", { "@[480px]:ps-0": !!n }),
61429
- children: [
61430
- !!n && /* @__PURE__ */ L("div", {
61431
- className: "hidden w-21 shrink-0 *:size-full *:object-contain @[480px]:block",
61432
- children: n
61433
- }),
61434
- /* @__PURE__ */ R("div", {
61435
- className: "flex min-w-0 flex-1 flex-col gap-4 py-3",
61436
- children: [/* @__PURE__ */ R("div", {
61437
- className: U("flex flex-col gap-1", { "pe-6": !!a }),
61438
- children: [/* @__PURE__ */ L("p", {
61439
- className: "component-500 text-content-primary",
61440
- children: e
61441
- }), !!t && /* @__PURE__ */ L("p", {
61442
- className: "component-400 text-content-secondary text-balance",
61443
- children: t
61444
- })]
61445
- }), /* @__PURE__ */ L($7, {
61446
- ...r,
61447
- className: "flex-col @[360px]:flex-row",
61448
- button: /* @__PURE__ */ L(ed, {
61449
- ...i.extraAttrs,
61450
- type: "submit",
61451
- variant: "primary",
61452
- size: "medium",
61453
- density: "regular",
61454
- className: "w-full shrink-0 @[360px]:w-auto",
61455
- children: i.label
61456
- })
61427
+ children: [
61428
+ !!n && /* @__PURE__ */ L("div", {
61429
+ className: "hidden w-21 shrink-0 *:size-full *:object-contain sm:block",
61430
+ children: n
61431
+ }),
61432
+ /* @__PURE__ */ R("div", {
61433
+ className: "flex min-w-0 flex-1 flex-col gap-4 py-3",
61434
+ children: [/* @__PURE__ */ R("div", {
61435
+ className: U("flex flex-col gap-1", { "pe-6": !!a }),
61436
+ children: [/* @__PURE__ */ L("p", {
61437
+ className: "component-500 text-content-primary",
61438
+ children: e
61439
+ }), !!t && /* @__PURE__ */ L("p", {
61440
+ className: "component-400 text-content-secondary text-balance",
61441
+ children: t
61457
61442
  })]
61458
- }),
61459
- !!a && /* @__PURE__ */ L(od, {
61460
- ...a.extraAttrs,
61461
- type: "button",
61462
- size: "small",
61463
- variant: "secondary",
61464
- "aria-label": a.label,
61465
- onClick: a.onClick,
61466
- className: "absolute end-2 top-2"
61467
- })
61468
- ]
61469
- })
61443
+ }), /* @__PURE__ */ L($7, {
61444
+ ...r,
61445
+ className: "flex-col sm:flex-row",
61446
+ button: /* @__PURE__ */ L(ed, {
61447
+ ...i.extraAttrs,
61448
+ type: "submit",
61449
+ variant: "primary",
61450
+ size: "medium",
61451
+ density: "regular",
61452
+ className: "w-full shrink-0 sm:w-auto",
61453
+ children: i.label
61454
+ })
61455
+ })]
61456
+ }),
61457
+ !!a && /* @__PURE__ */ L(od, {
61458
+ ...a.extraAttrs,
61459
+ type: "button",
61460
+ size: "small",
61461
+ variant: "secondary",
61462
+ "aria-label": a.label,
61463
+ onClick: a.onClick,
61464
+ className: "absolute end-2 top-2"
61465
+ })
61466
+ ]
61470
61467
  });
61471
61468
  t9.displayName = "RaterPromoBanner";
61472
61469
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.767",
3
+ "version": "0.1.769",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [