@npm_leadtech/legal-contracts-ui 0.152.4 → 0.152.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.
@@ -1,6 +1,6 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
2
  import m from "clsx";
3
- const w = ({ children: o, variant: l = "default", className: c = "", ...t }) => {
3
+ const w = ({ children: l, variant: o = "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: o, variant: l = "default", className: c = "", ...t }) =>
10
10
  unsubscribe: r,
11
11
  cookies: "text-white",
12
12
  story: "text-neutral-800 underline"
13
- }, f = i[l] ?? i.default, h = e.startsWith("http"), d = (() => {
13
+ }, f = i[o] ?? i.default, h = e.startsWith("http"), d = (() => {
14
14
  if (!a) return e;
15
15
  try {
16
- return decodeURIComponent(e).replace(/\s/g, "");
16
+ return decodeURIComponent(e).replaceAll(/\s/g, "");
17
17
  } catch {
18
- return e.replace(/%20/g, "").replace(/\s/g, "");
18
+ return e.replaceAll("%20", "").replaceAll(/\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: o });
21
+ return /* @__PURE__ */ x("a", { ...t, href: d, className: m(c, f), target: s, rel: g, children: l });
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().replace(/:/g, "")}`;
15
+ const t = `toggle-${d().replaceAll(":", "")}`;
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().replace(/\s+/g, "-");
8
+ const m = l.toLowerCase().replaceAll(/\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 r } from "react/jsx-runtime";
2
- import s from "clsx";
3
- const m = ({ children: e, variant: a = "default" }) => {
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import r from "clsx";
3
+ const m = ({ children: e, variant: l = "default" }) => {
4
4
  const t = {
5
5
  default: "mt-5 mb-3 text-super-large text-neutral-800",
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 });
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 });
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, a] = p(!1);
22
+ const [n, c] = p(!1), [N, r] = 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,64 +27,58 @@ const z = ({
27
27
  " ",
28
28
  o && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
29
29
  ] }),
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
- }
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"
49
54
  ),
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
- )
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
+ ] })
88
82
  ] }),
89
83
  /* @__PURE__ */ e(
90
84
  "input",
@@ -99,8 +93,8 @@ const z = ({
99
93
  "text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
100
94
  s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
101
95
  ),
102
- onChange: (r) => {
103
- b?.(r.target.value);
96
+ onChange: (a) => {
97
+ b?.(a.target.value);
104
98
  },
105
99
  ...w
106
100
  }
@@ -4,5 +4,7 @@ export declare const Jumbotron3: FC<Jumbotron3Props>;
4
4
 
5
5
  export declare interface Jumbotron3Props {
6
6
  title: string;
7
+ domain: string;
8
+ className?: string;
7
9
  }
8
10
 
@@ -1,5 +1,5 @@
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 }) }) });
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 }) }) });
3
3
  export {
4
- r as Jumbotron3
4
+ a as Jumbotron3
5
5
  };
@@ -1,9 +1,15 @@
1
1
  import { FC } from 'react';
2
2
 
3
+ export interface Jumbotron3Props {
4
+ title: string;
5
+ domain: string;
6
+ className?: string;
7
+ }
8
+
3
9
  export declare const LegalTemplate: FC<LegalTemplateProps>;
4
10
 
5
11
  export declare interface LegalTemplateProps {
6
- title: string;
12
+ jumbotron: Jumbotron3Props;
7
13
  legalSection: string;
8
14
  }
9
15
 
@@ -1,9 +1,9 @@
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" }) })
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
7
  ] });
8
8
  export {
9
9
  i as LegalTemplate
@@ -1,64 +1,64 @@
1
1
  "use client";
2
- import { jsxs as a, Fragment as f, jsx as o } from "react/jsx-runtime";
2
+ import { jsxs as t, Fragment as u, jsx as e } from "react/jsx-runtime";
3
3
  import { useEffect as m } from "react";
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);
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);
9
9
  }, n = () => {
10
10
  l(!1);
11
- }, u = (e) => {
12
- e.target === e.currentTarget && n();
13
11
  };
14
12
  return m(() => {
15
- if (!t) return;
16
- const e = document.body.style.overflow;
13
+ if (!o) return;
14
+ const d = document.body.style.overflow;
17
15
  return document.body.style.overflow = "hidden", () => {
18
- document.body.style.overflow = e;
16
+ document.body.style.overflow = d;
19
17
  };
20
- }, [t]), /* @__PURE__ */ a(f, { children: [
21
- !!r && /* @__PURE__ */ o(
18
+ }, [o]), /* @__PURE__ */ t(u, { children: [
19
+ !!r && /* @__PURE__ */ e(
22
20
  "button",
23
21
  {
24
22
  type: "button",
25
23
  "aria-label": "zoom",
26
- onClick: d,
24
+ onClick: c,
27
25
  className: "flex w-full cursor-pointer justify-center",
28
26
  children: r
29
27
  }
30
28
  ),
31
- t && p(
32
- /* @__PURE__ */ o(
29
+ o && f(
30
+ /* @__PURE__ */ t(
33
31
  "div",
34
32
  {
35
33
  role: "dialog",
36
34
  "aria-modal": "true",
37
- "data-testid": "modal-backdrop",
38
35
  className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
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
- ) })
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
+ ]
62
62
  }
63
63
  ),
64
64
  document.body
@@ -66,5 +66,5 @@ const w = ({ trigger: r, children: i, isOpen: t, setIsOpen: l, showClose: s, onT
66
66
  ] });
67
67
  };
68
68
  export {
69
- w as Modal
69
+ x as Modal
70
70
  };
@@ -1,83 +1,91 @@
1
1
  "use client";
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(
2
+ import { jsxs as m, jsx as t } from "react/jsx-runtime";
3
+ import { useState as v, useCallback as w, useRef as x, useEffect as C } from "react";
4
+ import { ChevronDownIcon as D } from "./ChevronDownIcon.js";
5
+ import { ChevronRightIcon as _ } from "./ChevronRightIcon.js";
6
+ const q = (r) => {
7
+ const { hasDropdown: I, isNested: b, isOpen: N, onToggle: i, dataQa: k, onItemClick: c } = r, [L, O] = v(!1), [y, f] = v(null), l = N ?? L, n = w(
8
8
  (e) => {
9
- e || u(null), i ? i(e) : I(e);
9
+ e || f(null), i ? i(e) : O(e);
10
10
  },
11
11
  [i]
12
- ), r = $(null);
13
- j(() => {
14
- if (!s) return;
15
- const e = (c) => {
16
- r.current && !r.current.contains(c.target) && n(!1);
12
+ ), d = x(null);
13
+ C(() => {
14
+ if (!l) return;
15
+ const e = (u) => {
16
+ d.current && !d.current.contains(u.target) && n(!1);
17
17
  };
18
18
  return document.addEventListener("mousedown", e), () => {
19
19
  document.removeEventListener("mousedown", e);
20
20
  };
21
- }, [s, n]);
22
- const m = {
21
+ }, [l, n]);
22
+ const p = {
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: P
27
+ Icon: D
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: R
33
+ Icon: _
34
34
  }
35
- }, o = w ? m.nested : m.topLevel, N = o.Icon, f = () => {
36
- n(!1), l.onItemClick && l.onItemClick();
37
- }, k = (e) => {
38
- e.stopPropagation(), n(!s);
39
- }, O = () => {
35
+ }, o = b ? p.nested : p.topLevel, E = o.Icon, s = w(() => {
36
+ n(!1), c && c();
37
+ }, [c, n]), h = x(null);
38
+ C(() => {
39
+ const e = h.current;
40
+ if (e)
41
+ return e.addEventListener("click", s), () => {
42
+ e.removeEventListener("click", s);
43
+ };
44
+ }, [s]);
45
+ const M = (e) => {
46
+ e.stopPropagation(), n(!l);
47
+ }, T = () => {
40
48
  globalThis.window.matchMedia("(hover: hover)").matches && n(!0);
41
- }, y = () => {
49
+ }, $ = () => {
42
50
  globalThis.window.matchMedia("(hover: hover)").matches && n(!1);
43
51
  };
44
- if (g) {
45
- const { dropdownItems: e, label: c } = l;
46
- return /* @__PURE__ */ d(
52
+ if (I) {
53
+ const { dropdownItems: e, label: u } = r;
54
+ return /* @__PURE__ */ m(
47
55
  "li",
48
56
  {
49
- ref: r,
57
+ ref: d,
50
58
  className: o.liClass,
51
- onMouseEnter: O,
52
- onMouseLeave: y,
59
+ onMouseEnter: T,
60
+ onMouseLeave: $,
53
61
  children: [
54
- /* @__PURE__ */ d(
62
+ /* @__PURE__ */ m(
55
63
  "button",
56
64
  {
57
- "data-qa": x,
65
+ "data-qa": k,
58
66
  className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass}`,
59
67
  "aria-haspopup": "menu",
60
- "aria-expanded": s,
61
- onClick: k,
68
+ "aria-expanded": l,
69
+ onClick: M,
62
70
  children: [
63
- /* @__PURE__ */ t("span", { className: "text-medium", children: c }),
64
- /* @__PURE__ */ t(N, { fill: "#000", width: 20, height: 20 })
71
+ /* @__PURE__ */ t("span", { className: "text-medium", children: u }),
72
+ /* @__PURE__ */ t(E, { fill: "#000", width: 20, height: 20 })
65
73
  ]
66
74
  }
67
75
  ),
68
76
  /* @__PURE__ */ t(
69
77
  "div",
70
78
  {
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"}`,
79
+ className: `absolute z-50 min-w-48 transition-all duration-200 ${o.dropdownPosition} ${l ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
72
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((a) => /* @__PURE__ */ t(
73
- D,
81
+ q,
74
82
  {
75
83
  ...a,
76
84
  isNested: !0,
77
- onItemClick: f,
78
- isOpen: b === a.id,
79
- onToggle: (E) => {
80
- u(E ? a.id : null);
85
+ onItemClick: s,
86
+ isOpen: y === a.id,
87
+ onToggle: (R) => {
88
+ f(R ? a.id : null);
81
89
  }
82
90
  },
83
91
  a.id
@@ -88,18 +96,18 @@ const D = (l) => {
88
96
  }
89
97
  );
90
98
  }
91
- const { link: L, tag: h, bold: M } = l;
92
- return /* @__PURE__ */ t("li", { className: o.liClass, onClick: f, children: /* @__PURE__ */ d(
99
+ const { link: j, tag: g, bold: P } = r;
100
+ return /* @__PURE__ */ t("li", { ref: h, className: o.liClass, children: /* @__PURE__ */ m(
93
101
  "span",
94
102
  {
95
103
  className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${o.triggerClass} `,
96
104
  children: [
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 })
105
+ /* @__PURE__ */ t("span", { className: `text-medium flex-1 ${P ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`, children: j }),
106
+ g && /* @__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: g })
99
107
  ]
100
108
  }
101
109
  ) });
102
110
  };
103
111
  export {
104
- D as NavMenuItem
112
+ q as NavMenuItem
105
113
  };
@@ -1,7 +1,7 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
2
  import { Markdown as d } from "./Markdown.js";
3
- import { LinkWrapper as p } from "./LinkWrapper.js";
4
- const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
3
+ import { LinkWrapper as m } from "./LinkWrapper.js";
4
+ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: t }) => {
5
5
  const a = {
6
6
  Primary: {
7
7
  container: "bg-neutral-25",
@@ -14,14 +14,14 @@ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
14
14
  button: "primary-yellow"
15
15
  }
16
16
  }, c = { Primary: "bg-primary-100 p-2 rounded-lg", Secondary: "bg-secondary-200 p-2 rounded-lg" };
17
- return /* @__PURE__ */ t("div", { className: `${a[r].container} flex h-full flex-col gap-6 rounded-2xl p-6`, children: [
17
+ return /* @__PURE__ */ n("div", { className: `${a[r].container} flex h-full flex-col gap-6 rounded-2xl p-6`, children: [
18
18
  /* @__PURE__ */ e("span", { className: `text-big w-fit rounded-lg px-4 py-2 font-bold ${a[r].chip}`, children: i }),
19
19
  /* @__PURE__ */ e("p", { className: "text-medium font-bold text-neutral-800", children: s }),
20
20
  /* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
21
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-4", children: o.map((l) => /* @__PURE__ */ t(
21
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-6", children: o.map((l) => /* @__PURE__ */ n(
22
22
  "li",
23
23
  {
24
- className: `flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
24
+ className: `text-small flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
25
25
  children: [
26
26
  /* @__PURE__ */ e("div", { className: "pt-0.5", children: l.image }),
27
27
  /* @__PURE__ */ e(d, { content: l.text, className: "mb-0!", variant: "legal" })
@@ -29,13 +29,13 @@ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
29
29
  },
30
30
  l.id
31
31
  )) }),
32
- n != null && /* @__PURE__ */ e(
33
- p,
32
+ t != null && /* @__PURE__ */ e(
33
+ m,
34
34
  {
35
35
  size: "large",
36
36
  variant: a[r].button,
37
37
  className: "text-medium w-fit justify-center font-bold",
38
- children: n
38
+ children: t
39
39
  }
40
40
  )
41
41
  ] });
@@ -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 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: [
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: [
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("p", { className: "text-small font-bold text-neutral-900", children: r })
7
+ /* @__PURE__ */ e("h5", { className: "text-small font-semibold text-neutral-900", children: r })
8
8
  ] }),
9
- /* @__PURE__ */ e(a, { className: "text-small", variant: "tooltip", content: l })
9
+ /* @__PURE__ */ e(s, { className: "text-small", variant: "tooltip", content: l })
10
10
  ] });
11
11
  export {
12
- i as Tooltips
12
+ n as Tooltips
13
13
  };
@@ -1,15 +1,21 @@
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",
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",
6
12
  legal: "space-y-4 mb-4 py-2 list-outside list-disc pl-8 pr-4 text-neutral-800",
7
- ratafia: "mb-3 space-y-2 py-0 list-outside list-disc pl-5 pr-1 text-white/85 marker:text-white/60",
13
+ ratafia: "mb-3 space-y-2 py-0",
8
14
  tooltip: "gap-2 marker:text-secondary-600 flex list-inside list-disc flex-col px-4 text-neutral-900",
9
15
  unsubscribe: "mb-4 py-2 w-full list-outside list-disc pl-10 text-neutral-800"
10
- }, l = t[s] ?? t.default;
11
- return /* @__PURE__ */ i("ul", { className: a(l), children: e });
16
+ }, i = s[t] ?? s.default, a = l[t] ?? l.default;
17
+ return /* @__PURE__ */ r("ul", { className: c(i, a), children: e });
12
18
  };
13
19
  export {
14
- c as UnorderedList
20
+ u as UnorderedList
15
21
  };