@npm_leadtech/legal-contracts-ui 0.70.3 → 0.71.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.
@@ -1,12 +1,12 @@
1
- import { jsx as n } from "react/jsx-runtime";
2
- import l from "clsx";
3
- const m = ({ children: t, variant: r = "default", className: e = "", ...a }) => {
4
- const i = a.href?.toLowerCase().startsWith("mailto:"), c = r === "legal", o = {
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import s from "clsx";
3
+ const i = ({ children: e, variant: t = "default", className: a = "", ...n }) => {
4
+ const r = {
5
5
  default: "text-neutral-900 underline ",
6
- legal: "text-primary-700 cursor-pointer"
7
- }, s = o[r] ?? o.default;
8
- return c && i ? /* @__PURE__ */ n("span", { className: l(e, s), children: t }) : /* @__PURE__ */ n("a", { className: l(e, s), target: "_blank", rel: "noopener noreferrer", ...a, children: t });
6
+ legal: "text-primary-700"
7
+ }, l = r[t] ?? r.default;
8
+ return /* @__PURE__ */ o("a", { className: s(a, l), target: "_blank", rel: "noopener noreferrer", ...n, children: e });
9
9
  };
10
10
  export {
11
- m as Anchor
11
+ i as Anchor
12
12
  };
@@ -1,5 +1,5 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- const i = ({ children: t }) => /* @__PURE__ */ a("em", { className: "font-normal tracking-tight text-neutral-600 not-italic", children: t });
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ const m = ({ children: t }) => /* @__PURE__ */ o("em", { className: "font-normal text-neutral-600 not-italic", children: t });
3
3
  export {
4
- i as Emphasis
4
+ m as Emphasis
5
5
  };
@@ -2,8 +2,8 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import a from "react-markdown";
3
3
  import i from "rehype-raw";
4
4
  import d from "remark-gfm";
5
- import { Anchor as l } from "./Anchor.js";
6
- import { Blockquote as f } from "./Blockquote.js";
5
+ import { Anchor as f } from "./Anchor.js";
6
+ import { Blockquote as l } from "./Blockquote.js";
7
7
  import { Code as c } from "./Code.js";
8
8
  import { Header1 as s } from "./Header1.js";
9
9
  import { Header2 as h } from "./Header2.js";
@@ -16,18 +16,18 @@ 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 q from "clsx";
19
- const Z = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => {
19
+ const X = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => {
20
20
  const n = {
21
21
  h1: s,
22
22
  h2: (o) => /* @__PURE__ */ r(h, { variant: e, ...o }),
23
23
  h3: u,
24
24
  h4: C,
25
25
  p: (o) => /* @__PURE__ */ r(k, { variant: e, ...o }),
26
- a: (o) => /* @__PURE__ */ r(l, { variant: e, ...o }),
26
+ a: (o) => /* @__PURE__ */ r(f, { variant: e, ...o }),
27
27
  ul: (o) => /* @__PURE__ */ r(x, { variant: e, ...o }),
28
- ol: (o) => /* @__PURE__ */ r(b, { variant: e, ...o }),
28
+ ol: b,
29
29
  code: c,
30
- blockquote: f,
30
+ blockquote: l,
31
31
  video: P,
32
32
  table: T,
33
33
  td: H,
@@ -46,5 +46,5 @@ const Z = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "def
46
46
  ) });
47
47
  };
48
48
  export {
49
- Z as Markdown
49
+ X as Markdown
50
50
  };
@@ -1,8 +1,4 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
4
-
5
- export interface OrderedListProps extends React.ComponentProps<'ol'> {
6
- variant?: 'default' | 'tooltip' | 'legal';
7
- }
3
+ export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
8
4
 
@@ -1,17 +1,5 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import a from "clsx";
3
- const c = ({ variant: t = "default", children: e }) => {
4
- const l = {
5
- default: "mb-4 list-inside list-decimal text-gray-900",
6
- legal: "list-outside list-decimal pl-8 mb-4 text-neutral-800",
7
- tooltip: "mb-4 list-inside list-decimal text-gray-900"
8
- }, s = {
9
- default: "space-y-2",
10
- legal: "space-y-4",
11
- tooltip: "space-y-2"
12
- };
13
- return /* @__PURE__ */ i("ol", { className: a(l[t], s[t]), children: e });
14
- };
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ const i = ({ children: s }) => /* @__PURE__ */ e("ol", { className: "mb-4 list-inside list-decimal space-y-2 text-gray-900", children: s });
15
3
  export {
16
- c as OrderedList
4
+ i as OrderedList
17
5
  };
@@ -1,9 +1,9 @@
1
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", {
2
+ import e from "clsx";
3
+ const m = ({ variant: a = "default", children: t }) => /* @__PURE__ */ r("p", { className: e("mb-4", {
4
4
  default: "",
5
- legal: "text-neutral-800 last:mb-0 tracking-tight"
6
- }[t]), children: a });
5
+ legal: "text-neutral-800"
6
+ }[a]), children: t });
7
7
  export {
8
- n as Paragraph
8
+ m as Paragraph
9
9
  };
@@ -24,11 +24,7 @@ export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.
24
24
 
25
25
  export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.Element;
26
26
 
27
- export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
28
-
29
- export interface OrderedListProps extends React.ComponentProps<'ol'> {
30
- variant?: 'default' | 'tooltip' | 'legal';
31
- }
27
+ export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
32
28
 
33
29
  export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
34
30
 
@@ -1,17 +1,10 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import r from "clsx";
3
- const p = ({ variant: t = "default", children: e }) => {
4
- const l = {
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
- }, s = {
9
- default: "bg-primary-50 gap-4 mb-4 py-2",
10
- legal: "space-y-4 mb-4 py-2",
11
- tooltip: "gap-2 marker:text-secondary-600"
12
- };
13
- return /* @__PURE__ */ i("ul", { className: r(l[t], s[t]), children: e });
14
- };
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import e from "clsx";
3
+ const o = ({ variant: t = "default", children: r }) => /* @__PURE__ */ a("ul", { className: e("flex list-inside list-disc flex-col px-4 text-neutral-900", {
4
+ default: "bg-primary-50 gap-4 mb-4 py-2",
5
+ legal: "gap-4 mb-4 py-2",
6
+ tooltip: "gap-2 marker:text-secondary-600"
7
+ }[t]), children: r });
15
8
  export {
16
- p as UnorderedList
9
+ o as UnorderedList
17
10
  };