@npm_leadtech/legal-contracts-ui 0.84.2 → 0.84.3

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,17 +103,19 @@ export interface Hero2SectionProps {
103
103
  }
104
104
 
105
105
  export interface HowItWorksSectionProps {
106
- media: ReactNode;
106
+ imageSrc: string;
107
+ imageAlt: string;
107
108
  title: string;
108
109
  description: string;
109
110
  steps: HowItWorksStep[];
111
+ /** Optional overlays (badges, labels) absolutely positioned on the media */
112
+ imageOverlay?: ReactNode;
110
113
  }
111
114
 
112
115
  export interface HowItWorksStep {
113
- id: string;
114
116
  title: string;
115
117
  description: string;
116
- icon: ReactNode;
118
+ icon: string | ReactNode;
117
119
  }
118
120
 
119
121
  export interface LawgeniusAskQuestionsSectionProps {
@@ -69,17 +69,19 @@ export interface Hero2SectionProps {
69
69
  }
70
70
 
71
71
  export interface HowItWorksSectionProps {
72
- media: ReactNode;
72
+ imageSrc: string;
73
+ imageAlt: string;
73
74
  title: string;
74
75
  description: string;
75
76
  steps: HowItWorksStep[];
77
+ /** Optional overlays (badges, labels) absolutely positioned on the media */
78
+ imageOverlay?: ReactNode;
76
79
  }
77
80
 
78
81
  export interface HowItWorksStep {
79
- id: string;
80
82
  title: string;
81
83
  description: string;
82
- icon: ReactNode;
84
+ icon: string | ReactNode;
83
85
  }
84
86
 
85
87
  export interface OnlineBenefit {
@@ -4,16 +4,18 @@ import { ReactNode } from 'react';
4
4
  export declare const HowItWorksSection: FC<HowItWorksSectionProps>;
5
5
 
6
6
  export declare interface HowItWorksSectionProps {
7
- media: ReactNode;
7
+ imageSrc: string;
8
+ imageAlt: string;
8
9
  title: string;
9
10
  description: string;
10
11
  steps: HowItWorksStep[];
12
+ /** Optional overlays (badges, labels) absolutely positioned on the media */
13
+ imageOverlay?: ReactNode;
11
14
  }
12
15
 
13
16
  export declare interface HowItWorksStep {
14
- id: string;
15
17
  title: string;
16
18
  description: string;
17
- icon: ReactNode;
19
+ icon: string | ReactNode;
18
20
  }
19
21
 
@@ -1,22 +1,36 @@
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)) })
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
+ )) })
18
32
  ] })
19
33
  ] }) });
20
34
  export {
21
- m as HowItWorksSection
35
+ h as HowItWorksSection
22
36
  };
@@ -1,16 +1,16 @@
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,
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,
5
5
  {
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: [
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: [
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: t })
10
+ /* @__PURE__ */ e("div", { className: "text-medium space-y-4", children: l })
11
11
  ] })
12
12
  }
13
13
  );
14
14
  export {
15
- i as ValuesSection
15
+ o as ValuesSection
16
16
  };