@npm_leadtech/legal-contracts-ui 0.65.4 → 0.65.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.
Files changed (34) hide show
  1. package/dist/components/Anchor.d.ts +1 -1
  2. package/dist/components/Anchor.js +7 -10
  3. package/dist/components/ChevronRightIcon.js +24 -9
  4. package/dist/components/ContentItem.js +10 -10
  5. package/dist/components/Header2.d.ts +5 -1
  6. package/dist/components/Header2.js +6 -2
  7. package/dist/components/ImageWithPreview.js +7 -12
  8. package/dist/components/LegalTemplate.d.ts +13 -0
  9. package/dist/components/LegalTemplate.js +10 -0
  10. package/dist/components/Markdown.d.ts +1 -1
  11. package/dist/components/Markdown.js +21 -21
  12. package/dist/components/Modal.d.ts +2 -5
  13. package/dist/components/Modal.js +15 -35
  14. package/dist/components/Paragraph.d.ts +5 -1
  15. package/dist/components/Paragraph.js +6 -2
  16. package/dist/components/Preform.d.ts +0 -6
  17. package/dist/components/Preform.js +33 -35
  18. package/dist/components/PreviewDownload.js +13 -15
  19. package/dist/components/ProductTemplate.d.ts +1 -17
  20. package/dist/components/ProductTemplate.js +31 -34
  21. package/dist/components/UiComponents.d.ts +12 -4
  22. package/dist/components/UnorderedList.d.ts +1 -1
  23. package/dist/components/UnorderedList.js +5 -6
  24. package/dist/globals.css +1 -1
  25. package/package.json +4 -16
  26. package/dist/components/FreeDocumentModal.d.ts +0 -14
  27. package/dist/components/FreeDocumentModal.js +0 -24
  28. package/dist/components/LegalesTemplate.d.ts +0 -18
  29. package/dist/components/LegalesTemplate.js +0 -10
  30. package/dist/components/QuestionIcon.d.ts +0 -4
  31. package/dist/components/QuestionIcon.js +0 -17
  32. package/dist/components/Tooltips.d.ts +0 -9
  33. package/dist/components/Tooltips.js +0 -13
  34. package/dist/components/index.d.ts +0 -1018
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
3
3
  export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
4
4
 
5
5
  export interface AnchorProps extends React.ComponentProps<'a'> {
6
- variant?: 'default' | 'legal' | 'tooltip';
6
+ variant?: 'default' | 'legal';
7
7
  }
8
8
 
@@ -1,12 +1,9 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import s from "clsx";
3
- const i = ({ children: e, variant: t = "default", className: a = "", ...n }) => {
4
- const r = {
5
- default: "text-neutral-900 underline ",
6
- legal: "text-primary-700"
7
- }, l = r[t] ?? r.default;
8
- return /* @__PURE__ */ o("a", { className: s(a, l), target: "_blank", rel: "noopener noreferrer", ...n, children: e });
9
- };
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import o from "clsx";
3
+ const m = ({ children: r, variant: e = "default", className: t = "", ...a }) => /* @__PURE__ */ n("a", { className: o(t, {
4
+ default: "text-neutral-900 underline ",
5
+ legal: "text-primary-700"
6
+ }[e]), target: "_blank", rel: "noopener noreferrer", ...a, children: r });
10
7
  export {
11
- i as Anchor
8
+ m as Anchor
12
9
  };
@@ -1,12 +1,27 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as i } from "react/jsx-runtime";
2
2
  import "react";
