@npm_leadtech/legal-contracts-ui 0.152.1 → 0.152.3

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,6 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
- const w = ({ children: l, variant: o = "default", className: c = "", ...t }) => {
3
+ const w = ({ children: o, variant: l = "default", className: c = "", ...t }) => {
4
4
  const e = t.href || "", n = e.toLowerCase(), u = n.startsWith("mailto:"), a = n.startsWith("tel:"), r = "cursor-pointer text-primary-700", i = {
5
5
  default: "text-neutral-900 underline",
6
6
  legal: r,
@@ -10,15 +10,15 @@ const w = ({ children: l, variant: o = "default", className: c = "", ...t }) =>
10
10
  unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, f = i[o] ?? i.default, h = e.startsWith("http"), d = (() => {
13
+ }, f = i[l] ?? i.default, h = e.startsWith("http"), d = (() => {
14
14
  if (!a) return e;
15
15
  try {
16
- return decodeURIComponent(e).replaceAll(/\s/g, "");
16
+ return decodeURIComponent(e).replace(/\s/g, "");
17
17
  } catch {
18
- return e.replaceAll("%20", "").replaceAll(/\s/g, "");
18
+ return e.replace(/%20/g, "").replace(/\s/g, "");
19
19
  }
20
20
  })(), s = t.target === "_blank" || h && !a && !u ? "_blank" : t.target, g = s === "_blank" ? "noopener noreferrer" : t.rel;
21
- return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: l });
21
+ return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: o });
22
22
  };
