@npm_leadtech/legal-contracts-ui 0.152.6 → 0.153.0

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,91 +1,83 @@
1
1
  "use client";
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(
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 || f(null), i ? i(e) : O(e);
9
+ e || u(null), i ? i(e) : I(e);
10
10
  },
11
11
  [i]
12
- ), d = x(null);
13
- C(() => {
14
- if (!l) return;
15
- const e = (u) => {
16
- d.current && !d.current.contains(u.target) && n(!1);
12
+ ), r = $(null);
13
+ j(() => {
14
+ if (!s) return;
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
- }, [l, n]);
22
- const p = {
21
+ }, [s, n]);
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: D
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: _
33
+ Icon: R
34
34
  }
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 = () => {
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 = () => {
48
40
  globalThis.window.matchMedia("(hover: hover)").matches && n(!0);
49
- }, $ = () => {
41
+ }, y = () => {
50
42
  globalThis.window.matchMedia("(hover: hover)").matches && n(!1);
51
43
  };
52
- if (I) {
53
- const { dropdownItems: e, label: u } = r;
54
- return /* @__PURE__ */ m(
44
+ if (g) {
45
+ const { dropdownItems: e, label: c } = l;
46
+ return /* @__PURE__ */ d(
55
47
  "li",
56
48
  {
57
- ref: d,
49
+ ref: r,
58
50
  className: o.liClass,
59
- onMouseEnter: T,
60
- onMouseLeave: $,
51
+ onMouseEnter: O,
52
+ onMouseLeave: y,
61
53
  children: [
62
- /* @__PURE__ */ m(
54
+ /* @__PURE__ */ d(
63
55
  "button",
64
56
  {
65
- "data-qa": k,
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
- "aria-expanded": l,
69
- onClick: M,
60
+ "aria-expanded": s,
61
+ onClick: k,
70
62
  children: [
71
- /* @__PURE__ */ t("span", { className: "text-medium", children: u }),
72
- /* @__PURE__ */ t(E, { 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
  ),
76
68
  /* @__PURE__ */ t(
77
69
  "div",
78
70
  {
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"}`,
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
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(
81
- q,
73
+ D,
82
74
  {
83
75
  ...a,
84
76
  isNested: !0,
85
- onItemClick: s,
86
- isOpen: y === a.id,
87
- onToggle: (R) => {
88
- f(R ? a.id : null);
77
+ onItemClick: f,
78
+ isOpen: b === a.id,
79
+ onToggle: (E) => {
80
+ u(E ? a.id : null);
89
81
  }
90
82
  },
91
83
  a.id
@@ -96,18 +88,18 @@ const q = (r) => {
96
88
  }
97
89
  );
98
90
  }
99
- const { link: j, tag: g, bold: P } = r;
100
- return /* @__PURE__ */ t("li", { ref: h, className: o.liClass, children: /* @__PURE__ */ m(
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 ${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 })
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
- q as NavMenuItem
104
+ D as NavMenuItem
113
105
  };
@@ -1,13 +1,13 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- const n = ({ variant: a = "default", children: e }) => {
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ const m = ({ variant: a = "default", children: e }) => {
3
3
  const t = {
4
4
  default: "mb-4",
5
- legal: "mb-4 text-neutral-800 last:mb-0 tracking-tight",
6
- ratafia: "mb-3 text-white/85 last:mb-0 tracking-tight",
7
- unsubscribe: "mb-0 w-full rounded-lg bg-neutral-25 px-6 pb-6 text-left text-base leading-6 text-neutral-800 md:text-lg lg:px-ds-11xl"
8
- }, l = t[a] ?? t.default;
9
- return /* @__PURE__ */ r("p", { className: l, children: e });
5
+ legal: "mb-4 text-neutral-800 last:mb-0",
6
+ ratafia: "mb-3 text-white last:mb-0",
7
+ unsubscribe: "bg-neutral-25 px-6 pb-6 text-medium text-neutral-800 lg:px-55"
8
+ }, r = t[a] ?? t.default;
9
+ return /* @__PURE__ */ l("p", { className: r, children: e });
10
10
  };
11
11
  export {
12
- n as Paragraph
12
+ m as Paragraph
13
13
  };
@@ -1,7 +1,7 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
2
  import { Markdown as d } from "./Markdown.js";
3
- import { LinkWrapper as m } from "./LinkWrapper.js";
4
- const x = ({ variant: r, title: i, subtitle: s, items: o, cta: t }) => {
3
+ import { LinkWrapper as p } from "./LinkWrapper.js";
4
+ const x = ({ variant: r, title: i, subtitle: s, items: o, cta: n }) => {
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: t }) => {
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__ */ n("div", { className: `${a[r].container} flex h-full flex-col gap-6 rounded-2xl p-6`, children: [
17
+ return /* @__PURE__ */ t("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-6", children: o.map((l) => /* @__PURE__ */ n(
21
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-4", children: o.map((l) => /* @__PURE__ */ t(
22
22
  "li",
23
23
  {
24
- className: `text-small flex items-start gap-2 ${l.isHighlighted ? c[l.cardStyles || "Primary"] : ""}`,
24
+ className: `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: t }) => {
29
29
  },
30
30
  l.id
31
31
  )) }),
32
- t != null && /* @__PURE__ */ e(
33
- m,
32
+ n != null && /* @__PURE__ */ e(
33
+ p,
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: t
38
+ children: n
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 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
  };