@photoroom/ui 0.1.229 → 0.1.230

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.
@@ -1,6 +1,7 @@
1
- export type DataBlockProps = Omit<React.ComponentProps<"div">, "title"> & Readonly<{
1
+ import { type BlockBackgroundVariant } from "../BlockBackground";
2
+ export type DataBlockProps = Omit<React.ComponentProps<"section">, "title"> & Readonly<{
2
3
  title?: React.ReactNode;
3
- background?: "white" | "lightgrey";
4
+ background?: BlockBackgroundVariant;
4
5
  }>;
5
- export declare const DataBlock: ({ title, children, background, ...rest }: DataBlockProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const DataBlock: ({ title, background, children, className, ...rest }: DataBlockProps) => import("react/jsx-runtime").JSX.Element;
6
7
  //# sourceMappingURL=DataBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/DataBlock/DataBlock.tsx"],"names":[],"mappings":"AAGA,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,GACrE,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,WAAW,CAAC;CACpC,CAAC,CAAC;AAEL,eAAO,MAAM,SAAS,GAAI,0CAAoD,cAAc,4CA0B3F,CAAC"}
1
+ {"version":3,"file":"DataBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/DataBlock/DataBlock.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAmB,KAAK,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAElF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,GACzE,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC,CAAC;AAEL,eAAO,MAAM,SAAS,GAAI,qDAMvB,cAAc,4CAwBhB,CAAC"}
package/index.mjs CHANGED
@@ -20688,10 +20688,10 @@ fx();
20688
20688
  //#region ../shared/lib/ampli/index.ts
20689
20689
  var px = { production: "0cc38251f8841c0d84d11fd20b400b07" }, mx = {
20690
20690
  plan: {
20691
- version: "378",
20691
+ version: "380",
20692
20692
  branch: "main",
20693
20693
  source: "web",
20694
- versionId: "852daa01-4ed6-48a2-aa34-eb47d3791ee3"
20694
+ versionId: "16c224f9-b4a9-4458-b2d5-07461a3b0940"
20695
20695
  },
20696
20696
  ingestionMetadata: {
20697
20697
  sourceName: "browser-typescript-ampli",
@@ -55114,21 +55114,34 @@ var p_e = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
55114
55114
  })]
55115
55115
  })
55116
55116
  })
55117
- }), b_e = ({ title: e, children: t, background: r = "white", ...i }) => {
55118
- let a = n.toArray(t);
55119
- return /* @__PURE__ */ D("div", {
55120
- className: V("pt-e700 pb-e1000 px-4 sm:px-6 md:px-8", "gap-i600 flex flex-col", {
55121
- "bg-surface-default": r === "white",
55122
- "bg-neutral-50": r === "lightgrey"
55123
- }),
55124
- ...i,
55117
+ }), f9 = l(({ as: e = "section", variant: t = "surface-default", className: n, children: r, ...i }, a) => /* @__PURE__ */ E(e, {
55118
+ ref: a,
55119
+ ...i,
55120
+ className: H({
55121
+ "bg-surface-default": t === "surface-default",
55122
+ "bg-neutral-50": t === "neutral-50",
55123
+ "bg-sand-50": t === "sand-50",
55124
+ "to-surface-default bg-linear-to-b from-neutral-50": t === "neutral-50-top",
55125
+ "from-surface-default bg-linear-to-b to-neutral-50": t === "neutral-50-bottom"
55126
+ }, n),
55127
+ children: r
55128
+ }));
55129
+ f9.displayName = "BlockBackground";
55130
+ //#endregion
55131
+ //#region src/components/website/DataBlock/DataBlock.tsx
55132
+ var b_e = ({ title: e, background: t = "surface-default", children: r, className: i, ...a }) => {
55133
+ let o = n.toArray(r);
55134
+ return /* @__PURE__ */ D(f9, {
55135
+ variant: t,
55136
+ className: H("pt-e700 pb-e1000 gap-i600 flex flex-col px-4 sm:px-6 md:px-8", i),
55137
+ ...a,
55125
55138
  children: [e, /* @__PURE__ */ E("div", {
55126
55139
  className: V("mx-auto w-full max-w-[1200px]", "grid grid-cols-1 gap-x-6 gap-y-8 sm:grid-cols-2 sm:gap-y-12", {
55127
- "md:grid-cols-2": a.length < 3,
55128
- "md:grid-cols-3": a.length === 3,
55129
- "md:grid-cols-4": a.length > 3
55140
+ "md:grid-cols-2": o.length < 3,
55141
+ "md:grid-cols-3": o.length === 3,
55142
+ "md:grid-cols-4": o.length > 3
55130
55143
  }),
55131
- children: a
55144
+ children: o
55132
55145
  })]
55133
55146
  });
55134
55147
  }, x_e = ({ data: e, title: t, subtitle: n, className: r, ...i }) => /* @__PURE__ */ D("div", {
@@ -55148,7 +55161,7 @@ var p_e = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
55148
55161
  children: n
55149
55162
  })
55150
55163
  ]
