@npm_leadtech/legal-contracts-ui 0.93.0 → 0.93.2

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.
@@ -13,7 +13,7 @@ export declare interface AboutUsTemplateProps {
13
13
  howWeHelp: WeHelpSectionProps;
14
14
  guidelines: GuidelinesSectionProps;
15
15
  experts: ExpertsSectionProps;
16
- trustPilot: ReactNode;
16
+ trustPilot: TrustPilotSectionProps;
17
17
  partners: PartnersSectionProps;
18
18
  cta: CtaSectionProps;
19
19
  contactUs: ContactUsSectionProps;
@@ -128,6 +128,12 @@ export interface StorylineProps {
128
128
  }[];
129
129
  }
130
130
 
131
+ export interface TrustPilotSectionProps {
132
+ trustPilot: React.ReactNode;
133
+ content: string;
134
+ title: string;
135
+ }
136
+
131
137
  export interface ValuesSectionProps {
132
138
  title: string;
133
139
  children: ReactNode;
@@ -1,42 +1,43 @@
1
- import { jsxs as x, jsx as o } from "react/jsx-runtime";
2
- import { MissionSection as S } from "./MissionSection.js";
3
- import { ValuesSection as u } from "./ValuesSection.js";
4
- import { Storyline as d } from "./Storyline.js";
5
- import { WeHelpSection as b } from "./WeHelpSection.js";
6
- import { GuidelinesSection as h } from "./GuidelinesSection.js";
7
- import { ExpertsSection as w } from "./ExpertsSection.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";
8
9
  import { PartnersSection as N } from "./PartnersSection.js";
9
- import { CtaSection as j } from "./CtaSection.js";
10
- import { ContactUsSection as y } from "./ContactUsSection.js";
11
- import { Jumbotron2 as C } from "./Jumbotron2.js";
12
- import { IntroSection as U } from "./IntroSection.js";
13
- const W = ({
14
- jumbotron: r,
15
- intro: t,
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
+ const v = ({
15
+ jumbotron: t,
16
+ intro: r,
16
17
  mission: m,
17
- coreValues: e,
18
- storyline: i,
18
+ coreValues: i,
19
+ storyline: e,
19
20
  howWeHelp: n,
20
- guidelines: l,
21
- experts: s,
22
- trustPilot: c,
23
- partners: f,
24
- cta: p,
21
+ guidelines: p,
22
+ experts: f,
23
+ trustPilot: s,
24
+ partners: c,
25
+ cta: l,
25
26
  contactUs: a
26
- }) => /* @__PURE__ */ x("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
27
- /* @__PURE__ */ o(C, { ...r }),
28
- /* @__PURE__ */ o(U, { ...t, className: "bg-primary-50" }),
29
- /* @__PURE__ */ o(S, { ...m }),
30
- /* @__PURE__ */ o(u, { ...e }),
31
- /* @__PURE__ */ o(d, { ...i }),
32
- /* @__PURE__ */ o(b, { ...n }),
33
- /* @__PURE__ */ o(h, { ...l }),
34
- /* @__PURE__ */ o(w, { ...s }),
35
- /* @__PURE__ */ o("div", { className: "w-full max-w-254 md:h-34", children: c }),
36
- /* @__PURE__ */ o(N, { ...f }),
27
+ }) => /* @__PURE__ */ S("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
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 }),
37
34
  /* @__PURE__ */ o(j, { ...p }),
38
- /* @__PURE__ */ o(y, { ...a })
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 })
39
40
  ] });
40
41
  export {
41
- W as AboutUsTemplate
42
+ v as AboutUsTemplate
42
43
  };
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
4
 
5
5
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'tooltip';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
7
  }
8
8
 
