@npm_leadtech/legal-contracts-ui 0.142.0 → 0.142.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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -15,7 +15,7 @@ const j = ({
15
15
  comingSoonCta: s,
16
16
  docsModules: t,
17
17
  subtypeDocs: c
18
- }) => /* @__PURE__ */ f("div", { id: d, className: "flex min-w-0 scroll-mt-25 flex-col gap-6 text-neutral-900", children: [
18
+ }) => /* @__PURE__ */ f("div", { id: d, className: "flex min-w-0 scroll-mt-25 flex-col gap-6 text-neutral-800", children: [
19
19
  a && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: a }),
20
20
  n && /* @__PURE__ */ e(x, { content: n, className: "text-medium [&_p:last-child]:mb-0" }),
21
21
  i.length > 0 && /* @__PURE__ */ e(h, { linkedProducts: i }),
@@ -1,8 +1,5 @@
1
+ import { ComponentProps } from 'react';
1
2
  import { JSX } from 'react/jsx-runtime';
2
3
 
3
- export declare const Emphasis: ({ children, variant }: EmphasisProps) => JSX.Element;
4
-
5
- export interface EmphasisProps extends React.ComponentProps<'em'> {
6
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
7
- }
4
+ export declare const Emphasis: ({ children }: ComponentProps<"em">) => JSX.Element;
8
5
 
@@ -1,11 +1,5 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- const i = ({ children: a, variant: n = "default" }) => {
3
- const t = {
4
- default: "font-normal tracking-tight text-neutral-600 not-italic",
5
- ai: ""
6
- }, s = t[n] ?? t.default;
7
- return /* @__PURE__ */ r("em", { className: s, children: a });
8
- };
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ const s = ({ children: r }) => /* @__PURE__ */ m("em", { children: r });
9
3
  export {
10
- i as Emphasis
4
+ s as Emphasis
11
5
  };
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -43,8 +43,7 @@ const v = ({
43
43
  s,
44
44
  {
45
45
  className: t("text-medium [&_p:last-child]:mb-0", e ? "text-white" : "text-neutral-800"),
46
- content: o,
47
- variant: "ai"
46
+ content: o
48
47
  }
49
48
  ),
50
49
  /* @__PURE__ */ a("div", { className: "flex flex-wrap gap-4", children: c.map((r) => /* @__PURE__ */ l(
@@ -6,6 +6,6 @@ export declare interface MarkdownProps {
6
6
  content: string;
7
7
  className?: string;
8
8
  useCustom?: boolean;
9
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
9
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
10
10
  }
11
11
 
@@ -1,9 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import s, { defaultUrlTransform as a } from "react-markdown";
2
+ import a, { defaultUrlTransform as s } from "react-markdown";
3
3
  import i from "rehype-raw";
4
4
  import l from "remark-gfm";
5
- import { Anchor as c } from "./Anchor.js";
6
- import { Blockquote as f } from "./Blockquote.js";
5
+ import { Anchor as f } from "./Anchor.js";
6
+ import { Blockquote as c } from "./Blockquote.js";
7
7
  import { Code as d } from "./Code.js";
8
8
  import { Header1 as h } from "./Header1.js";
9
9
  import { Header2 as u } from "./Header2.js";
@@ -16,27 +16,27 @@ 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 U from "clsx";
19
- const y = (m) => m.startsWith("tel:") ? m : a(m), oo = ({ content: m, className: t = "", useCustom: n = !0, variant: e = "default" }) => {
19
+ const y = (m) => m.startsWith("tel:") ? m : s(m), v = ({ content: m, className: t = "", useCustom: n = !0, variant: e = "default" }) => {
20
20
  const p = {
21
21
  h1: h,
22
22
  h2: (o) => /* @__PURE__ */ r(u, { variant: e, ...o }),
23
23
  h3: C,
24
24
  h4: b,
25
25
  p: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
26
- a: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
27
27
  ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
28
  ol: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
29
29
  code: d,
30
- blockquote: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
30
+ blockquote: (o) => /* @__PURE__ */ r(c, { variant: e, ...o }),
31
31
  video: P,
32
32
  table: q,
33
33
  td: H,
34
34
  th: g,
35
35
  tr: w,
36
- em: (o) => /* @__PURE__ */ r(R, { variant: e, ...o })
36
+ em: R
37
37
  };
38
38
  return /* @__PURE__ */ r("div", { className: U("w-full min-w-0", t), children: /* @__PURE__ */ r(
39
- s,
39
+ a,
40
40
  {
41
41
  rehypePlugins: [i],
42
42
  remarkPlugins: [l],
@@ -47,5 +47,5 @@ const y = (m) => m.startsWith("tel:") ? m : a(m), oo = ({ content: m, className:
47
47
  ) });
48
48
  };
49
49
  export {
50
- oo as Markdown
50
+ v as Markdown
51
51
  };
@@ -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' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -1,31 +1,28 @@
1
+ import { ComponentProps } from 'react';
1
2
  import { JSX } from 'react/jsx-runtime';
2
3
 
3
4
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
5
 
5
6
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
7
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
8
  }
8
9
 
9
10
  export declare const Blockquote: ({ children, variant }: BlockquoteProps) => JSX.Element;
10
11
 
11
12
  export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
12
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
13
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
13
14
  }
14
15
 
15
16
  export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
16
17
 
17
- export declare const Emphasis: ({ children, variant }: EmphasisProps) => JSX.Element;
18
-
19
- export interface EmphasisProps extends React.ComponentProps<'em'> {
20
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
21
- }
18
+ export declare const Emphasis: ({ children }: ComponentProps<"em">) => JSX.Element;
22
19
 
23
20
  export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.Element;
24
21
 
25
22
  export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
26
23
 
27
24
  export interface Header2Props extends React.ComponentProps<'h2'> {
28
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
25
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
29
26
  }
30
27
 
31
28
  export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
@@ -35,13 +32,13 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
35
32
  export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
36
33
 
37
34
  export interface OrderedListProps extends React.ComponentProps<'ol'> {
38
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
35
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
39
36
  }
40
37
 
41
38
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
42
39
 
43
40
  export interface ParagraphProps extends React.ComponentProps<'p'> {
44
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
41
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
45
42
  }
46
43
 
47
44
  export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
@@ -55,7 +52,7 @@ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX
55
52
  export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
56
53
 
57
54
  export interface UnorderedListProps extends React.ComponentProps<'ul'> {
58
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
55
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
59
56
  }
60
57
 
61
58
  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' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
6
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
7
7
  }
8
8
 
@@ -10,7 +10,7 @@ export interface MarkdownProps {
10
10
  content: string;
11
11
  className?: string;
12
12
  useCustom?: boolean;
13
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
13
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
14
14
  }
15
15
 
16
16
  export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
@@ -828,7 +828,7 @@ export declare interface MarkdownProps {
828
828
  content: string;
829
829
  className?: string;
830
830
  useCustom?: boolean;
831
- variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'ai';
831
+ variant?: 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies';
832
832
  }
833
833
 
834
834
  export declare const MissionSection: FC<MissionSectionProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.142.0",
3
+ "version": "0.142.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",