@npm_leadtech/legal-contracts-ui 0.38.4 → 0.38.5

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,18 @@
1
+ import { ComponentPropsWithRef } from 'react';
1
2
  import { FC } from 'react';
2
3
  import { ReactNode } from 'react';
3
4
 
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
+ children: ReactNode;
7
+ size?: ButtonSize;
8
+ variant?: ButtonVariant;
9
+ iconPosition?: IconPosition;
10
+ }
11
+
12
+ export type ButtonSize = 'small' | 'default' | 'large';
13
+
14
+ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
+
4
16
  export declare const ContentItem: FC<ContentItemProps>;
5
17
 
6
18
  export declare interface ContentItemProps {
@@ -10,8 +22,16 @@ export declare interface ContentItemProps {
10
22
  linkedProducts: LinkedProductProps[];
11
23
  sampleImage: ImageWithPreviewProps | null;
12
24
  cta: string | null;
25
+ docsModules: DocsModuleProps | null;
26
+ }
27
+
28
+ export interface DocsModuleProps {
29
+ pdfDownload: ButtonProps;
30
+ wordDownload: ButtonProps;
13
31
  }
14
32
 
33
+ export type IconPosition = 'left' | 'right' | 'top';
34
+
15
35
  export interface ImageWithPreviewProps {
16
36
  small: ReactNode;
17
37
  large: ReactNode;
@@ -1,15 +1,25 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
- import { ImageWithPreview as i } from "./ImageWithPreview.js";
3
- import { LinkedProducts as n } from "./LinkedProducts.js";
4
- import { Markdown as c } from "./Markdown.js";
5
- import { Button as f } from "./Button.js";
6
- const N = ({ id: r, title: t, content: m, linkedProducts: o, sampleImage: l, cta: s }) => /* @__PURE__ */ a("div", { id: r, className: "flex flex-col gap-6 text-neutral-800", children: [
7
- t && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: t }),
8
- m && /* @__PURE__ */ e(c, { content: m, className: "text-medium [&_p:last-child]:mb-0" }),
9
- o.length > 0 && /* @__PURE__ */ e(n, { linkedProducts: o }),
10
- l && /* @__PURE__ */ e(i, { ...l }),
11
- s && /* @__PURE__ */ e(f, { className: "w-75 self-center", children: s })
12
- ] }, r);
1
+ import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
+ import { DocsModules as n } from "./DocsModules.js";
3
+ import { ImageWithPreview as f } from "./ImageWithPreview.js";
4
+ import { LinkedProducts as c } from "./LinkedProducts.js";
5
+ import { Markdown as p } from "./Markdown.js";
6
+ import { Button as x } from "./Button.js";
7
+ const b = ({
8
+ id: e,
9
+ title: t,
10
+ content: m,
11
+ linkedProducts: o,
12
+ sampleImage: l,
13
+ cta: s,
14
+ docsModules: i
15
+ }) => /* @__PURE__ */ a("div", { id: e, className: "flex flex-col gap-6 text-neutral-800", children: [
16
+ t && /* @__PURE__ */ r("h2", { className: "text-super-large font-bold", children: t }),
17
+ m && /* @__PURE__ */ r(p, { content: m, className: "text-medium [&_p:last-child]:mb-0" }),
18
+ o.length > 0 && /* @__PURE__ */ r(c, { linkedProducts: o }),
19
+ l && /* @__PURE__ */ r(f, { ...l }),
20
+ s && /* @__PURE__ */ r(x, { className: "w-75 self-center", children: s }),
21
+ i && /* @__PURE__ */ r(n, { ...i })
22
+ ] }, e);
13
23
  export {
14
- N as ContentItem
24
+ b as ContentItem
15
25
  };
@@ -0,0 +1,24 @@
1
+ import { ComponentPropsWithRef } from 'react';
2
+ import { FC } from 'react';
3
+ import { ReactNode } from 'react';
4
+
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
+ children: ReactNode;
7
+ size?: ButtonSize;
8
+ variant?: ButtonVariant;
9
+ iconPosition?: IconPosition;
10
+ }
11
+
12
+ export type ButtonSize = 'small' | 'default' | 'large';
13
+
14
+ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
+
16
+ export declare interface DocsModuleProps {
17
+ pdfDownload: ButtonProps;
18
+ wordDownload: ButtonProps;
19
+ }
20
+
21
+ export declare const DocsModules: FC<DocsModuleProps>;
22
+
23
+ export type IconPosition = 'left' | 'right' | 'top';
24
+
@@ -0,0 +1,9 @@
1
+ import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
+ import { Button as e } from "./Button.js";
3
+ const c = ({ pdfDownload: l, wordDownload: o }) => /* @__PURE__ */ r("div", { className: "flex w-75 gap-4 self-center", children: [
4
+ /* @__PURE__ */ s(e, { ...l, className: "w-full" }),
5
+ /* @__PURE__ */ s(e, { ...o, className: "w-full" })
6
+ ] });
7
+ export {
8
+ c as DocsModules
9
+ };
@@ -35,6 +35,12 @@ export interface ContentItemProps {
35
35
  linkedProducts: LinkedProductProps[];
36
36
  sampleImage: ImageWithPreviewProps | null;
37
37
  cta: string | null;
38
+ docsModules: DocsModuleProps | null;
39
+ }
40
+
41
+ export interface DocsModuleProps {
42
+ pdfDownload: ButtonProps;
43
+ wordDownload: ButtonProps;
38
44
  }
39
45
 
40
46
  export interface FaqItemProps {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.38.4",
3
+ "version": "0.38.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -222,6 +222,10 @@
222
222
  "import": "./dist/components/ContentItem.js",
223
223
  "types": "./dist/components/ContentItem.d.ts"
224
224
  },
225
+ "./components/DocsModules": {
226
+ "import": "./dist/components/DocsModules.js",
227
+ "types": "./dist/components/DocsModules.d.ts"
228
+ },
225
229
  "./components/DocumentItem": {
226
230
  "import": "./dist/components/DocumentItem.js",
227
231
  "types": "./dist/components/DocumentItem.d.ts"