@npm_leadtech/legal-contracts-ui 0.99.7 → 0.100.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.
Files changed (31) hide show
  1. package/dist/components/AboutUsTemplate.d.ts +1 -2
  2. package/dist/components/AboutUsTemplate.js +24 -24
  3. package/dist/components/AllDocumentsTemplate.d.ts +0 -1
  4. package/dist/components/Button.d.ts +1 -2
  5. package/dist/components/Button.js +13 -14
  6. package/dist/components/CategoryProductTemplate.d.ts +0 -1
  7. package/dist/components/ContactMethodCard.d.ts +1 -1
  8. package/dist/components/ContactMethodCard.js +3 -3
  9. package/dist/components/ContactMethodsSection.d.ts +1 -1
  10. package/dist/components/ContactUsSection.d.ts +1 -1
  11. package/dist/components/ContactUsSection.js +12 -10
  12. package/dist/components/ContactUsTemplate.d.ts +1 -1
  13. package/dist/components/ContactUsTemplate.js +6 -6
  14. package/dist/components/CtaSection.d.ts +0 -1
  15. package/dist/components/DocumentItem.d.ts +0 -1
  16. package/dist/components/DocumentItem.js +11 -15
  17. package/dist/components/DocumentSection.d.ts +0 -1
  18. package/dist/components/GuidelinesSection.d.ts +0 -1
  19. package/dist/components/Header.d.ts +0 -2
  20. package/dist/components/HowItWorksTemplate.d.ts +0 -1
  21. package/dist/components/IntroSection.d.ts +0 -1
  22. package/dist/components/IntroSection.js +11 -11
  23. package/dist/components/MobileMenu.d.ts +0 -2
  24. package/dist/components/NotFoundTemplate.d.ts +72 -5
  25. package/dist/components/NotFoundTemplate.js +17 -20
  26. package/dist/components/SearchBar.d.ts +0 -2
  27. package/dist/components/SearchBar.js +30 -33
  28. package/dist/components/WeHelpSection.d.ts +0 -1
  29. package/dist/globals.css +1 -1
  30. package/package.json +1 -1
  31. package/dist/components/index.d.ts +0 -1192
@@ -24,7 +24,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
24
24
  size?: ButtonSize;
25
25
  variant?: ResponsiveButtonVariant;
26
26
  iconPosition?: IconPosition;
27
- href?: string;
28
27
  }
29
28
 
30
29
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -35,7 +34,7 @@ export interface ContactUsSectionProps {
35
34
  header: SectionHeadingProps;
36
35
  contactOptions: Array<{
37
36
  title: string;
38
- description: string;
37
+ description?: string;
39
38
  icon: ReactNode;
40
39
  helper?: string;
41
40
  }>;
@@ -1,16 +1,16 @@
1
1
  import { jsxs as S, 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 y } from "./GuidelinesSection.js";
8
- import { ExpertsSection as C } from "./ExpertsSection.js";
9
- import { TrustPilotSection as N } from "./TrustPilotSection.js";
10
- import { PartnersSection as P } from "./PartnersSection.js";
11
- import { CtaSection as T } from "./CtaSection.js";
12
- import { ContactUsSection as U } from "./ContactUsSection.js";
13
- import { Jumbotron2 as g } from "./Jumbotron2.js";
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 P } from "./CtaSection.js";
11
+ import { ContactUsSection as T } from "./ContactUsSection.js";
12
+ import { Jumbotron2 as U } from "./Jumbotron2.js";
13
+ import { IntroSection as g } from "./IntroSection.js";
14
14
  const v = ({
15
15
  jumbotron: t,
16
16
  intro: r,
@@ -25,18 +25,18 @@ const v = ({
25
25
  cta: l,
26
26
  contactUs: a
27
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(u, { ...r, className: "bg-primary-50" }),
30
- /* @__PURE__ */ o(x, { ...m }),
31
- /* @__PURE__ */ o(b, { ...i }),
32
- /* @__PURE__ */ o(d, { ...e }),
33
- /* @__PURE__ */ o(j, { ...n }),
34
- /* @__PURE__ */ o(y, { ...p }),
35
- /* @__PURE__ */ o(C, { ...f }),
36
- /* @__PURE__ */ o(N, { ...s }),
37
- /* @__PURE__ */ o(P, { ...c }),
38
- /* @__PURE__ */ o(T, { ...l }),
39
- /* @__PURE__ */ o(U, { ...a })
28
+ /* @__PURE__ */ o(U, { ...t }),
29
+ /* @__PURE__ */ o(g, { ...r, className: "bg-primary-50" }),
30
+ /* @__PURE__ */ o(u, { ...m }),
31
+ /* @__PURE__ */ o(x, { ...i }),
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(P, { ...l }),
39
+ /* @__PURE__ */ o(T, { ...a })
40
40
  ] });
41
41
  export {
42
42
  v as AboutUsTemplate
@@ -66,7 +66,6 @@ export interface DocumentItemProps {
66
66
  link: ReactNode;
67
67
  description: string;
68
68
  className?: string;
69
- title: string;
70
69
  }
71
70
 
72
71
  export interface DocumentSectionProps {
@@ -2,14 +2,13 @@ import { ComponentPropsWithRef } from 'react';
2
2
  import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
- export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, href, ref, ...props }: ButtonProps) => JSX.Element;
5
+ export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, ...props }: ButtonProps) => JSX.Element;
6
6
 
