@npm_leadtech/legal-contracts-ui 0.141.2 → 0.142.1
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/Anchor.d.ts +1 -1
- package/dist/components/Blockquote.d.ts +1 -1
- package/dist/components/DocumentCategories.js +3 -3
- package/dist/components/DocumentItem.js +1 -1
- package/dist/components/DocumentSection.js +1 -1
- package/dist/components/Emphasis.d.ts +2 -5
- package/dist/components/Emphasis.js +3 -9
- package/dist/components/FaqItem.js +1 -1
- package/dist/components/FaqSection.js +1 -1
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/Hero2Section.js +1 -2
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/Markdown.js +9 -9
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/Paragraph.d.ts +1 -1
- package/dist/components/TrustSection.js +1 -1
- package/dist/components/UiComponents.d.ts +8 -11
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnsubscribeTemplate.d.ts +1 -1
- package/dist/components/index.d.ts +1336 -0
- package/package.json +1 -1
|
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as r, jsx as l } from "react/jsx-runtime";
|
|
3
3
|
import { useState as o, useEffect as d } from "react";
|
|
4
4
|
import f from "clsx";
|
|
5
|
-
const
|
|
5
|
+
const h = ({ categories: t, title: s }) => {
|
|
6
6
|
const [a, c] = o(t[0]?.id || "");
|
|
7
7
|
return d(() => {
|
|
8
8
|
if (t.length === 0) return;
|
|
@@ -21,7 +21,7 @@ const x = ({ categories: t, title: s }) => {
|
|
|
21
21
|
e.disconnect();
|
|
22
22
|
};
|
|
23
23
|
}, [t]), t.length === 0 ? null : /* @__PURE__ */ r("div", { className: "flex w-full max-w-71 min-w-65 flex-col gap-4 rounded bg-white", children: [
|
|
24
|
-
/* @__PURE__ */ l("
|
|
24
|
+
/* @__PURE__ */ l("p", { className: "text-big font-bold text-neutral-800", children: s }),
|
|
25
25
|
/* @__PURE__ */ l("span", { className: "h-px w-full bg-neutral-200", "aria-hidden": !0 }),
|
|
26
26
|
/* @__PURE__ */ l("ul", { className: "flex flex-col gap-4", children: t.map((e) => {
|
|
27
27
|
const n = a === e.id;
|
|
@@ -44,5 +44,5 @@ const x = ({ categories: t, title: s }) => {
|
|
|
44
44
|
] });
|
|
45
45
|
};
|
|
46
46
|
export {
|
|
47
|
-
|
|
47
|
+
h as DocumentCategories
|
|
48
48
|
};
|
|
@@ -10,7 +10,7 @@ const m = ({ link: t, description: o, className: i = "" }) => /* @__PURE__ */ r(
|
|
|
10
10
|
),
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ r("div", { className: "flex items-center justify-between", children: [
|
|
13
|
-
/* @__PURE__ */ e("
|
|
13
|
+
/* @__PURE__ */ e("p", { className: "flex-1 font-bold", children: t }),
|
|
14
14
|
/* @__PURE__ */ e(l, { "aria-hidden": !0, fill: "var(--color-neutral-800)" })
|
|
15
15
|
] }),
|
|
16
16
|
/* @__PURE__ */ e("p", { children: o })
|
|
@@ -5,7 +5,7 @@ const x = ({ id: r, title: t, description: s, icon: c, documents: m }) => /* @__
|
|
|
5
5
|
/* @__PURE__ */ l("div", { className: "flex items-start gap-4 rounded bg-neutral-50 p-6", children: [
|
|
6
6
|
c,
|
|
7
7
|
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-2 text-neutral-800", children: [
|
|
8
|
-
/* @__PURE__ */ e("
|
|
8
|
+
/* @__PURE__ */ e("p", { className: "font-lora text-super-large", children: t }),
|
|
9
9
|
/* @__PURE__ */ e(o, { className: "text-medium [&_p:last-child]:mb-0", content: s })
|
|
10
10
|
] })
|
|
11
11
|
] }),
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
1
2
|
import { JSX } from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
|
-
export declare const Emphasis: ({ children
|
|
4
|
-
|
|
5
|
-
export interface EmphasisProps extends React.ComponentProps<'em'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
|
|
7
|
-
}
|
|
4
|
+
export declare const Emphasis: ({ children }: ComponentProps<"em">) => JSX.Element;
|
|
8
5
|
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
3
|
-
const t = {
|
|
4
|
-
default: "font-normal tracking-tight text-neutral-600 not-italic",
|
|
5
|
-
ai: ""
|
|
6
|
-
}, s = t[n] ?? t.default;
|
|
7
|
-
return /* @__PURE__ */ r("em", { className: s, children: a });
|
|
8
|
-
};
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
const s = ({ children: r }) => /* @__PURE__ */ m("em", { children: r });
|
|
9
3
|
export {
|
|
10
|
-
|
|
4
|
+
s as Emphasis
|
|
11
5
|
};
|
|
@@ -13,7 +13,7 @@ const I = ({
|
|
|
13
13
|
slug: c
|
|
14
14
|
}) => {
|
|
15
15
|
const t = `toggle-${d().replace(/:/g, "")}`;
|
|
16
|
-
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("
|
|
16
|
+
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("span", { className: "font-bold", children: n }), children: [
|
|
17
17
|
/* @__PURE__ */ e(h, { content: l, className: "text-medium", variant: m ?? "default" }),
|
|
18
18
|
o && /* @__PURE__ */ r("div", { className: "mt-4 rounded-lg bg-neutral-50 p-6", children: [
|
|
19
19
|
/* @__PURE__ */ e("input", { type: "checkbox", id: t, className: "peer sr-only" }),
|
|
@@ -8,7 +8,7 @@ const g = ({ title: l, description: o, faqItems: r, className: a = "", variant:
|
|
|
8
8
|
const m = l.toLowerCase().replace(/\s+/g, "-");
|
|
9
9
|
return /* @__PURE__ */ s("div", { id: m, className: n("flex scroll-mt-24 flex-col gap-2 p-0.5 text-neutral-800", a), children: [
|
|
10
10
|
/* @__PURE__ */ s("div", { className: "mb-4 flex flex-col", children: [
|
|
11
|
-
/* @__PURE__ */ e("
|
|
11
|
+
/* @__PURE__ */ e("h3", { className: "text-super-large font-bold", children: l }),
|
|
12
12
|
o !== "" && /* @__PURE__ */ e(i, { content: o, className: "text-medium mt-6" })
|
|
13
13
|
] }),
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "flex flex-col gap-4", children: r.map((t) => /* @__PURE__ */ e(x, { ...t, variant: c }, t.question)) })
|
|
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -43,8 +43,7 @@ const v = ({
|
|
|
43
43
|
s,
|
|
44
44
|
{
|
|
45
45
|
className: t("text-medium [&_p:last-child]:mb-0", e ? "text-white" : "text-neutral-800"),
|
|
46
|
-
content: o
|
|
47
|
-
variant: "ai"
|
|
46
|
+
content: o
|
|
48
47
|
}
|
|
49
48
|
),
|
|
50
49
|
/* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: c.map((r) => /* @__PURE__ */ l(
|
|
@@ -6,6 +6,6 @@ export declare interface MarkdownProps {
|
|
|
6
6
|
content: string;
|
|
7
7
|
className?: string;
|
|
8
8
|
useCustom?: boolean;
|
|
9
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
9
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import a, { defaultUrlTransform as s } from "react-markdown";
|
|
3
3
|
import i from "rehype-raw";
|
|
4
4
|
import l from "remark-gfm";
|
|
5
|
-
import { Anchor as
|
|
6
|
-
import { Blockquote as
|
|
5
|
+
import { Anchor as f } from "./Anchor.js";
|
|
6
|
+
import { Blockquote as c } from "./Blockquote.js";
|
|
7
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";
|
|
@@ -16,27 +16,27 @@ import { UnorderedList as x } from "./UnorderedList.js";
|
|
|
16
16
|
import { Video as P } from "./Video.js";
|
|
17
17
|
import { Emphasis as R } from "./Emphasis.js";
|
|
18
18
|
import U from "clsx";
|
|
19
|
-
const y = (m) => m.startsWith("tel:") ? m :
|
|
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
22
|
h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
|
|
23
23
|
h3: C,
|
|
24
24
|
h4: b,
|
|
25
25
|
p: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
|
|
26
|
-
a: (o) => /* @__PURE__ */ r(
|
|
26
|
+
a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
|
|
27
27
|
ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
|
|
28
28
|
ol: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
|
|
29
29
|
code: d,
|
|
30
|
-
blockquote: (o) => /* @__PURE__ */ r(
|
|
30
|
+
blockquote: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
|
|
31
31
|
video: P,
|
|
32
32
|
table: q,
|
|
33
33
|
td: H,
|
|
34
34
|
th: g,
|
|
35
35
|
tr: w,
|
|
36
|
-
em:
|
|
36
|
+
em: R
|
|
37
37
|
};
|
|
38
38
|
return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
|
|
39
|
-
|
|
39
|
+
a,
|
|
40
40
|
{
|
|
41
41
|
rehypePlugins: [i],
|
|
42
42
|
remarkPlugins: [l],
|
|
@@ -47,5 +47,5 @@ const y = (m) => m.startsWith("tel:") ? m : a(m), oo = ({ content: m, className:
|
|
|
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' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ const g = ({ header: r, trustReasons: m, cta: c, trustPilot: i }) => /* @__PURE_
|
|
|
12
12
|
] }, a)) }),
|
|
13
13
|
/* @__PURE__ */ e(d, { className: "w-full md:w-fit", children: c })
|
|
14
14
|
] }) }),
|
|
15
|
-
/* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white px-6 py-10 lg:px-8 xl:px-0", children:
|
|
15
|
+
!!i && /* @__PURE__ */ e("section", { className: "mx-auto w-full bg-white px-6 py-10 lg:px-8 xl:px-0", children: /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-254 md:h-34", children: i }) })
|
|
16
16
|
] });
|
|
17
17
|
export {
|
|
18
18
|
g as TrustSection
|
|
@@ -1,31 +1,28 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
1
2
|
import { JSX } from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
|
|
4
5
|
|
|
5
6
|
export interface AnchorProps extends React.ComponentProps<'a'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
7
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
|
|
10
11
|
|
|
11
12
|
export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
|
|
12
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
13
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
|
|
16
17
|
|
|
17
|
-
export declare const Emphasis: ({ children
|
|
18
|
-
|
|
19
|
-
export interface EmphasisProps extends React.ComponentProps<'em'> {
|
|
20
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
|
|
21
|
-
}
|
|
18
|
+
export declare const Emphasis: ({ children }: ComponentProps<"em">) => JSX.Element;
|
|
22
19
|
|
|
23
20
|
export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.Element;
|
|
24
21
|
|
|
25
22
|
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
26
23
|
|
|
27
24
|
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
28
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
25
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
|
|
@@ -35,13 +32,13 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
|
|
|
35
32
|
export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
|
|
36
33
|
|
|
37
34
|
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
38
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
35
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
39
36
|
}
|
|
40
37
|
|
|
41
38
|
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
42
39
|
|
|
43
40
|
export interface ParagraphProps extends React.ComponentProps<'p'> {
|
|
44
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
41
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
|
|
@@ -55,7 +52,7 @@ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX
|
|
|
55
52
|
export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
|
|
56
53
|
|
|
57
54
|
export interface UnorderedListProps extends React.ComponentProps<'ul'> {
|
|
58
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
55
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
59
56
|
}
|
|
60
57
|
|
|
61
58
|
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' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
6
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ export interface MarkdownProps {
|
|
|
10
10
|
content: string;
|
|
11
11
|
className?: string;
|
|
12
12
|
useCustom?: boolean;
|
|
13
|
-
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies'
|
|
13
|
+
variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
|