@npm_leadtech/legal-contracts-ui 0.41.2 → 0.41.4
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 +1 -0
- package/dist/components/CategoryProductTemplate.d.ts +1 -0
- package/dist/components/ContactUsTemplate.d.ts +1 -0
- package/dist/components/ContentItem.js +8 -8
- package/dist/components/Markdown.d.ts +1 -0
- package/dist/components/Markdown.js +31 -34
- package/dist/components/MarkdownSection.d.ts +1 -0
- package/dist/components/PreviewSection.js +4 -4
- package/dist/components/Table.d.ts +6 -0
- package/dist/components/Table.js +5 -2
- package/package.json +1 -1
- package/dist/components/TableData.d.ts +0 -4
- package/dist/components/TableData.js +0 -5
- package/dist/components/TableH.d.ts +0 -4
- package/dist/components/TableH.js +0 -5
- package/dist/components/TableRow.d.ts +0 -4
- package/dist/components/TableRow.js +0 -5
|
@@ -10,17 +10,17 @@ const k = ({
|
|
|
10
10
|
id: t,
|
|
11
11
|
title: m,
|
|
12
12
|
content: l,
|
|
13
|
-
linkedProducts:
|
|
14
|
-
sampleImage:
|
|
15
|
-
cta:
|
|
13
|
+
linkedProducts: i,
|
|
14
|
+
sampleImage: o,
|
|
15
|
+
cta: a,
|
|
16
16
|
docsModules: n,
|
|
17
17
|
subtypeDocs: f
|
|
18
|
-
}) => /* @__PURE__ */ p("div", { id: t, className: "flex flex-col gap-6 text-neutral-
|
|
18
|
+
}) => /* @__PURE__ */ p("div", { id: t, className: "flex flex-col gap-6 text-neutral-900", children: [
|
|
19
19
|
m && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: m }),
|
|
20
|
-
l && /* @__PURE__ */ e(h, { content: l, className: "text-medium
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
l && /* @__PURE__ */ e(h, { content: l, className: "text-medium [&_p:last-child]:mb-0" }),
|
|
21
|
+
i.length > 0 && /* @__PURE__ */ e(x, { linkedProducts: i }),
|
|
22
|
+
o && /* @__PURE__ */ e(u, { ...o }),
|
|
23
|
+
a && /* @__PURE__ */ e(g, { className: "w-75 self-center", children: a }),
|
|
24
24
|
n && /* @__PURE__ */ e(s, { ...n }),
|
|
25
25
|
f.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: f.map((r) => r.format === "Alternative" ? /* @__PURE__ */ e(c, { ...r }, r.id) : /* @__PURE__ */ e(d, { ...r }, r.id)) })
|
|
26
26
|
] }, t);
|
|
@@ -1,51 +1,48 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import i from "react-markdown";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { TableRow as a } from "./
|
|
7
|
-
import { TableH as f } from "./TableH.js";
|
|
8
|
-
import { TableData as d } from "./TableData.js";
|
|
9
|
-
import { Table as l } from "./Table.js";
|
|
4
|
+
import m from "remark-gfm";
|
|
5
|
+
import t from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
|
|
6
|
+
import { TableRow as a, TableHeader as l, TableData as f, Table as h } from "./Table.js";
|
|
10
7
|
import { Video as c } from "./Video.js";
|
|
11
|
-
import { Blockquote as
|
|
12
|
-
import { Code as
|
|
13
|
-
import { OrderedList as
|
|
8
|
+
import { Blockquote as s } from "./Blockquote.js";
|
|
9
|
+
import { Code as u } from "./Code.js";
|
|
10
|
+
import { OrderedList as k } from "./OrderedList.js";
|
|
14
11
|
import { UnorderedList as b } from "./UnorderedList.js";
|
|
15
|
-
import { Paragraph as
|
|
12
|
+
import { Paragraph as g } from "./Paragraph.js";
|
|
16
13
|
import { Header4 as H } from "./Header4.js";
|
|
17
|
-
import { Header3 as
|
|
18
|
-
import { Header2 as
|
|
19
|
-
import { Header1 as
|
|
20
|
-
import { Anchor as
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
return /* @__PURE__ */
|
|
14
|
+
import { Header3 as P } from "./Header3.js";
|
|
15
|
+
import { Header2 as w } from "./Header2.js";
|
|
16
|
+
import { Header1 as T } from "./Header1.js";
|
|
17
|
+
import { Anchor as v } from "./Anchor.js";
|
|
18
|
+
const y = (e, r) => /* @__PURE__ */ o(v, { ...e, className: r ? "inline" : "" }), F = ({ content: e, className: r = "", useCustom: n = !0 }) => {
|
|
19
|
+
const p = r.includes("inline");
|
|
20
|
+
return n ? /* @__PURE__ */ o("div", { className: r, children: /* @__PURE__ */ o(
|
|
24
21
|
i,
|
|
25
22
|
{
|
|
26
|
-
rehypePlugins: [
|
|
27
|
-
remarkPlugins: [
|
|
23
|
+
rehypePlugins: [t],
|
|
24
|
+
remarkPlugins: [m],
|
|
28
25
|
components: {
|
|
29
|
-
h1:
|
|
30
|
-
h2:
|
|
31
|
-
h3:
|
|
26
|
+
h1: T,
|
|
27
|
+
h2: w,
|
|
28
|
+
h3: P,
|
|
32
29
|
h4: H,
|
|
33
|
-
p:
|
|
34
|
-
a: (
|
|
30
|
+
p: g,
|
|
31
|
+
a: (d) => y(d, p),
|
|
35
32
|
ul: b,
|
|
36
|
-
ol:
|
|
37
|
-
code:
|
|
38
|
-
blockquote:
|
|
33
|
+
ol: k,
|
|
34
|
+
code: u,
|
|
35
|
+
blockquote: s,
|
|
39
36
|
video: c,
|
|
40
|
-
table:
|
|
41
|
-
td:
|
|
42
|
-
th:
|
|
37
|
+
table: h,
|
|
38
|
+
td: f,
|
|
39
|
+
th: l,
|
|
43
40
|
tr: a
|
|
44
41
|
},
|
|
45
|
-
children:
|
|
42
|
+
children: e
|
|
46
43
|
}
|
|
47
|
-
) });
|
|
44
|
+
) }) : /* @__PURE__ */ o("div", { className: r, children: /* @__PURE__ */ o(i, { rehypePlugins: [t], remarkPlugins: [m], children: e }) });
|
|
48
45
|
};
|
|
49
46
|
export {
|
|
50
|
-
|
|
47
|
+
F as Markdown
|
|
51
48
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { SectionHeading as a } from "./SectionHeading.js";
|
|
4
|
-
import { Markdown as
|
|
5
|
-
import { Button as
|
|
4
|
+
import { Markdown as s } from "./Markdown.js";
|
|
5
|
+
import { Button as n } from "./Button.js";
|
|
6
6
|
const d = ({ title: t, documentPreview: o, cta: r }) => /* @__PURE__ */ e("section", { className: "bg-secondary-50 px-4 py-10 text-neutral-800 md:px-8 xl:px-30", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-300 flex-col items-center gap-8", children: [
|
|
7
7
|
/* @__PURE__ */ e(a, { title: t, titleClass: "font-bold font-inter text-large" }),
|
|
8
|
-
/* @__PURE__ */ e("div", { className: "flex max-h-89.75 overflow-auto border border-neutral-200 bg-white py-2 ps-1 pe-8", children: /* @__PURE__ */ e(
|
|
9
|
-
/* @__PURE__ */ e(
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "flex max-h-89.75 overflow-auto border border-neutral-200 bg-white py-2 ps-1 pe-8", children: /* @__PURE__ */ e(s, { useCustom: !1, className: "select-none", content: o }) }),
|
|
9
|
+
/* @__PURE__ */ e(n, { className: "w-full md:w-auto", ...r })
|
|
10
10
|
] }) });
|
|
11
11
|
export {
|
|
12
12
|
d as PreviewSection
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export declare const TableData: ({ children }: React.ComponentProps<"td">) => JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare const TableHeader: ({ children }: React.ComponentProps<"th">) => JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX.Element;
|
|
4
10
|
|
package/dist/components/Table.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
2
|
+
const t = ({ children: r }) => /* @__PURE__ */ e("div", { className: "my-4 overflow-x-auto", children: /* @__PURE__ */ e("table", { className: "my-10 min-w-full border-collapse rounded border-gray-500 text-center text-gray-900", children: r }) }), o = ({ children: r }) => /* @__PURE__ */ e("th", { className: "bg-primary-100 static h-10 border-r border-r-neutral-200 p-2 font-bold first:rounded-tl last:rounded-tr last:border-0", children: r }), l = ({ children: r }) => /* @__PURE__ */ e("tr", { className: "even:bg-neutral-25 h-10 odd:bg-white", children: r }), d = ({ children: r }) => /* @__PURE__ */ e("td", { className: "border-r border-r-neutral-200 p-2 last:border-0", children: r });
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
t as Table,
|
|
5
|
+
d as TableData,
|
|
6
|
+
o as TableHeader,
|
|
7
|
+
l as TableRow
|
|
5
8
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
const e = ({ children: r }) => /* @__PURE__ */ t("th", { className: "bg-primary-100 static h-10 border-r border-r-neutral-200 p-2 font-bold first:rounded-tl last:rounded-tr last:border-0", children: r });
|
|
3
|
-
export {
|
|
4
|
-
e as TableH
|
|
5
|
-
};
|