@npm_leadtech/legal-contracts-ui 0.19.1 → 0.20.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.
@@ -76,6 +76,7 @@ export interface IntroSectionProps {
76
76
  image: ReactNode;
77
77
  children: ReactNode;
78
78
  cta: ButtonProps;
79
+ className?: string;
79
80
  }
80
81
 
81
82
  export interface Jumbotron2Props {
@@ -1,42 +1,42 @@
1
- import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
- import { IntroSection as u } from "./IntroSection.js";
3
- import { MissionSection as x } from "./MissionSection.js";
4
- import { ValuesSection as b } from "./ValuesSection.js";
5
- import { Storyline as d } from "./Storyline.js";
6
- import { WeHelpSection as j } from "./WeHelpSection.js";
7
- import { GuidelinesSection as C } from "./GuidelinesSection.js";
8
- import { ExpertsSection as T } from "./ExpertsSection.js";
9
- import { TrustpilotSection as U } from "./TrustpilotSection.js";
10
- import { PartnersSection as h } from "./PartnersSection.js";
11
- import { CtaSection as w } from "./CtaSection.js";
12
- import { ContactUsSection as y } from "./ContactUsSection.js";
13
- import { Jumbotron2 as A } from "./Jumbotron2.js";
1
+ import { jsxs as S, jsx as o } from "react/jsx-runtime";
2
+ import { MissionSection as u } from "./MissionSection.js";
3
+ import { ValuesSection as x } from "./ValuesSection.js";
4
+ import { Storyline as b } from "./Storyline.js";
5
+ import { WeHelpSection as d } from "./WeHelpSection.js";
6
+ import { GuidelinesSection as j } from "./GuidelinesSection.js";
7
+ import { ExpertsSection as y } from "./ExpertsSection.js";
8
+ import { TrustpilotSection as C } from "./TrustpilotSection.js";
9
+ import { PartnersSection as N } from "./PartnersSection.js";
10
+ import { CtaSection as T } from "./CtaSection.js";
11
+ import { ContactUsSection as U } from "./ContactUsSection.js";
12
+ import { Jumbotron2 as g } from "./Jumbotron2.js";
13
+ import { IntroSection as h } from "./IntroSection.js";
14
14
  const v = ({
15
15
  jumbotron: t,
16
16
  intro: r,
17
- mission: i,
18
- coreValues: m,
17
+ mission: m,
18
+ coreValues: i,
19
19
  storyline: e,
20
20
  howWeHelp: n,
21
21
  guidelines: p,
22
22
  experts: f,
23
- trustpilot: c,
24
- partners: l,
25
- cta: s,
26
- contactUs: S
27
- }) => /* @__PURE__ */ a("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
28
- /* @__PURE__ */ o(A, { ...t }),
29
- /* @__PURE__ */ o(u, { ...r }),
23
+ trustpilot: s,
24
+ partners: c,
25
+ cta: l,
26
+ contactUs: a
27
+ }) => /* @__PURE__ */ S("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
28
+ /* @__PURE__ */ o(g, { ...t }),
29
+ /* @__PURE__ */ o(h, { ...r, className: "bg-primary-50" }),
30
+ /* @__PURE__ */ o(u, { ...m }),
30
31
  /* @__PURE__ */ o(x, { ...i }),
31
- /* @__PURE__ */ o(b, { ...m }),
32
- /* @__PURE__ */ o(d, { ...e }),
33
- /* @__PURE__ */ o(j, { ...n }),
34
- /* @__PURE__ */ o(C, { ...p }),
35
- /* @__PURE__ */ o(T, { ...f }),
36
- /* @__PURE__ */ o(U, { ...c }),
37
- /* @__PURE__ */ o(h, { ...l }),
38
- /* @__PURE__ */ o(w, { ...s }),
39
- /* @__PURE__ */ o(y, { ...S })
32
+ /* @__PURE__ */ o(b, { ...e }),
33
+ /* @__PURE__ */ o(d, { ...n }),
34
+ /* @__PURE__ */ o(j, { ...p }),
35
+ /* @__PURE__ */ o(y, { ...f }),
36
+ /* @__PURE__ */ o(C, { ...s }),
37
+ /* @__PURE__ */ o(N, { ...c }),
38
+ /* @__PURE__ */ o(T, { ...l }),
39
+ /* @__PURE__ */ o(U, { ...a })
40
40
  ] });