3
- const n = (t) => /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", ...t, children: /* @__PURE__ */ o(
4
- "path",
5
- {
6
- d: "M10.4103 6.70527C10.0208 6.31569 9.38915 6.31569 8.99958 6.70527C8.6103 7.09454 8.60996 7.72557 8.99881 8.11526L12.875 11.9999L8.99881 15.8845C8.60996 16.2742 8.6103 16.9052 8.99958 17.2945C9.38915 17.6841 10.0208 17.6841 10.4103 17.2945L14.9979 12.707C15.3884 12.3165 15.3884 11.6833 14.9979 11.2928L10.4103 6.70527Z",
7
- fill: "#05646E"
8
- }
9
- ) });
3
+ const t = (l) => /* @__PURE__ */ r("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", ...l, children: [
4
+ /* @__PURE__ */ i(
5
+ "mask",
6
+ {
7
+ id: "mask0_2507_4542",
8
+ width: "8",
9
+ height: "12",
10
+ x: "8",
11
+ y: "6",
12
+ maskUnits: "userSpaceOnUse",
13
+ style: { maskType: "luminance" },
14
+ children: /* @__PURE__ */ i(
15
+ "path",
16
+ {
17
+ fill: "var(--color-neutral-white)",
18
+ d: "M10.41 6.705A.998.998 0 0 0 9 8.115L12.875 12l-3.876 3.885a.998.998 0 0 0 1.411 1.41l4.588-4.588a1 1 0 0 0 0-1.414z"
19
+ }
20
+ )
21
+ }
22
+ ),
23
+ /* @__PURE__ */ i("g", { mask: "url(#mask0_2507_4542)", children: /* @__PURE__ */ i("path", { fill: "var(--color-primary-700)", d: "M0 0h24v24H0z" }) })
24
+ ] });
10
25
  export {
11
- n as ChevronRightIcon
26
+ t as ChevronRightIcon
12
27
  };
@@ -1,28 +1,28 @@
1
1
  import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import { ImageWithPreview as p } from "./ImageWithPreview.js";
2
+ import { ImageWithPreview as c } from "./ImageWithPreview.js";
3
3
  import { LinkedProducts as d } from "./LinkedProducts.js";
4
4
  import { Markdown as h } from "./Markdown.js";
5
- import { LinkWrapper as a } from "./LinkWrapper.js";
5
+ import { LinkWrapper as l } from "./LinkWrapper.js";
6
6
  import { AlternativeSubtypeDocument as x } from "./AlternativeSubtypeDocument.js";
7
7
  import { DefaultSubtypeDocument as u } from "./DefaultSubtypeDocument.js";
8
8
  const y = ({
9
- id: c,
9
+ id: p,
10
10
  title: t,
11
11
  content: n,
12
12
  linkedProducts: m,
13
13
  sampleImage: i,
14
14
  cta: o,
15
- docsModules: l,
15
+ docsModules: a,
16
16
  subtypeDocs: f
17
- }) => /* @__PURE__ */ s("div", { id: c, className: "flex scroll-mt-25 flex-col gap-6 text-neutral-900", children: [
17
+ }) => /* @__PURE__ */ s("div", { id: p, className: "flex flex-col gap-6 text-neutral-900", children: [
18
18
  t && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: t }),
19
19
  n && /* @__PURE__ */ e(h, { content: n, className: "text-medium [&_p:last-child]:mb-0" }),
20
20
  m.length > 0 && /* @__PURE__ */ e(d, { linkedProducts: m }),
21
- i && /* @__PURE__ */ e(p, { ...i }),
22
- !!o && /* @__PURE__ */ e(a, { className: "w-75 self-center text-center", children: o }),
23
- l && /* @__PURE__ */ s("div", { className: "flex w-75 gap-4 self-center", children: [
24
- /* @__PURE__ */ e(a, { className: "w-full", variant: "secondary-black", children: l.pdfDownload }),
25
- /* @__PURE__ */ e(a, { className: "w-full", variant: "secondary-black", children: l.wordDownload })
21
+ i && /* @__PURE__ */ e(c, { ...i }),
22
+ !!o && /* @__PURE__ */ e(l, { className: "w-75 self-center", children: o }),
23
+ a && /* @__PURE__ */ s("div", { className: "flex w-75 gap-4 self-center", children: [
24
+ /* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children: a.pdfDownload }),
25
+ /* @__PURE__ */ e(l, { className: "w-full", variant: "secondary-black", children: a.wordDownload })
26
26
  ] }),
27
27
  f.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: f.map((r) => r.format === "Alternative" ? /* @__PURE__ */ e(x, { ...r }, r.id) : /* @__PURE__ */ e(u, { ...r }, r.id)) })
28
28
  ] });