@@ -1,23 +1,24 @@
1
- import { jsx as u } from "react/jsx-runtime";
2
- import h from "clsx";
3
- const v = ({ children: o, variant: i = "default", className: l = "", ...e }) => {
4
- const t = e.href || "", r = t.toLowerCase(), c = r.startsWith("mailto:"), n = r.startsWith("tel:"), a = {
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import p from "clsx";
3
+ const v = ({ children: o, variant: i = "default", className: c = "", ...e }) => {
4
+ const t = e.href || "", r = t.toLowerCase(), l = r.startsWith("mailto:"), a = r.startsWith("tel:"), n = {
5
5
  default: "text-neutral-900 underline ",
6
- legal: "text-primary-700 cursor-pointer"
7
- }, f = a[i] ?? a.default, s = t.startsWith("http") && !n && !c, d = (() => {
8
- if (!n) return t;
6
+ legal: "text-primary-700 cursor-pointer",
7
+ "about-us": "text-primary-700 cursor-pointer"
8
+ }, f = n[i] ?? n.default, s = t.startsWith("http") && !a && !l, u = (() => {
9
+ if (!a) return t;
9
10
  try {
10
11
  return decodeURIComponent(t).replace(/\s/g, "");
11
12
  } catch {
12
13
  return t.replace(/%20/g, "").replace(/\s/g, "");
13
14
  }
14
15
  })();
15
- return /* @__PURE__ */ u(
16
+ return /* @__PURE__ */ d(
16
17
  "a",
17
18
  {
18
19
  ...e,
19
- href: d,
20
- className: h(l, f),
20
+ href: u,
21
+ className: p(c, f),
21
22
  target: s ? "_blank" : void 0,
22
23
  rel: s ? "noopener noreferrer" : void 0,
23
24
  children: o
@@ -1,4 +1,8 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const Blockquote: ({ children }: React.ComponentProps<"blockquote">) => JSX.Element;
3
+ export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
4
+
5
+ export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
+ }
4
8
 
@@ -1,5 +1,8 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- const e = ({ children: o }) => /* @__PURE__ */ r("blockquote", { className: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic", children: o });
2
+ const l = ({ children: t, variant: a = "default" }) => /* @__PURE__ */ r("blockquote", { className: {
3
+ default: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic",
4
+ "about-us": "my-4 text-gray-700 italic bg-neutral-25 pt-4 px-4 pb-0.5"
5
+ }[a], children: t });
3
6
  export {
4
- e as Blockquote
7
+ l as Blockquote
5
8
  };
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
4
4
 
5
5
  export interface Header2Props extends React.ComponentProps<'h2'> {
6
- variant?: 'default' | 'legal' | 'tooltip';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
7
  }
8
8
 
@@ -6,6 +6,6 @@ export declare interface MarkdownProps {
6
6
  content: string;
7
7
  className?: string;
8
8
  useCustom?: boolean;
9
- variant?: 'default' | 'legal' | 'tooltip';
9
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
10
10
  }
11
11
 
@@ -1,51 +1,51 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import a, { defaultUrlTransform as i } from "react-markdown";
3
- import s from "rehype-raw";
4
- import f from "remark-gfm";
5
- import { Anchor as l } from "./Anchor.js";
6
- import { Blockquote as d } from "./Blockquote.js";
7
- import { Code as c } from "./Code.js";
2
+ import a, { defaultUrlTransform as s } from "react-markdown";
3
+ import i from "rehype-raw";
4
+ import l from "remark-gfm";
5
+ import { Anchor as f } from "./Anchor.js";
6
+ import { Blockquote as c } from "./Blockquote.js";
7
+ import { Code as d } from "./Code.js";
8
8
  import { Header1 as h } from "./Header1.js";
9
9
  import { Header2 as u } from "./Header2.js";
10
10
  import { Header3 as C } from "./Header3.js";
11
- import { Header4 as T } from "./Header4.js";
12
- import { OrderedList as b } from "./OrderedList.js";
13
- import { Paragraph as k } from "./Paragraph.js";
14
- import { TableRow as w, TableHeader as g, TableData as H, Table as x } from "./Table.js";
15
- import { UnorderedList as P } from "./UnorderedList.js";
16
- import { Video as R } from "./Video.js";
17
- import { Emphasis as U } from "./Emphasis.js";
18
- import q from "clsx";
19
- const y = (e) => e.startsWith("tel:") ? e : i(e), $ = ({ content: e, className: t = "", useCustom: n = !0, variant: m = "default" }) => {
11
+ import { Header4 as b } from "./Header4.js";
12
+ import { OrderedList as k } from "./OrderedList.js";
13
+ import { Paragraph as T } from "./Paragraph.js";
14
+ import { TableRow as w, TableHeader as g, TableData as H, Table as q } from "./Table.js";
15
+ import { UnorderedList as x } from "./UnorderedList.js";
16
+ import { Video as P } from "./Video.js";
17
+ import { Emphasis as R } from "./Emphasis.js";
18
+ import U from "clsx";
19
+ const y = (m) => m.startsWith("tel:") ? m : s(m), v = ({ content: m, className: t = "", useCustom: n = !0, variant: e = "default" }) => {
20
20
  const p = {
21
21
  h1: h,
22
- h2: (o) => /* @__PURE__ */ r(u, { variant: m, ...o }),
22
+ h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
23
23
  h3: C,
24
- h4: T,
25
- p: (o) => /* @__PURE__ */ r(k, { variant: m, ...o }),
26
- a: (o) => /* @__PURE__ */ r(l, { variant: m, ...o }),
27
- ul: (o) => /* @__PURE__ */ r(P, { variant: m, ...o }),
28
- ol: (o) => /* @__PURE__ */ r(b, { variant: m, ...o }),
29
- code: c,
30
- blockquote: d,
31
- video: R,
32
- table: x,
24
+ h4: b,
25
+ p: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
27
+ ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
+ ol: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
29
+ code: d,
30
+ blockquote: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
31
+ video: P,
32
+ table: q,
33
33
  td: H,
34
34
  th: g,
35
35
  tr: w,
36
- em: U
36
+ em: R
37
37
  };
38
- return /* @__PURE__ */ r("div", { className: q("w-full min-w-0", t), children: /* @__PURE__ */ r(
38
+ return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
39
39
  a,
40
40
  {
41
- rehypePlugins: [s],
42
- remarkPlugins: [f],
41
+ rehypePlugins: [i],
42
+ remarkPlugins: [l],
43
43
  urlTransform: y,
44
44
  components: n ? p : void 0,
45
- children: e
45
+ children: m
46
46
  }
47
47
  ) });
48
48
  };
49
49
  export {
50
- $ as Markdown
50
+ v as Markdown
51
51
  };
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
4
4
 
5
5
  export interface OrderedListProps extends React.ComponentProps<'ol'> {
6
- variant?: 'default' | 'tooltip' | 'legal';
6
+ variant?: 'default' | 'tooltip' | 'legal' | 'about-us';
7
7
  }
8
8
 
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
4
4
 
5
5
  export interface ParagraphProps extends React.ComponentProps<'p'> {
6
- variant?: 'default' | 'legal' | 'tooltip';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
7
  }
8
8
 
@@ -0,0 +1,10 @@
1
+ import { JSX } from 'react/jsx-runtime';
2
+
3
+ export declare const TrustPilotSection: ({ trustPilot, content, title }: TrustPilotSectionProps) => JSX.Element;
4
+
5
+ export declare interface TrustPilotSectionProps {
6
+ trustPilot: React.ReactNode;
7
+ content: string;
8
+ title: string;
9
+ }
10
+
@@ -0,0 +1,10 @@
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { Markdown as a } from "./Markdown.js";
3
+ const i = ({ trustPilot: e, content: l, title: r }) => /* @__PURE__ */ s("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: [
4
+ /* @__PURE__ */ t("h2", { className: "text-super-large mb-8 text-center font-bold text-neutral-800", children: r }),
5
+ /* @__PURE__ */ t(a, { content: l, variant: "about-us" }),
6
+ /* @__PURE__ */ t("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ t("div", { className: "mx-auto w-full max-w-254 md:h-34", children: e }) })
7
+ ] });
8
+ export {
9
+ i as TrustPilotSection
10
+ };
@@ -3,10 +3,14 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
4
 
5
5
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'tooltip';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
7
  }
8
8
 
9
- export declare const Blockquote: ({ children }: React.ComponentProps<"blockquote">) => JSX.Element;
9
+ export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
10
+
11
+ export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
12
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
13
+ }
10
14
 
11
15
  export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
12
16
 
@@ -17,7 +21,7 @@ export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.
17
21
  export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
18
22
 
19
23
  export interface Header2Props extends React.ComponentProps<'h2'> {
20
- variant?: 'default' | 'legal' | 'tooltip';
24
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
21
25
  }
22
26
 
23
27
  export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
@@ -27,13 +31,13 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
27
31
  export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
28
32
 
29
33
  export interface OrderedListProps extends React.ComponentProps<'ol'> {
30
- variant?: 'default' | 'tooltip' | 'legal';
34
+ variant?: 'default' | 'tooltip' | 'legal' | 'about-us';
31
35
  }
32
36
 
33
37
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
34
38
 
35
39
  export interface ParagraphProps extends React.ComponentProps<'p'> {
36
- variant?: 'default' | 'legal' | 'tooltip';
40
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
37
41
  }
38
42
 
39
43
  export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
@@ -47,7 +51,7 @@ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX
47
51
  export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
48
52
 
49
53
  export interface UnorderedListProps extends React.ComponentProps<'ul'> {
50
- variant?: 'default' | 'tooltip' | 'legal';
54
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
51
55
  }
52
56
 
53
57
  export declare const Video: ({ children }: React.ComponentProps<"video">) => JSX.Element;
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
4
4
 
5
5
  export interface UnorderedListProps extends React.ComponentProps<'ul'> {
6
- variant?: 'default' | 'tooltip' | 'legal';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
7
7
  }
8
8
 
@@ -8,7 +8,7 @@ export interface MarkdownProps {
8
8
  content: string;
9
9
  className?: string;
10
10
  useCustom?: boolean;
11
- variant?: 'default' | 'legal' | 'tooltip';
11
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
12
12
  }
13
13
 
14
14
  export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;