@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.
- package/dist/components/AboutUsTemplate.d.ts +7 -1
- package/dist/components/AboutUsTemplate.js +35 -34
- package/dist/components/Anchor.d.ts +1 -1
- package/dist/components/Anchor.js +11 -10
- package/dist/components/Blockquote.d.ts +5 -1
- package/dist/components/Blockquote.js +5 -2
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/Markdown.js +31 -31
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/Paragraph.d.ts +1 -1
- package/dist/components/TrustPilotSection.d.ts +10 -0
- package/dist/components/TrustPilotSection.js +10 -0
- package/dist/components/UiComponents.d.ts +10 -6
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnsubscribeTemplate.d.ts +1 -1
- package/dist/globals.css +1 -1
- package/package.json +5 -1
|
@@ -13,7 +13,7 @@ export declare interface AboutUsTemplateProps {
|
|
|
13
13
|
howWeHelp: WeHelpSectionProps;
|
|
14
14
|
guidelines: GuidelinesSectionProps;
|
|
15
15
|
experts: ExpertsSectionProps;
|
|
16
|
-
trustPilot:
|
|
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
|
|
2
|
-
import { MissionSection as
|
|
3
|
-
import { ValuesSection as
|
|
4
|
-
import { Storyline as
|
|
5
|
-
import { WeHelpSection as
|
|
6
|
-
import { GuidelinesSection as
|
|
7
|
-
import { ExpertsSection as
|
|
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
|
|
10
|
-
import { ContactUsSection as
|
|
11
|
-
import { Jumbotron2 as
|
|
12
|
-
import { IntroSection as
|
|
13
|
-
const
|
|
14
|
-
jumbotron:
|
|
15
|
-
intro:
|
|
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:
|
|
18
|
-
storyline:
|
|
18
|
+
coreValues: i,
|
|
19
|
+
storyline: e,
|
|
19
20
|
howWeHelp: n,
|
|
20
|
-
guidelines:
|
|
21
|
-
experts:
|
|
22
|
-
trustPilot:
|
|
23
|
-
partners:
|
|
24
|
-
cta:
|
|
21
|
+
guidelines: p,
|
|
22
|
+
experts: f,
|
|
23
|
+
trustPilot: s,
|
|
24
|
+
partners: c,
|
|
25
|
+
cta: l,
|
|
25
26
|
contactUs: a
|
|
26
|
-
}) => /* @__PURE__ */
|
|
27
|
-
/* @__PURE__ */ o(
|
|
28
|
-
/* @__PURE__ */ o(
|
|
29
|
-
/* @__PURE__ */ o(
|
|
30
|
-
/* @__PURE__ */ o(
|
|
31
|
-
/* @__PURE__ */ o(
|
|
32
|
-
/* @__PURE__ */ o(
|
|
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, { ...
|
|
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
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const v = ({ children: o, variant: i = "default", className:
|
|
4
|
-
const t = e.href || "", r = t.toLowerCase(),
|
|
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
|
-
|
|
8
|
-
|
|
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__ */
|
|
16
|
+
return /* @__PURE__ */ d(
|
|
16
17
|
"a",
|
|
17
18
|
{
|
|
18
19
|
...e,
|
|
19
|
-
href:
|
|
20
|
-
className:
|
|
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 }:
|
|
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
|
|
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
|
-
|
|
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
|
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import a, { defaultUrlTransform as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Anchor as
|
|
6
|
-
import { Blockquote as
|
|
7
|
-
import { Code as
|
|
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
|
|
12
|
-
import { OrderedList as
|
|
13
|
-
import { Paragraph as
|
|
14
|
-
import { TableRow as w, TableHeader as g, TableData as H, Table as
|
|
15
|
-
import { UnorderedList as
|
|
16
|
-
import { Video as
|
|
17
|
-
import { Emphasis as
|
|
18
|
-
import
|
|
19
|
-
const y = (
|
|
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:
|
|
22
|
+
h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
|
|
23
23
|
h3: C,
|
|
24
|
-
h4:
|
|
25
|
-
p: (o) => /* @__PURE__ */ r(
|
|
26
|
-
a: (o) => /* @__PURE__ */ r(
|
|
27
|
-
ul: (o) => /* @__PURE__ */ r(
|
|
28
|
-
ol: (o) => /* @__PURE__ */ r(
|
|
29
|
-
code:
|
|
30
|
-
blockquote:
|
|
31
|
-
video:
|
|
32
|
-
table:
|
|
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:
|
|
36
|
+
em: R
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */ r("div", { className:
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
|
|
39
39
|
a,
|
|
40
40
|
{
|
|
41
|
-
rehypePlugins: [
|
|
42
|
-
remarkPlugins: [
|
|
41
|
+
rehypePlugins: [i],
|
|
42
|
+
remarkPlugins: [l],
|
|
43
43
|
urlTransform: y,
|
|
44
44
|
components: n ? p : void 0,
|
|
45
|
-
children:
|
|
45
|
+
children: m
|
|
46
46
|
}
|
|
47
47
|
) });
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
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 }:
|
|
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' | '
|
|
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' | '
|
|
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>;
|