@npm_leadtech/legal-contracts-ui 0.104.1 → 0.104.5

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.
@@ -30,6 +30,7 @@ export interface ContactUsSectionProps {
30
30
  description?: string;
31
31
  icon: ReactNode;
32
32
  helper?: string;
33
+ url?: string;
33
34
  }>;
34
35
  }
35
36
 
@@ -1,16 +1,16 @@
1
1
  import { jsxs as x, jsx as o } from "react/jsx-runtime";
2
- import { IntroSection as S } from "./IntroSection.js";
3
- import { MissionSection as u } from "./MissionSection.js";
4
- import { ValuesSection as b } from "./ValuesSection.js";
5
- import { Storyline as y } from "./Storyline.js";
6
- import { WeHelpSection as N } from "./WeHelpSection.js";
7
- import { GuidelinesSection as d } from "./GuidelinesSection.js";
8
- import { ExpertsSection as g } from "./ExpertsSection.js";
9
- import { TrustPilotSection as j } from "./TrustPilotSection.js";
10
- import { PartnersSection as w } from "./PartnersSection.js";
11
- import { CtaSection as C } from "./CtaSection.js";
12
- import { ContactUsSection as P } from "./ContactUsSection.js";
13
- import { Jumbotron2 as T } from "./Jumbotron2.js";
2
+ import { MissionSection as S } from "./MissionSection.js";
3
+ import { ValuesSection as u } from "./ValuesSection.js";
4
+ import { Storyline as b } from "./Storyline.js";
5
+ import { WeHelpSection as y } from "./WeHelpSection.js";
6
+ import { GuidelinesSection as N } from "./GuidelinesSection.js";
7
+ import { ExpertsSection as d } from "./ExpertsSection.js";
8
+ import { TrustPilotSection as g } from "./TrustPilotSection.js";
9
+ import { PartnersSection as j } from "./PartnersSection.js";
10
+ import { CtaSection as w } from "./CtaSection.js";
11
+ import { ContactUsSection as C } from "./ContactUsSection.js";
12
+ import { Jumbotron2 as P } from "./Jumbotron2.js";
13
+ import { IntroSection as T } from "./IntroSection.js";
14
14
  const v = ({
15
15
  jumbotron: t,
16
16
  intro: r,
@@ -25,18 +25,18 @@ const v = ({
25
25
  cta: c,
26
26
  contactUs: a
27
27
  }) => /* @__PURE__ */ x("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
28
- /* @__PURE__ */ o(T, { ...t, className: "bg-primary-50 w-full py-4 text-3xl" }),
29
- /* @__PURE__ */ o(S, { ...r, className: "bg-primary-50" }),
30
- /* @__PURE__ */ o(u, { ...m }),
31
- /* @__PURE__ */ o(b, { ...i }),
32
- /* @__PURE__ */ o(y, { ...e }),
33
- /* @__PURE__ */ o(N, { ...n }),
34
- /* @__PURE__ */ o(d, { ...l }),
35
- /* @__PURE__ */ o(g, { ...p }),
36
- /* @__PURE__ */ o(j, { ...s }),
37
- /* @__PURE__ */ o(w, { ...f }),
38
- /* @__PURE__ */ o(C, { ...c }),
39
- /* @__PURE__ */ o(P, { ...a })
28
+ /* @__PURE__ */ o(P, { ...t, className: "bg-primary-50 w-full py-4 text-3xl" }),
29
+ /* @__PURE__ */ o(T, { ...r, className: "bg-primary-50" }),
30
+ /* @__PURE__ */ o(S, { ...m }),
31
+ /* @__PURE__ */ o(u, { ...i }),
32
+ /* @__PURE__ */ o(b, { ...e }),
33
+ /* @__PURE__ */ o(y, { ...n }),
34
+ /* @__PURE__ */ o(N, { ...l }),
35
+ /* @__PURE__ */ o(d, { ...p }),
36
+ /* @__PURE__ */ o(g, { ...s }),
37
+ /* @__PURE__ */ o(j, { ...f }),
38
+ /* @__PURE__ */ o(w, { ...c }),
39
+ /* @__PURE__ */ o(C, { ...a })
40
40
  ] });
41
41
  export {
42
42
  v as AboutUsTemplate
@@ -10,6 +10,7 @@ export declare interface ContactUsSectionProps {
10
10
  description?: string;
11
11
  icon: ReactNode;
12
12
  helper?: string;
13
+ url?: string;
13
14
  }>;
14
15
  }
