@photoroom/ui 0.1.730 → 0.1.731

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,7 +1,9 @@
1
1
  import { type BlockBackgroundVariant } from "../BlockBackground";
2
2
  export type DataBlockProps = Omit<React.ComponentProps<"section">, "title"> & Readonly<{
3
3
  title?: React.ReactNode;
4
+ cta?: React.ReactNode;
5
+ ctaInTitle?: boolean;
4
6
  background?: BlockBackgroundVariant;
5
7
  }>;
6
- export declare const DataBlock: ({ title, background, children, className, ...rest }: DataBlockProps) => import("react").JSX.Element;
8
+ export declare const DataBlock: ({ title, cta, ctaInTitle, background, children, className, ...rest }: DataBlockProps) => import("react").JSX.Element;
7
9
  //# sourceMappingURL=DataBlock.d.ts.map
@@ -1 +1 @@
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,wDAMnB,cAAc,gCAwBhB,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,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,sBAAsB,CAAC;CACrC,CAAC,CAAC;AAEL,eAAO,MAAM,SAAS,yEAQnB,cAAc,gCA6BhB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export type FeaturesBlockProps = Readonly<{
2
2
  title?: React.ReactNode;
3
3
  features?: React.ReactNode;
4
+ cta?: React.ReactNode;
4
5
  }>;
5
- export declare const FeaturesBlock: ({ title, features, ...rest }: FeaturesBlockProps) => import("react").JSX.Element;
6
+ export declare const FeaturesBlock: ({ title, features, cta, ...rest }: FeaturesBlockProps) => import("react").JSX.Element;
6
7
  //# sourceMappingURL=FeaturesBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FeaturesBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/FeaturesBlock/FeaturesBlock.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC,CAAC;AAEH,eAAO,MAAM,aAAa,iCAAkC,kBAAkB,gCAO7E,CAAC"}
1
+ {"version":3,"file":"FeaturesBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/FeaturesBlock/FeaturesBlock.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH,eAAO,MAAM,aAAa,sCAAuC,kBAAkB,gCAclF,CAAC"}
package/index.mjs CHANGED
@@ -58731,20 +58731,27 @@ var w7 = ({ label: e, value: t, max: n = 5, tooltip: r, className: i }) => {
58731
58731
  })]
58732
58732
  })
58733
58733
  })
58734
- }), NTe = ({ title: e, background: t = "surface-default", children: n, className: r, ...i }) => {
58735
- let a = _e.toArray(n);
58734
+ }), NTe = ({ title: e, cta: t, ctaInTitle: n = !1, background: r = "surface-default", children: i, className: a, ...o }) => {
58735
+ let s = _e.toArray(i);
58736
58736
  return /* @__PURE__ */ L(x7, {
58737
- variant: t,
58738
- className: U("pt-e700 pb-e1000 gap-i600 flex flex-col px-4 sm:px-6 md:px-8", r),
58739
- ...i,
58740
- children: [e, /* @__PURE__ */ I("div", {
58741
- className: H("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", {
58742
- "md:grid-cols-2": a.length < 3,
58743
- "md:grid-cols-3": a.length === 3,
58744
- "md:grid-cols-4": a.length > 3
58737
+ variant: r,
58738
+ className: U("pt-e700 pb-e1000 gap-i600 flex flex-col px-4 sm:px-6 md:px-8", a),
58739
+ ...o,
58740
+ children: [
58741
+ e,
58742
+ /* @__PURE__ */ I("div", {
58743
+ className: H("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", {
58744
+ "md:grid-cols-2": s.length < 3,
58745
+ "md:grid-cols-3": s.length === 3,
58746
+ "md:grid-cols-4": s.length > 3
58747
+ }),
58748
+ children: s
58745
58749
  }),
58746
- children: a
58747
- })]
58750
+ !!t && /* @__PURE__ */ I("div", {
58751
+ className: H("mx-auto w-full max-w-[1200px]", n && "lg:hidden"),
58752
+ children: t
58753
+ })
58754
+ ]
58748
58755
  });
58749
58756
  }, PTe = ({ data: e, title: t, subtitle: n, className: r, ...i }) => /* @__PURE__ */ L("div", {
58750
58757
  className: U("border-t border-neutral-400 pt-4 sm:pt-6", r),
@@ -59061,10 +59068,19 @@ var w7 = ({ label: e, value: t, max: n = 5, tooltip: r, className: i }) => {
59061
59068
  })
59062
59069
  })]
59063
59070
  });
59064
- }, KTe = ({ title: e, features: t, ...n }) => /* @__PURE__ */ L("div", {
59071
+ }, KTe = ({ title: e, features: t, cta: n, ...r }) => /* @__PURE__ */ L("div", {
59065
59072
  className: "pt-e700 pb-e1000 gap-i600 flex flex-col",
59066
- ...n,
59067
- children: [e, t]
59073
+ ...r,
59074
+ children: [e, n ? /* @__PURE__ */ L("div", {
59075
+ className: "gap-i200 flex flex-col",
59076
+ children: [/* @__PURE__ */ I("div", {
59077
+ className: "gap-i600 flex flex-col",
59078
+ children: t
59079
+ }), /* @__PURE__ */ I("div", {
59080
+ className: "flex justify-center px-4",
59081
+ children: n
59082
+ })]
59083
+ }) : t]
59068
59084
  }), qTe = W("mx-auto grid grid-cols-1 gap-4", { variants: { invertOrder: {
59069
59085
  true: "lg:-order-1 lg:pe-16",
59070
59086
  false: "lg:ps-16"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@photoroom/ui",
3
- "version": "0.1.730",
3
+ "version": "0.1.731",
4
4
  "private": false,
5
5
  "description": "Photoroom design system components",
6
6
  "sideEffects": [