@npm_leadtech/legal-contracts-ui 0.41.2 → 0.41.4

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.
@@ -67,6 +67,7 @@ export interface JumboCardProps {
67
67
  export interface MarkdownProps {
68
68
  content: string;
69
69
  className?: string;
70
+ useCustom?: boolean;
70
71
  }
71
72
 
72
73
  export interface MarkdownSectionProps {
@@ -93,6 +93,7 @@ export interface JumboCardProps {
93
93
  export interface MarkdownProps {
94
94
  content: string;
95
95
  className?: string;
96
+ useCustom?: boolean;
96
97
  }
97
98
 
98
99
  export interface MarkdownSectionProps {
@@ -32,6 +32,7 @@ export interface Jumbotron2Props {
32
32
  export interface MarkdownProps {
33
33
  content: string;
34
34
  className?: string;
35
+ useCustom?: boolean;
35
36
  }
36
37
 
37
38
  export interface MarkdownSectionProps {
@@ -10,17 +10,17 @@ const k = ({
10
10
  id: t,
11
11
  title: m,
12
12
  content: l,
13
- linkedProducts: a,
14
- sampleImage: i,
15
- cta: o,
13
+ linkedProducts: i,
14
+ sampleImage: o,
15
+ cta: a,
16
16
  docsModules: n,
17
17
  subtypeDocs: f
18
- }) => /* @__PURE__ */ p("div", { id: t, className: "flex flex-col gap-6 text-neutral-800", children: [
18
+ }) => /* @__PURE__ */ p("div", { id: t, className: "flex flex-col gap-6 text-neutral-900", children: [
19
19
  m && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: m }),
20
- l && /* @__PURE__ */ e(h, { content: l, className: "text-medium text-neutral-900 [&_p:last-child]:mb-0" }),
21
- a.length > 0 && /* @__PURE__ */ e(x, { linkedProducts: a }),
22
- i && /* @__PURE__ */ e(u, { ...i }),
23
- o && /* @__PURE__ */ e(g, { className: "w-75 self-center", children: o }),
20
+ l && /* @__PURE__ */ e(h, { content: l, className: "text-medium [&_p:last-child]:mb-0" }),
21
+ i.length > 0 && /* @__PURE__ */ e(x, { linkedProducts: i }),
22
+ o && /* @__PURE__ */ e(u, { ...o }),
23
+ a && /* @__PURE__ */ e(g, { className: "w-75 self-center", children: a }),
24
24
  n && /* @__PURE__ */ e(s, { ...n }),
25
25
  f.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: f.map((r) => r.format === "Alternative" ? /* @__PURE__ */ e(c, { ...r }, r.id) : /* @__PURE__ */ e(d, { ...r }, r.id)) })
26
26
  ] }, t);
@@ -5,5 +5,6 @@ export declare const Markdown: default_2.FC<MarkdownProps>;
5
5
  export declare interface MarkdownProps {
6
6
  content: string;
7
7
  className?: string;
8
+ useCustom?: boolean;
8
9
  }
9
10
 
@@ -1,51 +1,48 @@
1
- import { jsx as m } from "react/jsx-runtime";
1
+ import { jsx as o } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import i from "react-markdown";
4
- import p from "remark-gfm";
5
- import n from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
6
- import { TableRow as a } from "./TableRow.js";
7
- import { TableH as f } from "./TableH.js";
8
- import { TableData as d } from "./TableData.js";
9
- import { Table as l } from "./Table.js";
4
+ import m from "remark-gfm";
5
+ import t from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
6
+ import { TableRow as a, TableHeader as l, TableData as f, Table as h } from "./Table.js";
10
7
  import { Video as c } from "./Video.js";
11
- import { Blockquote as h } from "./Blockquote.js";
12
- import { Code as s } from "./Code.js";
13
- import { OrderedList as u } from "./OrderedList.js";
8
+ import { Blockquote as s } from "./Blockquote.js";
9
+ import { Code as u } from "./Code.js";
10
+ import { OrderedList as k } from "./OrderedList.js";
14
11
  import { UnorderedList as b } from "./UnorderedList.js";
15
- import { Paragraph as k } from "./Paragraph.js";
12
+ import { Paragraph as g } from "./Paragraph.js";
16
13
  import { Header4 as H } from "./Header4.js";
17
- import { Header3 as w } from "./Header3.js";
18
- import { Header2 as T } from "./Header2.js";
19
- import { Header1 as g } from "./Header1.js";
20
- import { Anchor as P } from "./Anchor.js";
21
- const R = (o, r) => /* @__PURE__ */ m(P, { ...o, className: r ? "inline" : "" }), K = ({ content: o, className: r = "" }) => {
22
- const e = r.includes("inline");
23
- return /* @__PURE__ */ m("div", { className: r, children: /* @__PURE__ */ m(
14
+ import { Header3 as P } from "./Header3.js";
15
+ import { Header2 as w } from "./Header2.js";
16
+ import { Header1 as T } from "./Header1.js";
17
+ import { Anchor as v } from "./Anchor.js";
18
+ const y = (e, r) => /* @__PURE__ */ o(v, { ...e, className: r ? "inline" : "" }), F = ({ content: e, className: r = "", useCustom: n = !0 }) => {
19
+ const p = r.includes("inline");
20
+ return n ? /* @__PURE__ */ o("div", { className: r, children: /* @__PURE__ */ o(
24
21
  i,
25
22
  {
26
- rehypePlugins: [n],
27
- remarkPlugins: [p],
23
+ rehypePlugins: [t],
24
+ remarkPlugins: [m],
28
25
  components: {
29
- h1: g,
30
- h2: T,
31
- h3: w,
26
+ h1: T,
27
+ h2: w,
28
+ h3: P,
32
29
  h4: H,
33
- p: k,
34
- a: (t) => R(t, e),
30
+ p: g,
31
+ a: (d) => y(d, p),
35
32
  ul: b,
36
- ol: u,
37
- code: s,
38
- blockquote: h,
33
+ ol: k,
34
+ code: u,
35
+ blockquote: s,
39
36
  video: c,
40
- table: l,
41
- td: d,
42
- th: f,
37
+ table: h,
38
+ td: f,
39
+ th: l,
43
40
  tr: a
44
41
  },
45
- children: o
42
+ children: e
46
43
  }
47
- ) });
44
+ ) }) : /* @__PURE__ */ o("div", { className: r, children: /* @__PURE__ */ o(i, { rehypePlugins: [t], remarkPlugins: [m], children: e }) });
48
45
  };
49
46
  export {
50
- K as Markdown
47
+ F as Markdown
51
48
  };
@@ -4,6 +4,7 @@ import { ReactNode } from 'react';
4
4
  export interface MarkdownProps {
5
5
  content: string;
6
6
  className?: string;
7
+ useCustom?: boolean;
7
8
  }
8
9
 
9
10
  export declare const MarkdownSection: FC<MarkdownSectionProps>;
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { SectionHeading as a } from "./SectionHeading.js";
4
- import { Markdown as n } from "./Markdown.js";
5
- import { Button as s } from "./Button.js";
4
+ import { Markdown as s } from "./Markdown.js";
5
+ import { Button as n } from "./Button.js";
6
6
  const d = ({ title: t, documentPreview: o, cta: r }) => /* @__PURE__ */ e("section", { className: "bg-secondary-50 px-4 py-10 text-neutral-800 md:px-8 xl:px-30", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-300 flex-col items-center gap-8", children: [
7
7
  /* @__PURE__ */ e(a, { title: t, titleClass: "font-bold font-inter text-large" }),
8
- /* @__PURE__ */ e("div", { className: "flex max-h-89.75 overflow-auto border border-neutral-200 bg-white py-2 ps-1 pe-8", children: /* @__PURE__ */ e(n, { className: "select-none", content: o }) }),
9
- /* @__PURE__ */ e(s, { className: "w-full md:w-auto", ...r })
8
+ /* @__PURE__ */ e("div", { className: "flex max-h-89.75 overflow-auto border border-neutral-200 bg-white py-2 ps-1 pe-8", children: /* @__PURE__ */ e(s, { useCustom: !1, className: "select-none", content: o }) }),
9
+ /* @__PURE__ */ e(n, { className: "w-full md:w-auto", ...r })
10
10
  ] }) });
11
11
  export {
12
12
  d as PreviewSection
@@ -1,4 +1,10 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
3
  export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
4
+
5
+ export declare const TableData: ({ children }: React.ComponentProps<"td">) => JSX.Element;
6
+
7
+ export declare const TableHeader: ({ children }: React.ComponentProps<"th">) => JSX.Element;
8
+
9
+ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX.Element;
4
10
 
@@ -1,5 +1,8 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const a = ({ children: r }) => /* @__PURE__ */ e("div", { className: "my-4 overflow-x-auto", children: /* @__PURE__ */ e("table", { className: "my-10 min-w-full border-collapse rounded border-gray-500 text-center text-gray-900", children: r }) });
2
+ const t = ({ children: r }) => /* @__PURE__ */ e("div", { className: "my-4 overflow-x-auto", children: /* @__PURE__ */ e("table", { className: "my-10 min-w-full border-collapse rounded border-gray-500 text-center text-gray-900", children: r }) }), o = ({ children: r }) => /* @__PURE__ */ e("th", { className: "bg-primary-100 static h-10 border-r border-r-neutral-200 p-2 font-bold first:rounded-tl last:rounded-tr last:border-0", children: r }), l = ({ children: r }) => /* @__PURE__ */ e("tr", { className: "even:bg-neutral-25 h-10 odd:bg-white", children: r }), d = ({ children: r }) => /* @__PURE__ */ e("td", { className: "border-r border-r-neutral-200 p-2 last:border-0", children: r });
3
3
  export {
4
- a as Table
4
+ t as Table,
5
+ d as TableData,
6
+ o as TableHeader,
7
+ l as TableRow
5
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.41.2",
3
+ "version": "0.41.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- export declare const TableData: ({ children }: React.ComponentProps<"td">) => JSX.Element;
4
-
@@ -1,5 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- const o = ({ children: r }) => /* @__PURE__ */ a("td", { className: "border-r border-r-neutral-200 p-2 last:border-0", children: r });
3
- export {
4
- o as TableData
5
- };
@@ -1,4 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- export declare const TableH: ({ children }: React.ComponentProps<"th">) => JSX.Element;
4
-
@@ -1,5 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- const e = ({ children: r }) => /* @__PURE__ */ t("th", { className: "bg-primary-100 static h-10 border-r border-r-neutral-200 p-2 font-bold first:rounded-tl last:rounded-tr last:border-0", children: r });
3
- export {
4
- e as TableH
5
- };
@@ -1,4 +0,0 @@
1
- import { JSX } from 'react/jsx-runtime';
2
-
3
- export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX.Element;
4
-
@@ -1,5 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- const r = ({ children: e }) => /* @__PURE__ */ o("tr", { className: "even:bg-neutral-25 h-10 odd:bg-white", children: e });
3
- export {
4
- r as TableRow
5
- };