15
16
 
@@ -1,23 +1,28 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as r } from "react/jsx-runtime";
2
+ import a from "clsx";
2
3
  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(
4
+ const d = ({ header: t, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ l("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: [
5
+ /* @__PURE__ */ l(c, { ...t, className: "px-6" }),
6
+ /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((e) => /* @__PURE__ */ r(
6
7
  "article",
7
8
  {
8
- className: "flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
9
+ className: a(
10
+ "relative flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
11
+ e.url && 'cursor-pointer [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]'
12
+ ),
9
13
  children: [
10
- /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-full p-3", children: l.icon }),
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 })
14
+ e.url && /* @__PURE__ */ l("a", { href: e.url, children: /* @__PURE__ */ l("span", { className: "sr-only", children: e.title }) }),
15
+ /* @__PURE__ */ l("div", { className: "bg-primary-50 rounded-full p-3", children: e.icon }),
16
+ /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center", children: [
17
+ /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.title }),
18
+ /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.description }),
19
+ e.helper && /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.helper })
15
20
  ] })
16
21
  ]
17
22
  },
18
- l.title
23
+ e.title
19
24
  )) })
20
25
  ] }) });
21
26
  export {
22
- n as ContactUsSection
27
+ d as ContactUsSection
23
28
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { ContactMethodsSection as o } from "./ContactMethodsSection.js";
3
- import { ContactFormSection as s } from "./ContactFormSection.js";
4
- import { Jumbotron2 as d } from "./Jumbotron2.js";
2
+ import { ContactFormSection as o } from "./ContactFormSection.js";
3
+ import { Jumbotron2 as s } from "./Jumbotron2.js";
5
4
  import { Markdown as m } from "./Markdown.js";
5
+ import { ContactMethodsSection as d } from "./ContactMethodsSection.js";
6
6
  import { LinkWrapper as n } from "./LinkWrapper.js";
7
7
  const v = ({
8
8
  jumbotron: t,
@@ -13,7 +13,7 @@ const v = ({
13
13
  }) => /* @__PURE__ */ a("main", { className: "bg-primary-50 relative flex-1 pt-10 pb-20 md:px-6 lg:px-8 xl:px-0", children: [
14
14
  !!r && /* @__PURE__ */ e("div", { className: "absolute right-0 bottom-0 hidden md:block", children: r }),
15
15
  /* @__PURE__ */ a("div", { className: "relative mx-auto flex w-full max-w-300 flex-col gap-12", children: [
16
- /* @__PURE__ */ e(d, { ...t, className: "flex flex-col gap-4 pb-0!", variant: "contact", children: /* @__PURE__ */ e(
16
+ /* @__PURE__ */ e(s, { ...t, className: "flex flex-col gap-4 pb-0!", variant: "contact", children: /* @__PURE__ */ e(
17
17
  m,
18
18
  {
19
19
  content: t.children,
@@ -21,8 +21,8 @@ const v = ({
21
21
  }
22
22
  ) }),
23
23
  /* @__PURE__ */ a("div", { className: "relative flex flex-col gap-10 md:grid md:grid-cols-2 md:items-start md:gap-x-10 md:gap-y-8 lg:gap-x-16 xl:gap-x-20", children: [
24
- /* @__PURE__ */ e(o, { ...i }),
25
- /* @__PURE__ */ e("div", { className: "md:row-span-2", children: /* @__PURE__ */ e(s, { ...c }) }),
24
+ /* @__PURE__ */ e(d, { ...i }),
25
+ /* @__PURE__ */ e("div", { className: "md:row-span-2", children: /* @__PURE__ */ e(o, { ...c }) }),
26
26
  /* @__PURE__ */ a("div", { className: "flex flex-col gap-8 px-6", children: [
27
27
  /* @__PURE__ */ e("h3", { className: "text-large text-primary-700 font-bold", children: l.faqTitle }),
28
28
  /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ e(m, { content: l.faqText, className: "text-medium text-neutral-800 [&_p:last-child]:mb-0" }) }),
@@ -1,12 +1,84 @@
1
+ import { ChangeEvent } from 'react';
1
2
  import { FC } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
2
4
  import { ReactNode } from 'react';
3
5
 
6
+ export type ButtonSize = 'small' | 'default' | 'large';
7
+
8
+ 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';
9
+
10
+ export interface ContactMethod {
11
+ id: string;
12
+ label?: ReactNode;
13
+ helper?: string;
14
+ variant: 'phone' | 'email' | 'location';
15
+ }
16
+
17
+ export interface ContactMethodsSectionProps {
18
+ items: ContactMethod[];
19
+ }
20
+
21
+ export interface DocumentItemProps {
22
+ id: string;
23
+ link: ReactNode;
24
+ description: string;
25
+ className?: string;
26
+ }
27
+
28
+ export type IconPosition = 'left' | 'right' | 'top';
29
+
30
+ export interface IntroSectionProps {
31
+ image: ReactNode;
32
+ children: ReactNode;
33
+ cta: LinkWrapper;
34
+ className?: string;
35
+ containerClassName?: string;
36
+ }
37
+
38
+ export interface LinkWrapper {
39
+ children: ReactNode;
40
+ size?: ButtonSize;
41
+ variant?: ResponsiveButtonVariant;
42
+ iconPosition?: IconPosition;
43
+ disabled?: boolean;
44
+ className?: string;
45
+ }
46
+
47
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
48
+
4
49
  export declare const NotFoundTemplate: FC<NotFoundTemplateProps>;
5
50
 
6
51
  export declare interface NotFoundTemplateProps {
7
- image: ReactNode;
8
- title: ReactNode;
9
- message: ReactNode;
10
- cta: ReactNode;
52
+ intro: IntroSectionProps;
53
+ popularDocuments: {
54
+ title: ReactNode;
55
+ documents: DocumentItemProps[];
56
+ };
57
+ searchBar: SearchBarProps;
58
+ contactMethods: ContactMethodsSectionProps;
59
+ }
60
+
61
+ export type ResponsiveButtonVariant = ButtonVariant | {
62
+ initial?: ButtonVariant;
63
+ sm?: ButtonVariant;
64
+ md?: ButtonVariant;
65
+ lg?: ButtonVariant;
66
+ xl?: ButtonVariant;
67
+ };
68
+
69
+ export interface SearchBarProps {
70
+ items: SearchItem[];
71
+ placeholder?: string;
72
+ isOpen?: boolean;
73
+ onToggle?: () => void;
74
+ searchValue?: string;
75
+ onInputChange?: (e: ChangeEvent<HTMLInputElement>) => void;
76
+ onClear?: () => void;
77
+ allDocumentsItem?: SearchItem;
78
+ }
79
+
80
+ export interface SearchItem {
81
+ id: string;
82
+ link: ReactNode;
11
83
  }
12
84
 
@@ -1,22 +1,10 @@
1
- import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
- import { LinkWrapper as a } from "./LinkWrapper.js";
3
- const s = ({ image: l, title: t, message: m, cta: r }) => /* @__PURE__ */ e("main", { className: "flex-1", children: /* @__PURE__ */ n("div", { className: "bg-neutral-white flex flex-col items-center justify-center px-5 py-12 text-center md:flex-row md:items-center md:gap-6 md:px-20 md:py-12 md:text-left lg:gap-20 lg:px-60 lg:py-20", children: [
4
- l != null ? /* @__PURE__ */ e("div", { className: "mb-4 md:mb-0 md:h-[332px] md:w-[344px] md:shrink-0 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl md:[&_img]:h-full md:[&_img]:object-cover", children: l }) : null,
5
- /* @__PURE__ */ n("div", { className: "mt-4 flex flex-col items-center gap-6 md:mt-0 md:items-start", children: [
6
- t != null ? /* @__PURE__ */ e("h1", { className: "font-lora text-extra-large font-normal text-neutral-800", children: t }) : null,
7
- m != null ? /* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: m }) : null,
8
- r != null ? /* @__PURE__ */ e(
9
- a,
10
- {
11
- disabled: !1,
12
- variant: "primary-darkgreen",
13
- size: "large",
14
- className: "flex w-full justify-center md:justify-start",
15
- children: r
16
- }
17
- ) : null
18
- ] })
19
- ] }) });
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import { IntroSection as r } from "./IntroSection.js";
3
+ import { ContactMethodsSection as t } from "./ContactMethodsSection.js";
4
+ const i = ({ intro: e, contactMethods: o }) => /* @__PURE__ */ a("main", { className: "flex-1", children: [
5
+ /* @__PURE__ */ l(r, { ...e }),
6
+ /* @__PURE__ */ l("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: /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-6", children: /* @__PURE__ */ l(t, { ...o }) }) }) })
7
+ ] });
20
8
  export {
21
- s as NotFoundTemplate
9
+ i as NotFoundTemplate
22
10
  };