@npm_leadtech/legal-contracts-ui 0.146.0 → 0.147.1

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.
@@ -11,13 +11,13 @@ const j = ({
11
11
  pdfDownload: t,
12
12
  wordDownload: n
13
13
  }) => {
14
- const [f, x] = u(!1), i = g(null);
14
+ const [f, p] = u(!1), i = g(null);
15
15
  return b(() => {
16
16
  const a = i.current;
17
17
  if (!a) return;
18
18
  const m = new IntersectionObserver(
19
- ([p]) => {
20
- x(!p.isIntersecting);
19
+ ([x]) => {
20
+ p(!x.isIntersecting);
21
21
  },
22
22
  { threshold: 0 }
23
23
  );
@@ -35,7 +35,7 @@ const j = ({
35
35
  /* @__PURE__ */ e("div", { className: "border border-neutral-200 shadow", children: d }),
36
36
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-8 self-start", children: [
37
37
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
38
- /* @__PURE__ */ e("h2", { className: "text-big md:text-large font-bold", children: o }),
38
+ /* @__PURE__ */ e("p", { className: "text-big md:text-large font-bold", children: o }),
39
39
  /* @__PURE__ */ e("span", { className: "h-px w-full bg-neutral-200" }),
40
40
  c.length > 0 && /* @__PURE__ */ e("ul", { className: "flex flex-col gap-4 md:gap-8", children: c.map((a) => /* @__PURE__ */ l("li", { className: "text-small flex gap-2", children: [
41
41
  /* @__PURE__ */ e("span", { className: "text-primary-500", children: "•" }),
@@ -47,7 +47,7 @@ const k = ({
47
47
  children: [
48
48
  e.title && /* @__PURE__ */ l("div", { className: `flex items-center gap-2 px-6 ${i ? "bg-neutral-50 py-4" : ""}`, children: [
49
49
  e.icon != null && /* @__PURE__ */ r("span", { className: "text-primary-700", children: e.icon }),
50
- /* @__PURE__ */ r("h4", { className: "text-medium font-semibold", children: e.title })
50
+ /* @__PURE__ */ r("p", { className: "text-medium font-semibold", children: e.title })
51
51
  ] }),
52
52
  e.items != null && /* @__PURE__ */ l("ul", { className: `flex flex-col gap-4 ${i ? "p-6" : "px-6 py-4"}`, children: [
53
53
  e.items.map((a) => /* @__PURE__ */ l("li", { className: "text-medium flex items-center gap-1", children: [
@@ -1,41 +1,64 @@
1
1
  "use client";
2
- import { jsxs as s, Fragment as f, jsx as e } from "react/jsx-runtime";
3
- import { useEffect as d } from "react";
4
- import { createPortal as m } from "react-dom";
2
+ import { jsxs as a, Fragment as f, jsx as o } from "react/jsx-runtime";
3
+ import { useEffect as m } from "react";
4
+ import { createPortal as p } from "react-dom";
5
5
  import { CloseIcon as y } from "./CloseIcon.js";
6
- const x = ({ trigger: l, children: a, isOpen: o, setIsOpen: c, showClose: i, onTrigger: n }) => {
7
- const r = () => {
8
- n && n(), c(!o);
9
- }, u = (t) => {
10
- t.target === t.currentTarget && r();
6
+ const w = ({ trigger: r, children: i, isOpen: t, setIsOpen: l, showClose: s, onTrigger: c }) => {
7
+ const d = () => {
8
+ c?.(), l(!0);
9
+ }, n = () => {
10
+ l(!1);
11
+ }, u = (e) => {
12
+ e.target === e.currentTarget && n();
11
13
  };
12
- return d(() => {
13
- if (!o) return;
14
- const t = document.body.style.overflow;
14
+ return m(() => {
15
+ if (!t) return;
16
+ const e = document.body.style.overflow;
15
17
  return document.body.style.overflow = "hidden", () => {
16
- document.body.style.overflow = t;
18
+ document.body.style.overflow = e;
17
19
  };
18
- }, [o]), /* @__PURE__ */ s(f, { children: [
19
- !!l && /* @__PURE__ */ e("button", { "aria-label": "zoom", onClick: r, className: "flex w-full cursor-pointer justify-center", children: l }),
20
- o && m(
21
- /* @__PURE__ */ e(
22
- "button",
20
+ }, [t]), /* @__PURE__ */ a(f, { children: [
21
+ !!r && /* @__PURE__ */ o(
22
+ "button",
23
+ {
24
+ type: "button",
25
+ "aria-label": "zoom",
26
+ onClick: d,
27
+ className: "flex w-full cursor-pointer justify-center",
28
+ children: r
29
+ }
30
+ ),
31
+ t && p(
32
+ /* @__PURE__ */ o(
33
+ "div",
23
34
  {
35
+ role: "dialog",
36
+ "aria-modal": "true",
37
+ "data-testid": "modal-backdrop",
24
38
  className: "bg-primary-900/80 fixed inset-0 z-1001 flex items-center justify-center",
25
39
  onClick: u,
26
- children: /* @__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__ */ s("div", { className: "pointer-events-auto relative", children: [
27
- i && /* @__PURE__ */ e(
28
- "button",
29
- {
30
- type: "button",
31
- className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
32
- onClick: r,
33
- "aria-label": "Close",
34
- children: /* @__PURE__ */ e(y, {})
35
- }
36
- ),
37
- a
38
- ] }) })
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
+ ) })
39
62
  }
40
63
  ),
41
64
  document.body
@@ -43,5 +66,5 @@ const x = ({ trigger: l, children: a, isOpen: o, setIsOpen: c, showClose: i, onT
43
66
  ] });
44
67
  };
45
68
  export {
46
- x as Modal
69
+ w as Modal
47
70
  };
@@ -1,17 +1,17 @@
1
1
  "use client";
2
- import { jsxs as c, Fragment as n, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as c, Fragment as x, jsx as e } from "react/jsx-runtime";
3
3
  import "react";
4
- import { Tooltips as p } from "./Tooltips.js";
4
+ import { Tooltips as n } from "./Tooltips.js";
5
5
  import { PreformMobile as a } from "./PreformMobile.js";
6
6
  import { PreformOption as f } from "./PreformOption.js";
7
7
  import { TrustedBadge as i } from "./TrustedBadge.js";
8
8
  import { Input as h } from "./Input.js";
9
9
  import { LinkWrapper as t } from "./LinkWrapper.js";
10
- const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: x }) => /* @__PURE__ */ c(n, { children: [
10
+ const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: p }) => /* @__PURE__ */ c(x, { children: [
11
11
  /* @__PURE__ */ e("section", { className: "bg-neutral-25 hidden pt-10 text-neutral-800 sm:block sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
12
12
  /* @__PURE__ */ e(i, { ...s }),
13
- m?.isVisible && /* @__PURE__ */ c(n, { children: [
14
- /* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
13
+ m?.isVisible && /* @__PURE__ */ c(x, { children: [
14
+ /* @__PURE__ */ e("p", { className: "text-medium sm:text-large font-bold", children: m.label }),
15
15
  /* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
16
16
  m.options.map((r) => /* @__PURE__ */ e(
17
17
  "div",
@@ -43,7 +43,7 @@ const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tool
43
43
  ] })
44
44
  ] }),
45
45
  /* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
46
- x.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: x.map((r) => /* @__PURE__ */ e(p, { ...r }, r.title)) })
46
+ p.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: p.map((r) => /* @__PURE__ */ e(n, { ...r }, r.title)) })
47
47
  ] }) }),
48
48
  /* @__PURE__ */ e(
49
49
  a,
@@ -134,7 +134,7 @@ export declare interface PricingTemplateProps {
134
134
  resources: PricingResourcesSectionProps;
135
135
  support: PricingSupportTeaserSectionProps;
136
136
  offerings: PricingOfferingsSectionProps;
137
- faq: FaqSectionProps;
137
+ faq: FaqSectionProps | null;
138
138
  }
139
139
 
140
140
  export type ResponsiveButtonVariant = ButtonVariant | {
@@ -1,34 +1,34 @@
1
- import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
- import { PricingResourcesSection as a } from "./PricingResourcesSection.js";
1
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
2
+ import { PricingResourcesSection as c } from "./PricingResourcesSection.js";
3
3
  import { Jumbotron2 as s } from "./Jumbotron2.js";
4
4
  import { IntroSection as f } from "./IntroSection.js";
5
5
  import { PricingPlansSection as p } from "./PricingPlansSection.js";
6
6
  import { PricingOfferingsSection as u } from "./PricingOfferingsSection.js";
7
7
  import { PricingSupportTeaserSection as x } from "./PricingSupportTeaserSection.js";
8
8
  import { FaqSection as g } from "./FaqSection.js";
9
- const j = ({
10
- jumbotron: r,
11
- intro: n,
9
+ const h = ({
10
+ jumbotron: e,
11
+ intro: r,
12
12
  plans: i,
13
- support: e,
14
- offerings: m,
15
- faq: l,
16
- resources: o
17
- }) => /* @__PURE__ */ c("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
18
- /* @__PURE__ */ t(s, { ...r, className: "bg-primary-50 w-full py-4 text-3xl" }),
19
- /* @__PURE__ */ t(f, { ...n, className: "bg-primary-50" }),
13
+ support: m,
14
+ offerings: l,
15
+ faq: o,
16
+ resources: n
17
+ }) => /* @__PURE__ */ a("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
18
+ /* @__PURE__ */ t(s, { ...e, className: "bg-primary-50 w-full py-4 text-3xl" }),
19
+ /* @__PURE__ */ t(f, { ...r, className: "bg-primary-50" }),
20
20
  /* @__PURE__ */ t(p, { ...i }),
21
21
  /* @__PURE__ */ t(
22
- a,
22
+ c,
23
23
  {
24
- firstColumnContent: o.firstColumnContent,
25
- secondColumnContent: o.secondColumnContent
24
+ firstColumnContent: n.firstColumnContent,
25
+ secondColumnContent: n.secondColumnContent
26
26
  }
27
27
  ),
28
- /* @__PURE__ */ t(u, { ...m }),
29
- /* @__PURE__ */ t(x, { ...e }),
30
- /* @__PURE__ */ t("div", { className: "bg-neutral-25 flex w-full justify-center pt-12 pb-20", children: /* @__PURE__ */ t(g, { ...l, className: "w-full max-w-300 px-5", variant: "pricing" }) })
28
+ /* @__PURE__ */ t(u, { ...l }),
29
+ /* @__PURE__ */ t(x, { ...m }),
30
+ !!o?.faqItems && o?.faqItems.length && /* @__PURE__ */ t("div", { className: "bg-neutral-25 flex w-full justify-center pt-12 pb-20", children: /* @__PURE__ */ t(g, { ...o, className: "w-full max-w-300 px-5", variant: "pricing" }) })
31
31
  ] });
32
32
  export {
33
- j as PricingTemplate
33
+ h as PricingTemplate
34
34
  };
@@ -1,14 +1,31 @@
1
1
  import { jsx as l } from "react/jsx-runtime";
2
2
  import "react";
3
- const i = (e) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none", viewBox: "0 0 16 16", ...e, children: /* @__PURE__ */ l(
4
- "path",
3
+ const i = ({
4
+ fill: a = "var(--color-neutral-900)",
5
+ width: e = 16,
6
+ height: o = 16,
7
+ ...n
8
+ }) => /* @__PURE__ */ l(
9
+ "svg",
5
10
  {
6
- fill: "var(--color-neutral-900)",
7
- fillRule: "evenodd",
8
- d: "m10.028 7.423-1.306 1.45V1.806a.722.722 0 0 0-1.444 0v7.067l-1.306-1.45a.759.759 0 0 0-1.129 1.014l2.412 2.691a1 1 0 0 0 1.49 0l2.412-2.69a.76.76 0 0 0-1.13-1.015m3.028 1.633a.722.722 0 1 1 1.444 0v5.528a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V9.056a.722.722 0 0 1 1.444 0v4.916h10.112z",
9
- clipRule: "evenodd"
11
+ className: "shrink-0",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ width: e,
14
+ height: o,
15
+ fill: "none",
16
+ viewBox: "0 0 16 16",
17
+ ...n,
18
+ children: /* @__PURE__ */ l(
19
+ "path",
20
+ {
21
+ fill: a,
22
+ fillRule: "evenodd",
23
+ d: "m10.028 7.423-1.306 1.45V1.806a.722.722 0 0 0-1.444 0v7.067l-1.306-1.45a.759.759 0 0 0-1.129 1.014l2.412 2.691a1 1 0 0 0 1.49 0l2.412-2.69a.76.76 0 0 0-1.13-1.015m3.028 1.633a.722.722 0 1 1 1.444 0v5.528a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1V9.056a.722.722 0 0 1 1.444 0v4.916h10.112z",
24
+ clipRule: "evenodd"
25
+ }
26
+ )
10
27
  }
11
- ) });
28
+ );
12
29
  export {
13
30
  i as SaveIcon
14
31
  };