@npm_leadtech/legal-contracts-ui 0.41.6 → 0.41.7

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,6 +1,6 @@
1
- import { default as default_2 } from 'react';
1
+ import { FC } from 'react';
2
2
 
3
- export declare const Markdown: default_2.FC<MarkdownProps>;
3
+ export declare const Markdown: FC<MarkdownProps>;
4
4
 
5
5
  export declare interface MarkdownProps {
6
6
  content: string;
@@ -1,48 +1,44 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import "react";
3
- import i from "react-markdown";
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";
7
- import { Video as c } from "./Video.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";
11
- import { UnorderedList as b } from "./UnorderedList.js";
12
- import { Paragraph as g } from "./Paragraph.js";
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import t from "react-markdown";
3
+ import i from "remark-gfm";
4
+ import p from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
5
+ import { TableRow as a, TableHeader as d, TableData as f, Table as n } from "./Table.js";
6
+ import { Video as l } from "./Video.js";
7
+ import { Blockquote as c } from "./Blockquote.js";
8
+ import { Code as s } from "./Code.js";
9
+ import { OrderedList as h } from "./OrderedList.js";
10
+ import { UnorderedList as u } from "./UnorderedList.js";
11
+ import { Anchor as b } from "./Anchor.js";
12
+ import { Paragraph as k } from "./Paragraph.js";
13
13
  import { Header4 as H } from "./Header4.js";
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(
21
- i,
22
- {
23
- rehypePlugins: [t],
24
- remarkPlugins: [m],
25
- components: {
26
- h1: T,
27
- h2: w,
28
- h3: P,
29
- h4: H,
30
- p: g,
31
- a: (d) => y(d, p),
32
- ul: b,
33
- ol: k,
34
- code: u,
35
- blockquote: s,
36
- video: c,
37
- table: h,
38
- td: f,
39
- th: l,
40
- tr: a
41
- },
42
- children: e
43
- }
44
- ) }) : /* @__PURE__ */ o("div", { className: r, children: /* @__PURE__ */ o(i, { rehypePlugins: [t], remarkPlugins: [m], children: e }) });
45
- };
14
+ import { Header3 as w } from "./Header3.js";
15
+ import { Header2 as T } from "./Header2.js";
16
+ import { Header1 as g } from "./Header1.js";
17
+ const z = ({ content: o, className: e = "", useCustom: m = !0 }) => /* @__PURE__ */ r("div", { className: e, children: /* @__PURE__ */ r(
18
+ t,
19
+ {
20
+ rehypePlugins: [p],
21
+ remarkPlugins: [i],
22
+ components: m ? {
23
+ h1: g,
24
+ h2: T,
25
+ h3: w,
26
+ h4: H,
27
+ p: k,
28
+ a: b,
29
+ ul: u,
30
+ ol: h,
31
+ code: s,
32
+ blockquote: c,
33
+ video: l,
34
+ table: n,
35
+ td: f,
36
+ th: d,
37
+ tr: a
38
+ } : void 0,
39
+ children: o
40
+ }
41
+ ) });
46
42
  export {
47
- F as Markdown
43
+ z as Markdown
48
44
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.41.6",
3
+ "version": "0.41.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",