@photoroom/ui 0.1.173 → 0.1.175

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
@@ -36427,28 +36427,28 @@ var _Y = ({ color: e, onChange: t, label: n }) => {
36427
36427
  })
36428
36428
  ]
36429
36429
  });
36430
- }, xY = ({ label: e, buttonLabel: t, className: n, color: r = "#FFFFFF", side: i = "bottom", align: a = "start", sideOffset: o, alignOffset: s, collisionPadding: c, onChange: l, onConfirm: u, selected: d }) => /* @__PURE__ */ E(JW, {
36430
+ }, xY = ({ label: e, buttonLabel: t, className: n, popoverClassName: r, color: i = "#FFFFFF", side: a = "bottom", align: o = "start", sideOffset: s, alignOffset: c, collisionPadding: l, onChange: u, onConfirm: d, selected: f }) => /* @__PURE__ */ E(JW, {
36431
36431
  withBorder: !1,
36432
- side: i,
36433
- align: a,
36434
- sideOffset: o,
36435
- alignOffset: s,
36436
- collisionPadding: c,
36437
- className: "relative z-10 overflow-visible",
36432
+ side: a,
36433
+ align: o,
36434
+ sideOffset: s,
36435
+ alignOffset: c,
36436
+ collisionPadding: l,
36437
+ className: H("relative z-10 overflow-visible", r),
36438
36438
  triggerElement: /* @__PURE__ */ E(Uq, {
36439
36439
  "aria-label": e,
36440
- color: r,
36440
+ color: i,
36441
36441
  className: n,
36442
- selected: d
36442
+ selected: f
36443
36443
  }),
36444
36444
  children: /* @__PURE__ */ E("div", {
36445
36445
  className: "p-4",
36446
36446
  children: /* @__PURE__ */ E(bY, {
36447
36447
  inputLabel: e,
36448
36448
  buttonLabel: t,
36449
- color: r,
36450
- onChange: l,
36451
- onConfirm: u,
36449
+ color: i,
36450
+ onChange: u,
36451
+ onConfirm: d,
36452
36452
  className: "w-[328px]"
36453
36453
  })
36454
36454
  })
@@ -54914,7 +54914,7 @@ var Wge = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
54914
54914
  ]
54915
54915
  })
