@npm_leadtech/legal-contracts-ui 0.63.3 → 0.63.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.
@@ -4,7 +4,7 @@ import { ReactNode } from 'react';
4
4
  export declare const JumboDocs: FC<JumboDocsProps>;
5
5
 
6
6
  export declare interface JumboDocsProps {
7
- trustedBadge: TrustedBadgeProps;
7
+ trustedBadge?: TrustedBadgeProps;
8
8
  imagePreview: ReactNode | null;
9
9
  title: string;
10
10
  freeDocTexts: string[];
@@ -1,50 +1,50 @@
1
1
  "use client";
2
2
  import { jsxs as l, Fragment as h, jsx as e } from "react/jsx-runtime";
3
- import { useState as u, useRef as g, useEffect as b } from "react";
4
- import { TrustedBadge as N } from "./TrustedBadge.js";
3
+ import { useState as u, useRef as g, useEffect as N } from "react";
4
+ import { TrustedBadge as b } from "./TrustedBadge.js";
5
5
  import { LinkWrapper as s } from "./LinkWrapper.js";
6
- const I = ({
7
- trustedBadge: m,
6
+ const j = ({
7
+ trustedBadge: r,
8
8
  imagePreview: d,
9
- freeDocTexts: r,
9
+ freeDocTexts: c,
10
10
  title: o,
11
11
  pdfDownload: t,
12
- wordDownload: c
12
+ wordDownload: n
13
13
  }) => {
14
- const [f, x] = u(!1), n = g(null);
15
- return b(() => {
16
- const a = n.current;
14
+ const [f, x] = u(!1), i = g(null);
15
+ return N(() => {
16
+ const a = i.current;
17
17
  if (!a) return;
18
- const i = new IntersectionObserver(
18
+ const m = new IntersectionObserver(
19
19
  ([p]) => {
20
20
  x(!p.isIntersecting);
21
21
  },
22
22
  { threshold: 0 }
23
23
  );
24
- return i.observe(a), () => {
25
- i.disconnect();
24
+ return m.observe(a), () => {
25
+ m.disconnect();
26
26
  };
27
27
  }, []), /* @__PURE__ */ l(h, { children: [
28
28
  /* @__PURE__ */ e("section", { className: "bg-neutral-25 pt-8 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ l(
29
29
  "div",
30
30
  {
31
- ref: n,
32
- className: "relative mx-auto flex max-w-300 flex-col items-center gap-8 rounded bg-white px-6 py-8 shadow-md sm:px-4 md:flex-row lg:px-14",
31
+ ref: i,
32
+ className: "relative mx-auto flex max-w-300 flex-col items-center justify-center gap-8 rounded bg-white px-6 py-8 shadow-md sm:px-4 md:flex-row lg:px-14",
33
33
  children: [
34
- /* @__PURE__ */ e(N, { ...m }),
35
- d,
34
+ r && /* @__PURE__ */ e(b, { ...r }),
35
+ /* @__PURE__ */ e("div", { className: "shadow", children: d }),
36
36
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-8 self-start", children: [
37
37
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
38
38
  /* @__PURE__ */ e("h2", { className: "text-big md:text-large font-bold", children: o }),
39
39
  /* @__PURE__ */ e("span", { className: "h-px w-full bg-neutral-200" }),
40
- r.length > 0 && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-4 md:gap-8", children: r.map((a) => /* @__PURE__ */ l("li", { className: "text-small flex gap-2", children: [
40
+ c.length > 0 && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-4 md:gap-8", children: c.map((a) => /* @__PURE__ */ l("li", { className: "text-small flex gap-2", children: [
41
41
  /* @__PURE__ */ e("span", { className: "text-primary-500", children: "•" }),
42
42
  a
43
43
  ] }, a)) })
44
44
  ] }),
45
45
  /* @__PURE__ */ l("div", { className: "flex w-full gap-4", children: [
46
46
  /* @__PURE__ */ e(s, { className: "w-full md:w-26.25", variant: "secondary-black", children: t }),
47
- /* @__PURE__ */ e(s, { className: "w-full md:w-26.25", variant: "secondary-black", children: c })
47
+ /* @__PURE__ */ e(s, { className: "w-full md:w-26.25", variant: "secondary-black", children: n })
48
48
  ] })
49
49
  ] })
50
50
  ]
@@ -52,10 +52,10 @@ const I = ({
52
52
  ) }),
53
53
  f && /* @__PURE__ */ l("div", { className: "fixed bottom-0 left-0 z-50 flex w-full gap-4 bg-white px-6 py-4 shadow sm:hidden", children: [
54
54
  /* @__PURE__ */ e(s, { className: "w-full", variant: "secondary-black", children: t }),
55
- /* @__PURE__ */ e(s, { className: "w-full", variant: "secondary-black", children: c })
55
+ /* @__PURE__ */ e(s, { className: "w-full", variant: "secondary-black", children: n })
56
56
  ] })
57
57
  ] });
58
58
  };
59
59
  export {
60
- I as JumboDocs
60
+ j as JumboDocs
61
61
  };
@@ -79,7 +79,7 @@ export type InputFieldData = {
79
79
  };
80
80
 
81
81
  export interface JumboDocsProps {
82
- trustedBadge: TrustedBadgeProps;
82
+ trustedBadge?: TrustedBadgeProps;
83
83
  imagePreview: ReactNode | null;
84
84
  title: string;
85
85
  freeDocTexts: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.63.3",
3
+ "version": "0.63.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",