@npm_leadtech/legal-contracts-ui 0.74.0 → 0.74.2

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,18 +1,18 @@
1
1
  import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as o } from "./SectionHeading.js";
4
- import { LinkWrapper as r } from "./LinkWrapper.js";
5
- const x = ({ header: t, articles: a, cta: m }) => a.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
- /* @__PURE__ */ e(o, { ...t }),
7
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: a.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
8
- /* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-l-sm md:h-50 lg:h-auto lg:max-w-51 [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
3
+ import { SectionHeading as a } from "./SectionHeading.js";
4
+ import { LinkWrapper as d } from "./LinkWrapper.js";
5
+ const x = ({ header: m, articles: r, cta: t }) => r.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
6
+ /* @__PURE__ */ e(a, { ...m }),
7
+ /* @__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: [
8
+ /* @__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 }),
9
9
  /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
10
10
  /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
11
11
  /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
12
- /* @__PURE__ */ e(r, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
12
+ /* @__PURE__ */ e(d, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
13
13
  ] })
14
14
  ] }, l.title)) }),
15
- /* @__PURE__ */ e(r, { className: "w-full md:w-fit", variant: "secondary-green", children: m })
15
+ /* @__PURE__ */ e(d, { className: "w-full md:w-fit", variant: "secondary-green", children: t })
16
16
  ] }) });
17
17
  export {
18
18
  x as BlogSection
@@ -6,10 +6,10 @@ export declare const HeroSection: FC<HeroSectionProps>;
6
6
  export declare interface HeroSectionProps {
7
7
  title: string;
8
8
  description?: string;
9
+ bgImage: ReactNode | null;
9
10
  cta?: ReactNode;
10
11
  heroDocuments: ItemProps[];
11
12
  listTitle?: string;
12
- backgroundImage?: string;
13
13
  }
14
14
 
15
15
  export interface ItemProps {
@@ -17,10 +17,8 @@ export interface ItemProps {
17
17
  image: ReactNode;
18
18
  title?: string;
19
19
  description?: string;
20
- documentUrl?: string;
21
- actions?: ReactNode;
20
+ documentUrl?: ReactNode;
22
21
  variant?: 'default' | 'card';
23
22
  className?: string;
24
- titleClassName?: string;
25
23
  }
26
24
 
@@ -1,32 +1,21 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Item as c } from "./Item.js";
3
+ import { Item as n } from "./Item.js";
4
4
  import { LinkWrapper as x } from "./LinkWrapper.js";
5
- const g = ({
6
- title: i,
7
- description: s,
8
- cta: l,
9
- heroDocuments: m,
10
- listTitle: n,
11
- backgroundImage: r
12
- }) => /* @__PURE__ */ e("section", { className: "bg-primary-50", children: /* @__PURE__ */ e(
13
- "div",
14
- {
15
- className: "bg-none bg-size-[420px_442px] bg-bottom-right bg-no-repeat xl:bg-(image:--hero-bg)",
16
- style: { "--hero-bg": r ? `url(${r})` : "none" },
17
- children: /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 px-6 py-10 md:px-20 lg:flex-row lg:gap-14 lg:px-8 lg:py-12 xl:justify-center xl:gap-20", children: [
18
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 pb-6 text-center lg:items-start lg:text-left xl:max-w-115", children: [
19
- /* @__PURE__ */ e("h1", { className: "font-lora text-hero md:text-super-hero text-neutral-900", children: i }),
20
- /* @__PURE__ */ e("p", { className: "text-big text-neutral-800", children: s }),
21
- !!l && /* @__PURE__ */ e(x, { variant: "primary-darkgreen", className: "w-full md:w-fit", children: l })
22
- ] }),
23
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4 md:w-full md:items-start md:justify-start xl:max-w-115", children: [
24
- /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: n }) }),
25
- /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(c, { ...a, variant: "card" }, a.title)) })
26
- ] })
5
+ const g = ({ title: i, description: s, cta: l, heroDocuments: m, listTitle: c, bgImage: r }) => /* @__PURE__ */ t("section", { className: "bg-primary-50 relative", children: [
6
+ !!r && r,
7
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 px-6 py-10 md:px-20 lg:flex-row lg:gap-14 lg:px-8 lg:py-12 xl:justify-center xl:gap-20", children: [
8
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-6 pb-6 text-center lg:items-start lg:text-left xl:max-w-115", children: [
9
+ /* @__PURE__ */ e("h1", { className: "font-lora text-hero md:text-super-hero text-neutral-900", children: i }),
10
+ /* @__PURE__ */ e("p", { className: "text-big text-neutral-800", children: s }),
11
+ !!l && /* @__PURE__ */ e(x, { variant: "primary-darkgreen", className: "w-full md:w-fit", children: l })
12
+ ] }),
13
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4 md:w-full md:items-start md:justify-start xl:max-w-115", children: [
14
+ /* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: c }) }),
15
+ /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(n, { ...a, variant: "card" }, a.title)) })
27
16
  ] })
28
- }
29
- ) });
17
+ ] })
18
+ ] });
30
19
  export {
31
20
  g as HeroSection
32
21
  };
@@ -36,10 +36,10 @@ export interface FaqTeaserSectionProps {
36
36
  export interface HeroSectionProps {
37
37
  title: string;
38
38
  description?: string;
39
+ bgImage: ReactNode | null;
39
40
  cta?: ReactNode;
40
41
  heroDocuments: ItemProps[];
41
42
  listTitle?: string;
42
- backgroundImage?: string;
43
43
  }
44
44
 
45
45
  export interface HomeStepsProps {
@@ -71,11 +71,9 @@ export interface ItemProps {
71
71
  image: ReactNode;
72
72
  title?: string;
73
73
  description?: string;
74
- documentUrl?: string;
75
- actions?: ReactNode;
74
+ documentUrl?: ReactNode;
76
75
  variant?: 'default' | 'card';
77
76
  className?: string;
78
- titleClassName?: string;
79
77
  }
80
78
 
81
79
  export interface LawGeniusSectionProps {
@@ -8,10 +8,8 @@ export declare interface ItemProps {
8
8
  image: ReactNode;
9
9
  title?: string;
10
10
  description?: string;
11
- documentUrl?: string;
12
- actions?: ReactNode;
11
+ documentUrl?: ReactNode;
13
12
  variant?: 'default' | 'card';
14
13
  className?: string;
15
- titleClassName?: string;
16
14
  }
17
15
 
@@ -1,32 +1,32 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- const h = ({
4
- image: s,
5
- title: r,
3
+ import d from "clsx";
4
+ import { ChevronRightIcon as c } from "./ChevronRightIcon.js";
5
+ const x = ({
6
+ image: l,
7
+ title: t,
6
8
  description: a,
7
- documentUrl: l,
8
- actions: d,
9
- variant: n = "default",
10
- className: m = "",
11
- titleClassName: o = ""
12
- }) => /* @__PURE__ */ t(
13
- "a",
9
+ documentUrl: s,
10
+ variant: r = "default",
11
+ className: i = ""
12
+ }) => /* @__PURE__ */ o(
13
+ "div",
14
14
  {
15
- href: l,
16
- className: `hover:bg-primary-50 flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 ${{
15
+ className: `hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""] ${{
17
16
  default: "",
18
17
  card: "border border-0.5 border-neutral-200 shadow-lg bg-white"
19
- }[n]} ${m}`,
18
+ }[r]} ${i}`,
20
19
  children: [
21
- s,
22
- /* @__PURE__ */ t("div", { className: "flex-1", children: [
23
- r && /* @__PURE__ */ e("p", { className: `text-medium font-semibold text-neutral-900 ${o}`, children: r }),
20
+ l,
21
+ /* @__PURE__ */ o("div", { className: "flex-1", children: [
22
+ t && /* @__PURE__ */ e("p", { className: d("text-medium text-neutral-900", r === "card" && "font-semibold"), children: t }),
24
23
  a && /* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-600", children: a })
25
24
  ] }),
26
- /* @__PURE__ */ e("div", { children: d })
25
+ !!s && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: s }),
26
+ r === "card" && /* @__PURE__ */ e(c, { width: 20, height: 20 })
27
27
  ]
28
28
  }
29
29
  );
30
30
  export {
31
- h as Item
31
+ x as Item
32
32
  };
@@ -6,6 +6,6 @@ export declare const Jumbotron: FC<JumbotronProps>;
6
6
  export declare interface JumbotronProps {
7
7
  title: string;
8
8
  description: string;
9
- bgImage: ReactNode;
9
+ bgImage: ReactNode | null;
10
10
  }
11
11
 
@@ -1,11 +1,11 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as e, jsx as a } from "react/jsx-runtime";
2
2
  import { Markdown as l } from "./Markdown.js";
3
- const n = ({ title: a, description: r, bgImage: o }) => /* @__PURE__ */ t("section", { className: "bg-primary-900 relative isolate overflow-hidden p-6 text-white", children: [
4
- /* @__PURE__ */ t("div", { className: "mx-auto flex max-w-250 flex-col gap-4 md:text-center", children: [
5
- /* @__PURE__ */ e("h1", { className: "font-lora text-large text-neutral-25 md:text-jumbotron", children: a }),
6
- /* @__PURE__ */ e(l, { content: r, className: "text-small text-neutral-25 mx-auto max-w-201 xl:max-w-250" })
3
+ const n = ({ title: o, description: r, bgImage: t }) => /* @__PURE__ */ e("section", { className: "bg-primary-900 relative isolate overflow-hidden p-6 text-white", children: [
4
+ /* @__PURE__ */ e("div", { className: "mx-auto flex max-w-250 flex-col gap-4 md:text-center", children: [
5
+ /* @__PURE__ */ a("h1", { className: "font-lora text-large text-neutral-25 md:text-jumbotron", children: o }),
6
+ /* @__PURE__ */ a(l, { content: r, className: "text-small text-neutral-25 mx-auto max-w-201 xl:max-w-250" })
7
7
  ] }),
8
- o
8
+ !!t && t
9
9
  ] });
10
10
  export {
11
11
  n as Jumbotron
@@ -6,11 +6,9 @@ export interface ItemProps {
6
6
  image: ReactNode;
7
7
  title?: string;
8
8
  description?: string;
9
- documentUrl?: string;
10
- actions?: ReactNode;
9
+ documentUrl?: ReactNode;
11
10
  variant?: 'default' | 'card';
12
11
  className?: string;
13
- titleClassName?: string;
14
12
  }
15
13
 
16
14
  export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
@@ -1,26 +1,25 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as s } from "./SectionHeading.js";
4
- import { Item as o } from "./Item.js";
5
- import { ChevronDownIcon as a } from "./ChevronDownIcon.js";
6
- const x = ({ header: n, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
3
+ import { SectionHeading as a } from "./SectionHeading.js";
4
+ import { Item as s } from "./Item.js";
5
+ import { ChevronDownIcon as n } from "./ChevronDownIcon.js";
6
+ const b = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
7
7
  /* @__PURE__ */ i("div", { className: "hidden flex-col gap-6 md:flex", children: [
8
- /* @__PURE__ */ e(s, { ...n, align: "start" }),
9
- /* @__PURE__ */ e("div", { className: "grid grid-cols-3", children: l.map((r) => /* @__PURE__ */ e("div", { className: "border-neutral-200 px-6 not-nth-[3n]:border-r", children: /* @__PURE__ */ e(o, { ...r, className: "items-start! px-2!", titleClassName: "font-normal!" }) }, `desktop-${r.id}`)) })
8
+ /* @__PURE__ */ e(a, { ...o, align: "start", className: "pl-7" }),
9
+ /* @__PURE__ */ e("div", { className: "grid grid-flow-col grid-rows-3", children: l.map((r, d) => /* @__PURE__ */ e("div", { className: `border-neutral-200 px-6 ${d < 6 ? "border-r" : ""} `, children: /* @__PURE__ */ e(s, { ...r, className: "items-start! px-2!" }) }, `desktop-${r.id}`)) })
10
10
  ] }),
11
11
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-10 md:hidden", children: /* @__PURE__ */ i("details", { className: "group", children: [
12
12
  /* @__PURE__ */ i("summary", { className: "flex cursor-pointer list-none items-center justify-between rounded-sm border border-neutral-200 p-4", children: [
13
- /* @__PURE__ */ e("span", { children: n.title }),
14
- /* @__PURE__ */ e(a, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
13
+ /* @__PURE__ */ e("span", { children: o.title }),
14
+ /* @__PURE__ */ e(n, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
15
15
  ] }),
16
16
  /* @__PURE__ */ e("div", { className: "flex flex-col border-x border-b border-neutral-200", children: l.map((r) => /* @__PURE__ */ e(
17
- o,
17
+ s,
18
18
  {
19
19
  id: r.id,
20
20
  image: r.image,
21
21
  title: r.title,
22
22
  description: r.description,
23
- actions: null,
24
23
  className: "border-b border-neutral-200 p-6 last:border-b-0",
25
24
  documentUrl: r.documentUrl
26
25
  },
@@ -29,5 +28,5 @@ const x = ({ header: n, moreDocuments: l = [] }) => l.length === 0 ? null : /* @
29
28
  ] }) })
30
29
  ] });
31
30
  export {
32
- x as MoreTemplatesSection
31
+ b as MoreTemplatesSection
33
32
  };
@@ -99,7 +99,7 @@ export interface JumboDocsProps {
99
99
  export interface JumbotronProps {
100
100
  title: string;
101
101
  description: string;
102
- bgImage: ReactNode;
102
+ bgImage: ReactNode | null;
103
103
  }
104
104
 
105
105
  export interface LinkedProductProps {