41
41
  export {
42
42
  v as AboutUsTemplate
@@ -20,13 +20,6 @@ export interface BreadcrumbProps {
20
20
  className?: string;
21
21
  }
22
22
 
23
- export interface DocumentCardProps {
24
- title: string;
25
- description: string;
26
- featured?: boolean;
27
- className?: string;
28
- }
29
-
30
23
  export interface DocumentCategoriesProps {
31
24
  title: string;
32
25
  categories: Array<{
@@ -36,12 +29,20 @@ export interface DocumentCategoriesProps {
36
29
  }>;
37
30
  }
38
31
 
32
+ export interface DocumentItemProps {
33
+ id: string;
34
+ title: string;
35
+ description: string;
36
+ featured?: boolean;
37
+ className?: string;
38
+ }
39
+
39
40
  export interface DocumentSectionProps {
40
41
  id: string;
41
42
  title: string;
42
43
  description: string;
43
44
  icon: ReactNode;
44
- documents: DocumentCardProps[];
45
+ documents: DocumentItemProps[];
45
46
  }
46
47
 
47
48
  export interface FaqItemProps {
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
2
  import { JumboCard as s } from "./JumboCard.js";
3
- import { DocumentCategories as n } from "./DocumentCategories.js";
4
- import { DocumentSection as p } from "./DocumentSection.js";
5
- import { Breadcrumb as f } from "./Breadcrumb.js";
3
+ import { Breadcrumb as n } from "./Breadcrumb.js";
4
+ import { DocumentCategories as p } from "./DocumentCategories.js";
5
+ import { DocumentSection as f } from "./DocumentSection.js";
6
6
  import { MarkdownSection as d } from "./MarkdownSection.js";
7
7
  import { FaqSection as u } from "./FaqSection.js";
8
8
  const v = ({
@@ -14,11 +14,11 @@ const v = ({
14
14
  faqSection: c
15
15
  }) => /* @__PURE__ */ m("main", { className: "mx-auto max-w-6xl flex-1", children: [
16
16
  /* @__PURE__ */ e(s, { ...o }),
17
- /* @__PURE__ */ e(f, { ...a, className: "pb-4" }),
17
+ /* @__PURE__ */ e(n, { ...a, className: "pb-4" }),
18
18
  /* @__PURE__ */ m("div", { className: "container mx-auto flex flex-col justify-center gap-30 lg:flex-row", children: [
19
- /* @__PURE__ */ e(n, { ...t }),
19
+ /* @__PURE__ */ e(p, { ...t }),
20
20
  /* @__PURE__ */ m("div", { className: "", children: [
21
- i.map((r) => /* @__PURE__ */ e(p, { ...r }, r.id)),
21
+ i.map((r) => /* @__PURE__ */ e(f, { ...r }, r.id)),
22
22
  /* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
23
23
  /* @__PURE__ */ e(d, { ...l }),
24
24
  /* @__PURE__ */ e(u, { ...c, className: "pb-6" })
@@ -0,0 +1,10 @@
1
+ import { FC } from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare const Card: FC<CardProps>;
5
+
6
+ export declare interface CardProps {
7
+ title?: ReactNode;
8
+ children?: ReactNode;
9
+ }
10
+
@@ -0,0 +1,8 @@
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
+ const a = ({ title: l = null, children: r }) => /* @__PURE__ */ e("div", { className: "flex-1 rounded-2xl bg-white p-6 shadow-sm ring-1 ring-neutral-200", children: /* @__PURE__ */ s("div", { className: "flex flex-col gap-4", children: [
3
+ l !== null && /* @__PURE__ */ e("div", { className: "pb-4", children: l }),
4
+ r
5
+ ] }) });
6
+ export {
7
+ a as Card
8
+ };
@@ -0,0 +1,110 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { FC } from 'react';
3
+ import { ReactNode } from 'react';
4
+
5
+ export interface ArticlesSectionProps {
6
+ header: SectionHeadingProps;
7
+ articles?: Array<{
8
+ title: string;
9
+ image: ReactNode;
10
+ excerpt: string;
11
+ cta: ReactNode;
12
+ }>;
13
+ cta: ButtonProps;
14
+ }
15
+
16
+ export interface BreadcrumbProps {
17
+ breadcrumbs?: Array<{
18
+ label: string;
19
+ href?: string;
20
+ }>;
21
+ className?: string;
22
+ }
23
+
24
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
25
+ children: ReactNode;
26
+ size?: ButtonSize;
27
+ variant?: ButtonVariant;
28
+ iconPosition?: IconPosition;
29
+ }
30
+
31
+ export type ButtonSize = 'small' | 'default' | 'large';
32
+
33
+ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
34
+
35
+ export declare const CategoryProductTemplate: FC<CategoryProductTemplateProps>;
36
+
37
+ export declare interface CategoryProductTemplateProps {
38
+ jumbo: JumboCardProps;
39
+ breadcrumb: BreadcrumbProps;
40
+ categories: DocumentCategoriesProps;
41
+ documentSections: DocumentSectionProps[];
42
+ ctaSection: MarkdownSectionProps;
43
+ faqSection: FaqSectionProps;
44
+ articles: ArticlesSectionProps;
45
+ }
46
+
47
+ export interface DocumentCategoriesProps {
48
+ title: string;
49
+ categories: Array<{
50
+ id: string;
51
+ title: string;
52
+ icon: ReactNode;
53
+ }>;
54
+ }
55
+
56
+ export interface DocumentItemProps {
57
+ id: string;
58
+ title: string;
59
+ description: string;
60
+ featured?: boolean;
61
+ className?: string;
62
+ }
63
+
64
+ export interface DocumentSectionProps {
65
+ id: string;
66
+ title: string;
67
+ description: string;
68
+ icon: ReactNode;
69
+ documents: DocumentItemProps[];
70
+ }
71
+
72
+ export interface FaqItemProps {
73
+ question: string;
74
+ answer?: string;
75
+ extra?: string;
76
+ }
77
+
78
+ export interface FaqSectionProps {
79
+ title?: string;
80
+ description?: ReactNode;
81
+ faqItems: FaqItemProps[];
82
+ className?: string;
83
+ }
84
+
85
+ export type IconPosition = 'left' | 'right' | 'top';
86
+
87
+ export interface JumboCardProps {
88
+ title: string;
89
+ description: string;
90
+ subtitle: string;
91
+ image: ReactNode;
92
+ }
93
+
94
+ export interface MarkdownProps {
95
+ content: string;
96
+ className?: string;
97
+ }
98
+
99
+ export interface MarkdownSectionProps {
100
+ header: SectionHeadingProps;
101
+ markdown: MarkdownProps;
102
+ children?: ReactNode;
103
+ }
104
+
105
+ export interface SectionHeadingProps {
106
+ title: string;
107
+ description?: string;
108
+ align?: 'start' | 'center';
109
+ }
110
+
@@ -0,0 +1,33 @@
1
+ import { jsxs as e, jsx as r } from "react/jsx-runtime";
2
+ import { JumboCard as n } from "./JumboCard.js";
3
+ import { DocumentCategories as p } from "./DocumentCategories.js";
4
+ import { DocumentSection as f } from "./DocumentSection.js";
5
+ import { Breadcrumb as d } from "./Breadcrumb.js";
6
+ import { MarkdownSection as u } from "./MarkdownSection.js";
7
+ import { FaqSection as x } from "./FaqSection.js";
8
+ import { ArticlesSection as N } from "./ArticlesSection.js";
9
+ const y = ({
10
+ jumbo: m,
11
+ breadcrumb: a,
12
+ categories: t,
13
+ documentSections: i,
14
+ ctaSection: c,
15
+ faqSection: l,
16
+ articles: s
17
+ }) => /* @__PURE__ */ e("main", { className: "mx-auto max-w-6xl flex-1", children: [
18
+ /* @__PURE__ */ r(n, { ...m }),
19
+ /* @__PURE__ */ r(d, { ...a, className: "pb-4" }),
20
+ /* @__PURE__ */ e("div", { className: "container mx-auto flex flex-col justify-center gap-30 lg:flex-row", children: [
21
+ /* @__PURE__ */ r(p, { ...t }),
22
+ /* @__PURE__ */ e("div", { className: "", children: [
23
+ i.map((o) => /* @__PURE__ */ r(f, { ...o }, o.id)),
24
+ /* @__PURE__ */ r("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
25
+ /* @__PURE__ */ r(u, { ...c }),
26
+ /* @__PURE__ */ r(x, { ...l, className: "pb-6" }),
27
+ /* @__PURE__ */ r(N, { ...s })
28
+ ] })
29
+ ] })
30
+ ] });
31
+ export {
32
+ y as CategoryProductTemplate
33
+ };
@@ -1,4 +1,5 @@
1
1
  import { FC } from 'react';
2
+ import { ReactNode } from 'react';
2
3
 
3
4
  export interface ContactMethod {
4
5
  icon: React.ReactNode;
@@ -11,5 +12,6 @@ export declare const ContactMethodsSection: FC<ContactMethodsSectionProps>;
11
12
 
12
13
  export declare interface ContactMethodsSectionProps {
13
14
  items: ContactMethod[];
15
+ title?: ReactNode;
14
16
  }
15
17
 
@@ -1,6 +1,7 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { ContactMethodCard as t } from "./ContactMethodCard.js";
3
- const d = ({ items: o }) => /* @__PURE__ */ e("section", { "aria-labelledby": "contact-methods-heading", className: "rounded-xl bg-white p-6 shadow-md", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: o.map((a) => /* @__PURE__ */ e(t, { ...a }, a.label)) }) });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { Card as r } from "./Card.js";
3
+ import { ContactMethodCard as c } from "./ContactMethodCard.js";
4
+ const n = ({ items: t, title: a }) => /* @__PURE__ */ o("section", { "aria-labelledby": "contact-methods-heading", children: /* @__PURE__ */ o(r, { title: a, children: /* @__PURE__ */ o("div", { className: "flex flex-col gap-4", children: t.map((e) => /* @__PURE__ */ o(c, { ...e }, e.label)) }) }) });
4
5
  export {
5
- d as ContactMethodsSection
6
+ n as ContactMethodsSection
6
7
  };
@@ -10,6 +10,7 @@ export interface ContactMethod {
10
10
 
11
11
  export interface ContactMethodsSectionProps {
12
12
  items: ContactMethod[];
13
+ title?: ReactNode;
13
14
  }
14
15
 
15
16
  export declare const ContactUsTemplate: FC<ContactUsTemplateProps>;
@@ -1,16 +1,16 @@
1
1
  import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
- import { ContactMethodsSection as a } from "./ContactMethodsSection.js";
3
- import { MarkdownSection as m } from "./MarkdownSection.js";
4
- import { ContactFormSection as i } from "./ContactFormSection.js";
5
- import { Jumbotron2 as c } from "./Jumbotron2.js";
2
+ import { MarkdownSection as a } from "./MarkdownSection.js";
3
+ import { ContactFormSection as m } from "./ContactFormSection.js";
4
+ import { Jumbotron2 as i } from "./Jumbotron2.js";
5
+ import { ContactMethodsSection as c } from "./ContactMethodsSection.js";
6
6
  const d = ({ jumbotron: l, contactMethods: r, faqs: t }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-12 lg:px-0", children: /* @__PURE__ */ o("div", { className: "relative mx-auto flex w-full max-w-6xl flex-col gap-12", children: [
7
- /* @__PURE__ */ e(c, { ...l }),
7
+ /* @__PURE__ */ e(i, { ...l }),
8
8
  /* @__PURE__ */ o("div", { className: "relative flex flex-col gap-10 lg:flex-row", children: [
9
9
  /* @__PURE__ */ o("div", { className: "flex-1 space-y-8", children: [
10
- /* @__PURE__ */ e(a, { ...r }),
11
- /* @__PURE__ */ e(m, { ...t })
10
+ /* @__PURE__ */ e(c, { ...r }),
11
+ /* @__PURE__ */ e(a, { ...t })
12
12
  ] }),
13
- /* @__PURE__ */ e(i, {})
13
+ /* @__PURE__ */ e(m, {})
14
14
  ] })
15
15
  ] }) });
16
16
  export {
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+
3
+ export declare const DocumentItem: FC<DocumentItemProps>;
4
+
5
+ export declare interface DocumentItemProps {
6
+ id: string;
7
+ title: string;
8
+ description: string;
9
+ featured?: boolean;
10
+ className?: string;
11
+ }
12
+
@@ -1,18 +1,19 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { ChevronRightIcon as s } from "./ChevronRightIcon.js";
3
- const l = ({ title: t, description: a, featured: d, className: o = "" }) => /* @__PURE__ */ r(
2
+ import { ChevronRightIcon as m } from "./ChevronRightIcon.js";
3
+ const n = ({ id: t, title: a, description: o, featured: s, className: d = "" }) => /* @__PURE__ */ r(
4
4
  "article",
5
5
  {
6
- className: `rounded bg-white p-6 shadow-sm transition-shadow hover:shadow-md ${d ? "border-primary-500 border-2" : "border border-neutral-200"} ${o}`,
6
+ className: `rounded bg-white p-6 shadow-sm transition-shadow hover:shadow-md ${s ? "border-primary-500 border-2" : "border border-neutral-200"} ${d}`,
7
7
  children: [
8
8
  /* @__PURE__ */ r("div", { className: "flex items-start gap-4", children: [
9
- /* @__PURE__ */ e("p", { className: "text-medium flex-1 font-bold text-neutral-800", children: t }),
10
- /* @__PURE__ */ e(s, { className: "h-5 w-5 text-neutral-800", "aria-hidden": !0 })
9
+ /* @__PURE__ */ e("p", { className: "text-medium flex-1 font-bold text-neutral-800", children: a }),
10
+ /* @__PURE__ */ e(m, { className: "h-5 w-5 text-neutral-800", "aria-hidden": !0 })
11
11
  ] }),
12
- /* @__PURE__ */ e("p", { className: "text-medium mt-2 text-neutral-800", children: a })
12
+ /* @__PURE__ */ e("p", { className: "text-medium mt-2 text-neutral-800", children: o })
13
13
  ]
14
- }
14
+ },
15
+ t
15
16
  );
16
17
  export {
17
- l as DocumentCard
18
+ n as DocumentItem
18
19
  };
@@ -1,7 +1,8 @@
1
1
  import { FC } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
- export interface DocumentCardProps {
4
+ export interface DocumentItemProps {
5
+ id: string;
5
6
  title: string;
6
7
  description: string;
7
8
  featured?: boolean;
@@ -15,6 +16,6 @@ export declare interface DocumentSectionProps {
15
16
  title: string;
16
17
  description: string;
17
18
  icon: ReactNode;
18
- documents: DocumentCardProps[];
19
+ documents: DocumentItemProps[];
19
20
  }
20
21
 
@@ -1,14 +1,14 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { DocumentCard as n } from "./DocumentCard.js";
3
- const p = ({ id: l, title: t, description: s, icon: c, documents: m }) => /* @__PURE__ */ a("article", { id: l, className: "flex-1 scroll-mt-32 space-y-6", children: [
2
+ import { DocumentItem as n } from "./DocumentItem.js";
3
+ const p = ({ id: l, title: s, description: t, icon: c, documents: m }) => /* @__PURE__ */ a("article", { id: l, className: "flex-1 scroll-mt-32 space-y-6", children: [
4
4
  /* @__PURE__ */ a("div", { className: "bg-neutral-25 flex flex-col gap-4 rounded p-6", children: [
5
5
  /* @__PURE__ */ a("div", { className: "flex items-center gap-4", children: [
6
6
  /* @__PURE__ */ e("span", { className: "bg-primary-50 rounded-md p-3", "aria-hidden": !0, children: c }),
7
- /* @__PURE__ */ e("p", { className: "font-lora text-super-large text-neutral-900", children: t })
7
+ /* @__PURE__ */ e("p", { className: "font-lora text-super-large text-neutral-900", children: s })
8
8
  ] }),
9
- /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: s })
9
+ /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: t })
10
10
  ] }),
11
- /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-6 pb-6", children: m.map((r) => /* @__PURE__ */ e(n, { ...r, className: "w-48/100" }, r.title)) })
11
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-6 pb-6", children: m.map((r) => /* @__PURE__ */ e(n, { ...r, className: "w-48/100" }, r.id)) })
12
12
  ] }, l);
13
13
  export {
14
14
  p as DocumentSection
@@ -21,5 +21,6 @@ export declare interface IntroSectionProps {
21
21
  image: ReactNode;
22
22
  children: ReactNode;
23
23
  cta: ButtonProps;
24
+ className?: string;
24
25
  }
25
26
 
@@ -1,17 +1,17 @@
1
- import { jsx as s, jsxs as i } from "react/jsx-runtime";
2
- import { TwoColumnSection as l } from "./TwoColumnSection.js";
3
- import { Button as o } from "./Button.js";
4
- const d = ({ image: m, children: r, cta: a }) => /* @__PURE__ */ s(
5
- l,
1
+ import { jsx as s, jsxs as l } from "react/jsx-runtime";
2
+ import { TwoColumnSection as o } from "./TwoColumnSection.js";
3
+ import { Button as t } from "./Button.js";
4
+ const c = ({ image: m, children: r, cta: a, className: i }) => /* @__PURE__ */ s(
5
+ o,
6
6
  {
7
- className: "bg-primary-50",
7
+ className: i ?? "",
8
8
  firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100", children: m }),
9
- secondColumn: /* @__PURE__ */ i("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
9
+ secondColumn: /* @__PURE__ */ l("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
10
10
  r,
11
- /* @__PURE__ */ s(o, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...a })
11
+ /* @__PURE__ */ s(t, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...a })
12
12
  ] })
13
13
  }
14
14
  );
15
15
  export {
16
- d as IntroSection
16
+ c as IntroSection
17
17
  };
@@ -0,0 +1,74 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { FC } from 'react';
3
+ import * as React_2 from 'react';
4
+ import { ReactNode } from 'react';
5
+
6
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
7
+ children: ReactNode;
8
+ size?: ButtonSize;
9
+ variant?: ButtonVariant;
10
+ iconPosition?: IconPosition;
11
+ }
12
+
13
+ export type ButtonSize = 'small' | 'default' | 'large';
14
+
15
+ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
16
+
17
+ export interface ContactMethod {
18
+ icon: React.ReactNode;
19
+ label: string;
20
+ helper?: string;
21
+ href?: string;
22
+ }
23
+
24
+ export interface ContactMethodsSectionProps {
25
+ items: ContactMethod[];
26
+ title?: ReactNode;
27
+ }
28
+
29
+ export interface DocumentItemProps {
30
+ id: string;
31
+ title: string;
32
+ description: string;
33
+ featured?: boolean;
34
+ className?: string;
35
+ }
36
+
37
+ export type IconPosition = 'left' | 'right' | 'top';
38
+
39
+ export interface IntroSectionProps {
40
+ image: ReactNode;
41
+ children: ReactNode;
42
+ cta: ButtonProps;
43
+ className?: string;
44
+ }
45
+
46
+ export declare const NotFoundTemplate: FC<NotFoundTemplateProps>;
47
+
48
+ export declare interface NotFoundTemplateProps {
49
+ intro: IntroSectionProps;
50
+ popularDocuments: {
51
+ title: ReactNode;
52
+ documents: DocumentItemProps[];
53
+ };
54
+ searchBar: SearchBarProps;
55
+ contactMethods: ContactMethodsSectionProps;
56
+ }
57
+
58
+ export interface SearchBarProps {
59
+ items: SearchItem[];
60
+ placeholder?: string;
61
+ isOpen?: boolean;
62
+ onToggle?: () => void;
63
+ searchValue?: string;
64
+ onInputChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
65
+ onClear?: () => void;
66
+ noResultsText?: string;
67
+ allDocumentsItem?: SearchItem;
68
+ }
69
+
70
+ export interface SearchItem {
71
+ label: string;
72
+ href: string;
73
+ }
74
+
@@ -0,0 +1,19 @@
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
+ import { IntroSection as c } from "./IntroSection.js";
3
+ import { Card as o } from "./Card.js";
4
+ import { ContactMethodsSection as n } from "./ContactMethodsSection.js";
5
+ import { DocumentItem as s } from "./DocumentItem.js";
6
+ import { SearchBar as f } from "./SearchBar.js";
7
+ const g = ({ intro: m, popularDocuments: r, searchBar: t, contactMethods: i }) => /* @__PURE__ */ l("main", { className: "flex-1", children: [
8
+ /* @__PURE__ */ e(c, { ...m }),
9
+ /* @__PURE__ */ e("div", { className: "bg-neutral-25 w-full", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-6xl flex-col gap-8 px-6 py-16 lg:flex-row", children: [
10
+ /* @__PURE__ */ e(o, { title: r.title, children: /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-4 pb-6", children: r.documents.map((a) => /* @__PURE__ */ e(s, { ...a, className: "w-48/100 shadow-none" }, a.id)) }) }),
11
+ /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-6", children: [
12
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(f, { ...t }) }),
13
+ /* @__PURE__ */ e(n, { ...i })
14
+ ] })
15
+ ] }) })
16
+ ] });
17
+ export {
18
+ g as NotFoundTemplate
19
+ };
@@ -1,26 +1,26 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { Button as t } from "./Button.js";
4
- const x = ({
5
- title: r,
6
- footerText: a,
4
+ const i = ({
5
+ title: a,
6
+ footerText: r,
7
7
  preview: s,
8
8
  cta: o,
9
- pdfDownload: n,
10
- wordDownload: c
11
- }) => /* @__PURE__ */ l("div", { className: "bg-neutral-25 relative flex h-full flex-col items-center gap-6 rounded border border-neutral-200 px-6 pt-45 pb-6 text-center", children: [
9
+ pdfDownload: m,
10
+ wordDownload: n
11
+ }) => /* @__PURE__ */ l("div", { className: "bg-neutral-25 relative flex h-auto max-w-100 flex-col items-center gap-6 rounded border border-neutral-200 px-6 pt-45 pb-6 text-center", children: [
12
12
  /* @__PURE__ */ e("div", { className: "absolute -top-22 left-1/2 h-64 w-50 -translate-x-1/2 transform shadow-lg", children: s }),
13
- /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: r }),
13
+ /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: a }),
14
14
  /* @__PURE__ */ e(t, { ...o }),
15
15
  /* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
16
16
  /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-4", children: [
17
- /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: a }),
18
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 sm:flex-row", children: [
19
- /* @__PURE__ */ e(t, { ...n }),
20
- /* @__PURE__ */ e(t, { ...c })
17
+ /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: r }),
18
+ /* @__PURE__ */ l("div", { className: "m-auto flex flex-col gap-4 sm:flex-row", children: [
19
+ /* @__PURE__ */ e(t, { ...m }),
20
+ /* @__PURE__ */ e(t, { ...n })
21
21
  ] })
22
22
  ] })
23
23
  ] });
24
24
  export {
25
- x as PreviewDownload
25
+ i as PreviewDownload
26
26
  };