@npm_leadtech/legal-contracts-ui 0.38.8 → 0.38.9
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.
|
@@ -24,7 +24,7 @@ export declare const PreviewDownload: FC<PreviewDownloadProps>;
|
|
|
24
24
|
|
|
25
25
|
export declare interface PreviewDownloadProps {
|
|
26
26
|
title: string;
|
|
27
|
-
preview: ImageWithPreviewProps;
|
|
27
|
+
preview: ImageWithPreviewProps | null;
|
|
28
28
|
cta: ButtonProps;
|
|
29
29
|
footerText: string;
|
|
30
30
|
pdfDownload: ButtonProps;
|
|
@@ -4,7 +4,7 @@ import { Modal as n } from "./Modal.js";
|
|
|
4
4
|
import { ZoomIcon as d } from "./ZoomIcon.js";
|
|
5
5
|
import { Markdown as u } from "./Markdown.js";
|
|
6
6
|
import { Button as a } from "./Button.js";
|
|
7
|
-
const
|
|
7
|
+
const w = ({
|
|
8
8
|
title: t,
|
|
9
9
|
footerText: s,
|
|
10
10
|
preview: r,
|
|
@@ -12,6 +12,7 @@ const b = ({
|
|
|
12
12
|
pdfDownload: m,
|
|
13
13
|
wordDownload: i
|
|
14
14
|
}) => {
|
|
15
|
+
if (!r) return;
|
|
15
16
|
const c = /* @__PURE__ */ e(d, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" });
|
|
16
17
|
return /* @__PURE__ */ l("div", { className: "bg-neutral-25 relative mt-24 flex flex-col items-center gap-4 rounded border border-neutral-200 p-6 pt-44 lg:max-w-76 xl:max-w-96.5", children: [
|
|
17
18
|
/* @__PURE__ */ l("div", { className: "absolute -top-24 border border-neutral-200 shadow", children: [
|
|
@@ -31,5 +32,5 @@ const b = ({
|
|
|
31
32
|
] });
|
|
32
33
|
};
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
w as PreviewDownload
|
|
35
36
|
};
|