55151
- }), f9 = ({ children: e, className: t }) => /* @__PURE__ */ E("div", {
55164
+ }), p9 = ({ children: e, className: t }) => /* @__PURE__ */ E("div", {
55152
55165
  className: "px-4 sm:px-6 md:px-8 xl:px-10",
55153
55166
  children: /* @__PURE__ */ E("div", {
55154
55167
  className: V("mx-auto max-w-[1200px]", t),
@@ -55159,7 +55172,7 @@ var p_e = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
55159
55172
  return /* @__PURE__ */ D("div", {
55160
55173
  className: "pt-e700 pb-e1000 gap-i600 flex flex-col",
55161
55174
  ...o,
55162
- children: [e && /* @__PURE__ */ E(f9, { children: e }), /* @__PURE__ */ D("div", {
55175
+ children: [e && /* @__PURE__ */ E(p9, { children: e }), /* @__PURE__ */ D("div", {
55163
55176
  className: "gap-i500 flex flex-col",
55164
55177
  children: [/* @__PURE__ */ E("div", {
55165
55178
  ref: d,
@@ -55174,7 +55187,7 @@ var p_e = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
55174
55187
  children: e
55175
55188
  }, t))
55176
55189
  })
55177
- }), (n || s || c) && /* @__PURE__ */ D(f9, {
55190
+ }), (n || s || c) && /* @__PURE__ */ D(p9, {
55178
55191
  className: "flex flex-row-reverse items-center justify-between gap-2",
55179
55192
  children: [(s || c) && /* @__PURE__ */ D("div", {
55180
55193
  className: "flex shrink-0 gap-2",
@@ -55455,22 +55468,7 @@ var p_e = ({ titleBlock: e, children: t, ...n }) => /* @__PURE__ */ D("div", {
55455
55468
  }), !!r && /* @__PURE__ */ E("div", { children: r })]
55456
55469
  })]
55457
55470
  })
55458
- }), p9 = l(({ as: e = "section", variant: t = "surface-default", className: n, children: r, ...i }, a) => /* @__PURE__ */ E(e, {
55459
- ref: a,
55460
- ...i,
55461
- className: H({
55462
- "bg-surface-default": t === "surface-default",
55463
- "bg-neutral-50": t === "neutral-50",
55464
- "bg-sand-50": t === "sand-50",
55465
- "to-surface-default bg-linear-to-b from-neutral-50": t === "neutral-50-top",
55466
- "from-surface-default bg-linear-to-b to-neutral-50": t === "neutral-50-bottom"
55467
- }, n),
55468
- children: r
55469
- }));
55470
- p9.displayName = "BlockBackground";
55471
- //#endregion
55472
- //#region src/components/website/FocusBlock/FocusBlock.tsx
55473
- var B_e = ({ overline: e, title: t, description: n, visual: r, ctas: i, background: a = "sand-50", ...o }) => /* @__PURE__ */ E(p9, {
55471
+ }), B_e = ({ overline: e, title: t, description: n, visual: r, ctas: i, background: a = "sand-50", ...o }) => /* @__PURE__ */ E(f9, {
55474
55472
  variant: a,
55475
55473
  className: "py-e700 px-4 sm:px-6 md:px-8 xl:px-10",
55476
55474
  ...o,
@@ -56744,7 +56742,7 @@ var Mve = Object.assign(R9, {
56744
56742
  })]
56745
56743
  })]
56746
56744
  })
56747
- }), Pve = ({ title: e, visualElement: t, largeVisualAsset: n, background: r = "neutral-50", bgColor: i, ...a }) => /* @__PURE__ */ E(p9, {
56745
+ }), Pve = ({ title: e, visualElement: t, largeVisualAsset: n, background: r = "neutral-50", bgColor: i, ...a }) => /* @__PURE__ */ E(f9, {
56748
56746
  as: "div",
56749
56747
  variant: i ? "surface-default" : r,
56750
56748
  className: V("relative flex overflow-hidden", "pt-e600 pb-e500 sm:py-e500 lg:py-e800", "px-4 sm:px-6 md:px-8 xl:px-10", "xl:min-h-[720px]"),
@@ -57199,7 +57197,7 @@ var Yve = ({ title: e, children: t, cta: n, image: r, ...i }) => {
57199
57197
  H9.displayName = "ToolSmallCard";
57200
57198
  //#endregion
57201
57199
  //#region src/components/website/UseCasesBlock/UseCasesBlock.tsx
57202
- var Xve = ({ titleBlock: e, selectedIndex: t, background: n = "neutral-50-bottom", useCases: r, ...a }) => /* @__PURE__ */ D(p9, {
57200
+ var Xve = ({ titleBlock: e, selectedIndex: t, background: n = "neutral-50-bottom", useCases: r, ...a }) => /* @__PURE__ */ D(f9, {
57203
57201
  variant: n,
57204
57202
  className: V("flex flex-col items-center", "px-4 sm:px-6 md:px-8 xl:px-10", "pt-e700 pb-e1000", "gap-i400"),
57205
57203
  ...a,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.229",
3
+ "version": "0.1.230",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [