@npm_leadtech/legal-contracts-ui 0.66.1 → 0.67.0
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/AllDocumentsTemplate.d.ts +2 -1
- package/dist/components/CategoryProductTemplate.d.ts +2 -1
- package/dist/components/DocumentItem.d.ts +2 -2
- package/dist/components/DocumentItem.js +10 -13
- package/dist/components/DocumentSection.d.ts +2 -1
- package/dist/components/DocumentSection.js +4 -4
- package/dist/components/Header2.d.ts +5 -1
- package/dist/components/Header2.js +6 -2
- package/dist/components/LegalTemplate.d.ts +13 -0
- package/dist/components/LegalTemplate.js +10 -0
- package/dist/components/Markdown.js +21 -21
- package/dist/components/NotFoundTemplate.d.ts +2 -1
- package/dist/components/Paragraph.d.ts +5 -1
- package/dist/components/Paragraph.js +6 -2
- package/dist/components/UiComponents.d.ts +10 -2
- package/dist/components/index.d.ts +1018 -0
- package/dist/globals.css +1 -1
- package/package.json +5 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
2
|
|
|
4
3
|
export declare const DocumentItem: FC<DocumentItemProps>;
|
|
5
4
|
|
|
6
5
|
export declare interface DocumentItemProps {
|
|
7
6
|
id: string;
|
|
8
|
-
|
|
7
|
+
title: string;
|
|
9
8
|
description: string;
|
|
9
|
+
featured?: boolean;
|
|
10
10
|
className?: string;
|
|
11
11
|
}
|
|
12
12
|
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const c = ({ link: t, description: o, className: i = "" }) => /* @__PURE__ */ r(
|
|
2
|
+
import { ChevronRightIcon as m } from "./ChevronRightIcon.js";
|
|
3
|
+
const n = ({ id: t, title: a, description: o, featured: s, className: d = "" }) => /* @__PURE__ */ r(
|
|
5
4
|
"article",
|
|
6
5
|
{
|
|
7
|
-
className:
|
|
8
|
-
'hover:border-primary-500 text-medium hover:ring-primary-500 relative flex max-w-93.75 flex-col gap-2 rounded border border-neutral-200 bg-white pt-4 pr-4 pb-6 pl-6 text-neutral-800 hover:ring-1 hover:ring-inset [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]',
|
|
9
|
-
i
|
|
10
|
-
),
|
|
6
|
+
className: `rounded bg-white p-6 shadow-sm transition-shadow hover:shadow-md ${s ? "border-primary-500 border-2" : "border border-neutral-200"} ${d}`,
|
|
11
7
|
children: [
|
|
12
|
-
/* @__PURE__ */ r("div", { className: "flex
|
|
13
|
-
/* @__PURE__ */ e("p", { className: "font-bold", children:
|
|
14
|
-
/* @__PURE__ */ e(
|
|
8
|
+
/* @__PURE__ */ r("div", { className: "flex items-start gap-4", children: [
|
|
9
|
+
/* @__PURE__ */ e("p", { className: "text-medium flex-1 font-bold text-neutral-800", children: a }),
|
|
10
|
+
/* @__PURE__ */ e(m, { className: "h-5 w-5 text-neutral-800", "aria-hidden": !0 })
|
|
15
11
|
] }),
|
|
16
|
-
/* @__PURE__ */ e("p", { children: o })
|
|
12
|
+
/* @__PURE__ */ e("p", { className: "text-medium mt-2 text-neutral-800", children: o })
|
|
17
13
|
]
|
|
18
|
-
}
|
|
14
|
+
},
|
|
15
|
+
t
|
|
19
16
|
);
|
|
20
17
|
export {
|
|
21
|
-
|
|
18
|
+
n as DocumentItem
|
|
22
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { DocumentItem as
|
|
3
|
-
const p = ({ id:
|
|
2
|
+
import { DocumentItem as n } from "./DocumentItem.js";
|
|
3
|
+
const p = ({ id: l, title: s, description: t, icon: c, documents: m }) => /* @__PURE__ */ a("article", { id: l, className: "flex-1 scroll-mt-32 space-y-6", children: [
|
|
4
4
|
/* @__PURE__ */ a("div", { className: "bg-neutral-25 flex flex-col gap-4 rounded p-6", children: [
|
|
5
5
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-4", children: [
|
|
6
6
|
/* @__PURE__ */ e("span", { className: "bg-primary-50 rounded-md p-3", "aria-hidden": !0, children: c }),
|
|
@@ -8,8 +8,8 @@ const p = ({ id: r, title: s, description: t, icon: c, documents: m }) => /* @__
|
|
|
8
8
|
] }),
|
|
9
9
|
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: t })
|
|
10
10
|
] }),
|
|
11
|
-
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-6 pb-6", children: m.map((
|
|
12
|
-
] });
|
|
11
|
+
/* @__PURE__ */ e("div", { className: "flex flex-wrap gap-6 pb-6", children: m.map((r) => /* @__PURE__ */ e(n, { ...r, className: "w-48/100" }, r.id)) })
|
|
12
|
+
] }, l);
|
|
13
13
|
export {
|
|
14
14
|
p as DocumentSection
|
|
15
15
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const Header2: ({ children }:
|
|
3
|
+
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
|
+
}
|
|
4
8
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import r from "clsx";
|
|
3
|
+
const s = ({ children: t, variant: a = "default" }) => /* @__PURE__ */ e("h2", { className: r("mt-5 text-3xl font-bold", {
|
|
4
|
+
default: "mb-3 text-gray-900",
|
|
5
|
+
legal: "mb-6 text-neutral-800"
|
|
6
|
+
}[a]), children: t });
|
|
3
7
|
export {
|
|
4
|
-
|
|
8
|
+
s as Header2
|
|
5
9
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface Jumbotron3Props {
|
|
4
|
+
title: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export declare const LegalTemplate: FC<LegalTemplateProps>;
|
|
8
|
+
|
|
9
|
+
export declare interface LegalTemplateProps {
|
|
10
|
+
jumbotron: Jumbotron3Props;
|
|
11
|
+
legalSection: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsxs as o, jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { Jumbotron3 as t } from "./Jumbotron3.js";
|
|
3
|
+
import { Markdown as a } from "./Markdown.js";
|
|
4
|
+
const i = ({ jumbotron: e, legalSection: r }) => /* @__PURE__ */ o("main", { className: "bg-neutral-white flex w-full flex-col", children: [
|
|
5
|
+
/* @__PURE__ */ l(t, { ...e }),
|
|
6
|
+
/* @__PURE__ */ l("div", { className: "xl:px-ds-10xl px-6 py-8 md:px-8", children: /* @__PURE__ */ l(a, { content: r, variant: "legal" }) })
|
|
7
|
+
] });
|
|
8
|
+
export {
|
|
9
|
+
i as LegalTemplate
|
|
10
|
+
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import n from "react-markdown";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import a from "rehype-raw";
|
|
4
|
+
import i from "remark-gfm";
|
|
5
5
|
import { Anchor as d } from "./Anchor.js";
|
|
6
6
|
import { Blockquote as f } from "./Blockquote.js";
|
|
7
7
|
import { Code as c } from "./Code.js";
|
|
8
|
-
import { Header1 as
|
|
8
|
+
import { Header1 as h } from "./Header1.js";
|
|
9
9
|
import { Header2 as s } from "./Header2.js";
|
|
10
|
-
import { Header3 as
|
|
10
|
+
import { Header3 as l } from "./Header3.js";
|
|
11
11
|
import { Header4 as u } from "./Header4.js";
|
|
12
12
|
import { OrderedList as C } from "./OrderedList.js";
|
|
13
13
|
import { Paragraph as b } from "./Paragraph.js";
|
|
14
|
-
import { TableRow as k, TableHeader as
|
|
15
|
-
import { UnorderedList as
|
|
14
|
+
import { TableRow as k, TableHeader as g, TableData as H, Table as w } from "./Table.js";
|
|
15
|
+
import { UnorderedList as T } from "./UnorderedList.js";
|
|
16
16
|
import { Video as P } from "./Video.js";
|
|
17
17
|
import { Emphasis as R } from "./Emphasis.js";
|
|
18
|
-
const
|
|
18
|
+
const S = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r(
|
|
19
19
|
n,
|
|
20
20
|
{
|
|
21
|
-
rehypePlugins: [
|
|
22
|
-
remarkPlugins: [
|
|
21
|
+
rehypePlugins: [a],
|
|
22
|
+
remarkPlugins: [i],
|
|
23
23
|
components: p ? {
|
|
24
|
-
h1:
|
|
25
|
-
h2: s,
|
|
26
|
-
h3:
|
|
24
|
+
h1: h,
|
|
25
|
+
h2: (o) => /* @__PURE__ */ r(s, { variant: e, ...o }),
|
|
26
|
+
h3: l,
|
|
27
27
|
h4: u,
|
|
28
|
-
p: b,
|
|
29
|
-
a: (
|
|
30
|
-
ul: (
|
|
28
|
+
p: (o) => /* @__PURE__ */ r(b, { variant: e, ...o }),
|
|
29
|
+
a: (o) => /* @__PURE__ */ r(d, { variant: e, ...o }),
|
|
30
|
+
ul: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
|
|
31
31
|
ol: C,
|
|
32
32
|
code: c,
|
|
33
33
|
blockquote: f,
|
|
34
34
|
video: P,
|
|
35
|
-
table:
|
|
36
|
-
td:
|
|
37
|
-
th:
|
|
35
|
+
table: w,
|
|
36
|
+
td: H,
|
|
37
|
+
th: g,
|
|
38
38
|
tr: k,
|
|
39
39
|
em: R
|
|
40
40
|
} : void 0,
|
|
41
|
-
children:
|
|
41
|
+
children: m
|
|
42
42
|
}
|
|
43
43
|
) });
|
|
44
44
|
export {
|
|
45
|
-
|
|
45
|
+
S as Markdown
|
|
46
46
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const Paragraph: ({ children }:
|
|
3
|
+
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export interface ParagraphProps extends React.ComponentProps<'p'> {
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
|
+
}
|
|
4
8
|
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
const m = ({ variant: a = "default", children: t }) => /* @__PURE__ */ r("p", { className: e("mb-4", {
|
|
4
|
+
default: "",
|
|
5
|
+
legal: "text-neutral-800"
|
|
6
|
+
}[a]), children: t });
|
|
3
7
|
export {
|
|
4
|
-
|
|
8
|
+
m as Paragraph
|
|
5
9
|
};
|
|
@@ -14,7 +14,11 @@ export declare const Emphasis: ({ children }: React.ComponentProps<"em">) => JSX
|
|
|
14
14
|
|
|
15
15
|
export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.Element;
|
|
16
16
|
|
|
17
|
-
export declare const Header2: ({ children }:
|
|
17
|
+
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
18
|
+
|
|
19
|
+
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
20
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
21
|
+
}
|
|
18
22
|
|
|
19
23
|
export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
|
|
20
24
|
|
|
@@ -22,7 +26,11 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
|
|
|
22
26
|
|
|
23
27
|
export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
|
|
24
28
|
|
|
25
|
-
export declare const Paragraph: ({ children }:
|
|
29
|
+
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
export interface ParagraphProps extends React.ComponentProps<'p'> {
|
|
32
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
33
|
+
}
|
|
26
34
|
|
|
27
35
|
export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
|
|
28
36
|
|