@@ -1,4 +1,8 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const Header2: ({ children }: React.ComponentProps<"h2">) => JSX.Element;
3
+ export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
4
+
5
+ export interface Header2Props extends React.ComponentProps<'h2'> {
6
+ variant?: 'default' | 'legal';
7
+ }
4
8
 
@@ -1,5 +1,9 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const m = ({ children: t }) => /* @__PURE__ */ e("h2", { className: "mt-5 mb-6 text-3xl font-bold text-neutral-800", children: t });
2
+ import r from "clsx";
3
+ const s = ({ children: t, variant: a = "default" }) => /* @__PURE__ */ e("h2", { className: r("mt-5 text-3xl font-bold", {
4
+ default: "mb-3 text-gray-900",
5
+ legal: "mb-6 text-neutral-800"
6
+ }[a]), children: t });
3
7
  export {
4
- m as Header2
8
+ s as Header2
5
9
  };
@@ -1,15 +1,10 @@
1
- "use client";
2
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
- import { useState as s } from "react";
4
- import { ZoomIcon as a } from "./ZoomIcon.js";
5
- import { Modal as m } from "./Modal.js";
6
- const u = ({ small: r, large: i }) => {
7
- const [o, t] = s(!1);
8
- return /* @__PURE__ */ l("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
9
- /* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: r }),
10
- /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(a, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), isOpen: o, setIsOpen: t, children: i }) })
11
- ] });
12
- };
2
+ import { Modal as o } from "./Modal.js";
3
+ import { ZoomIcon as t } from "./ZoomIcon.js";
4
+ const n = ({ small: r, large: i }) => /* @__PURE__ */ l("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
5
+ /* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: r }),
6
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(o, { trigger: /* @__PURE__ */ e(t, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), children: i }) })
7
+ ] });
13
8
  export {
14
- u as ImageWithPreview
9
+ n as ImageWithPreview
15
10
  };
@@ -0,0 +1,13 @@
1
+ import { FC } from 'react';
2
+
3
+ export interface Jumbotron3Props {
4
+ title: string;
5
+ }
6
+
7
+ export declare const LegalTemplate: FC<LegalTemplateProps>;
8
+
9
+ export declare interface LegalTemplateProps {
10
+ jumbotron: Jumbotron3Props;
11
+ legalSection: string;
12
+ }
13
+
@@ -0,0 +1,10 @@
1
+ import { jsxs as o, jsx as l } from "react/jsx-runtime";
2
+ import { Jumbotron3 as t } from "./Jumbotron3.js";
3
+ import { Markdown as a } from "./Markdown.js";
4
+ const i = ({ jumbotron: e, legalSection: r }) => /* @__PURE__ */ o("main", { className: "bg-neutral-white flex w-full flex-col", children: [
5
+ /* @__PURE__ */ l(t, { ...e }),
6
+ /* @__PURE__ */ l("div", { className: "xl:px-ds-10xl px-6 py-8 md:px-8", children: /* @__PURE__ */ l(a, { content: r, variant: "legal" }) })
7
+ ] });
8
+ export {
9
+ i as LegalTemplate
10
+ };
@@ -6,6 +6,6 @@ export declare interface MarkdownProps {
6
6
  content: string;
7
7
  className?: string;
8
8
  useCustom?: boolean;
9
- variant?: 'default' | 'legal' | 'tooltip';
9
+ variant?: 'default' | 'legal';
10
10
  }
11
11
 
