@npm_leadtech/legal-contracts-ui 0.64.3 → 0.64.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.
- package/dist/components/Markdown.d.ts +1 -0
- package/dist/components/Markdown.js +37 -37
- package/dist/components/Preform.d.ts +6 -0
- package/dist/components/Preform.js +35 -33
- package/dist/components/ProductTemplate.d.ts +6 -0
- package/dist/components/QuestionIcon.d.ts +4 -0
- package/dist/components/QuestionIcon.js +17 -0
- package/dist/components/Tooltips.d.ts +9 -0
- package/dist/components/Tooltips.js +13 -0
- package/dist/components/UiComponents.d.ts +5 -1
- package/dist/components/UnorderedList.d.ts +5 -1
- package/dist/components/UnorderedList.js +6 -2
- package/dist/components/index.d.ts +997 -0
- package/dist/globals.css +1 -1
- package/package.json +9 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Anchor as
|
|
6
|
-
import { Blockquote as
|
|
7
|
-
import { Code as
|
|
8
|
-
import { Header1 as
|
|
9
|
-
import { Header2 as
|
|
10
|
-
import { Header3 as
|
|
11
|
-
import { Header4 as
|
|
12
|
-
import { OrderedList as
|
|
13
|
-
import { Paragraph as
|
|
14
|
-
import { TableRow as
|
|
15
|
-
import { UnorderedList as
|
|
16
|
-
import { Video as
|
|
17
|
-
const
|
|
18
|
-
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import p from "react-markdown";
|
|
3
|
+
import a from "rehype-raw";
|
|
4
|
+
import n from "remark-gfm";
|
|
5
|
+
import { Anchor as d } from "./Anchor.js";
|
|
6
|
+
import { Blockquote as f } from "./Blockquote.js";
|
|
7
|
+
import { Code as l } from "./Code.js";
|
|
8
|
+
import { Header1 as c } from "./Header1.js";
|
|
9
|
+
import { Header2 as s } from "./Header2.js";
|
|
10
|
+
import { Header3 as u } from "./Header3.js";
|
|
11
|
+
import { Header4 as h } from "./Header4.js";
|
|
12
|
+
import { OrderedList as b } from "./OrderedList.js";
|
|
13
|
+
import { Paragraph as k } from "./Paragraph.js";
|
|
14
|
+
import { TableRow as C, TableHeader as H, TableData as w, Table as T } from "./Table.js";
|
|
15
|
+
import { UnorderedList as g } from "./UnorderedList.js";
|
|
16
|
+
import { Video as v } from "./Video.js";
|
|
17
|
+
const I = ({ content: r, className: e = "", useCustom: m = !0, variant: t = "default" }) => /* @__PURE__ */ o("div", { className: e, children: /* @__PURE__ */ o(
|
|
18
|
+
p,
|
|
19
19
|
{
|
|
20
|
-
rehypePlugins: [
|
|
21
|
-
remarkPlugins: [
|
|
20
|
+
rehypePlugins: [a],
|
|
21
|
+
remarkPlugins: [n],
|
|
22
22
|
components: m ? {
|
|
23
|
-
h1:
|
|
24
|
-
h2:
|
|
25
|
-
h3:
|
|
26
|
-
h4:
|
|
27
|
-
p:
|
|
28
|
-
a,
|
|
29
|
-
ul:
|
|
30
|
-
ol:
|
|
31
|
-
code:
|
|
32
|
-
blockquote:
|
|
33
|
-
video:
|
|
34
|
-
table:
|
|
35
|
-
td:
|
|
36
|
-
th:
|
|
37
|
-
tr:
|
|
23
|
+
h1: c,
|
|
24
|
+
h2: s,
|
|
25
|
+
h3: u,
|
|
26
|
+
h4: h,
|
|
27
|
+
p: k,
|
|
28
|
+
a: d,
|
|
29
|
+
ul: (i) => /* @__PURE__ */ o(g, { variant: t, ...i }),
|
|
30
|
+
ol: b,
|
|
31
|
+
code: l,
|
|
32
|
+
blockquote: f,
|
|
33
|
+
video: v,
|
|
34
|
+
table: T,
|
|
35
|
+
td: w,
|
|
36
|
+
th: H,
|
|
37
|
+
tr: C
|
|
38
38
|
} : void 0,
|
|
39
|
-
children:
|
|
39
|
+
children: r
|
|
40
40
|
}
|
|
41
41
|
) });
|
|
42
42
|
export {
|
|
43
|
-
|
|
43
|
+
I as Markdown
|
|
44
44
|
};
|
|
@@ -27,6 +27,7 @@ export declare interface PreformProps {
|
|
|
27
27
|
cta: ReactNode;
|
|
28
28
|
radioFieldData?: RadioFieldData;
|
|
29
29
|
inputFieldData?: InputFieldData;
|
|
30
|
+
tooltips: TooltipsProps[];
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export declare type RadioFieldData = {
|
|
@@ -38,6 +39,11 @@ export declare type RadioFieldData = {
|
|
|
38
39
|
onClick: (str: string) => void;
|
|
39
40
|
};
|
|
40
41
|
|
|
42
|
+
export interface TooltipsProps {
|
|
43
|
+
title: string;
|
|
44
|
+
content: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
41
47
|
export interface TrustedBadgeProps {
|
|
42
48
|
children: ReactNode;
|
|
43
49
|
}
|
|
@@ -1,57 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as c, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
4
|
+
import { Tooltips as x } from "./Tooltips.js";
|
|
5
|
+
import { PreformMobile as a } from "./PreformMobile.js";
|
|
6
|
+
import { PreformOption as f } from "./PreformOption.js";
|
|
7
|
+
import { TrustedBadge as i } from "./TrustedBadge.js";
|
|
8
|
+
import { Input as h } from "./Input.js";
|
|
9
|
+
import { LinkWrapper as t } from "./LinkWrapper.js";
|
|
10
|
+
const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: n }) => /* @__PURE__ */ c(p, { children: [
|
|
11
|
+
/* @__PURE__ */ e("section", { className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
|
|
12
|
+
/* @__PURE__ */ e(i, { ...s }),
|
|
13
|
+
m?.isVisible && /* @__PURE__ */ c(p, { children: [
|
|
14
|
+
/* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
|
|
15
|
+
/* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
|
|
16
|
+
m.options.map((r) => /* @__PURE__ */ e(
|
|
16
17
|
"div",
|
|
17
18
|
{
|
|
18
19
|
className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
|
|
19
|
-
children: /* @__PURE__ */
|
|
20
|
-
|
|
20
|
+
children: /* @__PURE__ */ e(
|
|
21
|
+
f,
|
|
21
22
|
{
|
|
22
|
-
...
|
|
23
|
-
selected:
|
|
23
|
+
...r,
|
|
24
|
+
selected: r.value === m.radioSelected,
|
|
24
25
|
onClick: m.onClick
|
|
25
26
|
}
|
|
26
27
|
)
|
|
27
28
|
},
|
|
28
|
-
|
|
29
|
+
r.value
|
|
29
30
|
)),
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
l?.isVisible && /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(
|
|
32
|
+
h,
|
|
32
33
|
{
|
|
33
|
-
id:
|
|
34
|
-
label:
|
|
35
|
-
name:
|
|
36
|
-
placeholder:
|
|
37
|
-
value:
|
|
38
|
-
onInputChange:
|
|
34
|
+
id: l.id,
|
|
35
|
+
label: l.label,
|
|
36
|
+
name: l.name,
|
|
37
|
+
placeholder: l.placeholder,
|
|
38
|
+
value: l.value,
|
|
39
|
+
onInputChange: l.onChange
|
|
39
40
|
}
|
|
40
|
-
) },
|
|
41
|
+
) }, l.name)
|
|
41
42
|
] })
|
|
42
43
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
+
/* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
|
|
45
|
+
n.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: n.map((r) => /* @__PURE__ */ e(x, { ...r }, r.title)) })
|
|
44
46
|
] }) }),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
|
|
47
|
+
/* @__PURE__ */ e(
|
|
48
|
+
a,
|
|
47
49
|
{
|
|
48
50
|
cta: o,
|
|
49
|
-
trustedBadge:
|
|
50
|
-
inputFieldData:
|
|
51
|
+
trustedBadge: s,
|
|
52
|
+
inputFieldData: l,
|
|
51
53
|
radioFieldData: m
|
|
52
54
|
}
|
|
53
55
|
)
|
|
54
56
|
] });
|
|
55
57
|
export {
|
|
56
|
-
|
|
58
|
+
k as Preform
|
|
57
59
|
};
|
|
@@ -112,6 +112,7 @@ export interface PreformProps {
|
|
|
112
112
|
cta: ReactNode;
|
|
113
113
|
radioFieldData?: RadioFieldData;
|
|
114
114
|
inputFieldData?: InputFieldData;
|
|
115
|
+
tooltips: TooltipsProps[];
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
export interface PreviewDownloadProps {
|
|
@@ -174,6 +175,11 @@ export interface TableOfContentsProps {
|
|
|
174
175
|
}[];
|
|
175
176
|
}
|
|
176
177
|
|
|
178
|
+
export interface TooltipsProps {
|
|
179
|
+
title: string;
|
|
180
|
+
content: string;
|
|
181
|
+
}
|
|
182
|
+
|
|
177
183
|
export interface TrustedBadgeProps {
|
|
178
184
|
children: ReactNode;
|
|
179
185
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const n = ({
|
|
4
|
+
fill: o = "var(--color-secondary-500)",
|
|
5
|
+
...e
|
|
6
|
+
}) => /* @__PURE__ */ C("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e, children: /* @__PURE__ */ C(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
fillRule: "evenodd",
|
|
10
|
+
clipRule: "evenodd",
|
|
11
|
+
d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8.1801 8.83002C8.0001 9.41002 8.4401 10 9.0501 10H9.2501C9.6601 10 9.9901 9.71002 10.1301 9.33002C10.4501 8.44002 11.4001 7.83002 12.4301 8.05002C13.3801 8.25002 14.0801 9.18002 14.0001 10.15C13.9411 10.9402 13.3884 11.3652 12.7746 11.8373C12.3474 12.1658 11.8907 12.5171 11.5501 13.03C11.5501 13.035 11.5476 13.0375 11.5451 13.04C11.5426 13.0425 11.5401 13.045 11.5401 13.05C11.5351 13.06 11.5301 13.0675 11.5251 13.075L11.5251 13.075C11.5201 13.0825 11.5151 13.09 11.5101 13.1C11.4201 13.25 11.3301 13.42 11.2601 13.6C11.2551 13.615 11.2476 13.6275 11.2401 13.64L11.2401 13.64L11.2401 13.64C11.2326 13.6525 11.2251 13.665 11.2201 13.68C11.2145 13.6913 11.212 13.7025 11.2092 13.7155C11.2069 13.7256 11.2045 13.7369 11.2001 13.75C11.0801 14.09 11.0001 14.5 11.0001 15H13.0001C13.0001 14.58 13.1101 14.23 13.2801 13.93C13.2901 13.915 13.2976 13.9 13.3051 13.885L13.3051 13.885L13.3051 13.885C13.3126 13.87 13.3201 13.855 13.3301 13.84C13.4101 13.7 13.5101 13.57 13.6101 13.45C13.6151 13.445 13.6201 13.4375 13.6251 13.43C13.6301 13.4225 13.6351 13.415 13.6401 13.41C13.7401 13.29 13.8501 13.18 13.9701 13.07C14.1191 12.9288 14.2763 12.7916 14.4345 12.6536C15.2958 11.9021 16.1882 11.1236 15.9601 9.51002C15.7201 7.77002 14.3501 6.30002 12.6101 6.04002C10.5501 5.74002 8.7301 7.01002 8.1801 8.83002ZM11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17Z",
|
|
12
|
+
fill: o
|
|
13
|
+
}
|
|
14
|
+
) });
|
|
15
|
+
export {
|
|
16
|
+
n as QuestionIcon
|
|
17
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { QuestionIcon as t } from "./QuestionIcon.js";
|
|
3
|
+
import { Markdown as s } from "./Markdown.js";
|
|
4
|
+
const n = ({ title: r, content: l }) => /* @__PURE__ */ o("div", { className: "border-secondary-200 hidden flex-col gap-4 rounded border p-6 md:flex", children: [
|
|
5
|
+
/* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
|
|
6
|
+
/* @__PURE__ */ e(t, { fill: "var(--color-secondary-600)" }),
|
|
7
|
+
/* @__PURE__ */ e("h5", { className: "text-small font-semibold text-neutral-900", children: r })
|
|
8
|
+
] }),
|
|
9
|
+
/* @__PURE__ */ e(s, { className: "text-small", variant: "tooltip", content: l })
|
|
10
|
+
] });
|
|
11
|
+
export {
|
|
12
|
+
n as Tooltips
|
|
13
|
+
};
|
|
@@ -26,7 +26,11 @@ export declare const TableHeader: ({ children }: React.ComponentProps<"th">) =>
|
|
|
26
26
|
|
|
27
27
|
export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX.Element;
|
|
28
28
|
|
|
29
|
-
export declare const UnorderedList: ({ children }:
|
|
29
|
+
export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
export interface UnorderedListProps extends React.ComponentProps<'ul'> {
|
|
32
|
+
variant?: 'default' | 'tooltip';
|
|
33
|
+
}
|
|
30
34
|
|
|
31
35
|
export declare const Video: ({ children }: React.ComponentProps<"video">) => JSX.Element;
|
|
32
36
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const UnorderedList: ({ children }:
|
|
3
|
+
export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export interface UnorderedListProps extends React.ComponentProps<'ul'> {
|
|
6
|
+
variant?: 'default' | 'tooltip';
|
|
7
|
+
}
|
|
4
8
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
const o = ({ variant: t = "default", children: r }) => /* @__PURE__ */ e("ul", { className: a("flex list-inside list-disc flex-col px-4 text-neutral-900", {
|
|
4
|
+
default: "bg-primary-50 gap-4 mb-4 py-2",
|
|
5
|
+
tooltip: "gap-2 marker:text-secondary-600"
|
|
6
|
+
}[t]), children: r });
|
|
3
7
|
export {
|
|
4
|
-
|
|
8
|
+
o as UnorderedList
|
|
5
9
|
};
|