@npm_leadtech/legal-contracts-ui 0.48.1 → 0.48.3
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.
- package/dist/components/Button.js +1 -1
- package/dist/components/Button.utils.d.ts +8 -0
- package/dist/components/Markdown.js +29 -29
- package/dist/components/UiComponents.d.ts +32 -0
- package/dist/components/UiComponents.js +29 -0
- package/package.json +4 -4
- /package/dist/components/{atoms/Button.utils.js → Button.utils.js} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare type ButtonSize = 'small' | 'default' | 'large';
|
|
2
|
+
|
|
3
|
+
export declare 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';
|
|
4
|
+
|
|
5
|
+
export declare const getButtonClasses: (size?: ButtonSize, variant?: ButtonVariant, iconPosition?: IconPosition, disabled?: boolean, className?: string) => string;
|
|
6
|
+
|
|
7
|
+
export declare type IconPosition = 'left' | 'right' | 'top';
|
|
8
|
+
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import t from "react-markdown";
|
|
3
3
|
import i from "remark-gfm";
|
|
4
|
-
import p from "
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { Paragraph as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
4
|
+
import { Anchor as p } from "./Anchor.js";
|
|
5
|
+
import { Blockquote as a } from "./Blockquote.js";
|
|
6
|
+
import { Code as d } from "./Code.js";
|
|
7
|
+
import { Header1 as f } from "./Header1.js";
|
|
8
|
+
import { Header2 as n } from "./Header2.js";
|
|
9
|
+
import { Header3 as l } from "./Header3.js";
|
|
10
|
+
import { Header4 as c } from "./Header4.js";
|
|
11
|
+
import { OrderedList as s } from "./OrderedList.js";
|
|
12
|
+
import { Paragraph as h } from "./Paragraph.js";
|
|
13
|
+
import { TableRow as u, TableHeader as b, TableData as k, Table as H } from "./Table.js";
|
|
14
|
+
import { UnorderedList as w } from "./UnorderedList.js";
|
|
15
|
+
import { Video as T } from "./Video.js";
|
|
16
|
+
import g from "../node_modules/.pnpm/rehype-raw@7.0.0/node_modules/rehype-raw/lib/index.js";
|
|
17
17
|
const z = ({ content: o, className: e = "", useCustom: m = !0 }) => /* @__PURE__ */ r("div", { className: e, children: /* @__PURE__ */ r(
|
|
18
18
|
t,
|
|
19
19
|
{
|
|
20
|
-
rehypePlugins: [
|
|
20
|
+
rehypePlugins: [g],
|
|
21
21
|
remarkPlugins: [i],
|
|
22
22
|
components: m ? {
|
|
23
|
-
h1:
|
|
24
|
-
h2:
|
|
25
|
-
h3:
|
|
26
|
-
h4:
|
|
27
|
-
p:
|
|
28
|
-
a:
|
|
29
|
-
ul:
|
|
30
|
-
ol:
|
|
31
|
-
code:
|
|
32
|
-
blockquote:
|
|
33
|
-
video:
|
|
34
|
-
table:
|
|
35
|
-
td:
|
|
36
|
-
th:
|
|
37
|
-
tr:
|
|
23
|
+
h1: f,
|
|
24
|
+
h2: n,
|
|
25
|
+
h3: l,
|
|
26
|
+
h4: c,
|
|
27
|
+
p: h,
|
|
28
|
+
a: p,
|
|
29
|
+
ul: w,
|
|
30
|
+
ol: s,
|
|
31
|
+
code: d,
|
|
32
|
+
blockquote: a,
|
|
33
|
+
video: T,
|
|
34
|
+
table: H,
|
|
35
|
+
td: k,
|
|
36
|
+
th: b,
|
|
37
|
+
tr: u
|
|
38
38
|
} : void 0,
|
|
39
39
|
children: o
|
|
40
40
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
export declare const Anchor: ({ children, className, ...props }: React.ComponentProps<"a">) => JSX.Element;
|
|
4
|
+
|
|
5
|
+
export declare const Blockquote: ({ children }: React.ComponentProps<"blockquote">) => JSX.Element;
|
|
6
|
+
|
|
7
|
+
export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
|
|
8
|
+
|
|
9
|
+
export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.Element;
|
|
10
|
+
|
|
11
|
+
export declare const Header2: ({ children }: React.ComponentProps<"h2">) => JSX.Element;
|
|
12
|
+
|
|
13
|
+
export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
|
|
14
|
+
|
|
15
|
+
export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.Element;
|
|
16
|
+
|
|
17
|
+
export declare const OrderedList: ({ children }: React.ComponentProps<"ol">) => JSX.Element;
|
|
18
|
+
|
|
19
|
+
export declare const Paragraph: ({ children }: React.ComponentProps<"p">) => JSX.Element;
|
|
20
|
+
|
|
21
|
+
export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
|
|
22
|
+
|
|
23
|
+
export declare const TableData: ({ children }: React.ComponentProps<"td">) => JSX.Element;
|
|
24
|
+
|
|
25
|
+
export declare const TableHeader: ({ children }: React.ComponentProps<"th">) => JSX.Element;
|
|
26
|
+
|
|
27
|
+
export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX.Element;
|
|
28
|
+
|
|
29
|
+
export declare const UnorderedList: ({ children }: React.ComponentProps<"ul">) => JSX.Element;
|
|
30
|
+
|
|
31
|
+
export declare const Video: ({ children }: React.ComponentProps<"video">) => JSX.Element;
|
|
32
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Anchor as o } from "./Anchor.js";
|
|
2
|
+
import { Blockquote as a } from "./Blockquote.js";
|
|
3
|
+
import { Code as f } from "./Code.js";
|
|
4
|
+
import { Header1 as x } from "./Header1.js";
|
|
5
|
+
import { Header2 as l } from "./Header2.js";
|
|
6
|
+
import { Header3 as b } from "./Header3.js";
|
|
7
|
+
import { Header4 as i } from "./Header4.js";
|
|
8
|
+
import { OrderedList as h } from "./OrderedList.js";
|
|
9
|
+
import { Paragraph as s } from "./Paragraph.js";
|
|
10
|
+
import { Table as g, TableData as k, TableHeader as q, TableRow as u } from "./Table.js";
|
|
11
|
+
import { UnorderedList as A } from "./UnorderedList.js";
|
|
12
|
+
import { Video as C } from "./Video.js";
|
|
13
|
+
export {
|
|
14
|
+
o as Anchor,
|
|
15
|
+
a as Blockquote,
|
|
16
|
+
f as Code,
|
|
17
|
+
x as Header1,
|
|
18
|
+
l as Header2,
|
|
19
|
+
b as Header3,
|
|
20
|
+
i as Header4,
|
|
21
|
+
h as OrderedList,
|
|
22
|
+
s as Paragraph,
|
|
23
|
+
g as Table,
|
|
24
|
+
k as TableData,
|
|
25
|
+
q as TableHeader,
|
|
26
|
+
u as TableRow,
|
|
27
|
+
A as UnorderedList,
|
|
28
|
+
C as Video
|
|
29
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.48.
|
|
3
|
+
"version": "0.48.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"import": "./dist/components/Button.js",
|
|
23
23
|
"types": "./dist/components/Button.d.ts"
|
|
24
24
|
},
|
|
25
|
-
"./components/Button.utils
|
|
26
|
-
"import": "./dist/components/Button.utils.
|
|
27
|
-
"types": "./dist/components/Button.utils.
|
|
25
|
+
"./components/Button.utils": {
|
|
26
|
+
"import": "./dist/components/Button.utils.js",
|
|
27
|
+
"types": "./dist/components/Button.utils.d.ts"
|
|
28
28
|
},
|
|
29
29
|
"./components/Card": {
|
|
30
30
|
"import": "./dist/components/Card.js",
|
|
File without changes
|