54916
54916
  }), t_e = ({ className: e, header: t, title: n, description: r, ...i }) => /* @__PURE__ */ D("div", {
54917
- className: H("bg-white-alpha-2 rounded-500 flex flex-col justify-between gap-6 overflow-clip p-6 sm:min-h-[288px]", e),
54917
+ className: H("bg-white-alpha-2 rounded-500 flex flex-col justify-between gap-6 overflow-clip p-6 sm:min-h-[360px]", e),
54918
54918
  ...i,
54919
54919
  children: [/* @__PURE__ */ E("div", {
54920
54920
  className: "[&_img:h-full] [&_img:w-auto] [&_img:object-contain] h-18 w-full shrink-0",
@@ -54922,10 +54922,10 @@ var Wge = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
54922
54922
  }), /* @__PURE__ */ D("div", {
54923
54923
  className: "flex w-full flex-1 flex-col justify-end gap-4",
54924
54924
  children: [/* @__PURE__ */ E("div", {
54925
- className: "component-light-700 text-content-white-primary",
54925
+ className: "component-light-700 text-content-white-primary text-balance",
54926
54926
  children: n
54927
54927
  }), /* @__PURE__ */ E("div", {
54928
- className: "component-light-600 text-content-white-secondary",
54928
+ className: "component-light-600 text-content-white-secondary text-pretty",
54929
54929
  children: r
54930
54930
  })]
54931
54931
  })]
@@ -56933,7 +56933,7 @@ var Dve = ({ titleBlock: e, selectedIndex: t, background: n = "neutral-50-bottom
56933
56933
  ...n,
56934
56934
  children: e
56935
56935
  }) : null, Ave = ({ titleBlock: e, background: t, children: r, className: i, ...a }) => {
56936
- let o = n.count(r);
56936
+ let s = n.toArray(r), c = s.length;
56937
56937
  return /* @__PURE__ */ E("section", {
56938
56938
  className: H("pt-e700 pb-e1000 w-full px-4 sm:px-6 md:px-8 xl:px-10", {
56939
56939
  "bg-surface-default": t === "white",
@@ -56944,30 +56944,33 @@ var Dve = ({ titleBlock: e, selectedIndex: t, background: n = "neutral-50-bottom
56944
56944
  className: "gap-i600 mx-auto flex w-full max-w-[1200px] flex-col items-center",
56945
56945
  children: [e, /* @__PURE__ */ E("div", {
56946
56946
  className: V("grid w-full grid-cols-1 gap-6", {
56947
- "lg:grid-cols-2": o < 3,
56948
- "lg:grid-cols-3": o >= 3
56947
+ "lg:grid-cols-3": c === 3,
56948
+ "sm:grid-cols-2 xl:grid-cols-4": c !== 3
56949
56949
  }),
56950
- children: r
56950
+ children: s.map((e) => u(e) ? o(e, { cardCount: c }) : e)
56951
56951
  })]
56952
56952
  })
56953
56953
  });
56954
- }, jve = ({ icon: e, title: t, description: n, className: r, ...i }) => /* @__PURE__ */ D("div", {
56955
- className: H("flex flex-col gap-4 sm:flex-row sm:gap-6 lg:flex-col lg:gap-4", "border-t border-neutral-400", "pt-6 sm:pt-8", r),
56956
- ...i,
56957
- children: [/* @__PURE__ */ E("div", {
56958
- className: "relative size-12 shrink-0",
56959
- children: e
56960
- }), /* @__PURE__ */ D("div", {
56961
- className: "flex flex-col gap-4",
56962
- children: [/* @__PURE__ */ E("h3", {
56963
- className: "component-700 text-content-primary max-w-[560px]",
56964
- children: t
56965
- }), /* @__PURE__ */ E("p", {
56966
- className: "body-light-600 text-content-secondary max-w-[560px]",
56967
- children: n
56954
+ }, jve = ({ icon: e, title: t, description: n, cardCount: r = 3, className: i, ...a }) => {
56955
+ let o = r === 3;
56956
+ return /* @__PURE__ */ D("div", {
56957
+ className: H("rounded-500 border-misc-border flex flex-col gap-4 border p-6", o ? "sm:flex-row sm:gap-6 lg:min-h-[360px] lg:flex-col lg:gap-4" : "sm:min-h-[360px]", i),
56958
+ ...a,
56959
+ children: [/* @__PURE__ */ E("div", {
56960
+ className: "relative size-12 shrink-0",
56961
+ children: e
56962
+ }), /* @__PURE__ */ D("div", {
56963
+ className: V("flex flex-col gap-4 sm:flex-1", o ? "lg:justify-end" : "sm:justify-end"),
56964
+ children: [/* @__PURE__ */ E("h3", {
56965
+ className: V("component-700 text-content-primary text-balance", o && "sm:max-w-[560px] lg:max-w-none"),
56966
+ children: t
56967
+ }), /* @__PURE__ */ E("p", {
56968
+ className: V("body-light-600 text-content-secondary text-pretty", o && "sm:max-w-[560px] lg:max-w-none"),
56969
+ children: n
56970
+ })]
56968
56971
  })]
56969
- })]
56970
- }), Mve = /* @__PURE__ */ Xt(((e) => {
56972
+ });
56973
+ }, Mve = /* @__PURE__ */ Xt(((e) => {
56971
56974
  var t = typeof Symbol == "function" && Symbol.for, n = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, a = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, c = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, u = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, p = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, h = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, _ = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, y = t ? Symbol.for("react.scope") : 60119;
56972
56975
  function b(e) {
56973
56976
  if (typeof e == "object" && e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.173",
3
+ "version": "0.1.175",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [