@npm_leadtech/legal-contracts-ui 0.129.8 → 0.129.10

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.
@@ -77,6 +77,8 @@ export interface IntroSectionProps {
77
77
  cta?: LinkWrapper;
78
78
  className?: string;
79
79
  containerClassName?: string;
80
+ firstColumnClassName?: string;
81
+ secondColumnClassName?: string;
80
82
  }
81
83
 
82
84
  export interface Jumbotron2Props {
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as r, Fragment as w } from "react/jsx-runtime";
2
2
  import { clsx as h } from "clsx";
3
- import { howItWorksLawGeniusCtaLinkClassName as N, howItWorksHeroCtaLinkClassName as b, howItWorksLawGeniusBelowStepsMarkdownClassName as k, howItWorksResourcesSupportBodyClassName as y, howItWorksResourcesCtaLinkClassName as C } from "./HowItWorksTemplateTokens.js";
3
+ import { howItWorksLawGeniusCtaLinkClassName as N, howItWorksHeroCtaLinkClassName as b, howItWorksLawGeniusBelowStepsMarkdownClassName as k, howItWorksResourcesSupportBodyClassName as C, howItWorksResourcesCtaLinkClassName as y } from "./HowItWorksTemplateTokens.js";
4
4
  import { HeroImageShell as v } from "./HeroImageShell.js";
5
5
  import { RatafiaSection as S } from "./RatafiaSection.js";
6
6
  import { LawGeniusStepCard as M } from "./LawGeniusStepCard.js";