7
7
  export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
8
  children: ReactNode;
9
9
  size?: ButtonSize;
10
10
  variant?: ResponsiveButtonVariant;
11
11
  iconPosition?: IconPosition;
12
- href?: string;
13
12
  }
14
13
 
15
14
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -1,21 +1,20 @@
1
- import { jsx as e } from "react/jsx-runtime";
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { getButtonClasses as p } from "./Button.utils.js";
2
3
  import "react";
3
- import { getButtonClasses as f } from "./Button.utils.js";
4
- const N = ({
4
+ const x = ({
5
5
  children: o,
6
- type: m = "button",
7
- size: c = "default",
8
- variant: u = "primary-green",
9
- iconPosition: l = "left",
10
- className: p,
6
+ type: r = "button",
7
+ size: s = "default",
8
+ variant: e = "primary-green",
9
+ iconPosition: a = "left",
10
+ className: n,
11
11
  disabled: t = !1,
12
- href: s,
13
- ref: r,
14
- ...a
12
+ ref: m,
13
+ ...u
15
14
  }) => {
16
- const n = f(c, u, l, t, p);
17
- return s ? /* @__PURE__ */ e("a", { ref: r, href: s, className: n, ...a, children: o }) : /* @__PURE__ */ e("button", { ref: r, type: m, disabled: t, "aria-disabled": t, className: n, ...a, children: o });
15
+ const f = p(s, e, a, t, n);
16
+ return /* @__PURE__ */ l("button", { ref: m, type: r, disabled: t, "aria-disabled": t, className: f, ...u, children: o });
18
17
  };
19
18
  export {
20
- N as Button
19
+ x as Button
21
20
  };
@@ -47,7 +47,6 @@ export interface DocumentItemProps {
47
47
  link: ReactNode;
48
48
  description: string;
49
49
  className?: string;
50
- title: string;
51
50
  }
52
51
 
53
52
  export interface DocumentSectionProps {
@@ -4,7 +4,7 @@ export declare interface ContactMethod {
4
4
  icon: React.ReactNode;
5
5
  label: string;
6
6
  helper?: string;
7
- link?: string;
7
+ href?: string;
8
8
  }
9
9
 
10
10
  export declare const ContactMethodCard: FC<ContactMethod>;
@@ -1,9 +1,9 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- const i = ({ icon: n, label: r, helper: t, link: d }) => /* @__PURE__ */ a("article", { className: "bg-neutral-25 flex items-center gap-4 rounded-lg border border-neutral-200 p-4", children: [
2
+ const i = ({ icon: n, label: t, helper: r, href: d }) => /* @__PURE__ */ a("article", { className: "bg-neutral-25 flex items-center gap-4 rounded-lg border border-neutral-200 p-4", children: [
3
3
  /* @__PURE__ */ e("div", { className: "flex h-10 w-10 items-center justify-center rounded-md bg-white", "aria-hidden": "true", children: n }),
4
4
  /* @__PURE__ */ a("div", { className: "flex-1", children: [
5
- d ? /* @__PURE__ */ e("a", { href: d, className: "text-medium text-primary-800 font-bold underline-offset-4 hover:underline", children: r }) : /* @__PURE__ */ e("p", { className: "text-medium text-primary-800 font-bold", children: r }),
6
- t && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: t })
5
+ d ? /* @__PURE__ */ e("a", { href: d, className: "text-medium text-primary-800 font-bold underline-offset-4 hover:underline", children: t }) : /* @__PURE__ */ e("p", { className: "text-medium text-primary-800 font-bold", children: t }),
6
+ r && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: r })
7
7
  ] })
8
8
  ] });
9
9
  export {
@@ -5,7 +5,7 @@ export interface ContactMethod {
5
5
  icon: React.ReactNode;
6
6
  label: string;
7
7
  helper?: string;
8
- link?: string;
8
+ href?: string;
9
9
  }
10
10
 
11
11
  export declare const ContactMethodsSection: FC<ContactMethodsSectionProps>;
@@ -7,7 +7,7 @@ export declare interface ContactUsSectionProps {
7
7
  header: SectionHeadingProps;
8
8
  contactOptions: Array<{
9
9
  title: string;
10
- description: string;
10
+ description?: string;
11
11
  icon: ReactNode;
12
12
  helper?: string;
13
13
  }>;
@@ -1,21 +1,23 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { SectionHeading as s } from "./SectionHeading.js";
3
- const d = ({ header: a, contactOptions: t }) => t.length === 0 ? null : /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-10", children: [
4
- /* @__PURE__ */ e(s, { ...a }),
5
- /* @__PURE__ */ e("div", { className: "grid gap-6 sm:grid-cols-2 lg:grid-cols-3", children: t.map((l) => /* @__PURE__ */ r(
1
+ import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
+ import { SectionHeading as c } from "./SectionHeading.js";
3
+ const n = ({ header: r, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ t("div", { className: "mx-auto max-w-6xl space-y-10", children: [
4
+ /* @__PURE__ */ e(c, { ...r, className: "px-6" }),
5
+ /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((l) => /* @__PURE__ */ t(
6
6
  "article",
7
7
  {
8
- className: "flex flex-col items-center gap-4 rounded-2xl bg-white p-6 text-center shadow-sm",
8
+ className: "flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
9
9
  children: [
10
10
  /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-full p-3", children: l.icon }),
11
- /* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-900", children: l.title }),
12
- /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l.description }),
13
- l.helper && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: l.helper })
11
+ /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center", children: [
12
+ /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.title }),
13
+ /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.description }),
14
+ l.helper && /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.helper })
15
+ ] })
14
16
  ]
15
17
  },
16
18
  l.title
17
19
  )) })
18
20
  ] }) });
19
21
  export {
20
- d as ContactUsSection
22
+ n as ContactUsSection
21
23
  };
@@ -5,7 +5,7 @@ export interface ContactMethod {
5
5
  icon: React.ReactNode;
6
6
  label: string;
7
7
  helper?: string;
8
- link?: string;
8
+ href?: string;
9
9
  }
10
10
 
11
11
  export interface ContactMethodsSectionProps {
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { ContactMethodsSection as a } from "./ContactMethodsSection.js";
3
- import { ContactFormSection as t } from "./ContactFormSection.js";
4
- import { Jumbotron2 as m } from "./Jumbotron2.js";
2
+ import { ContactFormSection as a } from "./ContactFormSection.js";
3
+ import { Jumbotron2 as t } from "./Jumbotron2.js";
4
+ import { ContactMethodsSection as m } from "./ContactMethodsSection.js";
5
5
  const n = ({ jumbotron: o, contactMethods: r }) => /* @__PURE__ */ e("main", { className: "bg-primary-50 flex-1 px-4 py-12 lg:px-0", children: /* @__PURE__ */ l("div", { className: "relative mx-auto flex w-full max-w-6xl flex-col gap-12", children: [
6
- /* @__PURE__ */ e(m, { ...o }),
6
+ /* @__PURE__ */ e(t, { ...o }),
7
7
  /* @__PURE__ */ l("div", { className: "relative flex flex-col gap-10 lg:flex-row", children: [
8
- /* @__PURE__ */ e("div", { className: "flex-1 space-y-8", children: /* @__PURE__ */ e(a, { ...r }) }),
9
- /* @__PURE__ */ e(t, {})
8
+ /* @__PURE__ */ e("div", { className: "flex-1 space-y-8", children: /* @__PURE__ */ e(m, { ...r }) }),
9
+ /* @__PURE__ */ e(a, {})
10
10
  ] })
11
11
  ] }) });
12
12
  export {
@@ -7,7 +7,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
7
7
  size?: ButtonSize;
8
8
  variant?: ResponsiveButtonVariant;
9
9
  iconPosition?: IconPosition;
10
- href?: string;
11
10
  }
12
11
 
13
12
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -8,6 +8,5 @@ export declare interface DocumentItemProps {
8
8
  link: ReactNode;
9
9
  description: string;
10
10
  className?: string;
11
- title: string;
12
11
  }
13
12
 
@@ -1,26 +1,22 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import l from "clsx";
3
- import { ChevronRightIcon as o } from "./ChevronRightIcon.js";
4
- const f = ({ link: e, description: i, className: n = "", title: a }) => /* @__PURE__ */ t(
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import n from "clsx";
3
+ import { ChevronRightIcon as l } from "./ChevronRightIcon.js";
4
+ const m = ({ link: t, description: o, className: i = "" }) => /* @__PURE__ */ r(
5
5
  "article",
6
6
  {
7
- className: l(
7
+ className: n(
8
8
  'hover:border-primary-500 text-medium hover:ring-primary-500 relative flex cursor-pointer flex-col gap-2 rounded border border-neutral-200 bg-white pt-4 pr-4 pb-6 pl-6 text-neutral-800 transition-all hover:ring-1 hover:ring-inset [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]',
9
- n
9
+ i
10
10
  ),
11
11
  children: [
12
- e != null && typeof e == "string" && /* @__PURE__ */ t("a", { href: e, className: "flex justify-between", children: [
13
- /* @__PURE__ */ r("p", { className: "flex-1 font-bold", children: a }),
14
- /* @__PURE__ */ r(o, { "aria-hidden": !0 })
12
+ /* @__PURE__ */ r("div", { className: "flex justify-between", children: [
13
+ /* @__PURE__ */ e("p", { className: "flex-1 font-bold", children: t }),
14
+ /* @__PURE__ */ e(l, { "aria-hidden": !0 })
15
15
  ] }),
16
- e != null && typeof e != "string" && /* @__PURE__ */ t("div", { className: "flex justify-between", children: [
17
- /* @__PURE__ */ r("div", { className: "flex-1 font-bold", children: e }),
18
- /* @__PURE__ */ r(o, { "aria-hidden": !0 })
19
- ] }),
20
- /* @__PURE__ */ r("p", { children: i })
16
+ /* @__PURE__ */ e("p", { children: o })
21
17
  ]
22
18
  }
23
19
  );
24
20
  export {
25
- f as DocumentItem
21
+ m as DocumentItem
26
22
  };
@@ -6,7 +6,6 @@ export interface DocumentItemProps {
6
6
  link: ReactNode;
7
7
  description: string;
8
8
  className?: string;
9
- title: string;
10
9
  }
11
10
 
12
11
  export declare const DocumentSection: FC<DocumentSectionProps>;
@@ -7,7 +7,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
7
7
  size?: ButtonSize;
8
8
  variant?: ResponsiveButtonVariant;
9
9
  iconPosition?: IconPosition;
10
- href?: string;
11
10
  }
12
11
 
13
12
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -99,12 +99,10 @@ export interface SearchBarProps {
99
99
  onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
100
100
  onClear?: () => void;
101
101
  allDocumentsItem?: SearchItem;
102
- noResultsText?: string;
103
102
  }
104
103
 
105
104
  export interface SearchItem {
106
105
  id: string;
107
106
  link: ReactNode;
108
- label: string;
109
107
  }
110
108
 
@@ -7,7 +7,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
7
7
  size?: ButtonSize;
8
8
  variant?: ResponsiveButtonVariant;
9
9
  iconPosition?: IconPosition;
10
- href?: string;
11
10
  }
12
11
 
13
12
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -7,7 +7,6 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
7
7
  size?: ButtonSize;
8
8
  variant?: ResponsiveButtonVariant;
9
9
  iconPosition?: IconPosition;
10
- href?: string;
11
10
  }
12
11
 
13
12
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -1,18 +1,18 @@
1
- import { jsx as m, jsxs as r } from "react/jsx-runtime";
2
- import { TwoColumnSection as a } from "./TwoColumnSection.js";
3
- import { Button as o } from "./Button.js";
4
- const g = ({ image: s, children: e, cta: t, className: i, containerClassName: l }) => /* @__PURE__ */ m(
5
- a,
1
+ import { jsx as m, jsxs as o } from "react/jsx-runtime";
2
+ import { TwoColumnSection as e } from "./TwoColumnSection.js";
3
+ import { Button as t } from "./Button.js";
4
+ const b = ({ image: s, children: i, cta: l, className: r, containerClassName: a }) => /* @__PURE__ */ m(
5
+ e,
6
6
  {
7
- className: i ?? "bg-neutral-white",
8
- containerClassName: l ?? "items-center text-center md:items-stretch md:text-left py-16 md:py-20 lg:gap-20",
7
+ className: r ?? "",
8
+ containerClassName: a,
9
9
  firstColumn: /* @__PURE__ */ m("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 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl xl:[&_img]:h-full xl:[&_img]:object-cover", children: s }),
10
- secondColumn: /* @__PURE__ */ r("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
11
- e,
12
- /* @__PURE__ */ m(o, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...t })
10
+ secondColumn: /* @__PURE__ */ o("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
11
+ i,
12
+ /* @__PURE__ */ m(t, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...l })
13
13
  ] })
14
14
  }
15
15
  );
16
16
  export {
17
- g as IntroSection
17
+ b as IntroSection
18
18
  };
@@ -45,12 +45,10 @@ export interface SearchBarProps {
45
45
  onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
46
46
  onClear?: () => void;
47
47
  allDocumentsItem?: SearchItem;
48
- noResultsText?: string;
49
48
  }
50
49
 
51
50
  export interface SearchItem {
52
51
  id: string;
53
52
  link: ReactNode;
54
- label: string;
55
53
  }
56
54
 
@@ -1,14 +1,81 @@
1
+ import { ChangeEvent } from 'react';
2
+ import { ComponentPropsWithRef } from 'react';
1
3
  import { FC } from 'react';
2
4
  import { ReactNode } from 'react';
3
5
 
6
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
7
+ children: ReactNode;
8
+ size?: ButtonSize;
9
+ variant?: ResponsiveButtonVariant;
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' | 'secondary-black' | '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
+ link: ReactNode;
32
+ description: string;
33
+ className?: string;
34
+ }
35
+
36
+ export type IconPosition = 'left' | 'right' | 'top';
37
+
38
+ export interface IntroSectionProps {
39
+ image: ReactNode;
40
+ children: ReactNode;
41
+ cta: ButtonProps;
42
+ className?: string;
43
+ containerClassName?: string;
44
+ }
45
+
4
46
  export declare const NotFoundTemplate: FC<NotFoundTemplateProps>;
5
47
 
6
48
  export declare interface NotFoundTemplateProps {
7
- intro: {
8
- image?: ReactNode;
9
- title?: ReactNode;
10
- message?: ReactNode;
11
- cta?: ReactNode;
49
+ intro: IntroSectionProps;
50
+ popularDocuments: {
51
+ title: ReactNode;
52
+ documents: DocumentItemProps[];
12
53
  };
54
+ searchBar: SearchBarProps;
55
+ contactMethods: ContactMethodsSectionProps;
56
+ }
57
+
58
+ export type ResponsiveButtonVariant = ButtonVariant | {
59
+ initial?: ButtonVariant;
60
+ sm?: ButtonVariant;
61
+ md?: ButtonVariant;
62
+ lg?: ButtonVariant;
63
+ xl?: ButtonVariant;
64
+ };
65
+
66
+ export interface SearchBarProps {
67
+ items: SearchItem[];
68
+ placeholder?: string;
69
+ isOpen?: boolean;
70
+ onToggle?: () => void;
71
+ searchValue?: string;
72
+ onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
73
+ onClear?: () => void;
74
+ allDocumentsItem?: SearchItem;
75
+ }
76
+
77
+ export interface SearchItem {
78
+ id: string;
79
+ link: ReactNode;
13
80
  }
14
81
 
@@ -1,22 +1,19 @@
1
- import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
- import { LinkWrapper as m } from "./LinkWrapper.js";
3
- const i = ({ intro: l }) => /* @__PURE__ */ e("main", { className: "flex-1", children: /* @__PURE__ */ a("div", { className: "bg-neutral-white flex flex-col items-center py-16 text-center md:flex-row md:py-20 md:text-left lg:gap-20", children: [
4
- l.image != null ? /* @__PURE__ */ e("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 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl xl:[&_img]:h-full xl:[&_img]:object-cover", children: l.image }) : null,
5
- /* @__PURE__ */ a("div", { className: "mt-4 flex basis-full flex-col items-center md:mt-0 md:basis-56/100 md:items-start lg:basis-59/100 xl:basis-60/100", children: [
6
- l.title != null ? /* @__PURE__ */ e("h1", { className: "font-lora text-extra-large font-normal text-neutral-800", children: l.title }) : null,
7
- l.message != null ? /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l.message }) : null,
8
- l.cta != null ? /* @__PURE__ */ e(
9
- m,
10
- {
11
- disabled: !1,
12
- variant: "primary-darkgreen",
13
- size: "large",
14
- className: "mt-8 flex w-full justify-center md:justify-start",
15
- children: l.cta
16
- }
17
- ) : null
18
- ] })
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
+ ] });
20
17
  export {
21
- i as NotFoundTemplate
18
+ g as NotFoundTemplate
22
19
  };
@@ -13,12 +13,10 @@ export declare interface SearchBarProps {
13
13
  onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
14
14
  onClear?: () => void;
15
15
  allDocumentsItem?: SearchItem;
16
- noResultsText?: string;
17
16
  }
18
17
 
19
18
  export declare interface SearchItem {
20
19
  id: string;
21
20
  link: ReactNode;
22
- label: string;
23
21
  }
24
22