@npm_leadtech/legal-contracts-ui 0.71.1 → 0.72.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/BlogSection.js +8 -8
- package/dist/components/Emphasis.js +3 -3
- package/dist/components/Markdown.js +7 -7
- package/dist/components/OrderedList.d.ts +5 -1
- package/dist/components/OrderedList.js +5 -2
- package/dist/components/Paragraph.js +5 -5
- package/dist/components/UiComponents.d.ts +5 -1
- package/dist/components/UnorderedList.js +15 -8
- 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 r = {
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import l from "clsx";
|
|
3
|
+
const m = ({ children: t, variant: r = "default", className: e = "", ...a }) => {
|
|
4
|
+
const i = a.href?.toLowerCase().startsWith("mailto:"), c = r === "legal", o = {
|
|
5
5
|
default: "text-neutral-900 underline ",
|
|
6
|
-
legal: "text-primary-700"
|
|
7
|
-
},
|
|
8
|
-
return /* @__PURE__ */
|
|
6
|
+
legal: "text-primary-700 cursor-pointer"
|
|
7
|
+
}, s = o[r] ?? o.default;
|
|
8
|
+
return c && i ? /* @__PURE__ */ n("span", { className: l(e, s), children: t }) : /* @__PURE__ */ n("a", { className: l(e, s), target: "_blank", rel: "noopener noreferrer", ...a, children: t });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
11
|
+
m as Anchor
|
|
12
12
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as e, jsxs as i } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { SectionHeading as
|
|
4
|
-
import { LinkWrapper as
|
|
5
|
-
const x = ({ header:
|
|
6
|
-
/* @__PURE__ */ e(
|
|
7
|
-
/* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children:
|
|
8
|
-
/* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-
|
|
3
|
+
import { SectionHeading as o } from "./SectionHeading.js";
|
|
4
|
+
import { LinkWrapper as r } from "./LinkWrapper.js";
|
|
5
|
+
const x = ({ header: t, articles: a, cta: m }) => a.length === 0 ? null : /* @__PURE__ */ e("section", { className: "mx-auto px-8 pt-10 pb-12 lg:px-12 lg:pb-14 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
|
|
6
|
+
/* @__PURE__ */ e(o, { ...t }),
|
|
7
|
+
/* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: a.map((l) => /* @__PURE__ */ i("article", { className: "flex flex-col rounded-sm bg-white shadow md:flex-row", children: [
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "relative h-42 shrink-0 overflow-hidden rounded-l-sm md:h-50 lg:h-auto lg:max-w-51 [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: l.image }),
|
|
9
9
|
/* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
|
|
10
10
|
/* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
|
|
11
11
|
/* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
|
|
12
|
-
/* @__PURE__ */ e(
|
|
12
|
+
/* @__PURE__ */ e(r, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
|
|
13
13
|
] })
|
|
14
14
|
] }, l.title)) }),
|
|
15
|
-
/* @__PURE__ */ e(
|
|
15
|
+
/* @__PURE__ */ e(r, { className: "w-full md:w-fit", variant: "secondary-green", children: m })
|
|
16
16
|
] }) });
|
|
17
17
|
export {
|
|
18
18
|
x as BlogSection
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
const i = ({ children: t }) => /* @__PURE__ */ a("em", { className: "font-normal tracking-tight text-neutral-600 not-italic", children: t });
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
i 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 l } from "./Anchor.js";
|
|
6
|
+
import { Blockquote as f } 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 Z = ({ 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(l, { variant: e, ...o }),
|
|
27
27
|
ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
|
|
28
|
-
ol: b,
|
|
28
|
+
ol: (o) => /* @__PURE__ */ r(b, { variant: e, ...o }),
|
|
29
29
|
code: c,
|
|
30
|
-
blockquote:
|
|
30
|
+
blockquote: f,
|
|
31
31
|
video: P,
|
|
32
32
|
table: T,
|
|
33
33
|
td: H,
|
|
@@ -46,5 +46,5 @@ const X = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "def
|
|
|
46
46
|
) });
|
|
47
47
|
};
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
Z as Markdown
|
|
50
50
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const OrderedList: ({ children }:
|
|
3
|
+
export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
6
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
7
|
+
}
|
|
4
8
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
const i = ({ children:
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
const i = ({ variant: t = "default", children: e }) => /* @__PURE__ */ s("ol", { className: {
|
|
3
|
+
default: "mb-4 list-inside list-decimal text-gray-900 space-y-2",
|
|
4
|
+
legal: "list-outside list-decimal pl-8 mb-4 text-neutral-800 space-y-4"
|
|
5
|
+
}[t], children: e });
|
|
3
6
|
export {
|
|
4
7
|
i as OrderedList
|
|
5
8
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
2
|
+
import s from "clsx";
|
|
3
|
+
const n = ({ variant: t = "default", children: a }) => /* @__PURE__ */ r("p", { className: s("mb-4", {
|
|
4
4
|
default: "",
|
|
5
|
-
legal: "text-neutral-800"
|
|
6
|
-
}[
|
|
5
|
+
legal: "text-neutral-800 last:mb-0 tracking-tight"
|
|
6
|
+
}[t]), children: a });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
n as Paragraph
|
|
9
9
|
};
|
|
@@ -24,7 +24,11 @@ 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: ({ children }:
|
|
27
|
+
export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
30
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
31
|
+
}
|
|
28
32
|
|
|
29
33
|
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
30
34
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import r from "clsx";
|
|
3
|
+
const p = ({ variant: t = "default", children: e }) => {
|
|
4
|
+
const l = {
|
|
5
|
+
default: "flex list-inside list-disc flex-col px-4 text-neutral-900",
|
|
6
|
+
legal: "list-outside list-disc pl-8 pr-4 text-neutral-800",
|
|
7
|
+
tooltip: "flex list-inside list-disc flex-col px-4 text-neutral-900"
|
|
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
|
+
};
|
|
8
15
|
export {
|
|
9
|
-
|
|
16
|
+
p as UnorderedList
|
|
10
17
|
};
|