@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.
@@ -63,8 +63,9 @@ export interface DocumentCategoriesProps {
63
63
 
64
64
  export interface DocumentItemProps {
65
65
  id: string;
66
- link: ReactNode;
66
+ title: string;
67
67
  description: string;
68
+ featured?: boolean;
68
69
  className?: string;
69
70
  }
70
71
 
@@ -75,8 +75,9 @@ export interface DocumentCategoriesProps {
75
75
 
76
76
  export interface DocumentItemProps {
77
77
  id: string;
78
- link: ReactNode;
78
+ title: string;
79
79
  description: string;
80
+ featured?: boolean;
80
81
  className?: string;
81
82
  }
82
83
 
@@ -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
- link: ReactNode;
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 n from "clsx";
3
- import { ChevronRightIcon as a } from "./ChevronRightIcon.js";
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: n(
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 justify-between", children: [
13
- /* @__PURE__ */ e("p", { className: "font-bold", children: t }),
14
- /* @__PURE__ */ e(a, { "aria-hidden": !0 })
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
- c as DocumentItem
18
+ n as DocumentItem
22
19
  };
@@ -3,8 +3,9 @@ import { ReactNode } from 'react';
3
3
 
4
4
  export interface DocumentItemProps {
5
5
  id: string;
6
- link: ReactNode;
6
+ title: string;
7
7
  description: string;
8
+ featured?: boolean;
8
9
  className?: string;
9
10
  }
10
11
 
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { DocumentItem as i } from "./DocumentItem.js";
3
- const p = ({ id: r, title: s, description: t, icon: c, documents: m }) => /* @__PURE__ */ a("article", { id: r, className: "flex-1 scroll-mt-25 space-y-6", children: [
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((l) => /* @__PURE__ */ e(i, { ...l, className: "w-48/100" }, l.id)) })
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 }: React.ComponentProps<"h2">) => JSX.Element;
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
- const m = ({ children: t }) => /* @__PURE__ */ e("h2", { className: "mt-5 mb-6 text-3xl font-bold text-neutral-800", children: t });
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
- m as Header2
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 o } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import n from "react-markdown";
3
- import i from "rehype-raw";
4
- import a from "remark-gfm";
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 l } from "./Header1.js";
8
+ import { Header1 as h } from "./Header1.js";
9
9
  import { Header2 as s } from "./Header2.js";
10
- import { Header3 as h } from "./Header3.js";
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 H, TableData as w, Table as T } from "./Table.js";
15
- import { UnorderedList as g } from "./UnorderedList.js";
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 N = ({ content: e, className: t = "", useCustom: p = !0, variant: m = "default" }) => /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o(
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: [i],
22
- remarkPlugins: [a],
21
+ rehypePlugins: [a],
22
+ remarkPlugins: [i],
23
23
  components: p ? {
24
- h1: l,
25
- h2: s,
26
- h3: h,
24
+ h1: h,
25
+ h2: (o) => /* @__PURE__ */ r(s, { variant: e, ...o }),
26
+ h3: l,
27
27
  h4: u,
28
- p: b,
29
- a: (r) => /* @__PURE__ */ o(d, { variant: m, ...r }),
30
- ul: (r) => /* @__PURE__ */ o(g, { variant: m, ...r }),
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: T,
36
- td: w,
37
- th: H,
35
+ table: w,
36
+ td: H,
37
+ th: g,
38
38
  tr: k,
39
39
  em: R
40
40
  } : void 0,
41
- children: e
41
+ children: m
42
42
  }
43
43
  ) });
44
44
  export {
45
- N as Markdown
45
+ S as Markdown
46
46
  };
@@ -28,8 +28,9 @@ export interface ContactMethodsSectionProps {
28
28
 
29
29
  export interface DocumentItemProps {
30
30
  id: string;
31
- link: ReactNode;
31
+ title: string;
32
32
  description: string;
33
+ featured?: boolean;
33
34
  className?: string;
34
35
  }
35
36
 
@@ -1,4 +1,8 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const Paragraph: ({ children }: React.ComponentProps<"p">) => JSX.Element;
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
- const o = ({ children: a }) => /* @__PURE__ */ r("p", { className: "mb-4", children: a });
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
- o as Paragraph
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 }: React.ComponentProps<"h2">) => JSX.Element;
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 }: React.ComponentProps<"p">) => JSX.Element;
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