@npm_leadtech/legal-contracts-ui 0.117.2 → 0.118.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.
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,28 +1,29 @@
1
- import { jsx as h } from "react/jsx-runtime";
1
+ import { jsx as d } from "react/jsx-runtime";
2
2
  import p from "clsx";
3
3
  const v = ({ children: i, variant: c = "default", className: l = "", ...r }) => {
4
- const t = r.href || "", n = t.toLowerCase(), u = n.startsWith("mailto:"), s = n.startsWith("tel:"), e = "cursor-pointer text-primary-700", a = {
4
+ const t = r.href || "", s = t.toLowerCase(), u = s.startsWith("mailto:"), n = s.startsWith("tel:"), e = "cursor-pointer text-primary-700", o = {
5
5
  default: "text-neutral-900 underline",
6
6
  legal: e,
7
7
  "about-us": e,
8
8
  pricing: "cursor-pointer text-neutral-900",
9
- unsubscribe: e
10
- }, f = a[c] ?? a.default, o = t.startsWith("http") && !s && !u, d = (() => {
11
- if (!s) return t;
9
+ unsubscribe: e,
10
+ cookies: "text-white"
11
+ }, f = o[c] ?? o.default, a = t.startsWith("http") && !n && !u, h = (() => {
12
+ if (!n) return t;
12
13
  try {
13
14
  return decodeURIComponent(t).replace(/\s/g, "");
14
15
  } catch {
15
16
  return t.replace(/%20/g, "").replace(/\s/g, "");
16
17
  }
17
18
  })();
18
- return /* @__PURE__ */ h(
19
+ return /* @__PURE__ */ d(
19
20
  "a",
20
21
  {
21
22
  ...r,
22
- href: d,
23
+ href: h,
23
24
  className: p(l, f),
24
- target: o ? "_blank" : void 0,
25
- rel: o ? "noopener noreferrer" : void 0,
25
+ target: a ? "_blank" : void 0,
26
+ rel: a ? "noopener noreferrer" : void 0,
26
27
  children: i
27
28
  }
28
29
  );
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,9 +1,13 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- const o = ({ children: t, variant: r = "default" }) => /* @__PURE__ */ a("blockquote", { className: {
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
- unsubscribe: "my-4 border-l-4 border-neutral-300 pl-4 text-neutral-700 italic"
6
- }[r], children: t });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import l from "clsx";
3
+ const b = ({ children: r, variant: e = "default" }) => {
4
+ const t = {
5
+ default: "border-l-4 border-gray-300 pl-4 text-gray-700 ",
6
+ "about-us": "text-gray-700 bg-neutral-25 pt-4 px-4 pb-0.5",
7
+ unsubscribe: "border-l-4 border-neutral-300 pl-4 text-neutral-700"
8
+ }, a = t[e] ?? t.default;
9
+ return /* @__PURE__ */ o("blockquote", { className: l("my-4 italic", a), children: r });
10
+ };
7
11
  export {
8
- o as Blockquote
12
+ b as Blockquote
9
13
  };
@@ -0,0 +1,32 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { FC } from 'react';
3
+ import { ReactNode } from 'react';
4
+
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
+ children: ReactNode;
7
+ size?: ButtonSize;
8
+ variant?: ResponsiveButtonVariant;
9
+ iconPosition?: IconPosition;
10
+ }
11
+
12
+ export type ButtonSize = 'small' | 'default' | 'large';
13
+
14
+ 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';
15
+
16
+ export declare const CookiesBar: FC<CookiesBarProps>;
17
+
18
+ export declare interface CookiesBarProps {
19
+ policyMessage: string;
20
+ acceptButton: ButtonProps;
21
+ }
22
+
23
+ export type IconPosition = 'left' | 'right' | 'top';
24
+
25
+ export type ResponsiveButtonVariant = ButtonVariant | {
26
+ initial?: ButtonVariant;
27
+ sm?: ButtonVariant;
28
+ md?: ButtonVariant;
29
+ lg?: ButtonVariant;
30
+ xl?: ButtonVariant;
31
+ };
32
+
@@ -0,0 +1,11 @@
1
+ import { jsx as t, jsxs as a } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Button as m } from "./Button.js";
4
+ import { Markdown as o } from "./Markdown.js";
5
+ const n = ({ policyMessage: e, acceptButton: l }) => /* @__PURE__ */ t("aside", { className: "fixed bottom-0 left-0 z-9 w-full bg-neutral-900", children: /* @__PURE__ */ a("div", { className: "mx-auto flex w-full flex-col gap-6 p-6 md:flex-row md:items-center md:gap-10 md:py-6 xl:max-w-300 xl:px-0", children: [
6
+ /* @__PURE__ */ t(o, { className: "text-small text-white [&_p:last-child]:mb-0", variant: "cookies", content: e }),
7
+ /* @__PURE__ */ t(m, { variant: "primary-yellow", className: "w-full text-nowrap md:w-fit", ...l })
8
+ ] }) });
9
+ export {
10
+ n as CookiesBar
11
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import { Button as u } from "./Button.js";
3
- import { PlusIcon as p } from "./PlusIcon.js";
2
+ import { PlusIcon as u } from "./PlusIcon.js";
3
+ import { Button as p } from "./Button.js";
4
4
  const b = ({
5
5
  uploadPromptText: r,
6
6
  addDocumentLabel: a,
@@ -11,11 +11,11 @@ const b = ({
11
11
  variant: d = "glassOnDark",
12
12
  className: o = ""
13
13
  }) => {
14
- const c = d === "glassOnDark" ? "relative rounded-[32px] bg-white/20 p-4 text-neutral-800 shadow-[0_20px_50px_rgba(3,42,56,0.35)] ring-1 ring-white/30 backdrop-blur" : "relative w-full rounded-[32px] bg-white/20 p-4 text-neutral-800 shadow-[0_20px_50px_rgba(3,42,56,0.35)] ring-1 ring-white/30 backdrop-blur", m = s ?? /* @__PURE__ */ e(p, { className: "h-5 w-5", "aria-hidden": !0 });
14
+ const c = d === "glassOnDark" ? "relative rounded-[32px] bg-white/20 p-4 text-neutral-800 shadow-[0_20px_50px_rgba(3,42,56,0.35)] ring-1 ring-white/30 backdrop-blur" : "relative w-full rounded-[32px] bg-white/20 p-4 text-neutral-800 shadow-[0_20px_50px_rgba(3,42,56,0.35)] ring-1 ring-white/30 backdrop-blur", m = s ?? /* @__PURE__ */ e(u, { className: "h-5 w-5", "aria-hidden": !0 });
15
15
  return /* @__PURE__ */ e("div", { className: `${c} ${o}`.trim(), children: /* @__PURE__ */ t("div", { className: "bg-neutral-25 rounded-2xl p-8 text-center", children: [
16
16
  /* @__PURE__ */ e("p", { className: "text-medium text-neutral-500", children: r }),
17
17
  /* @__PURE__ */ t(
18
- u,
18
+ p,
19
19
  {
20
20
  size: "large",
21
21
  variant: "primary-darkgreen",
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,10 +1,13 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import x from "clsx";
3
- const r = ({ children: t, variant: e = "default" }) => /* @__PURE__ */ l("h2", { className: x("font-bold", {
4
- default: "mt-5 mb-3 text-3xl text-gray-900 font-bold",
5
- legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 font-bold text-3xl",
6
- unsubscribe: "mt-0 mb-0 w-full bg-white pb-4 pt-8 text-left text-3xl leading-tight text-neutral-900 font-sans tracking-tight font-bold md:text-4xl md:leading-8"
7
- }[e]), children: t });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import s from "clsx";
3
+ const m = ({ children: e, variant: l = "default" }) => {
4
+ const t = {
5
+ default: "mt-5 mb-3 text-3xl text-gray-900",
6
+ legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 text-3xl",
7
+ unsubscribe: "mt-0 mb-0 w-full bg-white pb-4 pt-8 text-left text-3xl leading-tight text-neutral-900 font-sans tracking-tight md:text-4xl md:leading-8"
8
+ }, x = t[l] ?? t.default;
9
+ return /* @__PURE__ */ a("h2", { className: s("font-bold", x), children: e });
10
+ };
8
11
  export {
9
- r as Header2
12
+ m as Header2
10
13
  };
@@ -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' | 'unsubscribe';
9
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
10
10
  }
11
11
 
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,9 +1,13 @@
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
- unsubscribe: "mb-4 w-full list-outside list-decimal space-y-2 pl-10 text-neutral-800"
6
- }[t], children: e });
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import i from "clsx";
3
+ const o = ({ variant: s = "default", children: e }) => {
4
+ const t = {
5
+ default: "list-inside text-gray-900 space-y-2",
6
+ legal: "list-outside pl-8 text-neutral-800 space-y-4",
7
+ unsubscribe: " w-full list-outside space-y-2 pl-10 text-neutral-800"
8
+ }, l = t[s] ?? t.default;
9
+ return /* @__PURE__ */ a("ol", { className: i("mb-4 list-decimal", l), children: e });
10
+ };
7
11
  export {
8
- i as OrderedList
12
+ o as OrderedList
9
13
  };
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,13 +1,12 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import l from "clsx";
3
- const m = ({ variant: t = "default", children: a }) => /* @__PURE__ */ e("p", { className: l({
4
- default: "mb-4",
5
- legal: "mb-4 text-neutral-800 last:mb-0 tracking-tight",
6
- tooltip: "mb-4",
7
- "about-us": "mb-4",
8
- pricing: "mb-4",
9
- unsubscribe: "mb-0 w-full rounded-lg bg-neutral-25 px-6 pb-6 text-left text-base leading-6 text-neutral-800 md:text-lg lg:px-ds-11xl"
10
- }[t]), children: a });
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ const n = ({ variant: a = "default", children: e }) => {
3
+ const t = {
4
+ default: "mb-4",
5
+ legal: "mb-4 text-neutral-800 last:mb-0 tracking-tight",
6
+ unsubscribe: "mb-0 w-full rounded-lg bg-neutral-25 px-6 pb-6 text-left text-base leading-6 text-neutral-800 md:text-lg lg:px-ds-11xl"
7
+ }, l = t[a] ?? t.default;
8
+ return /* @__PURE__ */ r("p", { className: l, children: e });
9
+ };
11
10
  export {
12
- m as Paragraph
11
+ n as Paragraph
13
12
  };
@@ -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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
12
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
24
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
34
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
40
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
54
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
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' | 'unsubscribe';
6
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,19 +1,13 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import r from "clsx";
3
- const p = ({ variant: t = "default", children: l }) => {
4
- const e = {
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
- unsubscribe: "w-full list-outside list-disc pl-10 text-neutral-800"
9
- }, s = {
10
- default: "bg-primary-50 gap-4 mb-4 py-2",
11
- legal: "space-y-4 mb-4 py-2",
12
- tooltip: "gap-2 marker:text-secondary-600",
13
- unsubscribe: "mb-4 py-2"
14
- };
15
- return /* @__PURE__ */ i("ul", { className: r(e[t], s[t]), children: l });
2
+ const r = ({ variant: l = "default", children: e }) => {
3
+ const t = {
4
+ default: "bg-primary-50 gap-4 mb-4 py-2 flex list-inside list-disc flex-col px-4 text-neutral-900",
5
+ legal: "space-y-4 mb-4 py-2 list-outside list-disc pl-8 pr-4 text-neutral-800",
6
+ tooltip: "gap-2 marker:text-secondary-600 flex list-inside list-disc flex-col px-4 text-neutral-900",
7
+ unsubscribe: "mb-4 py-2 w-full list-outside list-disc pl-10 text-neutral-800"
8
+ }, s = t[l] ?? t.default;
9
+ return /* @__PURE__ */ i("ul", { className: s, children: e });
16
10
  };
17
11
  export {
18
- p as UnorderedList
12
+ r as UnorderedList
19
13
  };
@@ -10,7 +10,7 @@ export interface MarkdownProps {
10
10
  content: string;
11
11
  className?: string;
12
12
  useCustom?: boolean;
13
- variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe';
13
+ variant?: 'default' | 'legal' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
14
14
  }
15
15
 
16
16
  export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;