@npm_leadtech/legal-contracts-ui 0.115.0 → 0.115.2

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.
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
4
 
5
5
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,12 +1,13 @@
1
- import { jsx as p } from "react/jsx-runtime";
1
+ import { jsx as f } from "react/jsx-runtime";
2
2
  import d from "clsx";
3
- const v = ({ children: s, variant: i = "default", className: c = "", ...e }) => {
4
- const t = e.href || "", r = t.toLowerCase(), l = r.startsWith("mailto:"), n = r.startsWith("tel:"), a = {
3
+ const b = ({ children: a, variant: i = "default", className: c = "", ...r }) => {
4
+ const t = r.href || "", e = t.toLowerCase(), l = e.startsWith("mailto:"), n = e.startsWith("tel:"), s = {
5
5
  default: "text-neutral-900 underline ",
6
6
  legal: "text-primary-700 cursor-pointer",
7
7
  "about-us": "text-primary-700 cursor-pointer",
8
- pricing: "cursor-pointer text-neutral-900"
9
- }, u = a[i] ?? a.default, o = t.startsWith("http") && !n && !l, f = (() => {
8
+ pricing: "cursor-pointer text-neutral-900",
9
+ unsubscribe: "text-primary-700 cursor-pointer"
10
+ }, u = s[i] ?? s.default, o = t.startsWith("http") && !n && !l, p = (() => {
10
11
  if (!n) return t;
11
12
  try {
12
13
  return decodeURIComponent(t).replace(/\s/g, "");
@@ -14,18 +15,18 @@ const v = ({ children: s, variant: i = "default", className: c = "", ...e }) =>
14
15
  return t.replace(/%20/g, "").replace(/\s/g, "");
15
16
  }
16
17
  })();
17
- return /* @__PURE__ */ p(
18
+ return /* @__PURE__ */ f(
18
19
  "a",
19
20
  {
20
- ...e,
21
- href: f,
21
+ ...r,
22
+ href: p,
22
23
  className: d(c, u),
23
24
  target: o ? "_blank" : void 0,
24
25
  rel: o ? "noopener noreferrer" : void 0,
25
- children: s
26
+ children: a
26
27
  }
27
28
  );
28
29
  };
29
30
  export {
30
- v as Anchor
31
+ b as Anchor
31
32
  };
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
4
4
 
5
5
  export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,8 +1,9 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- const l = ({ children: t, variant: a = "default" }) => /* @__PURE__ */ r("blockquote", { className: {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ const o = ({ children: t, variant: r = "default" }) => /* @__PURE__ */ a("blockquote", { className: {
3
3
  default: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic",
4
- "about-us": "my-4 text-gray-700 italic bg-neutral-25 pt-4 px-4 pb-0.5"
5
- }[a], children: t });
4
+ "about-us": "my-4 text-gray-700 italic bg-neutral-25 pt-4 px-4 pb-0.5",
5
+ unsubscribe: "my-4 border-l-4 border-neutral-300 pl-4 text-neutral-700 italic"
6
+ }[r], children: t });
6
7
  export {
7
- l as Blockquote
8
+ o as Blockquote
8
9
  };
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
4
4
 
5
5
  export interface Header2Props extends React.ComponentProps<'h2'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,9 +1,10 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import r from "clsx";
3
- const s = ({ children: t, variant: a = "default" }) => /* @__PURE__ */ e("h2", { className: r("mt-5 text-3xl font-bold", {
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ const o = ({ children: e, variant: t = "default" }) => /* @__PURE__ */ n("h2", { className: l(t === "unsubscribe" ? "mt-0" : "mt-5", t === "unsubscribe" ? "" : "text-3xl", "font-bold", {
4
4
  default: "mb-3 text-gray-900",
5
- legal: "mb-6 text-neutral-800"
6
- }[a]), children: t });
5
+ legal: "mx-[-220px] mb-6 bg-white px-[220px] text-left text-neutral-800",
6
+ unsubscribe: "mb-0 w-full bg-white pb-4 pt-8 text-left text-[1.75rem] leading-tight font-bold text-neutral-900 font-sans tracking-tight md:pb-4 md:pt-[2.7rem] md:text-[2rem] md:leading-8"
7
+ }[t]), children: e });
7
8
  export {
8
- s as Header2
9
+ o as Header2
9
10
  };
@@ -4,5 +4,7 @@ export declare const Jumbotron3: FC<Jumbotron3Props>;
4
4
 
5
5
  export declare interface Jumbotron3Props {
6
6
  title: string;
7
+ domain: string;
8
+ className?: string;
7
9
  }
8
10
 
@@ -1,5 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const a = ({ title: r }) => /* @__PURE__ */ e("section", { className: "bg-primary-50 py-14", children: /* @__PURE__ */ e("div", { className: "mx-auto max-w-4xl text-center", children: /* @__PURE__ */ e("p", { className: "font-lora text-super-hero text-neutral-900", children: r }) }) });
2
+ const o = ({ title: t, domain: r, className: x }) => /* @__PURE__ */ e("section", { className: `px-6 py-10 md:px-12 lg:px-[120px] ${x ?? ""}`, children: /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-[1000px] text-center", children: /* @__PURE__ */ e("p", { className: "font-lora text-super-hero text-neutral-900", children: t + " " + r }) }) });
3
3
  export {
4
- a as Jumbotron3
4
+ o as Jumbotron3
5
5
  };
@@ -2,6 +2,8 @@ import { FC } from 'react';
2
2
 
3
3
  export interface Jumbotron3Props {
4
4
  title: string;
5
+ domain: string;
6
+ className?: string;
5
7
  }
6
8
 
7
9
  export declare const LegalTemplate: FC<LegalTemplateProps>;
@@ -3,6 +3,8 @@ import { ReactNode } from 'react';
3
3
 
4
4
  export interface Jumbotron3Props {
5
5
  title: string;
6
+ domain: string;
7
+ className?: string;
6
8
  }
7
9
 
8
10
  export declare const LegalesTemplate: FC<LegalesTemplateProps>;
@@ -6,6 +6,6 @@ export declare interface MarkdownProps {
6
6
  content: string;
7
7
  className?: string;
8
8
  useCustom?: boolean;
9
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
9
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
10
10
  }
11
11
 
@@ -1,50 +1,60 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import a, { defaultUrlTransform as s } from "react-markdown";
2
+ import l, { defaultUrlTransform as a } from "react-markdown";
3
3
  import i from "rehype-raw";
4
- import l from "remark-gfm";
5
- import { Anchor as f } from "./Anchor.js";
4
+ import f from "remark-gfm";
5
+ import { Anchor as s } from "./Anchor.js";
6
6
  import { Blockquote as c } from "./Blockquote.js";
7
7
  import { Code as d } from "./Code.js";
8
- import { Header1 as h } from "./Header1.js";
9
- import { Header2 as u } from "./Header2.js";
10
- import { Header3 as C } from "./Header3.js";
11
- import { Header4 as b } from "./Header4.js";
12
- import { OrderedList as k } from "./OrderedList.js";
13
- import { Paragraph as T } from "./Paragraph.js";
14
- import { TableRow as w, TableHeader as g, TableData as H, Table as q } from "./Table.js";
15
- import { UnorderedList as x } from "./UnorderedList.js";
16
- import { Video as P } from "./Video.js";
17
- import { Emphasis as R } from "./Emphasis.js";
18
- import U from "clsx";
19
- const y = (m) => m.startsWith("tel:") ? m : s(m), v = ({ content: m, className: t = "", useCustom: n = !0, variant: e = "default" }) => {
8
+ import { Header1 as u } from "./Header1.js";
9
+ import { Header2 as h } from "./Header2.js";
10
+ import { Header3 as b } from "./Header3.js";
11
+ import { Header4 as C } from "./Header4.js";
12
+ import { OrderedList as g } from "./OrderedList.js";
13
+ import { Paragraph as k } from "./Paragraph.js";
14
+ import { TableRow as w, TableHeader as x, TableData as T, Table as _ } from "./Table.js";
15
+ import { UnorderedList as H } from "./UnorderedList.js";
16
+ import { Video as q } from "./Video.js";
17
+ import { Emphasis as P } from "./Emphasis.js";
18
+ import R from "clsx";
19
+ const U = (e) => e.startsWith("tel:") ? e : a(e), v = ({ content: e, className: t = "", useCustom: n = !0, variant: m = "default" }) => {
20
20
  const p = {
21
- h1: h,
22
- h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
23
- h3: C,
24
- h4: b,
25
- p: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
26
- a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
27
- ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
- ol: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
21
+ h1: u,
22
+ h2: (o) => /* @__PURE__ */ r(h, { variant: m, ...o }),
23
+ h3: b,
24
+ h4: C,
25
+ p: (o) => /* @__PURE__ */ r(k, { variant: m, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(s, { variant: m, ...o }),
27
+ ul: (o) => /* @__PURE__ */ r(H, { variant: m, ...o }),
28
+ ol: (o) => /* @__PURE__ */ r(g, { variant: m, ...o }),
29
29
  code: d,
30
- blockquote: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
31
- video: P,
32
- table: q,
33
- td: H,
34
- th: g,
30
+ blockquote: (o) => /* @__PURE__ */ r(c, { variant: m, ...o }),
31
+ video: q,
32
+ table: _,
33
+ td: T,
34
+ th: x,
35
35
  tr: w,
36
- em: R
36
+ em: P
37
37
  };
38
- return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
39
- a,
38
+ return /* @__PURE__ */ r(
39
+ "div",
40
40
  {
41
- rehypePlugins: [i],
42
- remarkPlugins: [l],
43
- urlTransform: y,
44
- components: n ? p : void 0,
45
- children: m
41
+ className: R(
42
+ "w-full min-w-0",
43
+ m === "unsubscribe" && "bg-neutral-25 mb-16 flex flex-col flex-wrap md:mb-12 [&_h2+p]:pt-6 [&_img]:mx-auto [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full [&_p+h2]:mt-0",
44
+ t
45
+ ),
46
+ children: /* @__PURE__ */ r(
47
+ l,
48
+ {
49
+ rehypePlugins: [i],
50
+ remarkPlugins: [f],
51
+ urlTransform: U,
52
+ components: n ? p : void 0,
53
+ children: e
54
+ }
55
+ )
46
56
  }
47
- ) });
57
+ );
48
58
  };
49
59
  export {
50
60
  v as Markdown
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
4
4
 
5
5
  export interface OrderedListProps extends React.ComponentProps<'ol'> {
6
- variant?: 'default' | 'tooltip' | 'legal' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'tooltip' | 'legal' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,7 +1,8 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- const i = ({ variant: t = "default", children: e }) => /* @__PURE__ */ s("ol", { className: {
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ const i = ({ variant: t = "default", children: e }) => /* @__PURE__ */ l("ol", { className: {
3
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"
4
+ legal: "list-outside list-decimal pl-8 mb-4 text-neutral-800 space-y-4",
5
+ unsubscribe: "mb-4 w-full list-outside list-decimal space-y-2 px-8 pl-10 text-neutral-800 md:px-8 lg:px-[8rem]"
5
6
  }[t], children: e });
6
7
  export {
7
8
  i as OrderedList
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
4
4
 
5
5
  export interface ParagraphProps extends React.ComponentProps<'p'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,9 +1,10 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import s from "clsx";
3
- const n = ({ variant: t = "default", children: a }) => /* @__PURE__ */ r("p", { className: s("mb-4", {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ const n = ({ variant: t = "default", children: e }) => /* @__PURE__ */ a("p", { className: l(t !== "unsubscribe" && "mb-4", {
4
4
  default: "",
5
- legal: "text-neutral-800 last:mb-0 tracking-tight"
6
- }[t]), children: a });
5
+ legal: "text-neutral-800 last:mb-0 tracking-tight",
6
+ unsubscribe: "mb-0 w-full px-6 pb-6 text-left text-base leading-[22px] text-neutral-800 md:text-[17px] md:leading-6 lg:px-[220px]"
7
+ }[t]), children: e });
7
8
  export {
8
9
  n as Paragraph
9
10
  };
@@ -3,13 +3,13 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
4
 
5
5
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
9
9
  export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
10
10
 
11
11
  export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
12
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
12
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
13
13
  }
14
14
 
15
15
  export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
@@ -21,7 +21,7 @@ export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.
21
21
  export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
22
22
 
23
23
  export interface Header2Props extends React.ComponentProps<'h2'> {
24
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
24
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
25
25
  }
26
26
 
27
27
  export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
@@ -31,13 +31,13 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
31
31
  export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
32
32
 
33
33
  export interface OrderedListProps extends React.ComponentProps<'ol'> {
34
- variant?: 'default' | 'tooltip' | 'legal' | 'about-us' | 'pricing';
34
+ variant?: 'default' | 'tooltip' | 'legal' | 'about-us' | 'pricing' | 'unsubscribe';
35
35
  }
36
36
 
37
37
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
38
38
 
39
39
  export interface ParagraphProps extends React.ComponentProps<'p'> {
40
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
40
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
41
41
  }
42
42
 
43
43
  export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
@@ -51,7 +51,7 @@ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX
51
51
  export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
52
52
 
53
53
  export interface UnorderedListProps extends React.ComponentProps<'ul'> {
54
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
54
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
55
55
  }
56
56
 
57
57
  export declare const Video: ({ children }: React.ComponentProps<"video">) => JSX.Element;
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
4
4
 
5
5
  export interface UnorderedListProps extends React.ComponentProps<'ul'> {
6
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
7
7
  }
8
8
 
@@ -1,17 +1,19 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import r from "clsx";
3
- const p = ({ variant: t = "default", children: e }) => {
4
- const l = {
3
+ const o = ({ variant: t = "default", children: l }) => {
4
+ const e = {
5
5
  default: "flex list-inside list-disc flex-col px-4 text-neutral-900",
6
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"
7
+ tooltip: "flex list-inside list-disc flex-col px-4 text-neutral-900",
8
+ unsubscribe: "w-full list-outside list-disc px-8 pl-10 text-neutral-800 md:px-8 lg:px-[8rem]"
8
9
  }, s = {
9
10
  default: "bg-primary-50 gap-4 mb-4 py-2",
10
11
  legal: "space-y-4 mb-4 py-2",
11
- tooltip: "gap-2 marker:text-secondary-600"
12
+ tooltip: "gap-2 marker:text-secondary-600",
13
+ unsubscribe: "mb-4 py-2"
12
14
  };
13
- return /* @__PURE__ */ i("ul", { className: r(l[t], s[t]), children: e });
15
+ return /* @__PURE__ */ i("ul", { className: r(e[t], s[t]), children: l });
14
16
  };
15
17
  export {
16
- p as UnorderedList
18
+ o as UnorderedList
17
19
  };
@@ -2,13 +2,15 @@ import { FC } from 'react';
2
2
 
3
3
  export interface Jumbotron3Props {
4
4
  title: string;
5
+ domain: string;
6
+ className?: string;
5
7
  }
6
8
 
7
9
  export interface MarkdownProps {
8
10
  content: string;
9
11
  className?: string;
10
12
  useCustom?: boolean;
11
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing';
13
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
12
14
  }
13
15
 
14
16
  export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
@@ -1,10 +1,10 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Jumbotron3 as o } from "./Jumbotron3.js";
3
- import { Markdown as s } from "./Markdown.js";
4
- const i = ({ jumbotron: l, stepDescription: m }) => /* @__PURE__ */ r("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
- /* @__PURE__ */ e(o, { ...l }),
6
- /* @__PURE__ */ e("section", { className: "px-6 py-16 sm:px-10 lg:px-24", children: /* @__PURE__ */ e("div", { className: "mx-auto flex max-w-6xl flex-col gap-12", children: /* @__PURE__ */ e(s, { ...m }) }) })
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { Jumbotron3 as a } from "./Jumbotron3.js";
3
+ import { Markdown as m } from "./Markdown.js";
4
+ const o = ({ jumbotron: l, stepDescription: r }) => /* @__PURE__ */ s("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
+ /* @__PURE__ */ e("div", { className: "w-full bg-green-50", children: /* @__PURE__ */ e(a, { ...l, className: "pt-10 pb-20" }) }),
6
+ /* @__PURE__ */ e("div", { className: "bg-neutral-25 w-full", children: /* @__PURE__ */ e("section", { className: "mx-auto w-full max-w-300 px-4 py-16 md:px-8", children: /* @__PURE__ */ e(m, { ...r, variant: "unsubscribe" }) }) })
7
7
  ] });
8
8
  export {
9
- i as UnsubscribeTemplate
9
+ o as UnsubscribeTemplate
10
10
  };