@@ -1,46 +1,46 @@
1
- import { jsx as o } from "react/jsx-runtime";
1
+ import { jsx as r } from "react/jsx-runtime";
2
2
  import n from "react-markdown";
3
- import i from "rehype-raw";
4
- import a from "remark-gfm";
3
+ import a from "rehype-raw";
4
+ import i from "remark-gfm";
5
5
  import { Anchor as d } from "./Anchor.js";
6
6
  import { Blockquote as f } from "./Blockquote.js";
7
7
  import { Code as c } from "./Code.js";
8
- import { Header1 as l } from "./Header1.js";
8
+ import { Header1 as h } from "./Header1.js";
9
9
  import { Header2 as s } from "./Header2.js";
10
- import { Header3 as h } from "./Header3.js";
10
+ import { Header3 as l } from "./Header3.js";
11
11
  import { Header4 as u } from "./Header4.js";
12
12
  import { OrderedList as C } from "./OrderedList.js";
13
13
  import { Paragraph as b } from "./Paragraph.js";
14
- import { TableRow as k, TableHeader as H, TableData as w, Table as T } from "./Table.js";
15
- import { UnorderedList as g } from "./UnorderedList.js";
14
+ import { TableRow as k, TableHeader as g, TableData as H, Table as w } from "./Table.js";
15
+ import { UnorderedList as T } from "./UnorderedList.js";
16
16
  import { Video as P } from "./Video.js";
17
17
  import { Emphasis as R } from "./Emphasis.js";
18
- const N = ({ content: e, className: t = "", useCustom: p = !0, variant: m = "default" }) => /* @__PURE__ */ o("div", { className: t, children: /* @__PURE__ */ o(
18
+ const S = ({ content: m, className: t = "", useCustom: p = !0, variant: e = "default" }) => /* @__PURE__ */ r("div", { className: t, children: /* @__PURE__ */ r(
19
19
  n,
20
20
  {
21
- rehypePlugins: [i],
22
- remarkPlugins: [a],
21
+ rehypePlugins: [a],
22
+ remarkPlugins: [i],
23
23
  components: p ? {
24
- h1: l,
25
- h2: s,
26
- h3: h,
24
+ h1: h,
25
+ h2: (o) => /* @__PURE__ */ r(s, { variant: e, ...o }),
26
+ h3: l,
27
27
  h4: u,
28
- p: b,
29
- a: (r) => /* @__PURE__ */ o(d, { variant: m, ...r }),
30
- ul: (r) => /* @__PURE__ */ o(g, { variant: m, ...r }),
28
+ p: (o) => /* @__PURE__ */ r(b, { variant: e, ...o }),
29
+ a: (o) => /* @__PURE__ */ r(d, { variant: e, ...o }),
30
+ ul: (o) => /* @__PURE__ */ r(T, { variant: e, ...o }),
31
31
  ol: C,
32
32
  code: c,
33
33
  blockquote: f,
34
34
  video: P,
35
- table: T,
36
- td: w,
37
- th: H,
35
+ table: w,
36
+ td: H,
37
+ th: g,
38
38
  tr: k,
39
39
  em: R
40
40
  } : void 0,
41
- children: e
41
+ children: m
42
42
  }
43
43
  ) });
44
44
  export {
45
- N as Markdown
45
+ S as Markdown
46
46
  };
@@ -1,13 +1,10 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
3
 
4
- export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose }: ModalProps) => JSX.Element;
4
+ export declare const Modal: ({ trigger, children }: ModalProps) => JSX.Element;
5
5
 
6
6
  export interface ModalProps {
7
- trigger?: ReactNode;
7
+ trigger: ReactNode;
8
8
  children: ReactNode;
9
- isOpen: boolean;
10
- setIsOpen: (open: boolean) => void;
11
- showClose?: boolean;
12
9
  }
13
10
 
@@ -1,43 +1,23 @@
1
1
  "use client";
2
- import { jsxs as t, Fragment as c, jsx as e } from "react/jsx-runtime";
3
- import "react";
4
- import { CloseIcon as u } from "./CloseIcon.js";
5
- const p = ({ trigger: l, children: n, isOpen: r, setIsOpen: a, showClose: i }) => {
6
- const o = () => {
7
- a(!r);
2
+ import { jsxs as l, Fragment as a, jsx as e } from "react/jsx-runtime";
3
+ import { useState as c } from "react";
4
+ const f = ({ trigger: r, children: s }) => {
5
+ const [t, i] = c(!1), o = () => {
6
+ i(!t);
8
7
  };
9
- return /* @__PURE__ */ t(c, { children: [
10
- !!l && /* @__PURE__ */ e("button", { "aria-label": "zoom", onClick: o, className: "flex w-full cursor-pointer justify-center", children: l }),
11
- r && /* @__PURE__ */ e(
12
- "button",
8
+ return /* @__PURE__ */ l(a, { children: [
9
+ /* @__PURE__ */ e("button", { "aria-label": "zoom", onClick: o, className: "cursor-pointer", children: r }),
10
+ t && /* @__PURE__ */ e("button", { className: "bg-primary-900/80 fixed inset-0 z-50 flex items-center justify-center", onClick: o, children: /* @__PURE__ */ e("div", { className: "relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ e(
11
+ "div",
13
12
  {
14
- className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
15
- onClick: o,
16
- children: /* @__PURE__ */ e("div", { className: "relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ t(
17
- "div",
18
- {
19
- className: "relative",
20
- onClick: (s) => {
21
- s.stopPropagation();
22
- },
23
- children: [
24
- i && /* @__PURE__ */ e(
25
- "span",
26
- {
27
- className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
28
- onClick: o,
29
- "aria-label": "Close",
30
- children: /* @__PURE__ */ e(u, {})
31
- }
32
- ),
33
- n
34
- ]
35
- }
36
- ) })
13
+ onClick: (n) => {
14
+ n.stopPropagation();
15
+ },
16
+ children: s
37
17
  }
38
- )
18
+ ) }) })
39
19
  ] });
40
20
  };
41
21
  export {
42
- p as Modal
22
+ f as Modal
43
23
  };
@@ -1,4 +1,8 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const Paragraph: ({ children }: React.ComponentProps<"p">) => JSX.Element;
3
+ export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
4
+
5
+ export interface ParagraphProps extends React.ComponentProps<'p'> {
6
+ variant?: 'default' | 'legal';
7
+ }
4
8
 
@@ -1,5 +1,9 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- const o = ({ children: a }) => /* @__PURE__ */ r("p", { className: "mb-4", children: a });
2
+ import e from "clsx";
3
+ const m = ({ variant: a = "default", children: t }) => /* @__PURE__ */ r("p", { className: e("mb-4", {
4
+ default: "",
5
+ legal: "text-neutral-800"
6
+ }[a]), children: t });
3
7
  export {
4
- o as Paragraph
8
+ m as Paragraph
5
9
  };
@@ -27,7 +27,6 @@ export declare interface PreformProps {
27
27
  cta: ReactNode;
28
28
  radioFieldData?: RadioFieldData;
29
29
  inputFieldData?: InputFieldData;
30
- tooltips: TooltipsProps[];
31
30
  }
32
31
 
33
32
  export declare type RadioFieldData = {
@@ -39,11 +38,6 @@ export declare type RadioFieldData = {
39
38
  onClick: (str: string) => void;
40
39
  };
41
40
 
42
- export interface TooltipsProps {
43
- title: string;
44
- content: string;
45
- }
46
-
47
41
  export interface TrustedBadgeProps {
48
42
  children: ReactNode;
49
43
  }
@@ -1,59 +1,57 @@
1
1
  "use client";
2
- import { jsxs as c, Fragment as p, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as r, Fragment as n, jsx as l } from "react/jsx-runtime";
3
3
  import "react";
4
- import { Tooltips as x } from "./Tooltips.js";
5
- import { PreformMobile as a } from "./PreformMobile.js";
6
- import { PreformOption as f } from "./PreformOption.js";
7
- import { TrustedBadge as i } from "./TrustedBadge.js";
8
- import { Input as h } from "./Input.js";
9
- import { LinkWrapper as t } from "./LinkWrapper.js";
10
- const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: n }) => /* @__PURE__ */ c(p, { children: [
11
- /* @__PURE__ */ e("section", { className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
12
- /* @__PURE__ */ e(i, { ...s }),
13
- m?.isVisible && /* @__PURE__ */ c(p, { children: [
14
- /* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
15
- /* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
16
- m.options.map((r) => /* @__PURE__ */ e(
4
+ import { PreformMobile as x } from "./PreformMobile.js";
5
+ import { PreformOption as p } from "./PreformOption.js";
6
+ import { TrustedBadge as a } from "./TrustedBadge.js";
7
+ import { Input as f } from "./Input.js";
8
+ import { LinkWrapper as i } from "./LinkWrapper.js";
9
+ const u = ({ trustedBadge: c, cta: o, inputFieldData: e, radioFieldData: m }) => /* @__PURE__ */ r(n, { children: [
10
+ /* @__PURE__ */ l("section", { className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ r("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
11
+ /* @__PURE__ */ l(a, { ...c }),
12
+ m?.isVisible && /* @__PURE__ */ r(n, { children: [
13
+ /* @__PURE__ */ l("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
14
+ /* @__PURE__ */ r("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
15
+ m.options.map((s) => /* @__PURE__ */ l(
17
16
  "div",
18
17
  {
19
18
  className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
20
- children: /* @__PURE__ */ e(
21
- f,
19
+ children: /* @__PURE__ */ l(
20
+ p,
22
21
  {
23
- ...r,
24
- selected: r.value === m.radioSelected,
22
+ ...s,
23
+ selected: s.value === m.radioSelected,
25
24
  onClick: m.onClick
26
25
  }
27
26
  )
28
27
  },
29
- r.value
28
+ s.value
30
29
  )),
31
- l?.isVisible && /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(
32
- h,
30
+ e?.isVisible && /* @__PURE__ */ l("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ l(
31
+ f,
33
32
  {
34
- id: l.id,
35
- label: l.label,
36
- name: l.name,
37
- placeholder: l.placeholder,
38
- value: l.value,
39
- onInputChange: l.onChange
33
+ id: e.id,
34
+ label: e.label,
35
+ name: e.name,
36
+ placeholder: e.placeholder,
37
+ value: e.value,
38
+ onInputChange: e.onChange
40
39
  }
41
- ) }, l.name)
40
+ ) }, e.name)
42
41
  ] })
43
42
  ] }),
44
- /* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
45
- n.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: n.map((r) => /* @__PURE__ */ e(x, { ...r }, r.title)) })
43
+ /* @__PURE__ */ l(i, { variant: "primary-green", children: o })
46
44
  ] }) }),
47
- /* @__PURE__ */ e(
48
- a,
45
+ /* @__PURE__ */ l(
46
+ x,
49
47
  {
50
48
  cta: o,
51
- trustedBadge: s,
52
- inputFieldData: l,
49
+ trustedBadge: c,
50
+ inputFieldData: e,
53
51
  radioFieldData: m
54
52
  }
55
53
  )
56
54
  ] });
57
55
  export {
58
- k as Preform
56
+ u as Preform
59
57
  };
@@ -1,38 +1,36 @@
1
- "use client";
2
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
3
- import { useState as f } from "react";
4
- import { ZoomIcon as u } from "./ZoomIcon.js";
5
- import { Modal as p } from "./Modal.js";
6
- import { Markdown as x } from "./Markdown.js";
2
+ import "react";
3
+ import { Modal as o } from "./Modal.js";
4
+ import { ZoomIcon as d } from "./ZoomIcon.js";
5
+ import { Markdown as u } from "./Markdown.js";
7
6
  import { LinkWrapper as r } from "./LinkWrapper.js";
8
- const y = ({
7
+ const N = ({
9
8
  title: t,
10
9
  footerText: s,
11
10
  preview: a,
12
- cta: n,
13
- pdfDownload: i,
11
+ cta: i,
12
+ pdfDownload: n,
14
13
  wordDownload: c
15
14
  }) => {
16
- const [o, m] = f(!1);
17
15
  if (!a) return;
18
- const d = /* @__PURE__ */ e(u, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" });
16
+ const m = /* @__PURE__ */ e(d, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" });
19
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: [
20
18
  /* @__PURE__ */ l("div", { className: "absolute -top-24 border border-neutral-200 shadow", children: [
21
19
  /* @__PURE__ */ e("div", { className: "h-full max-h-64.5 w-full max-w-50 overflow-hidden", children: a.small }),
22
- /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(p, { trigger: d, isOpen: o, setIsOpen: m, children: a.large }) })
20
+ /* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(o, { trigger: m, children: a.large }) })
23
21
  ] }),
24
- /* @__PURE__ */ e(x, { className: "text-medium text-center text-neutral-800 [&_p:last-child]:mb-0", content: t }),
25
- /* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children: n }),
22
+ /* @__PURE__ */ e(u, { className: "text-medium text-center text-neutral-800 [&_p:last-child]:mb-0", content: t }),
23
+ /* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children: i }),
26
24
  /* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
27
25
  /* @__PURE__ */ l("div", { className: "flex w-full flex-col items-center gap-6", children: [
28
26
  /* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: s }),
29
27
  /* @__PURE__ */ l("div", { className: "flex w-full gap-4", children: [
30
- /* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: i }),
28
+ /* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: n }),
31
29
  /* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: c })
32
30
  ] })
33
31
  ] })
34
32
  ] });
35
33
  };
36
34
  export {
37
- y as PreviewDownload
35
+ N as PreviewDownload
38
36
  };
@@ -63,15 +63,6 @@ export interface FaqSectionProps {
63
63
  className?: string;
64
64
  }
65
65
 
66
- export interface FreeDocumentModalProps {
67
- image?: ReactNode;
68
- title?: string;
69
- description?: string;
70
- cta?: ReactNode;
71
- isOpen: boolean;
72
- setIsOpen: (open: boolean) => void;
73
- }
74
-
75
66
  export interface ImageWithPreviewProps {
76
67
  small: ReactNode;
77
68
  large: ReactNode;
@@ -121,7 +112,6 @@ export interface PreformProps {
121
112
  cta: ReactNode;
122
113
  radioFieldData?: RadioFieldData;
123
114
  inputFieldData?: InputFieldData;
124
- tooltips: TooltipsProps[];
125
115
  }
126
116
 
127
117
  export interface PreviewDownloadProps {
@@ -162,8 +152,7 @@ export declare interface ProductTemplateProps {
162
152
  faqSection: FaqSectionProps;
163
153
  previewDownload: PreviewDownloadProps;
164
154
  previewSection?: PreviewSectionProps;
165
- tryNowSection?: TryNowSectionProps;
166
- freeDocModal?: FreeDocumentModalProps;
155
+ tryNowSection: TryNowSectionProps;
167
156
  }
168
157
 
169
158
  export type RadioFieldData = {
@@ -185,11 +174,6 @@ export interface TableOfContentsProps {
185
174
  }[];
186
175
  }
187
176
 
188
- export interface TooltipsProps {
189
- title: string;
190
- content: string;
191
- }
192
-
193
177
  export interface TrustedBadgeProps {
194
178
  children: ReactNode;
195
179
  }