23
23
  export {
24
24
  w as Anchor
@@ -12,7 +12,7 @@ const I = ({
12
12
  variant: m,
13
13
  slug: c
14
14
  }) => {
15
- const t = `toggle-${d().replaceAll(":", "")}`;
15
+ const t = `toggle-${d().replace(/:/g, "")}`;
16
16
  return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex scroll-mt-24 flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("h3", { className: "font-bold", children: n }), children: [
17
17
  /* @__PURE__ */ e(h, { content: l, className: "text-medium", variant: m ?? "default" }),
18
18
  o && /* @__PURE__ */ r("div", { className: "mt-4 rounded-lg bg-neutral-50 p-6", children: [
@@ -5,7 +5,7 @@ import { Markdown as i } from "./Markdown.js";
5
5
  import { FaqItem as x } from "./FaqItem.js";
6
6
  const g = ({ title: l, description: o, faqItems: r, className: a = "", variant: c }) => {
7
7
  if (r.length === 0) return null;
8
- const m = l.toLowerCase().replaceAll(/\s+/g, "-");
8
+ const m = l.toLowerCase().replace(/\s+/g, "-");
9
9
  return /* @__PURE__ */ s("div", { id: m, className: n("flex scroll-mt-24 flex-col gap-2 p-0.5 text-neutral-800", a), children: [
10
10
  /* @__PURE__ */ s("div", { className: "mb-4 flex flex-col", children: [
11
11
  /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: l }),
@@ -1,13 +1,13 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import r from "clsx";
3
- const m = ({ children: e, variant: l = "default" }) => {
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import s from "clsx";
3
+ const m = ({ children: e, variant: a = "default" }) => {
4
4
  const t = {
5
5
  default: "mt-5 mb-3 text-super-large text-neutral-800",
6
- legal: "mt-5 -mx-ds-11xl mb-6 bg-white px-ds-11xl text-left text-neutral-800 text-3xl w-full",
7
- ratafia: "mt-4 mb-3 text-left text-xl font-bold text-white lg:text-2xl",
8
- unsubscribe: "mt-0 mb-0 w-full bg-white pb-4 pt-8 text-left text-3xl leading-tight text-neutral-900 font-sans tracking-tight md:text-4xl md:leading-8"
9
- }, x = t[l] ?? t.default;
10
- return /* @__PURE__ */ a("h2", { className: r("font-bold", x), children: e });
6
+ legal: "my-4 text-neutral-800 text-super-large w-full",
7
+ ratafia: "mt-4 mb-3 text-left text-xl text-white lg:text-2xl",
8
+ unsubscribe: "text-super-large my-6 text-neutral-800"
9
+ }, l = t[a] ?? t.default;
10
+ return /* @__PURE__ */ r("h2", { className: s("font-bold", l), children: e });
11
11
  };
12
12
  export {
13
13
  m as Header2
@@ -19,7 +19,7 @@ const z = ({
19
19
  errorMessage: v,
20
20
  ...w
21
21
  }) => {
22
- const [n, c] = p(!1), [N, r] = p(!1);
22
+ const [n, c] = p(!1), [N, a] = p(!1);
23
23
  return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${g}`, children: [
24
24
  /* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
25
25
  /* @__PURE__ */ t("label", { htmlFor: l, className: "font-bold text-neutral-800", children: [
@@ -27,58 +27,64 @@ const z = ({
27
27
  " ",
28
28
  o && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
29
29
  ] }),
30
- i && /* @__PURE__ */ t("span", { className: "group relative inline-flex", children: [
31
- /* @__PURE__ */ e(
32
- "button",
33
- {
34
- className: "cursor-pointer rounded-full p-0",
35
- type: "button",
36
- "aria-expanded": n,
37
- onMouseEnter: () => {
38
- r(!1);
39
- },
40
- onClick: () => {
41
- r(!1), c((a) => !a);
42
- },
43
- children: /* @__PURE__ */ e(y, { "aria-hidden": "true" })
44
- }
45
- ),
46
- /* @__PURE__ */ t(
47
- "span",
48
- {
49
- className: u(
50
- "invisible absolute top-6 -left-21 z-10 w-max max-w-60 rounded bg-neutral-800 p-2 transition-opacity lg:max-w-80 xl:-left-15 xl:max-w-112",
51
- "opacity-0",
52
- !N && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
53
- n && "visible opacity-100"
30
+ i && /* @__PURE__ */ t(
31
+ "span",
32
+ {
33
+ className: "group relative inline-flex",
34
+ onMouseLeave: () => {
35
+ a(!1);
36
+ },
37
+ children: [
38
+ /* @__PURE__ */ e(
39
+ "button",
40
+ {
41
+ className: "cursor-pointer rounded-full p-0",
42
+ type: "button",
43
+ "aria-expanded": n,
44
+ onClick: () => {
45
+ a(!1), c((r) => !r);
46
+ },
47
+ children: /* @__PURE__ */ e(y, { "aria-hidden": "true" })
48
+ }
54
49
  ),
55
- role: "tooltip",
56
- children: [
57
- /* @__PURE__ */ e(
58
- "span",
59
- {
60
- className: "absolute -top-1 right-[calc(100%-5.75rem)] h-2 w-2 translate-x-1/2 rotate-45 bg-neutral-800 xl:right-[calc(100%-4.25rem)]",
61
- "aria-hidden": "true"
62
- }
63
- ),
64
- /* @__PURE__ */ t("span", { className: "text-extra-small inline-flex items-center gap-2 px-1 py-2 leading-none font-bold text-white", children: [
65
- /* @__PURE__ */ e("span", { children: i }),
66
- /* @__PURE__ */ e(
67
- "button",
68
- {
69
- type: "button",
70
- className: "cursor-pointer p-0",
71
- onClick: () => {
72
- r(!0), c(!1);
73
- },
74
- children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
75
- }
76
- )
77
- ] })
78
- ]
79
- }
80
- )
81
- ] })
50
+ /* @__PURE__ */ t(
51
+ "span",
52
+ {
53
+ className: u(
54
+ "invisible absolute top-6 -left-21 z-10 w-max max-w-60 rounded bg-neutral-800 p-2 transition-opacity lg:max-w-80 xl:-left-15 xl:max-w-112",
55
+ "opacity-0",
56
+ !N && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
57
+ n && "visible opacity-100"
58
+ ),
59
+ role: "tooltip",
60
+ children: [
61
+ /* @__PURE__ */ e(
62
+ "span",
63
+ {
64
+ className: "absolute -top-1 right-[calc(100%-5.75rem)] h-2 w-2 translate-x-1/2 rotate-45 bg-neutral-800 xl:right-[calc(100%-4.25rem)]",
65
+ "aria-hidden": "true"
66
+ }
67
+ ),
68
+ /* @__PURE__ */ t("span", { className: "text-extra-small inline-flex items-center gap-2 px-1 py-2 leading-none font-bold text-white", children: [
69
+ /* @__PURE__ */ e("span", { children: i }),
70
+ /* @__PURE__ */ e(
71
+ "button",
72
+ {
73
+ type: "button",
74
+ className: "cursor-pointer p-0",
75
+ onClick: () => {
76
+ a(!0), c(!1);
77
+ },
78
+ children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
79
+ }
80
+ )
81
+ ] })
82
+ ]
83
+ }
84
+ )
85
+ ]
86
+ }
87
+ )
82
88
  ] }),
83
89
  /* @__PURE__ */ e(
84
90
  "input",
@@ -93,8 +99,8 @@ const z = ({
93
99
  "text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
94
100
  s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
95
101
  ),
96
- onChange: (a) => {
97
- b?.(a.target.value);
102
+ onChange: (r) => {
103
+ b?.(r.target.value);
98
104
  },
99
105
  ...w
100
106
  }
@@ -4,7 +4,5 @@ export declare const Jumbotron3: FC<Jumbotron3Props>;
4
4
 
5
5
  export declare interface Jumbotron3Props {
6
6
  title: string;
7
- domain: string;
8
- className?: string;
9
7
  }
10
8
 
@@ -1,5 +1,5 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- const a = ({ title: t, domain: r, className: l }) => /* @__PURE__ */ e("section", { className: `px-6 py-10 ${l ?? ""}`, children: /* @__PURE__ */ e("div", { className: "mx-auto w-full max-w-5xl text-center", children: /* @__PURE__ */ e("p", { className: "font-lora text-super-hero text-neutral-900", children: t + " " + r }) }) });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ const r = ({ title: e }) => /* @__PURE__ */ t("section", { className: "bg-primary-50 mx-auto w-full pt-10 pb-20", children: /* @__PURE__ */ t("div", { className: "mx-auto w-full max-w-5xl px-6 text-center md:px-8 lg:px-30 xl:max-w-300 xl:px-0", children: /* @__PURE__ */ t("h1", { className: "font-lora text-super-hero text-neutral-900", children: e }) }) });
3
3
  export {
4
- a as Jumbotron3
4
+ r as Jumbotron3
5
5
  };
@@ -1,15 +1,9 @@
1
1
  import { FC } from 'react';
2
2
 
3
- export interface Jumbotron3Props {
4
- title: string;
5
- domain: string;
6
- className?: string;
7
- }
8
-
9
3
  export declare const LegalTemplate: FC<LegalTemplateProps>;
10
4
 
11
5
  export declare interface LegalTemplateProps {
12
- jumbotron: Jumbotron3Props;
6
+ title: string;
13
7
  legalSection: string;
14
8
  }
15
9
 
@@ -1,9 +1,9 @@
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" }) })
1
+ import { jsxs as a, jsx as l } from "react/jsx-runtime";
2
+ import { Jumbotron3 as o } from "./Jumbotron3.js";
3
+ import { Markdown as t } from "./Markdown.js";
4
+ const i = ({ title: e, legalSection: r }) => /* @__PURE__ */ a("main", { className: "bg-neutral-white flex w-full flex-col", children: [
5
+ /* @__PURE__ */ l(o, { title: e }),
6
+ /* @__PURE__ */ l("div", { className: "px-6 py-8 lg:px-8 xl:mx-auto xl:max-w-300 xl:px-0", children: /* @__PURE__ */ l(t, { content: r, variant: "legal" }) })
7
7
  ] });
8
8
  export {
9
9
  i as LegalTemplate
@@ -1,64 +1,64 @@
1
1
  "use client";
2
- import { jsxs as t, Fragment as u, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as a, Fragment as f, jsx as o } from "react/jsx-runtime";
3
3
  import { useEffect as m } from "react";
4
- import { createPortal as f } from "react-dom";
5
- import { CloseIcon as b } from "./CloseIcon.js";
6
- const x = ({ trigger: r, children: a, isOpen: o, setIsOpen: l, showClose: s, onTrigger: i }) => {
7
- const c = () => {
8
- i?.(), l(!0);
4
+ import { createPortal as p } from "react-dom";
5
+ import { CloseIcon as y } from "./CloseIcon.js";
6
+ const w = ({ trigger: r, children: i, isOpen: t, setIsOpen: l, showClose: s, onTrigger: c }) => {
7
+ const d = () => {
8
+ c?.(), l(!0);
9
9
  }, n = () => {
10
10
  l(!1);
11
+ }, u = (e) => {
12
+ e.target === e.currentTarget && n();
11
13
  };
12
14
  return m(() => {
13
- if (!o) return;
14
- const d = document.body.style.overflow;
15
+ if (!t) return;
16
+ const e = document.body.style.overflow;
15
17
  return document.body.style.overflow = "hidden", () => {
16
- document.body.style.overflow = d;
18
+ document.body.style.overflow = e;
17
19
  };
18
- }, [o]), /* @__PURE__ */ t(u, { children: [
19
- !!r && /* @__PURE__ */ e(
20
+ }, [t]), /* @__PURE__ */ a(f, { children: [
21
+ !!r && /* @__PURE__ */ o(
20
22
  "button",
21
23
  {
22
24
  type: "button",
23
25
  "aria-label": "zoom",
24
- onClick: c,
26
+ onClick: d,
25
27
  className: "flex w-full cursor-pointer justify-center",
26
28
  children: r
27
29
  }
28
30
  ),
29
- o && f(
30
- /* @__PURE__ */ t(
31
+ t && p(
32
+ /* @__PURE__ */ o(
31
33
  "div",
32
34
  {
33
35
  role: "dialog",
34
36
  "aria-modal": "true",
37
+ "data-testid": "modal-backdrop",
35
38
  className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
36
- children: [
37
- /* @__PURE__ */ e(
38
- "button",
39
- {
40
- type: "button",
41
- tabIndex: -1,
42
- "data-testid": "modal-backdrop",
43
- className: "absolute inset-0 cursor-default border-none bg-transparent p-0",
44
- onClick: n,
45
- "aria-label": "Close modal"
46
- }
47
- ),
48
- /* @__PURE__ */ e("div", { className: "pointer-events-none relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ t("div", { className: "pointer-events-auto relative", children: [
49
- s && /* @__PURE__ */ e(
50
- "button",
51
- {
52
- type: "button",
53
- className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
54
- onClick: n,
55
- "aria-label": "Close",
56
- children: /* @__PURE__ */ e(b, {})
57
- }
58
- ),
59
- a
60
- ] }) })
61
- ]
39
+ onClick: u,
40
+ children: /* @__PURE__ */ o("div", { className: "pointer-events-none relative flex max-h-screen w-full items-start justify-center overflow-y-auto px-6 py-24", children: /* @__PURE__ */ a(
41
+ "div",
42
+ {
43
+ className: "pointer-events-auto relative",
44
+ onClick: (e) => {
45
+ e.stopPropagation();
46
+ },
47
+ children: [
48
+ s && /* @__PURE__ */ o(
49
+ "button",
50
+ {
51
+ type: "button",
52
+ className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
53
+ onClick: n,
54
+ "aria-label": "Close",
55
+ children: /* @__PURE__ */ o(y, {})
56
+ }
57
+ ),
58
+ i
59
+ ]
60
+ }
61
+ ) })
62
62
  }
63
63
  ),
64
64
  document.body
@@ -66,5 +66,5 @@ const x = ({ trigger: r, children: a, isOpen: o, setIsOpen: l, showClose: s, onT
66
66
  ] });
67
67
  };
68
68
  export {
69
- x as Modal
69
+ w as Modal
70
70
  };
@@ -1,75 +1,67 @@
1
1
  "use client";
2
- import { jsxs as u, jsx as t } from "react/jsx-runtime";
3
- import { useState as g, useCallback as v, useRef as w, useEffect as x } from "react";
4
- import { ChevronDownIcon as R } from "./ChevronDownIcon.js";
5
- import { ChevronRightIcon as D } from "./ChevronRightIcon.js";
6
- const _ = (l) => {
7
- const { hasDropdown: C, isNested: I, isOpen: b, onToggle: r, dataQa: N } = l, [k, L] = g(!1), [O, m] = g(null), s = b ?? k, n = v(
2
+ import { jsxs as d, jsx as t } from "react/jsx-runtime";
3
+ import { useState as p, useCallback as T, useRef as $, useEffect as j } from "react";
4
+ import { ChevronDownIcon as P } from "./ChevronDownIcon.js";
5
+ import { ChevronRightIcon as R } from "./ChevronRightIcon.js";
6
+ const D = (l) => {
7
+ const { hasDropdown: g, isNested: w, isOpen: v, onToggle: i, dataQa: x } = l, [C, I] = p(!1), [b, u] = p(null), s = v ?? C, n = T(
8
8
  (e) => {
9
- e || m(null), r ? r(e) : L(e);
9
+ e || u(null), i ? i(e) : I(e);
10
10
  },
11
- [r]
12
- ), c = w(null);
13
- x(() => {
11
+ [i]
12
+ ), r = $(null);
13
+ j(() => {
14
14
  if (!s) return;
15
- const e = (d) => {
16
- c.current && !c.current.contains(d.target) && n(!1);
15
+ const e = (c) => {
16
+ r.current && !r.current.contains(c.target) && n(!1);
17
17
  };
18
18
  return document.addEventListener("mousedown", e), () => {
19
19
  document.removeEventListener("mousedown", e);
20
20
  };
21
21
  }, [s, n]);
22
- const f = {
22
+ const m = {
23
23
  topLevel: {
24
24
  liClass: "relative py-2",
25
25
  triggerClass: "hover:text-neutral-600",
26
26
  dropdownPosition: "top-full left-0",
27
- Icon: R
27
+ Icon: P
28
28
  },
29
29
  nested: {
30
30
  liClass: "relative",
31
31
  triggerClass: "p-1 hover:bg-primary-100 w-full rounded min-w-48.5",
32
32
  dropdownPosition: "top-0 left-full -mt-4 pl-6",
33
- Icon: D
33
+ Icon: R
34
34
  }
35
- }, o = I ? f.nested : f.topLevel, y = o.Icon, a = v(() => {
35
+ }, o = w ? m.nested : m.topLevel, N = o.Icon, f = () => {
36
36
  n(!1), l.onItemClick && l.onItemClick();
37
- }, [l.onItemClick, n]), h = w(null);
38
- x(() => {
39
- const e = h.current;
40
- if (e)
41
- return e.addEventListener("click", a), () => {
42
- e.removeEventListener("click", a);
43
- };
44
- }, [a]);
45
- const E = (e) => {
37
+ }, k = (e) => {
46
38
  e.stopPropagation(), n(!s);
47
- }, M = () => {
39
+ }, O = () => {
48
40
  globalThis.window.matchMedia("(hover: hover)").matches && n(!0);
49
- }, T = () => {
41
+ }, y = () => {
50
42
  globalThis.window.matchMedia("(hover: hover)").matches && n(!1);
51
43
  };
52
- if (C) {
53
- const { dropdownItems: e, label: d } = l;
54
- return /* @__PURE__ */ u(
44
+ if (g) {
45
+ const { dropdownItems: e, label: c } = l;
46
+ return /* @__PURE__ */ d(
55
47
  "li",
56
48
  {
57
- ref: c,
49
+ ref: r,
58
50
  className: o.liClass,
59
- onMouseEnter: M,
60
- onMouseLeave: T,
51
+ onMouseEnter: O,
52
+ onMouseLeave: y,
61
53
  children: [
62
- /* @__PURE__ */ u(
54
+ /* @__PURE__ */ d(
63
55
  "button",
64
56
  {
65
- "data-qa": N,
57
+ "data-qa": x,
66
58
  className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass}`,
67
59
  "aria-haspopup": "menu",
68
60
  "aria-expanded": s,
69
- onClick: E,
61
+ onClick: k,
70
62
  children: [
71
- /* @__PURE__ */ t("span", { className: "text-medium", children: d }),
72
- /* @__PURE__ */ t(y, { fill: "#000", width: 20, height: 20 })
63
+ /* @__PURE__ */ t("span", { className: "text-medium", children: c }),
64
+ /* @__PURE__ */ t(N, { fill: "#000", width: 20, height: 20 })
73
65
  ]
74
66
  }
75
67
  ),
@@ -77,18 +69,18 @@ const _ = (l) => {
77
69
  "div",
78
70
  {
79
71
  className: `absolute z-50 min-w-48 transition-all duration-200 ${o.dropdownPosition} ${s ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
80
- children: /* @__PURE__ */ t("div", { className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg", children: /* @__PURE__ */ t("ul", { className: "flex flex-col gap-2", children: e.map((i) => /* @__PURE__ */ t(
81
- _,
72
+ children: /* @__PURE__ */ t("div", { className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg", children: /* @__PURE__ */ t("ul", { className: "flex flex-col gap-2", children: e.map((a) => /* @__PURE__ */ t(
73
+ D,
82
74
  {
83
- ...i,
75
+ ...a,
84
76
  isNested: !0,
85
- onItemClick: a,
86
- isOpen: O === i.id,
87
- onToggle: (P) => {
88
- m(P ? i.id : null);
77
+ onItemClick: f,
78
+ isOpen: b === a.id,
79
+ onToggle: (E) => {
80
+ u(E ? a.id : null);
89
81
  }
90
82
  },
91
- i.id
83
+ a.id
92
84
  )) }) })
93
85
  }
94
86
  )
@@ -96,18 +88,18 @@ const _ = (l) => {
96
88
  }
97
89
  );
98
90
  }
99
- const { link: $, tag: p, bold: j } = l;
100
- return /* @__PURE__ */ t("li", { ref: h, className: o.liClass, children: /* @__PURE__ */ u(
91
+ const { link: L, tag: h, bold: M } = l;
92
+ return /* @__PURE__ */ t("li", { className: o.liClass, onClick: f, children: /* @__PURE__ */ d(
101
93
  "span",
102
94
  {
103
95
  className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass} `,
104
96
  children: [
105
- /* @__PURE__ */ t("span", { className: `text-medium flex-1 ${j ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`, children: $ }),
106
- p && /* @__PURE__ */ t("span", { className: "bg-secondary-200 text-extra-small flex h-4.5 w-5.25 items-center justify-center rounded align-middle font-bold", children: p })
97
+ /* @__PURE__ */ t("span", { className: `text-medium flex-1 ${M ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`, children: L }),
98
+ h && /* @__PURE__ */ t("span", { className: "bg-secondary-200 text-extra-small flex h-4.5 w-5.25 items-center justify-center rounded align-middle font-bold", children: h })
107
99
  ]
108
100
  }
109
101
  ) });
110
102
  };
111
103
  export {
112
- _ as NavMenuItem
104
+ D as NavMenuItem
113
105
  };
@@ -1,13 +1,13 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import { QuestionIcon as t } from "./QuestionIcon.js";
3
- import { Markdown as s } from "./Markdown.js";
4
- const n = ({ title: r, content: l }) => /* @__PURE__ */ o("div", { className: "border-secondary-200 hidden flex-col gap-4 rounded border p-6 md:flex", children: [
3
+ import { Markdown as a } from "./Markdown.js";
4
+ const i = ({ title: r, content: l }) => /* @__PURE__ */ o("div", { className: "border-secondary-200 hidden flex-col gap-4 rounded border p-6 md:flex", children: [
5
5
  /* @__PURE__ */ o("div", { className: "flex items-center gap-1.5", children: [
6
6
  /* @__PURE__ */ e(t, { fill: "var(--color-secondary-600)" }),
7
- /* @__PURE__ */ e("h5", { className: "text-small font-semibold text-neutral-900", children: r })
7
+ /* @__PURE__ */ e("p", { className: "text-small font-bold text-neutral-900", children: r })
8
8
  ] }),
9
- /* @__PURE__ */ e(s, { className: "text-small", variant: "tooltip", content: l })
9
+ /* @__PURE__ */ e(a, { className: "text-small", variant: "tooltip", content: l })
10
10
  ] });
11
11
  export {
12
- n as Tooltips
12
+ i as Tooltips
13
13
  };
@@ -1,21 +1,15 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import c from "clsx";
3
- const u = ({ variant: t = "default", children: e }) => {
4
- const l = {
5
- default: "flex list-inside list-disc flex-col px-4 text-neutral-900",
6
- legal: "list-outside list-disc pl-8 pr-4 text-neutral-800",
7
- ratafia: "list-outside list-disc pl-5 pr-1 text-white/85 marker:text-white/60",
8
- tooltip: "flex list-inside list-disc flex-col px-4 text-neutral-900",
9
- unsubscribe: "w-full list-outside list-disc pl-10 text-neutral-800"
10
- }, s = {
11
- default: "bg-primary-50 gap-4 mb-4 py-2 flex list-inside list-disc flex-col px-4 text-neutral-900",
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import a from "clsx";
3
+ const c = ({ variant: s = "default", children: e }) => {
4
+ const t = {
5
+ default: "bg-primary-50 mb-4 py-2 list-disc space-y-4 px-4 text-neutral-900 list-outside [&_li]:ml-4",
12
6
  legal: "space-y-4 mb-4 py-2 list-outside list-disc pl-8 pr-4 text-neutral-800",
13
- ratafia: "mb-3 space-y-2 py-0",
7
+ ratafia: "mb-3 space-y-2 py-0 list-outside list-disc pl-5 pr-1 text-white/85 marker:text-white/60",
14
8
  tooltip: "gap-2 marker:text-secondary-600 flex list-inside list-disc flex-col px-4 text-neutral-900",
15
9
  unsubscribe: "mb-4 py-2 w-full list-outside list-disc pl-10 text-neutral-800"
16
- }, i = s[t] ?? s.default, a = l[t] ?? l.default;
17
- return /* @__PURE__ */ r("ul", { className: c(i, a), children: e });
10
+ }, l = t[s] ?? t.default;
11
+ return /* @__PURE__ */ i("ul", { className: a(l), children: e });
18
12
  };
19
13
  export {
20
- u as UnorderedList
14
+ c as UnorderedList
21
15
  };
@@ -1,24 +1,9 @@
1
1
  import { FC } from 'react';
2
2
 
3
- export interface Jumbotron3Props {
4
- title: string;
5
- domain: string;
6
- className?: string;
7
- }
8
-
9
- export interface MarkdownProps {
10
- content: string;
11
- className?: string;
12
- useCustom?: boolean;
13
- variant?: MarkdownVariants;
14
- }
15
-
16
- export type MarkdownVariants = 'default' | 'legal' | 'ratafia' | 'tooltip' | 'about-us' | 'pricing' | 'unsubscribe' | 'cookies' | 'story';
17
-
18
3
  export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
19
4
 
20
5
  export declare interface UnsubscribeTemplateProps {
21
- jumbotron: Jumbotron3Props;
22
- stepDescription: MarkdownProps;
6
+ title: string;
7
+ stepDescription: string;
23
8
  }
24
9
 
@@ -1,10 +1,10 @@
1
1
  import { jsxs as i, jsx as l } from "react/jsx-runtime";
2
- import { Jumbotron3 as r } from "./Jumbotron3.js";
3
- import { Markdown as a } from "./Markdown.js";
4
- const n = ({ jumbotron: m, stepDescription: e }) => /* @__PURE__ */ i("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
- /* @__PURE__ */ l("div", { className: "bg-primary-50 w-full", children: /* @__PURE__ */ l(r, { ...m, className: "pt-10 pb-20" }) }),
6
- /* @__PURE__ */ l("div", { className: "mx-auto w-full max-w-300", children: /* @__PURE__ */ l("section", { className: "[&_img]:bg-neutral-25 mb-16 w-full overflow-hidden rounded-lg bg-white px-6 md:mb-12 lg:px-8 xl:px-12 2xl:px-16 [&_h2+p]:pt-6 [&_img]:mx-auto [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full [&_p+h2]:mt-0", children: /* @__PURE__ */ l(a, { ...e, variant: "unsubscribe" }) }) })
2
+ import { Jumbotron3 as o } from "./Jumbotron3.js";
3
+ import { Markdown as r } from "./Markdown.js";
4
+ const a = ({ title: e, stepDescription: m }) => /* @__PURE__ */ i("main", { className: "flex min-h-screen flex-1 flex-col bg-white", children: [
5
+ /* @__PURE__ */ l(o, { title: e }),
6
+ /* @__PURE__ */ l("div", { className: "mx-auto w-full bg-white px-6 pt-2 pb-8 lg:px-8 xl:mx-auto xl:max-w-300 xl:px-0", children: /* @__PURE__ */ l("section", { className: "[&_img]:bg-neutral-25 mb-16 w-full overflow-hidden rounded-lg md:mb-12 xl:px-12 [&_h2+p]:pt-6 [&_img]:block [&_img]:h-auto [&_img]:w-full [&_img]:max-w-full", children: /* @__PURE__ */ l(r, { content: m, variant: "unsubscribe" }) }) })
7
7
  ] });
8
8
  export {
9
- n as UnsubscribeTemplate
9
+ a as UnsubscribeTemplate
10
10
  };
@@ -10,13 +10,12 @@ const b = ({
10
10
  fileSizeText: o,
11
11
  disclaimer: i,
12
12
  onAddDocument: r,
13
- onDropDocument: s,
14
- containerClassName: m = "",
13
+ onDropDocument: m,
14
+ containerClassName: s = "",
15
15
  dataQa: p
16
16
  }) => /* @__PURE__ */ l(
17
17
  "div",
18
18
  {
19
- role: "presentation",
20
19
  onDragOver: (e) => {
21
20
  e.preventDefault();
22
21
  },
@@ -24,11 +23,11 @@ const b = ({
24
23
  e.preventDefault();
25
24
  },
26
25
  onDrop: (e) => {
27
- e.preventDefault(), s?.(e);
26
+ e.preventDefault(), m?.(e);
28
27
  },
29
28
  className: c(
30
29
  "group rounded-3xl bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140",
31
- m
30
+ s
32
31
  ),
33
32
  children: [
34
33
  /* @__PURE__ */ t("input", { type: "file", id: "file-upload", className: "sr-only", onChange: r, multiple: !0 }),
@@ -1,8 +1,5 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- const r = ({ children: o }) => (
3
- // eslint-disable-next-line jsx-a11y/media-has-caption
4
- /* @__PURE__ */ e("video", { className: "my-4 w-full max-w-2xl rounded-lg", controls: !0, children: o })
5
- );
2
+ const r = ({ children: o }) => /* @__PURE__ */ e("video", { className: "my-4 w-full max-w-2xl rounded-lg", controls: !0, children: o });
6
3
  export {
7
4
  r as Video
8
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.152.1",
3
+ "version": "0.152.3",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",