@photoroom/ui 0.1.523 → 0.1.524

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
@@ -53395,28 +53395,29 @@ var M_e = ({ title: e, summary: r, snapshot: i, className: a, ...o }) => /* @__P
53395
53395
  })]
53396
53396
  })]
53397
53397
  });
53398
- }, P_e = ({ titleBlock: e, children: r, columns: i = 3, showMoreLabel: a, ...o }) => {
53399
- let [s, c] = Me(!1), l = V(null), u = fe.toArray(r), d = i * 2, f = !s && !!a && u.length > d, p = () => {
53400
- let e = l.current;
53401
- Ie(() => c(!0)), e?.querySelector("a, button")?.focus();
53398
+ }, P_e = ({ titleBlock: e, children: r, columns: i = 3, showMoreLabel: a, background: o = "surface-default", ...s }) => {
53399
+ let [c, l] = Me(!1), u = V(null), d = fe.toArray(r), f = i * 2, p = !c && !!a && d.length > f, m = () => {
53400
+ let e = u.current;
53401
+ Ie(() => l(!0)), e?.querySelector("a, button")?.focus();
53402
53402
  };
53403
- return /* @__PURE__ */ n("div", {
53403
+ return /* @__PURE__ */ n(u9, {
53404
+ variant: o,
53404
53405
  className: H("pt-e700 pb-e1000 gap-i600 flex flex-col", "px-4 sm:px-6 md:px-8 xl:px-10"),
53405
- ...o,
53406
+ ...s,
53406
53407
  children: [e, /* @__PURE__ */ n("div", {
53407
53408
  className: "mx-auto flex w-full flex-col gap-10 xl:max-w-[1200px]",
53408
53409
  children: [/* @__PURE__ */ t("div", {
53409
53410
  className: H("grid grid-cols-1 gap-y-6", "sm:grid-cols-2 sm:gap-x-6 sm:gap-y-8", "lg:grid-cols-3", { "xl:grid-cols-4": i === 4 }),
53410
- children: u.map((e, n) => /* @__PURE__ */ t("div", {
53411
- ref: f && n === d ? l : void 0,
53412
- className: H("flex", { hidden: f && n >= d }),
53411
+ children: d.map((e, n) => /* @__PURE__ */ t("div", {
53412
+ ref: p && n === f ? u : void 0,
53413
+ className: H("flex", { hidden: p && n >= f }),
53413
53414
  children: e
53414
53415
  }, n))
53415
- }), f && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Vu, {
53416
+ }), p && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(Vu, {
53416
53417
  as: "button",
53417
53418
  type: "button",
53418
53419
  variant: "accent",
53419
- onClick: p,
53420
+ onClick: m,
53420
53421
  children: a
53421
53422
  }) })]
53422
53423
  })]
@@ -55456,11 +55457,12 @@ var rye = Object.assign(R9, {
55456
55457
  })
55457
55458
  ]
55458
55459
  });
55459
- }, dye = ({ title: e, overline: r, placement: i = "default" }) => /* @__PURE__ */ n("div", {
55460
- className: H("mx-auto flex w-full max-w-[1200px] flex-col gap-1", {
55460
+ }, dye = ({ title: e, overline: r, placement: i = "default", className: a, ...o }) => /* @__PURE__ */ n("div", {
55461
+ className: U("mx-auto flex w-full max-w-[1200px] flex-col gap-1", {
55461
55462
  "items-center text-center": i === "default",
55462
55463
  "items-start text-start": i === "side"
55463
- }),
55464
+ }, a),
55465
+ ...o,
55464
55466
  children: [!!r && /* @__PURE__ */ t("div", {
55465
55467
  className: "component-700 text-content-accent max-w-[600px]",
55466
55468
  children: r
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.523",
3
+ "version": "0.1.524",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [