@npm_leadtech/legal-contracts-ui 0.182.2 → 0.182.6

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 r from "clsx";
4
4
  //#region lib/components/atoms/Checkbox.tsx
5
5
  var i = ({ dataQa: i, id: a, name: o, required: s = !1, children: c, checked: l, error: u = !1, ...d }) => /* @__PURE__ */ n("label", {
6
6
  htmlFor: a,
7
- className: "text-medium flex cursor-pointer items-start gap-2 text-neutral-800 select-none",
7
+ className: "text-medium flex cursor-pointer items-center gap-2 text-neutral-800 select-none",
8
8
  children: [
9
9
  /* @__PURE__ */ t("input", {
10
10
  id: a,
@@ -16,11 +16,11 @@ var i = ({ dataQa: i, id: a, name: o, required: s = !1, children: c, checked: l,
16
16
  }),
17
17
  /* @__PURE__ */ t("div", {
18
18
  "data-qa": i,
19
- className: r("flex h-5.5 w-5.5 shrink-0 items-center justify-center rounded transition-colors", "peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2", !u && !l && "hover:bg-primary-200 border border-neutral-800 bg-white", l && "border-primary-500 bg-primary-200 border-2", u && "border-error-500 bg-error-20 border"),
19
+ className: r("flex h-5.5 w-5.5 items-center justify-center rounded transition-colors", "peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2", !u && !l && "hover:bg-primary-200 border border-neutral-800 bg-white", l && "border-primary-500 bg-primary-200 border-2", u && "border-error-500 bg-error-20 border"),
20
20
  children: l && /* @__PURE__ */ t(e, {})
21
21
  }),
22
22
  /* @__PURE__ */ t("span", {
23
- className: "min-w-0 leading-tight text-neutral-800",
23
+ className: "leading-tight text-neutral-800",
24
24
  children: c
25
25
  })
26
26
  ]
@@ -32,11 +32,11 @@ var c = ({ id: c, title: l, content: u, linkedProducts: d, sampleImage: f, cta:
32
32
  }),
33
33
  h && /* @__PURE__ */ s("div", {
34
34
  className: "flex w-75 gap-4 self-center",
35
- children: [/* @__PURE__ */ o(t, {
35
+ children: [!!h.pdfDownload && /* @__PURE__ */ o(t, {
36
36
  className: "w-full",
37
37
  variant: "secondary-black",
38
38
  children: h.pdfDownload
39
- }), /* @__PURE__ */ o(t, {
39
+ }), !!h.wordDownload && /* @__PURE__ */ o(t, {
40
40
  className: "w-full",
41
41
  variant: "secondary-black",
42
42
  children: h.wordDownload
@@ -29,5 +29,7 @@ export declare interface FooterProps {
29
29
  copyrightText?: string;
30
30
  trustPilot?: ReactNode;
31
31
  languageSelector?: ReactNode;
32
+ linksShow?: boolean;
33
+ cookiesShow?: boolean;
32
34
  }
33
35
 
@@ -3,9 +3,9 @@ import { FooterNav as t } from "./FooterNav.js";
3
3
  import "react";
4
4
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
5
  //#region lib/components/organisms/Footer.tsx
6
- var i = ({ nav: i, contactInfo: a, logoGray: o, socialLinks: s, legalLinks: c, disclaimerText: l, copyrightText: u, trustPilot: d, languageSelector: f }) => /* @__PURE__ */ r("footer", {
6
+ var i = ({ nav: i, contactInfo: a, logoGray: o, socialLinks: s, legalLinks: c, disclaimerText: l, copyrightText: u, trustPilot: d, languageSelector: f, linksShow: p = !0, cookiesShow: m = !0 }) => /* @__PURE__ */ r("footer", {
7
7
  className: "text-neutral-25 max-w-full overflow-x-hidden",
8
- children: [/* @__PURE__ */ n("div", {
8
+ children: [p && /* @__PURE__ */ n("div", {
9
9
  className: "bg-primary-900",
10
10
  children: /* @__PURE__ */ r("div", {
11
11
  className: "mx-auto flex w-full max-w-300 flex-col items-start gap-8 px-6 py-10 md:grid md:grid-cols-3 lg:flex lg:flex-row lg:justify-between",
@@ -46,7 +46,7 @@ var i = ({ nav: i, contactInfo: a, logoGray: o, socialLinks: s, legalLinks: c, d
46
46
  })]
47
47
  })]
48
48
  })
49
- }), /* @__PURE__ */ n("div", {
49
+ }), m && /* @__PURE__ */ n("div", {
50
50
  className: "bg-neutral-900 px-6 py-8 text-neutral-400",
51
51
  children: /* @__PURE__ */ r("div", {
52
52
  className: "mx-auto flex w-full max-w-300 flex-col gap-6",
@@ -4,15 +4,11 @@ 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?: ReactNode;
8
8
  imagePreview: ReactNode | null;
9
9
  title: string;
10
10
  freeDocTexts: string[];
11
11
  pdfDownload: ReactNode;
12
12
  wordDownload: ReactNode;
13
13
  }
14
-
15
- export interface TrustedBadgeProps {
16
- children: ReactNode;
17
- }
18
14
 
@@ -1,80 +1,79 @@
1
1
  "use client";
2
2
  "use client";
3
3
  import { LinkWrapper as e } from "./LinkWrapper.js";
4
- import { TrustedBadge as t } from "./TrustedBadge.js";
5
- import { useEffect as n, useRef as r, useState as i } from "react";
6
- import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
4
+ import { useEffect as t, useRef as n, useState as r } from "react";
5
+ import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
7
6
  //#region lib/components/organisms/JumboDocs.tsx
8
- var c = ({ trustedBadge: c, imagePreview: l, freeDocTexts: u, title: d, pdfDownload: f, wordDownload: p }) => {
9
- let [m, h] = i(!1), g = r(null);
10
- return n(() => {
11
- let e = g.current;
7
+ var s = ({ trustedBadge: s, imagePreview: c, freeDocTexts: l, title: u, pdfDownload: d, wordDownload: f }) => {
8
+ let [p, m] = r(!1), h = n(null);
9
+ return t(() => {
10
+ let e = h.current;
12
11
  if (!e) return;
13
12
  let t = new IntersectionObserver(([e]) => {
14
- h(!e.isIntersecting);
13
+ m(!e.isIntersecting);
15
14
  }, { threshold: 0 });
16
15
  return t.observe(e), () => {
17
16
  t.disconnect();
18
17
  };
19
- }, []), /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("section", {
18
+ }, []), /* @__PURE__ */ o(i, { children: [/* @__PURE__ */ a("section", {
20
19
  className: "bg-neutral-25 pt-8 text-neutral-800 sm:px-6 lg:px-8 xl:px-30",
21
- children: /* @__PURE__ */ s("div", {
22
- ref: g,
20
+ children: /* @__PURE__ */ o("div", {
21
+ ref: h,
23
22
  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",
24
23
  children: [
25
- c && /* @__PURE__ */ o(t, { ...c }),
26
- /* @__PURE__ */ o("div", {
24
+ s,
25
+ /* @__PURE__ */ a("div", {
27
26
  className: "border border-neutral-200 shadow",
28
- children: l
27
+ children: c
29
28
  }),
30
- /* @__PURE__ */ s("div", {
29
+ /* @__PURE__ */ o("div", {
31
30
  className: "flex flex-col gap-8 self-start",
32
- children: [/* @__PURE__ */ s("div", {
31
+ children: [/* @__PURE__ */ o("div", {
33
32
  className: "flex flex-col gap-4",
34
33
  children: [
35
- /* @__PURE__ */ o("p", {
34
+ /* @__PURE__ */ a("p", {
36
35
  className: "text-big md:text-large font-bold",
37
- children: d
36
+ children: u
38
37
  }),
39
- /* @__PURE__ */ o("span", { className: "h-px w-full bg-neutral-200" }),
40
- u.length > 0 && /* @__PURE__ */ o("ul", {
38
+ /* @__PURE__ */ a("span", { className: "h-px w-full bg-neutral-200" }),
39
+ l.length > 0 && /* @__PURE__ */ a("ul", {
41
40
  className: "flex flex-col gap-4 md:gap-8",
42
- children: u.map((e) => /* @__PURE__ */ s("li", {
41
+ children: l.map((e) => /* @__PURE__ */ o("li", {
43
42
  className: "text-small flex gap-2",
44
- children: [/* @__PURE__ */ o("span", {
43
+ children: [/* @__PURE__ */ a("span", {
45
44
  className: "text-primary-500",
46
45
  children: "•"
47
46
  }), e]
48
47
  }, e))
49
48
  })
50
49
  ]
51
- }), /* @__PURE__ */ s("div", {
50
+ }), /* @__PURE__ */ o("div", {
52
51
  className: "flex w-full gap-4",
53
- children: [/* @__PURE__ */ o(e, {
52
+ children: [/* @__PURE__ */ a(e, {
54
53
  className: "w-full md:w-26.25",
55
54
  variant: "secondary-black",
56
- children: f
57
- }), /* @__PURE__ */ o(e, {
55
+ children: d
56
+ }), /* @__PURE__ */ a(e, {
58
57
  className: "w-full md:w-26.25",
59
58
  variant: "secondary-black",
60
- children: p
59
+ children: f
61
60
  })]
62
61
  })]
63
62
  })
64
63
  ]
65
64
  })
66
- }), m && /* @__PURE__ */ s("div", {
65
+ }), p && /* @__PURE__ */ o("div", {
67
66
  className: "fixed bottom-0 left-0 z-50 flex w-full gap-4 bg-white px-6 py-4 shadow sm:hidden",
68
- children: [/* @__PURE__ */ o(e, {
67
+ children: [/* @__PURE__ */ a(e, {
69
68
  className: "w-full",
70
69
  variant: "secondary-black",
71
- children: f
72
- }), /* @__PURE__ */ o(e, {
70
+ children: d
71
+ }), /* @__PURE__ */ a(e, {
73
72
  className: "w-full",
74
73
  variant: "secondary-black",
75
- children: p
74
+ children: f
76
75
  })]
77
76
  })] });
78
77
  };
79
78
  //#endregion
80
- export { c as JumboDocs };
79
+ export { s as JumboDocs };
@@ -1,9 +1,7 @@
1
1
  import { JSX } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
- export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant }: ModalProps) => JSX.Element;
5
-
6
- export declare type ModalOverlayVariant = 'primary' | 'grey';
4
+ export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger }: ModalProps) => JSX.Element;
7
5
 
8
6
  export interface ModalProps {
9
7
  trigger?: ReactNode;
@@ -12,6 +10,5 @@ export interface ModalProps {
12
10
  setIsOpen: (open: boolean) => void;
13
11
  showClose?: boolean;
14
12
  onTrigger?: () => void;
15
- overlayVariant?: ModalOverlayVariant;
16
13
  }
17
14
 
@@ -3,55 +3,51 @@
3
3
  import { CloseIcon as e } from "./CloseIcon.js";
4
4
  import { useEffect as t } from "react";
5
5
  import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
6
- import a from "clsx";
7
- import { createPortal as o } from "react-dom";
6
+ import { createPortal as a } from "react-dom";
8
7
  //#region lib/components/atoms/Modal.tsx
9
- var s = {
10
- primary: "bg-primary-900/80",
11
- grey: "bg-backdrop-grey"
12
- }, c = ({ trigger: c, children: l, isOpen: u, setIsOpen: d, showClose: f, onTrigger: p, overlayVariant: m = "primary" }) => {
13
- let h = () => {
14
- p?.(), d(!0);
15
- }, g = () => {
16
- d(!1);
8
+ var o = ({ trigger: o, children: s, isOpen: c, setIsOpen: l, showClose: u, onTrigger: d }) => {
9
+ let f = () => {
10
+ d?.(), l(!0);
11
+ }, p = () => {
12
+ l(!1);
17
13
  };
18
14
  return t(() => {
19
- if (!u) return;
15
+ if (!c) return;
20
16
  let e = document.body.style.overflow;
21
17
  return document.body.style.overflow = "hidden", () => {
22
18
  document.body.style.overflow = e;
23
19
  };
24
- }, [u]), /* @__PURE__ */ i(n, { children: [!!c && /* @__PURE__ */ r("button", {
20
+ }, [c]), /* @__PURE__ */ i(n, { children: [!!o && /* @__PURE__ */ r("button", {
25
21
  type: "button",
26
22
  "aria-label": "zoom",
27
- onClick: h,
23
+ onClick: f,
28
24
  className: "flex w-full cursor-pointer justify-center",
29
- children: c
30
- }), u && o(/* @__PURE__ */ i("div", {
25
+ children: o
26
+ }), c && a(/* @__PURE__ */ i("div", {
31
27
  role: "dialog",
32
28
  "aria-modal": "true",
33
- className: a(s[m], "fixed inset-0 z-1001"),
29
+ className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
34
30
  children: [/* @__PURE__ */ r("button", {
35
31
  type: "button",
36
32
  tabIndex: -1,
37
33
  "data-testid": "modal-backdrop",
38
- className: "absolute inset-0 z-0 cursor-default border-none bg-transparent p-0",
39
- onClick: g,
34
+ className: "absolute inset-0 cursor-default border-none bg-transparent p-0",
35
+ onClick: p,
40
36
  "aria-label": "Close modal"
41
37
  }), /* @__PURE__ */ r("div", {
42
- className: "pointer-events-none relative z-10 flex min-h-full w-full items-center justify-center overflow-y-auto p-6",
38
+ className: "pointer-events-none relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24",
43
39
  children: /* @__PURE__ */ i("div", {
44
40
  className: "pointer-events-auto relative",
45
- children: [f && /* @__PURE__ */ r("button", {
41
+ children: [u && /* @__PURE__ */ r("button", {
46
42
  type: "button",
47
43
  className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
48
- onClick: g,
44
+ onClick: p,
49
45
  "aria-label": "Close",
50
46
  children: /* @__PURE__ */ r(e, {})
51
- }), l]
47
+ }), s]
52
48
  })
53
49
  })]
54
50
  }), document.body)] });
55
51
  };
56
52
  //#endregion
57
- export { c as Modal };
53
+ export { o as Modal };
@@ -25,7 +25,7 @@ export interface PreformOptionProps {
25
25
  }
26
26
 
27
27
  export declare interface PreformProps {
28
- trustedBadge: TrustedBadgeProps;
28
+ trustedBadge: ReactNode;
29
29
  cta: ReactNode;
30
30
  radioFieldData?: RadioFieldData;
31
31
  inputFieldData?: InputFieldData;
@@ -46,8 +46,4 @@ export interface TooltipsProps {
46
46
  title: string;
47
47
  content: string;
48
48
  }
49
-
50
- export interface TrustedBadgeProps {
51
- children: ReactNode;
52
- }
53
49
 
@@ -3,59 +3,58 @@
3
3
  import { Input as e } from "./Input.js";
4
4
  import { LinkWrapper as t } from "./LinkWrapper.js";
5
5
  import { PreformOption as n } from "./PreformOption.js";
6
- import { TrustedBadge as r } from "./TrustedBadge.js";
7
- import { Tooltips as i } from "./Tooltips.js";
8
- import { PreformMobile as a } from "./PreformMobile.js";
6
+ import { Tooltips as r } from "./Tooltips.js";
7
+ import { PreformMobile as i } from "./PreformMobile.js";
9
8
  import "react";
10
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
9
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
11
10
  //#region lib/components/organisms/Preform.tsx
12
- var l = ({ trustedBadge: l, cta: u, inputFieldData: d, radioFieldData: f, tooltips: p, hasMobileRadioField: m }) => /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("section", {
11
+ var c = ({ trustedBadge: c, cta: l, inputFieldData: u, radioFieldData: d, tooltips: f, hasMobileRadioField: p }) => /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("section", {
13
12
  className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30",
14
- children: /* @__PURE__ */ c("div", {
13
+ children: /* @__PURE__ */ s("div", {
15
14
  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",
16
15
  children: [
17
- /* @__PURE__ */ s(r, { ...l }),
18
- f?.isVisible && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("p", {
16
+ c,
17
+ d?.isVisible && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ o("p", {
19
18
  className: "text-large font-bold",
20
- children: f.label
21
- }), /* @__PURE__ */ c("div", {
19
+ children: d.label
20
+ }), /* @__PURE__ */ s("div", {
22
21
  className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4",
23
- children: [f.options.map((e) => /* @__PURE__ */ s("div", {
22
+ children: [d.options.map((e) => /* @__PURE__ */ o("div", {
24
23
  className: "w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
25
- children: /* @__PURE__ */ s(n, {
24
+ children: /* @__PURE__ */ o(n, {
26
25
  ...e,
27
- selected: e.value === f.radioSelected,
28
- onClick: f.onClick
26
+ selected: e.value === d.radioSelected,
27
+ onClick: d.onClick
29
28
  })
30
- }, e.value)), d?.isVisible && /* @__PURE__ */ s("div", {
29
+ }, e.value)), u?.isVisible && /* @__PURE__ */ o("div", {
31
30
  className: "mt-4 flex basis-full justify-center md:mt-0",
32
- children: /* @__PURE__ */ s(e, {
33
- id: d.id,
34
- label: d.label,
35
- name: d.name,
36
- placeholder: d.placeholder,
37
- value: d.value,
38
- onInputChange: d.onChange,
39
- "data-qa": d.dataQa
31
+ children: /* @__PURE__ */ o(e, {
32
+ id: u.id,
33
+ label: u.label,
34
+ name: u.name,
35
+ placeholder: u.placeholder,
36
+ value: u.value,
37
+ onInputChange: u.onChange,
38
+ "data-qa": u.dataQa
40
39
  })
41
- }, d.name)]
40
+ }, u.name)]
42
41
  })] }),
43
- /* @__PURE__ */ s(t, {
42
+ /* @__PURE__ */ o(t, {
44
43
  variant: "primary-green",
45
- children: u
44
+ children: l
46
45
  }),
47
- p.length > 0 && /* @__PURE__ */ s("div", {
46
+ f.length > 0 && /* @__PURE__ */ o("div", {
48
47
  className: "flex flex-col gap-8",
49
- children: p.map((e) => /* @__PURE__ */ s(i, { ...e }, e.title))
48
+ children: f.map((e) => /* @__PURE__ */ o(r, { ...e }, e.title))
50
49
  })
51
50
  ]
52
51
  })
53
- }), /* @__PURE__ */ s(a, {
54
- cta: u,
55
- trustedBadge: l,
56
- inputFieldData: d,
57
- radioFieldData: f,
58
- hasMobileRadioField: m
52
+ }), /* @__PURE__ */ o(i, {
53
+ cta: l,
54
+ trustedBadge: c,
55
+ inputFieldData: u,
56
+ radioFieldData: d,
57
+ hasMobileRadioField: p
59
58
  })] });
60
59
  //#endregion
61
- export { l as Preform };
60
+ export { c as Preform };
@@ -15,7 +15,7 @@ export type InputFieldData = {
15
15
  export declare const PreformMobile: FC<PreformMobileProps>;
16
16
 
17
17
  export declare interface PreformMobileProps {
18
- trustedBadge: TrustedBadgeProps;
18
+ trustedBadge: ReactNode;
19
19
  radioFieldData?: RadioFieldData;
20
20
  inputFieldData?: InputFieldData;
21
21
  cta: ReactNode;
@@ -40,8 +40,4 @@ export type RadioFieldData = {
40
40
  radioSelected: string;
41
41
  onClick: (str: string) => void;
42
42
  };
43
-
44
- export interface TrustedBadgeProps {
45
- children: ReactNode;
46
- }
47
43
 
@@ -2,110 +2,109 @@ import { Input as e } from "./Input.js";
2
2
  import { Select as t } from "./Select.js";
3
3
  import { LinkWrapper as n } from "./LinkWrapper.js";
4
4
  import { PreformOption as r } from "./PreformOption.js";
5
- import { TrustedBadge as i } from "./TrustedBadge.js";
6
- import { useEffect as a, useRef as o, useState as s } from "react";
7
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
5
+ import { useEffect as i, useRef as a, useState as o } from "react";
6
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
8
7
  //#region lib/components/organisms/PreformMobile.tsx
9
- var d = ({ radioFieldData: d, inputFieldData: f, cta: p, trustedBadge: m, hasMobileRadioField: h }) => {
10
- let [g, _] = s(!1), v = o(null);
11
- a(() => {
12
- let e = v.current;
8
+ var u = ({ radioFieldData: u, inputFieldData: d, cta: f, trustedBadge: p, hasMobileRadioField: m }) => {
9
+ let [h, g] = o(!1), _ = a(null);
10
+ i(() => {
11
+ let e = _.current;
13
12
  if (!e) return;
14
13
  let t = new IntersectionObserver(([e]) => {
15
- _(!e.isIntersecting);
14
+ g(!e.isIntersecting);
16
15
  }, { threshold: 0 });
17
16
  return t.observe(e), () => {
18
17
  t.disconnect();
19
18
  };
20
19
  }, []);
21
- let y = (e) => {
22
- if (!d?.isVisible) return null;
23
- let n = h && !e, i = `${d.name}-${e ? "sticky" : "mobile"}`;
24
- return n ? /* @__PURE__ */ l("div", {
20
+ let v = (e) => {
21
+ if (!u?.isVisible) return null;
22
+ let n = m && !e, i = `${u.name}-${e ? "sticky" : "mobile"}`;
23
+ return n ? /* @__PURE__ */ c("div", {
25
24
  className: "flex w-full flex-wrap justify-center gap-2",
26
- children: d.options.map((e) => /* @__PURE__ */ l("div", {
25
+ children: u.options.map((e) => /* @__PURE__ */ c("div", {
27
26
  className: "w-[calc(50%-4px)]",
28
- children: /* @__PURE__ */ l(r, {
27
+ children: /* @__PURE__ */ c(r, {
29
28
  ...e,
30
- selected: e.value === d.radioSelected,
31
- onClick: d.onClick
29
+ selected: e.value === u.radioSelected,
30
+ onClick: u.onClick
32
31
  })
33
32
  }, e.value))
34
- }) : /* @__PURE__ */ l(t, {
33
+ }) : /* @__PURE__ */ c(t, {
35
34
  id: i,
36
- name: d.name,
37
- value: d.radioSelected,
38
- options: d.options,
35
+ name: u.name,
36
+ value: u.radioSelected,
37
+ options: u.options,
39
38
  containerClassName: "w-full",
40
39
  onChange: (e) => {
41
- d.onClick(e.target.value);
40
+ u.onClick(e.target.value);
42
41
  }
43
42
  });
44
- }, b = (t) => /* @__PURE__ */ u("div", {
45
- className: `flex flex-col bg-white px-6 pb-4 ${t ? "border-t border-neutral-100 pt-4 shadow-md" : ""}`,
43
+ }, y = (t) => /* @__PURE__ */ l("div", {
44
+ className: `flex flex-col bg-white px-6 ${t ? "border-t border-neutral-100 pt-4 pb-4 shadow-md" : "pb-6"}`,
46
45
  children: [
47
- h && !t ? /* @__PURE__ */ l("p", {
48
- className: "text-small mb-4 font-bold text-neutral-800",
49
- children: d?.label
50
- }) : /* @__PURE__ */ l("label", {
51
- htmlFor: `${d?.name ?? ""}-${t ? "sticky" : "mobile"}`,
52
- className: "text-small mb-4 font-bold text-neutral-800",
53
- children: d?.label
46
+ m && !t ? /* @__PURE__ */ c("p", {
47
+ className: "text-small mb-6 font-bold text-neutral-800",
48
+ children: u?.label
49
+ }) : /* @__PURE__ */ c("label", {
50
+ htmlFor: `${u?.name ?? ""}-${t ? "sticky" : "mobile"}`,
51
+ className: `text-small font-bold text-neutral-800 ${t ? "mb-4" : "mb-6"}`,
52
+ children: u?.label
54
53
  }),
55
- /* @__PURE__ */ u("div", {
56
- className: `flex gap-4 ${t ? "flex-row items-center" : "flex-col"}`,
54
+ /* @__PURE__ */ l("div", {
55
+ className: `flex ${t ? "flex-row items-center gap-4" : "flex-col gap-6"}`,
57
56
  children: [
58
- y(t),
59
- f?.isVisible && !t && /* @__PURE__ */ l("div", {
57
+ v(t),
58
+ d?.isVisible && !t && /* @__PURE__ */ c("div", {
60
59
  className: "flex justify-center",
61
- children: /* @__PURE__ */ l(e, {
60
+ children: /* @__PURE__ */ c(e, {
62
61
  containerClassName: "w-full text-small",
63
- id: `${f.id}-mobile`,
64
- label: f.label,
65
- name: `${f.name}-mobile`,
66
- placeholder: f.placeholder,
67
- value: f.value,
68
- onInputChange: f.onChange
62
+ id: `${d.id}-mobile`,
63
+ label: d.label,
64
+ name: `${d.name}-mobile`,
65
+ placeholder: d.placeholder,
66
+ value: d.value,
67
+ onInputChange: d.onChange
69
68
  })
70
- }, f.name),
71
- /* @__PURE__ */ l(n, {
69
+ }, d.name),
70
+ /* @__PURE__ */ c(n, {
72
71
  variant: "primary-green",
73
72
  className: `text-small ${t ? "w-fit text-nowrap" : "w-full"}`,
74
- children: p
73
+ children: f
75
74
  })
76
75
  ]
77
76
  }),
78
- f?.isVisible && t && /* @__PURE__ */ l("div", {
77
+ d?.isVisible && t && /* @__PURE__ */ c("div", {
79
78
  className: "mt-4 flex w-full justify-center",
80
- children: /* @__PURE__ */ l(e, {
79
+ children: /* @__PURE__ */ c(e, {
81
80
  containerClassName: "w-full text-small",
82
- id: `${f.id}-mobile-sticky`,
83
- label: f.label,
84
- name: `${f.name}-mobile-sticky`,
85
- placeholder: f.placeholder,
86
- value: f.value,
87
- onInputChange: f.onChange
81
+ id: `${d.id}-mobile-sticky`,
82
+ label: d.label,
83
+ name: `${d.name}-mobile-sticky`,
84
+ placeholder: d.placeholder,
85
+ value: d.value,
86
+ onInputChange: d.onChange
88
87
  })
89
- }, f.name)
88
+ }, d.name)
90
89
  ]
91
90
  });
92
- return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("section", {
93
- className: "bg-neutral-25 pt-10 text-neutral-800 sm:hidden",
94
- children: /* @__PURE__ */ u("div", {
95
- ref: v,
91
+ return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("section", {
92
+ className: "bg-neutral-25 pt-0 text-neutral-800 sm:hidden",
93
+ children: /* @__PURE__ */ l("div", {
94
+ ref: _,
96
95
  className: "relative flex flex-col rounded bg-white pt-8 shadow",
97
- children: [/* @__PURE__ */ l("div", {
96
+ children: [/* @__PURE__ */ c("div", {
98
97
  className: "px-6",
99
- children: /* @__PURE__ */ l(i, { ...m })
100
- }), /* @__PURE__ */ l("div", {
101
- className: g ? "hidden" : "block",
102
- children: b(!1)
98
+ children: p
99
+ }), /* @__PURE__ */ c("div", {
100
+ className: h ? "hidden" : "block",
101
+ children: y(!1)
103
102
  })]
104
103
  })
105
- }), g && /* @__PURE__ */ l("div", {
104
+ }), h && /* @__PURE__ */ c("div", {
106
105
  className: "fixed bottom-0 left-0 z-50 w-full sm:hidden",
107
- children: b(!0)
106
+ children: y(!0)
108
107
  })] });
109
108
  };
110
109
  //#endregion
111
- export { d as PreformMobile };
110
+ export { u as PreformMobile };
@@ -48,11 +48,11 @@ var s = ({ title: s, footerText: c, preview: l, cta: u, pdfDownload: d, wordDown
48
48
  children: c
49
49
  }), /* @__PURE__ */ o("div", {
50
50
  className: "flex w-full gap-4",
51
- children: [/* @__PURE__ */ a(n, {
51
+ children: [!!d && /* @__PURE__ */ a(n, {
52
52
  className: "w-full",
53
53
  variant: "secondary-black",
54
54
  children: d
55
- }), /* @__PURE__ */ a(n, {
55
+ }), !!f && /* @__PURE__ */ a(n, {
56
56
  className: "w-full",
57
57
  variant: "secondary-black",
58
58
  children: f
@@ -36,7 +36,7 @@ export interface PreformOptionProps {
36
36
  }
37
37
 
38
38
  export interface PreformProps {
39
- trustedBadge: TrustedBadgeProps;
39
+ trustedBadge: ReactNode;
40
40
  cta: ReactNode;
41
41
  radioFieldData?: RadioFieldData;
42
42
  inputFieldData?: InputFieldData;
@@ -65,8 +65,4 @@ export interface TooltipsProps {
65
65
  title: string;
66
66
  content: string;
67
67
  }
68
-
69
- export interface TrustedBadgeProps {
70
- children: ReactNode;
71
- }
72
68