@npm_leadtech/legal-contracts-ui 0.70.3 → 0.71.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/Anchor.js +8 -8
- package/dist/components/Emphasis.js +3 -3
- package/dist/components/Markdown.js +7 -7
- package/dist/components/OrderedList.d.ts +1 -5
- package/dist/components/OrderedList.js +3 -15
- package/dist/components/Paragraph.js +5 -5
- package/dist/components/UiComponents.d.ts +1 -5
- package/dist/components/UnorderedList.js +8 -15
- package/dist/components/index.d.ts +1018 -0
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
const i = ({ children: e, variant: t = "default", className: a = "", ...n }) => {
|
|
4
|
+
const r = {
|
|
5
5
|
default: "text-neutral-900 underline ",
|
|
6
|
-
legal: "text-primary-700
|
|
7
|
-
},
|
|
8
|
-
return
|
|
6
|
+
legal: "text-primary-700"
|
|
7
|
+
}, l = r[t] ?? r.default;
|
|
8
|
+
return /* @__PURE__ */ o("a", { className: s(a, l), target: "_blank", rel: "noopener noreferrer", ...n, children: e });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
i as Anchor
|
|
12
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const m = ({ children: t }) => /* @__PURE__ */ o("em", { className: "font-normal text-neutral-600 not-italic", children: t });
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
m as Emphasis
|
|
5
5
|
};
|
|
@@ -2,8 +2,8 @@ import { jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import a from "react-markdown";
|
|
3
3
|
import i from "rehype-raw";
|
|
4
4
|
import d from "remark-gfm";
|
|
5
|
-
import { Anchor as
|
|
6
|
-
import { Blockquote as
|
|
5
|
+
import { Anchor as f } from "./Anchor.js";
|
|
6
|
+
import { Blockquote as l } from "./Blockquote.js";
|
|
7
7
|
import { Code as c } from "./Code.js";
|
|
8
8
|
import { Header1 as s } from "./Header1.js";
|
|
9
9
|
import { Header2 as h } from "./Header2.js";
|
|
@@ -16,18 +16,18 @@ 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 q from "clsx";
|
|
19
|
-
const
|
|
19
|
+
const X = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => {
|
|
20
20
|
const n = {
|
|
21
21
|
h1: s,
|
|
22
22
|
h2: (o) => /* @__PURE__ */ r(h, { variant: e, ...o }),
|
|
23
23
|
h3: u,
|
|
24
24
|
h4: C,
|
|
25
25
|
p: (o) => /* @__PURE__ */ r(k, { 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
|
-
ol:
|
|
28
|
+
ol: b,
|
|
29
29
|
code: c,
|
|
30
|
-
blockquote:
|
|
30
|
+
blockquote: l,
|
|
31
31
|
video: P,
|
|
32
32
|
table: T,
|
|
33
33
|
td: H,
|
|
@@ -46,5 +46,5 @@ const Z = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "def
|
|
|
46
46
|
) });
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
X as Markdown
|
|
50
50
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const OrderedList: ({
|
|
4
|
-
|
|
5
|
-
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
6
|
-
variant?: 'default' | 'tooltip' | 'legal';
|
|
7
|
-
}
|
|
3
|
+
export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
|
|
8
4
|
|
|
@@ -1,17 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
|
|
3
|
-
const c = ({ variant: t = "default", children: e }) => {
|
|
4
|
-
const l = {
|
|
5
|
-
default: "mb-4 list-inside list-decimal text-gray-900",
|
|
6
|
-
legal: "list-outside list-decimal pl-8 mb-4 text-neutral-800",
|
|
7
|
-
tooltip: "mb-4 list-inside list-decimal text-gray-900"
|
|
8
|
-
}, s = {
|
|
9
|
-
default: "space-y-2",
|
|
10
|
-
legal: "space-y-4",
|
|
11
|
-
tooltip: "space-y-2"
|
|
12
|
-
};
|
|
13
|
-
return /* @__PURE__ */ i("ol", { className: a(l[t], s[t]), children: e });
|
|
14
|
-
};
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const i = ({ children: s }) => /* @__PURE__ */ e("ol", { className: "mb-4 list-inside list-decimal space-y-2 text-gray-900", children: s });
|
|
15
3
|
export {
|
|
16
|
-
|
|
4
|
+
i as OrderedList
|
|
17
5
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
const m = ({ variant: a = "default", children: t }) => /* @__PURE__ */ r("p", { className: e("mb-4", {
|
|
4
4
|
default: "",
|
|
5
|
-
legal: "text-neutral-800
|
|
6
|
-
}[
|
|
5
|
+
legal: "text-neutral-800"
|
|
6
|
+
}[a]), children: t });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
m as Paragraph
|
|
9
9
|
};
|
|
@@ -24,11 +24,7 @@ export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.
|
|
|
24
24
|
|
|
25
25
|
export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.Element;
|
|
26
26
|
|
|
27
|
-
export declare const OrderedList: ({
|
|
28
|
-
|
|
29
|
-
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
30
|
-
variant?: 'default' | 'tooltip' | 'legal';
|
|
31
|
-
}
|
|
27
|
+
export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
|
|
32
28
|
|
|
33
29
|
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
34
30
|
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}, s = {
|
|
9
|
-
default: "bg-primary-50 gap-4 mb-4 py-2",
|
|
10
|
-
legal: "space-y-4 mb-4 py-2",
|
|
11
|
-
tooltip: "gap-2 marker:text-secondary-600"
|
|
12
|
-
};
|
|
13
|
-
return /* @__PURE__ */ i("ul", { className: r(l[t], s[t]), children: e });
|
|
14
|
-
};
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import e from "clsx";
|
|
3
|
+
const o = ({ variant: t = "default", children: r }) => /* @__PURE__ */ a("ul", { className: e("flex list-inside list-disc flex-col px-4 text-neutral-900", {
|
|
4
|
+
default: "bg-primary-50 gap-4 mb-4 py-2",
|
|
5
|
+
legal: "gap-4 mb-4 py-2",
|
|
6
|
+
tooltip: "gap-2 marker:text-secondary-600"
|
|
7
|
+
}[t]), children: r });
|
|
15
8
|
export {
|
|
16
|
-
|
|
9
|
+
o as UnorderedList
|
|
17
10
|
};
|