@npm_leadtech/legal-contracts-ui 0.113.0 → 0.114.1
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.d.ts +1 -1
- package/dist/components/Anchor.js +11 -10
- package/dist/components/Blockquote.d.ts +1 -1
- package/dist/components/Blockquote.js +6 -5
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/Header2.js +7 -6
- package/dist/components/Jumbotron3.d.ts +2 -0
- package/dist/components/Jumbotron3.js +2 -2
- package/dist/components/LegalTemplate.d.ts +2 -0
- package/dist/components/LegalesTemplate.d.ts +2 -0
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/Markdown.js +47 -37
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/OrderedList.js +4 -3
- package/dist/components/Paragraph.d.ts +1 -1
- package/dist/components/Paragraph.js +7 -6
- package/dist/components/PricingPlanCard.d.ts +1 -6
- package/dist/components/PricingPlanCard.js +12 -12
- package/dist/components/PricingPlansSection.d.ts +1 -6
- package/dist/components/PricingTemplate.d.ts +1 -4
- package/dist/components/UiComponents.d.ts +6 -6
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnorderedList.js +8 -6
- package/dist/components/UnsubscribeTemplate.d.ts +7 -1
- package/dist/components/UnsubscribeTemplate.js +7 -7
- package/dist/components/index.d.ts +1264 -0
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
1
|
+
import { jsx as f } from "react/jsx-runtime";
|
|
2
2
|
import d from "clsx";
|
|
3
|
-
const
|
|
4
|
-
const t =
|
|
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
|
-
|
|
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__ */
|
|
18
|
+
return /* @__PURE__ */ f(
|
|
18
19
|
"a",
|
|
19
20
|
{
|
|
20
|
-
...
|
|
21
|
-
href:
|
|
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:
|
|
26
|
+
children: a
|
|
26
27
|
}
|
|
27
28
|
);
|
|
28
29
|
};
|
|
29
30
|
export {
|
|
30
|
-
|
|
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
|
|
2
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import l from "clsx";
|
|
3
|
+
const a = ({ 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
|
-
|
|
5
|
+
legal: "mx-[-220px] mb-6 bg-white px-[220px] text-left text-neutral-800",
|
|
6
|
+
unsubscribe: "mb-0 w-full bg-white text-left text-[1.75rem] leading-tight font-bold text-neutral-900 px-4 pb-4 pt-8 font-sans tracking-tight md:px-8 md:pb-4 md:pt-[2.7rem] md:text-[2rem] md:leading-8"
|
|
7
|
+
}[t]), children: e });
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
a as Header2
|
|
9
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
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
|
-
|
|
4
|
+
o as Jumbotron3
|
|
5
5
|
};
|
|
@@ -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
|
|
2
|
+
import l, { defaultUrlTransform as a } from "react-markdown";
|
|
3
3
|
import i from "rehype-raw";
|
|
4
|
-
import
|
|
5
|
-
import { Anchor as
|
|
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
|
|
9
|
-
import { Header2 as
|
|
10
|
-
import { Header3 as
|
|
11
|
-
import { Header4 as
|
|
12
|
-
import { OrderedList as
|
|
13
|
-
import { Paragraph as
|
|
14
|
-
import { TableRow as w, TableHeader as
|
|
15
|
-
import { UnorderedList as
|
|
16
|
-
import { Video as
|
|
17
|
-
import { Emphasis as
|
|
18
|
-
import
|
|
19
|
-
const
|
|
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:
|
|
22
|
-
h2: (o) => /* @__PURE__ */ r(
|
|
23
|
-
h3:
|
|
24
|
-
h4:
|
|
25
|
-
p: (o) => /* @__PURE__ */ r(
|
|
26
|
-
a: (o) => /* @__PURE__ */ r(
|
|
27
|
-
ul: (o) => /* @__PURE__ */ r(
|
|
28
|
-
ol: (o) => /* @__PURE__ */ r(
|
|
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:
|
|
31
|
-
video:
|
|
32
|
-
table:
|
|
33
|
-
td:
|
|
34
|
-
th:
|
|
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:
|
|
36
|
+
em: P
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */ r(
|
|
39
|
-
|
|
38
|
+
return /* @__PURE__ */ r(
|
|
39
|
+
"div",
|
|
40
40
|
{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
className: R(
|
|
42
|
+
"w-full min-w-0",
|
|
43
|
+
m === "unsubscribe" && "bg-neutral-25 mb-16 flex flex-col flex-wrap md:mx-12 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
|
|
2
|
-
const i = ({ variant: t = "default", children: e }) => /* @__PURE__ */
|
|
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
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import r from "clsx";
|
|
3
|
+
const m = ({ variant: t = "default", children: e }) => /* @__PURE__ */ a("p", { className: r(t !== "unsubscribe" && "mb-4", {
|
|
4
4
|
default: "",
|
|
5
|
-
legal: "text-neutral-800 last:mb-0 tracking-tight"
|
|
6
|
-
|
|
5
|
+
legal: "text-neutral-800 last:mb-0 tracking-tight",
|
|
6
|
+
unsubscribe: "mb-0 w-full px-8 pb-6 text-left text-base leading-[22px] text-neutral-800 md:px-8 md:text-[17px] md:leading-6 lg:px-[8rem]"
|
|
7
|
+
}[t]), children: e });
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
m as Paragraph
|
|
9
10
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
|
|
5
|
-
|
|
6
4
|
export declare const PricingPlanCard: FC<PricingPlanCardProps>;
|
|
7
5
|
|
|
8
6
|
export declare interface PricingPlanCardProps {
|
|
@@ -16,10 +14,7 @@ export declare interface PricingPlanCardProps {
|
|
|
16
14
|
isHighlighted?: boolean;
|
|
17
15
|
cardStyles?: PricingPlanVariant;
|
|
18
16
|
}[];
|
|
19
|
-
cta?:
|
|
20
|
-
label: string;
|
|
21
|
-
buttonVariant: ButtonVariant;
|
|
22
|
-
};
|
|
17
|
+
cta?: ReactNode;
|
|
23
18
|
icon?: ReactNode;
|
|
24
19
|
}
|
|
25
20
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const x = ({ variant: r, title: i, subtitle: s, items: o, cta:
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Markdown as d } from "./Markdown.js";
|
|
3
|
+
import { LinkWrapper as m } from "./LinkWrapper.js";
|
|
4
|
+
const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
|
|
5
5
|
const a = {
|
|
6
6
|
Primary: {
|
|
7
7
|
container: "bg-neutral-25",
|
|
@@ -14,30 +14,30 @@ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: t }) => {
|
|
|
14
14
|
button: "primary-yellow"
|
|
15
15
|
}
|
|
16
16
|
}, c = { Primary: "bg-primary-100 p-2 rounded-lg", Secondary: "bg-secondary-200 p-2 rounded-lg" };
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t("div", { className: `${a[r].container} flex h-full flex-col gap-6 rounded-2xl p-6`, children: [
|
|
18
18
|
/* @__PURE__ */ e("span", { className: `text-big w-fit rounded-lg px-4 py-2 font-bold ${a[r].chip}`, children: i }),
|
|
19
19
|
/* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: s }),
|
|
20
20
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
|
|
21
|
-
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-4", children: o.map((l) => /* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ e("ul", { className: "flex flex-col gap-4", children: o.map((l) => /* @__PURE__ */ t(
|
|
22
22
|
"li",
|
|
23
23
|
{
|
|
24
24
|
className: `flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ e("div", { className: "pt-0.5", children: l.image }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
27
|
+
/* @__PURE__ */ e(d, { content: l.text, className: "mb-0!", variant: "legal" })
|
|
28
28
|
]
|
|
29
29
|
},
|
|
30
30
|
l.id
|
|
31
31
|
)) }),
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
n != null && /* @__PURE__ */ e(
|
|
33
|
+
m,
|
|
34
34
|
{
|
|
35
35
|
size: "large",
|
|
36
36
|
variant: a[r].button,
|
|
37
|
-
className: "text-medium w-full justify-center font-bold",
|
|
38
|
-
children:
|
|
37
|
+
className: "text-medium w-full max-w-52 justify-center font-bold",
|
|
38
|
+
children: n
|
|
39
39
|
}
|
|
40
|
-
)
|
|
40
|
+
)
|
|
41
41
|
] });
|
|
42
42
|
};
|
|
43
43
|
export {
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
|
|
5
|
-
|
|
6
4
|
export interface PricingPlanCardProps {
|
|
7
5
|
variant: PricingPlanVariant;
|
|
8
6
|
title: string;
|
|
@@ -14,10 +12,7 @@ export interface PricingPlanCardProps {
|
|
|
14
12
|
isHighlighted?: boolean;
|
|
15
13
|
cardStyles?: PricingPlanVariant;
|
|
16
14
|
}[];
|
|
17
|
-
cta?:
|
|
18
|
-
label: string;
|
|
19
|
-
buttonVariant: ButtonVariant;
|
|
20
|
-
};
|
|
15
|
+
cta?: ReactNode;
|
|
21
16
|
icon?: ReactNode;
|
|
22
17
|
}
|
|
23
18
|
|
|
@@ -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
|
|
4
|
-
const
|
|
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(
|
|
15
|
+
return /* @__PURE__ */ i("ul", { className: r(e[t], s[t]), children: l });
|
|
14
16
|
};
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
o as UnorderedList
|
|
17
19
|
};
|
|
@@ -2,15 +2,21 @@ 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
|
|
|
16
|
+
/**
|
|
17
|
+
* Headless composition for Storybook/tests and typed props. Page-level layout (backgrounds, main, section)
|
|
18
|
+
* belongs in the Next app — see `UnsubscribePageLayout` in legal-contracts-web.
|
|
19
|
+
*/
|
|
14
20
|
export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
|
|
15
21
|
|
|
16
22
|
export declare interface UnsubscribeTemplateProps {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Jumbotron3 as
|
|
3
|
-
import { Markdown as
|
|
4
|
-
const
|
|
5
|
-
/* @__PURE__ */
|
|
6
|
-
/* @__PURE__ */ e
|
|
1
|
+
import { jsxs as t, Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Jumbotron3 as s } from "./Jumbotron3.js";
|
|
3
|
+
import { Markdown as e } from "./Markdown.js";
|
|
4
|
+
const p = ({ jumbotron: o, stepDescription: m }) => /* @__PURE__ */ t(n, { children: [
|
|
5
|
+
/* @__PURE__ */ r(s, { ...o }),
|
|
6
|
+
/* @__PURE__ */ r(e, { ...m, variant: "unsubscribe" })
|
|
7
7
|
] });
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
p as UnsubscribeTemplate
|
|
10
10
|
};
|