@npm_leadtech/legal-contracts-ui 0.84.3 → 0.85.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.
@@ -103,19 +103,17 @@ export interface Hero2SectionProps {
103
103
  }
104
104
 
105
105
  export interface HowItWorksSectionProps {
106
- imageSrc: string;
107
- imageAlt: string;
106
+ media: ReactNode;
108
107
  title: string;
109
108
  description: string;
110
109
  steps: HowItWorksStep[];
111
- /** Optional overlays (badges, labels) absolutely positioned on the media */
112
- imageOverlay?: ReactNode;
113
110
  }
114
111
 
115
112
  export interface HowItWorksStep {
113
+ id: string;
116
114
  title: string;
117
115
  description: string;
118
- icon: string | ReactNode;
116
+ icon: ReactNode;
119
117
  }
120
118
 
121
119
  export interface LawgeniusAskQuestionsSectionProps {
@@ -69,19 +69,17 @@ export interface Hero2SectionProps {
69
69
  }
70
70
 
71
71
  export interface HowItWorksSectionProps {
72
- imageSrc: string;
73
- imageAlt: string;
72
+ media: ReactNode;
74
73
  title: string;
75
74
  description: string;
76
75
  steps: HowItWorksStep[];
77
- /** Optional overlays (badges, labels) absolutely positioned on the media */
78
- imageOverlay?: ReactNode;
79
76
  }
80
77
 
81
78
  export interface HowItWorksStep {
79
+ id: string;
82
80
  title: string;
83
81
  description: string;
84
- icon: string | ReactNode;
82
+ icon: ReactNode;
85
83
  }
86
84
 
87
85
  export interface OnlineBenefit {
@@ -4,18 +4,16 @@ import { ReactNode } from 'react';
4
4
  export declare const HowItWorksSection: FC<HowItWorksSectionProps>;
5
5
 
6
6
  export declare interface HowItWorksSectionProps {
7
- imageSrc: string;
8
- imageAlt: string;
7
+ media: ReactNode;
9
8
  title: string;
10
9
  description: string;
11
10
  steps: HowItWorksStep[];
12
- /** Optional overlays (badges, labels) absolutely positioned on the media */
13
- imageOverlay?: ReactNode;
14
11
  }
15
12
 
16
13
  export declare interface HowItWorksStep {
14
+ id: string;
17
15
  title: string;
18
16
  description: string;
19
- icon: string | ReactNode;
17
+ icon: ReactNode;
20
18
  }
21
19
 
@@ -1,36 +1,22 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { SectionHeading as n } from "./SectionHeading.js";
3
- const h = ({
4
- imageSrc: a,
5
- imageAlt: r,
6
- title: s,
7
- description: t,
8
- steps: c,
9
- imageOverlay: d
10
- }) => /* @__PURE__ */ e("section", { className: "bg-white px-4 py-16", children: /* @__PURE__ */ i("div", { className: "mx-auto grid w-full max-w-6xl gap-12 lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]", children: [
11
- /* @__PURE__ */ i("div", { className: "relative order-2 overflow-hidden rounded-3xl shadow-[0_25px_80px_rgba(3,42,56,0.25)] lg:order-1", children: [
12
- /* @__PURE__ */ e("img", { src: a, alt: r, width: 737, height: 524, className: "h-full w-full object-cover" }),
13
- d
14
- ] }),
15
- /* @__PURE__ */ i("div", { className: "order-1 space-y-6 lg:order-2", children: [
16
- /* @__PURE__ */ e(n, { title: s, description: t, align: "start" }),
17
- /* @__PURE__ */ e("div", { className: "space-y-4", children: c.map((l) => /* @__PURE__ */ e(
18
- "article",
19
- {
20
- className: "bg-neutral-25 rounded-lg p-5",
21
- style: { boxShadow: "var(--shadow-small)" },
22
- children: /* @__PURE__ */ i("div", { className: "flex items-start gap-3", children: [
23
- typeof l.icon == "string" ? /* @__PURE__ */ e("img", { src: l.icon, alt: "", width: 24, height: 24, className: "h-6 w-6" }) : /* @__PURE__ */ e("span", { className: "inline-flex h-6 w-6 shrink-0 items-center justify-center", children: l.icon }),
24
- /* @__PURE__ */ i("div", { children: [
25
- /* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: l.title }),
26
- /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: l.description })
27
- ] })
28
- ] })
29
- },
30
- l.title
31
- )) })
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { Markdown as c } from "./Markdown.js";
3
+ const m = ({ media: a, title: d, description: i, steps: s }) => /* @__PURE__ */ e("section", { className: "bg-white", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full flex-col gap-8 px-6 py-8 md:gap-12 lg:px-8 lg:py-12 xl:max-w-300 xl:flex-row xl:items-center xl:px-0", children: [
4
+ /* @__PURE__ */ e("div", { className: "relative order-2 overflow-hidden rounded-md shadow md:order-1 lg:mx-auto xl:shrink-0", children: a }),
5
+ /* @__PURE__ */ l("div", { className: "order-1 flex flex-col gap-6 text-neutral-800 md:order-2", children: [
6
+ /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: d }),
7
+ /* @__PURE__ */ e(c, { className: "text-medium [&_p:last-child]:mb-0", content: i }),
8
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-4 lg:grid-cols-3 xl:grid-cols-1", children: s.map((r) => /* @__PURE__ */ e("article", { className: "bg-neutral-25 rounded p-6", children: /* @__PURE__ */ l("div", { className: "flex flex-col items-start gap-2", children: [
9
+ /* @__PURE__ */ l("div", { className: "flex justify-center gap-2", children: [
10
+ r.icon,
11
+ /* @__PURE__ */ e("p", { className: "text-medium font-bold", children: r.title })
12
+ ] }),
13
+ /* @__PURE__ */ l("p", { className: "text-small", children: [
14
+ r.description,
15
+ " "
16
+ ] })
17
+ ] }) }, r.id)) })
32
18
  ] })
33
19
  ] }) });
34
20
  export {
35
- h as HowItWorksSection
21
+ m as HowItWorksSection
36
22
  };
@@ -1,16 +1,16 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { TwoColumnSection as a } from "./TwoColumnSection.js";
3
- const o = ({ title: s, children: l, image: r }) => /* @__PURE__ */ e(
4
- a,
1
+ import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
+ import { TwoColumnSection as r } from "./TwoColumnSection.js";
3
+ const i = ({ title: s, children: t, image: a }) => /* @__PURE__ */ e(
4
+ r,
5
5
  {
6
- containerClassName: "gap-20 items-center flex-col-reverse",
7
- firstColumn: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-3xl p-6", children: r }) }),
8
- secondColumn: /* @__PURE__ */ t("div", { className: "flex-1 space-y-6 text-neutral-800", children: [
6
+ containerClassName: "gap-20 items-center",
7
+ firstColumn: /* @__PURE__ */ e("div", { className: "flex-1", children: /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-3xl p-6", children: a }) }),
8
+ secondColumn: /* @__PURE__ */ l("div", { className: "flex-1 space-y-6 text-neutral-800", children: [
9
9
  /* @__PURE__ */ e("p", { className: "text-super-large font-bold text-neutral-900", children: s }),
10
- /* @__PURE__ */ e("div", { className: "text-medium space-y-4", children: l })
10
+ /* @__PURE__ */ e("div", { className: "text-medium space-y-4", children: t })
11
11
  ] })
12
12
  }
13
13
  );
14
14
  export {
15
- o as ValuesSection
15
+ i as ValuesSection
16
16
  };