@@ -20,27 +20,27 @@ const U = (t) => {
20
20
  }, J = ({ hero: t, processSteps: i, lawGenius: l, resources: n }) => {
21
21
  const c = t.introMarkdown.trim().length > 0, d = t.closingMarkdown.trim().length > 0, p = n.supportBodyMarkdown.trim().length > 0, x = l.belowStepsMarkdown.trim().length > 0, { examples: s } = n, f = /* @__PURE__ */ e(L, { size: "default", variant: "primary-green", className: "shrink-0 font-bold", children: /* @__PURE__ */ e("a", { href: l.cta.href, className: N, children: l.cta.label }) });
22
22
  return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col overflow-x-clip", children: [
23
- /* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col gap-12", children: [
24
- /* @__PURE__ */ r("div", { className: "text-center", children: [
25
- /* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-full flex-col items-center gap-2", children: [
26
- /* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: t.eyebrow }),
27
- /* @__PURE__ */ e("span", { className: "max-w-ds-10xl min-w-ds-7xl h-px w-full shrink-0 bg-neutral-400", "aria-hidden": !0 })
28
- ] }),
29
- /* @__PURE__ */ e("h1", { className: "font-lora text-super-hero mx-auto mt-12 max-w-3xl font-bold text-neutral-800", children: t.title })
23
+ /* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col items-center gap-12", children: [
24
+ /* @__PURE__ */ r("div", { className: "flex w-full flex-col items-center gap-2", children: [
25
+ /* @__PURE__ */ e("p", { className: "text-small text-center font-semibold tracking-[0.3em] text-neutral-600 uppercase", children: t.eyebrow }),
26
+ /* @__PURE__ */ e("span", { className: "max-w-ds-10xl min-w-ds-7xl h-px w-full shrink-0 bg-neutral-400", "aria-hidden": !0 })
30
27
  ] }),
28
+ /* @__PURE__ */ e("h1", { className: "font-lora text-super-hero mx-auto max-w-3xl text-center font-normal text-neutral-800", children: t.title }),
31
29
  /* @__PURE__ */ e(
32
30
  B,
33
31
  {
34
- className: "bg-transparent",
35
- containerClassName: "w-full !max-w-none !flex-col gap-10 !px-0 !py-0 md:!flex-row md:!gap-8 md:items-stretch lg:!gap-16",
32
+ className: "w-full bg-transparent",
33
+ containerClassName: "w-full !max-w-none !flex-col !gap-8 !px-0 !py-0 md:!flex-row md:!items-stretch md:!gap-16",
34
+ firstColumnClassName: "!mb-0",
35
+ secondColumnClassName: "!mt-0",
36
36
  image: /* @__PURE__ */ e(v, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
37
37
  cta: {
38
38
  size: "default",
39
39
  variant: "primary-green",
40
- className: "text-medium mt-8 w-full justify-center font-bold md:w-fit md:justify-start",
40
+ className: "text-medium w-full shrink-0 justify-center font-bold md:w-fit md:justify-start",
41
41
  children: /* @__PURE__ */ e("a", { href: t.cta.href, className: b, children: t.cta.label })
42
42
  },
43
- children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-8 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
43
+ children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-4 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
44
44
  c && /* @__PURE__ */ e(m, { variant: "legal", content: t.introMarkdown }),
45
45
  /* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: t.bullets.map((a) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
46
46
  /* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
@@ -112,13 +112,13 @@ const U = (t) => {
112
112
  secondColumn: /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-6 md:shrink md:grow-0 md:basis-1/2", children: [
113
113
  s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
114
114
  s.title && /* @__PURE__ */ e("h3", { className: "text-super-large font-bold text-neutral-800", children: s.title }),
115
- p && /* @__PURE__ */ e("div", { className: `text-medium space-y-3 text-neutral-800 ${y}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
115
+ p && /* @__PURE__ */ e("div", { className: `text-medium space-y-3 text-neutral-800 ${C}`, children: /* @__PURE__ */ e(m, { variant: "legal", content: n.supportBodyMarkdown }) }),
116
116
  s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-medium space-y-2 text-neutral-800", children: s.rows.map((a) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
117
117
  /* @__PURE__ */ e("dt", { className: "font-semibold", children: a.label }),
118
118
  /* @__PURE__ */ e("dd", { children: a.value })
119
119
  ] }, `${a.label}-${a.value}`)) }),
120
120
  s.footer && /* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: s.footer }),
121
- /* @__PURE__ */ e(A, { size: "default", variant: "primary-green", className: "self-start font-bold", children: /* @__PURE__ */ e("a", { href: n.cta.href, className: C, children: n.cta.label }) })
121
+ /* @__PURE__ */ e(A, { size: "default", variant: "primary-green", className: "self-start font-bold", children: /* @__PURE__ */ e("a", { href: n.cta.href, className: y, children: n.cta.label }) })
122
122
  ] })
123
123
  }
124
124
  )
@@ -16,6 +16,8 @@ export declare interface IntroSectionProps {
16
16
  cta?: LinkWrapper;
17
17
  className?: string;
18
18
  containerClassName?: string;
19
+ firstColumnClassName?: string;
20
+ secondColumnClassName?: string;
19
21
  }
20
22
 
21
23
  export interface LinkWrapper {
@@ -1,19 +1,43 @@
1
- import { jsx as m, jsxs as a } from "react/jsx-runtime";
2
- import { clsx as e } from "clsx";
3
- import { TwoColumnSection as l } from "./TwoColumnSection.js";
4
- import { LinkWrapper as t } from "./LinkWrapper.js";
5
- const w = ({ image: s, children: i, cta: r, className: n, containerClassName: o }) => /* @__PURE__ */ m(
6
- l,
1
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
+ import { clsx as i } from "clsx";
3
+ import { TwoColumnSection as t } from "./TwoColumnSection.js";
4
+ import { LinkWrapper as p } from "./LinkWrapper.js";
5
+ const u = ({
6
+ image: o,
7
+ children: n,
8
+ cta: m,
9
+ className: s,
10
+ containerClassName: e,
11
+ firstColumnClassName: l,
12
+ secondColumnClassName: a
13
+ }) => /* @__PURE__ */ r(
14
+ t,
7
15
  {
8
- className: n ?? "",
9
- containerClassName: e("gap-6 md:gap-10", o),
10
- firstColumn: /* @__PURE__ */ m("div", { className: "mb-4 min-h-0 w-full min-w-0 md:mb-0 md:shrink md:grow-0 md:basis-1/2", children: s }),
11
- secondColumn: /* @__PURE__ */ a("div", { className: "mt-4 w-full min-w-0 md:mt-0 md:shrink md:grow-0 md:basis-1/2", children: [
12
- i,
13
- r && /* @__PURE__ */ m(t, { size: "large", variant: "primary-green", className: "mt-8", ...r })
14
- ] })
16
+ className: s ?? "",
17
+ containerClassName: i("gap-6 md:gap-10", e),
18
+ firstColumn: /* @__PURE__ */ r(
19
+ "div",
20
+ {
21
+ className: i("mb-4 min-h-0 w-full min-w-0 md:mb-0 md:shrink md:grow-0 md:basis-1/2", l),
22
+ children: o
23
+ }
24
+ ),
25
+ secondColumn: /* @__PURE__ */ d(
26
+ "div",
27
+ {
28
+ className: i(
29
+ "mt-4 w-full min-w-0 md:mt-0 md:shrink md:grow-0 md:basis-1/2",
30
+ m && "flex flex-col gap-8",
31
+ a
32
+ ),
33
+ children: [
34
+ n,
35
+ m && /* @__PURE__ */ r(p, { variant: "primary-green", ...m })
36
+ ]
37
+ }
38
+ )
15
39
  }
16
40
  );
17
41
  export {
18
- w as IntroSection
42
+ u as IntroSection
19
43
  };
@@ -5,7 +5,7 @@ const m = ({
5
5
  descriptionMarkdown: i,
6
6
  iconUrl: e,
7
7
  iconAlt: n = ""
8
- }) => /* @__PURE__ */ a("div", { className: "bg-neutral-25 flex flex-col gap-4 rounded p-6", children: [
8
+ }) => /* @__PURE__ */ a("div", { className: "bg-neutral-25 flex w-full flex-col gap-2 rounded p-6", children: [
9
9
  /* @__PURE__ */ a("div", { className: "flex w-full items-start gap-2", children: [
10
10
  /* @__PURE__ */ t("span", { className: "flex h-5 w-5 shrink-0 items-center justify-center [&_img]:h-5 [&_img]:w-5 [&_img]:object-contain [&_svg]:h-5 [&_svg]:w-5", children: e ? /* @__PURE__ */ t("img", { src: e, alt: n, className: "h-5 w-5 object-contain" }) : /* @__PURE__ */ t("span", { className: "inline-block h-5 w-5 shrink-0", "aria-hidden": !0 }) }),
11
11
  /* @__PURE__ */ t("p", { className: "text-big min-w-0 flex-1 font-bold tracking-tight text-neutral-800", children: l })
@@ -36,6 +36,8 @@ export interface IntroSectionProps {
36
36
  cta?: LinkWrapper;
37
37
  className?: string;
38
38
  containerClassName?: string;
39
+ firstColumnClassName?: string;
40
+ secondColumnClassName?: string;
39
41
  }
40
42
 
41
43
  export interface Jumbotron2Props {
@@ -1,40 +1,40 @@
1
1
  import { jsx as l, jsxs as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { clsx as m } from "clsx";
3
+ import { clsx as r } from "clsx";
4
4
  import { Markdown as s } from "./Markdown.js";
5
5
  import { LinkWrapper as f } from "./LinkWrapper.js";
6
6
  const C = ({
7
- title: d,
8
- content: r,
9
- benefits: t = [],
7
+ title: t,
8
+ content: m,
9
+ benefits: d = [],
10
10
  stepsSlot: n,
11
11
  belowStepsSlot: h,
12
12
  cta: i,
13
- image: c,
13
+ image: x,
14
14
  skipCtaWrapper: g = !1,
15
- sectionClassName: o,
16
- innerClassName: x
15
+ sectionClassName: c,
16
+ innerClassName: o
17
17
  }) => {
18
- const u = "bg-primary-50 px-6 py-10 lg:px-8 lg:py-12 xl:px-0", w = "from-primary-900 via-primary-700 to-primary-900 mx-auto flex flex-col justify-between gap-8 rounded-2xl bg-linear-to-bl p-6 text-white md:flex-row md:items-center md:gap-10 md:p-10 lg:gap-16 lg:p-16 xl:mx-auto xl:max-w-300";
18
+ const w = "bg-primary-50 px-6 py-10 lg:px-8 lg:py-12 xl:px-0", u = "from-primary-900 via-primary-700 to-primary-900 mx-auto flex flex-col justify-between gap-8 rounded-2xl bg-linear-to-bl p-6 text-white md:flex-row md:items-center md:gap-10 md:p-10 lg:gap-16 lg:p-16 xl:mx-auto xl:max-w-300";
19
19
  if (n != null) {
20
- const a = r.trim().length > 0, p = "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", N = g ? /* @__PURE__ */ l("div", { className: "self-start", children: i }) : /* @__PURE__ */ l(f, { className: "self-start", children: i });
20
+ const a = m.trim().length > 0, p = "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", N = g ? /* @__PURE__ */ l("div", { className: "self-start", children: i }) : /* @__PURE__ */ l(f, { className: "self-start", children: i });
21
21
  return /* @__PURE__ */ l(
22
22
  "section",
23
23
  {
24
- className: m(
24
+ className: r(
25
25
  "max-w-full overflow-x-hidden",
26
- o ?? "bg-neutral-25 md:px-ds-10xl px-6 pt-16 pb-12"
26
+ c ?? "bg-neutral-25 md:px-ds-10xl px-6 pt-16 pb-12"
27
27
  ),
28
- children: /* @__PURE__ */ l("div", { className: m("bg-ratafia mx-auto w-full max-w-6xl rounded-2xl px-6 py-12 text-white lg:px-10 lg:py-16", x), children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-8 md:gap-10", children: [
28
+ children: /* @__PURE__ */ l("div", { className: r("bg-ratafia mx-auto w-full max-w-6xl rounded-2xl px-6 py-12 text-white lg:px-10 lg:py-16", o), children: /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-8 md:gap-10", children: [
29
29
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-4 text-center text-white", children: [
30
- /* @__PURE__ */ l("h2", { className: "md:text-super-large text-3xl font-bold md:leading-tight", children: d }),
31
- a && /* @__PURE__ */ l("div", { className: "hidden md:block", children: /* @__PURE__ */ l(s, { content: r, className: p }) })
30
+ /* @__PURE__ */ l("h2", { className: "md:text-super-large text-3xl font-bold md:leading-tight", children: t }),
31
+ a && /* @__PURE__ */ l("div", { className: "hidden md:block", children: /* @__PURE__ */ l(s, { content: m, className: p }) })
32
32
  ] }),
33
- /* @__PURE__ */ e("div", { className: "grid w-full grid-cols-1 gap-8 min-[48.0625rem]:grid-cols-2 min-[48.0625rem]:items-stretch min-[48.0625rem]:gap-10", children: [
34
- /* @__PURE__ */ l("div", { className: "relative z-10 order-1 mx-auto aspect-[449/550] w-full max-w-68 shrink-0 overflow-hidden rounded-lg min-[48.0625rem]:order-2 min-[48.0625rem]:mx-0 min-[48.0625rem]:h-full min-[48.0625rem]:max-w-none min-[48.0625rem]:self-stretch [&_img]:size-full [&_img]:object-contain", children: c }),
35
- /* @__PURE__ */ e("div", { className: "order-2 flex min-h-0 flex-col gap-6 min-[48.0625rem]:order-1", children: [
36
- a && /* @__PURE__ */ l("div", { className: "text-left md:hidden", children: /* @__PURE__ */ l(s, { content: r, className: p }) }),
37
- n,
33
+ /* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-8 min-[48.0625rem]:flex-row min-[48.0625rem]:items-start min-[48.0625rem]:gap-10 xl:items-stretch", children: [
34
+ /* @__PURE__ */ l("div", { className: "relative z-10 order-1 mx-auto aspect-[449/550] w-full max-w-[17rem] shrink-0 overflow-hidden rounded-lg min-[48.0625rem]:order-2 min-[48.0625rem]:mx-0 min-[48.0625rem]:w-1/2 min-[48.0625rem]:max-w-none xl:w-[449px] xl:shrink-0 xl:self-stretch [&_img]:size-full [&_img]:object-contain xl:[&_img]:size-full xl:[&_img]:object-contain", children: x }),
35
+ /* @__PURE__ */ e("div", { className: "order-2 flex min-h-0 min-w-0 flex-col gap-6 min-[48.0625rem]:order-1 min-[48.0625rem]:flex-1", children: [
36
+ a && /* @__PURE__ */ l("div", { className: "text-left md:hidden", children: /* @__PURE__ */ l(s, { content: m, className: p }) }),
37
+ /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4", children: n }),
38
38
  h,
39
39
  N
40
40
  ] })
@@ -43,13 +43,13 @@ const C = ({
43
43
  }
44
44
  );
45
45
  }
46
- return /* @__PURE__ */ l("section", { className: m("max-w-full overflow-x-hidden", o ?? u), children: /* @__PURE__ */ e("div", { className: m(w, x), children: [
46
+ return /* @__PURE__ */ l("section", { className: r("max-w-full overflow-x-hidden", c ?? w), children: /* @__PURE__ */ e("div", { className: r(u, o), children: [
47
47
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: [
48
48
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: [
49
- /* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children: d }),
50
- /* @__PURE__ */ l(s, { content: r, className: "[&_p:last-child]:mb-0" })
49
+ /* @__PURE__ */ l("h2", { className: "text-super-large leading-tight font-bold", children: t }),
50
+ /* @__PURE__ */ l(s, { content: m, className: "[&_p:last-child]:mb-0" })
51
51
  ] }),
52
- t.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-3", children: t.map((a) => /* @__PURE__ */ e(
52
+ d.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap gap-3", children: d.map((a) => /* @__PURE__ */ e(
53
53
  "span",
54
54
  {
55
55
  className: "bg-primary-50 text-small text-primary-800 flex flex-nowrap gap-1 rounded-md p-1 font-semibold",
@@ -62,7 +62,7 @@ const C = ({
62
62
  )) }),
63
63
  /* @__PURE__ */ l(f, { className: "w-full md:w-fit", children: i })
64
64
  ] }),
65
- /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children: c })
65
+ /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-77 md:mx-0 md:min-w-74", children: x })
66
66
  ] }) });
67
67
  };
68
68
  export {
@@ -675,6 +675,8 @@ export declare interface IntroSectionProps {
675
675
  cta?: LinkWrapper;
676
676
  className?: string;
677
677
  containerClassName?: string;
678
+ firstColumnClassName?: string;
679
+ secondColumnClassName?: string;
678
680
  }
679
681
 
680
682
  export declare const Item: FC<ItemProps>;