@npm_leadtech/legal-contracts-ui 0.82.3 → 0.84.0

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.
@@ -13,6 +13,7 @@ export declare interface BlogSectionProps {
13
13
  }[];
14
14
  cta: ReactNode | null;
15
15
  className?: string;
16
+ variant?: 'column' | 'row';
16
17
  }
17
18
 
18
19
  export interface SectionHeadingProps {
@@ -1,20 +1,40 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import t from "clsx";
4
- import { SectionHeading as a } from "./SectionHeading.js";
5
- import { LinkWrapper as d } from "./LinkWrapper.js";
6
- const p = ({ header: m, articles: r, cta: o, className: n = "" }) => r.length === 0 ? null : /* @__PURE__ */ e("section", { className: t("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", n), children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
7
- m && /* @__PURE__ */ e(a, { ...m }),
8
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: r.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
9
- /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-t-sm md:h-full md:max-w-51 md:rounded-t-none md:rounded-l-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
10
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
11
- /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
12
- /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
13
- /* @__PURE__ */ e(d, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
14
- ] })
15
- ] }, l.title)) }),
16
- !!o && /* @__PURE__ */ e(d, { className: "w-full md:w-fit", variant: "secondary-green", children: o })
17
- ] }) });
3
+ import o from "clsx";
4
+ import { SectionHeading as c } from "./SectionHeading.js";
5
+ import { LinkWrapper as t } from "./LinkWrapper.js";
6
+ const u = ({ header: r, articles: m, cta: d, className: s = "", variant: a = "row" }) => {
7
+ if (m.length === 0) return null;
8
+ const n = a === "row";
9
+ return /* @__PURE__ */ e("section", { className: o("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", s), children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
10
+ r && /* @__PURE__ */ e(c, { ...r }),
11
+ /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: m.map((l) => /* @__PURE__ */ i(
12
+ "article",
13
+ {
14
+ className: o("flex flex-col rounded-sm bg-white shadow", n && "md:flex-row"),
15
+ children: [
16
+ /* @__PURE__ */ e(
17
+ "div",
18
+ {
19
+ className: o(
20
+ "relative h-42 shrink-0 overflow-hidden rounded-t-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
21
+ n && "md:h-full md:max-w-51 md:rounded-t-none md:rounded-l-sm"
22
+ ),
23
+ children: l.image
24
+ }
25
+ ),
26
+ /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
27
+ /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
28
+ /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
29
+ /* @__PURE__ */ e(t, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
30
+ ] })
31
+ ]
32
+ },
33
+ l.title
34
+ )) }),
35
+ !!d && /* @__PURE__ */ e(t, { className: "w-full md:w-fit", variant: "secondary-green", children: d })
36
+ ] }) });
37
+ };
18
38
  export {
19
- p as BlogSection
39
+ u as BlogSection
20
40
  };
@@ -11,6 +11,7 @@ export interface BlogSectionProps {
11
11
  }[];
12
12
  cta: ReactNode | null;
13
13
  className?: string;
14
+ variant?: 'column' | 'row';
14
15
  }
15
16
 
16
17
  export interface BreadcrumbProps {
@@ -5,7 +5,7 @@ import { DocumentSection as n } from "./DocumentSection.js";
5
5
  import { Breadcrumb as x } from "./Breadcrumb.js";
6
6
  import { FaqSection as f } from "./FaqSection.js";
7
7
  import { BlogSection as d } from "./BlogSection.js";
8
- const w = ({
8
+ const v = ({
9
9
  jumbo: r,
10
10
  breadcrumb: o,
11
11
  categories: m,
@@ -25,6 +25,8 @@ const w = ({
25
25
  d,
26
26
  {
27
27
  ...a,
28
+ className: "px-0!",
29
+ variant: "column",
28
30
  header: a.header ? {
29
31
  ...a.header,
30
32
  align: "start",
@@ -37,5 +39,5 @@ const w = ({
37
39
  ] })
38
40
  ] });
39
41
  export {
40
- w as CategoryProductTemplate
42
+ v as CategoryProductTemplate
41
43
  };
@@ -11,6 +11,7 @@ export interface BlogSectionProps {
11
11
  }[];
12
12
  cta: ReactNode | null;
13
13
  className?: string;
14
+ variant?: 'column' | 'row';
14
15
  }
15
16
 
16
17
  export interface CategoriesSectionProps {