@npm_leadtech/legal-contracts-ui 0.131.1 → 0.131.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.
- package/dist/components/AiLegalDocumentReviewerTemplate.d.ts +1 -0
- package/dist/components/AllDocumentsTemplate.d.ts +1 -0
- package/dist/components/CategoryProductTemplate.d.ts +1 -0
- package/dist/components/ElectronicSignatureTemplate.d.ts +1 -0
- package/dist/components/FaqItem.d.ts +1 -0
- package/dist/components/FaqItem.js +10 -9
- package/dist/components/FaqSection.d.ts +1 -0
- package/dist/components/FaqsTemplate.d.ts +1 -0
- package/dist/components/FaqsTemplate.js +25 -11
- package/dist/components/PricingTemplate.d.ts +1 -0
- package/dist/components/ProductTemplate.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
|
-
import { useId as
|
|
3
|
-
import { FaqItemWrapper as
|
|
4
|
-
import { Markdown as
|
|
2
|
+
import { useId as d } from "react";
|
|
3
|
+
import { FaqItemWrapper as p } from "./FaqItemWrapper.js";
|
|
4
|
+
import { Markdown as h } from "./Markdown.js";
|
|
5
5
|
import { ChevronDownIcon as o } from "./ChevronDownIcon.js";
|
|
6
|
-
const
|
|
6
|
+
const I = ({
|
|
7
7
|
question: n,
|
|
8
8
|
answer: l,
|
|
9
9
|
showMoreText: a,
|
|
10
10
|
collapsedButtonText: i,
|
|
11
11
|
expandedButtonText: s,
|
|
12
|
-
variant: m
|
|
12
|
+
variant: m,
|
|
13
|
+
slug: c
|
|
13
14
|
}) => {
|
|
14
|
-
const t = `toggle-${
|
|
15
|
-
return /* @__PURE__ */ e("div", { className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(
|
|
16
|
-
/* @__PURE__ */ e(
|
|
15
|
+
const t = `toggle-${d().replace(/:/g, "")}`;
|
|
16
|
+
return /* @__PURE__ */ e("div", { id: c, className: "text-medium flex flex-col rounded bg-white p-4 text-neutral-800 shadow", children: /* @__PURE__ */ r(p, { question: /* @__PURE__ */ e("span", { className: "font-bold", children: n }), children: [
|
|
17
|
+
/* @__PURE__ */ e(h, { content: l, className: "text-medium", variant: m ?? "default" }),
|
|
17
18
|
a && /* @__PURE__ */ r("div", { className: "mt-4 rounded-lg bg-neutral-50 p-6", children: [
|
|
18
19
|
/* @__PURE__ */ e("input", { type: "checkbox", id: t, className: "peer sr-only" }),
|
|
19
20
|
/* @__PURE__ */ e("p", { className: "mb-4 line-clamp-4 text-xs leading-relaxed wrap-break-word text-neutral-800 peer-checked:line-clamp-none", children: a }),
|
|
@@ -49,5 +50,5 @@ const b = ({
|
|
|
49
50
|
] }) });
|
|
50
51
|
};
|
|
51
52
|
export {
|
|
52
|
-
|
|
53
|
+
I as FaqItem
|
|
53
54
|
};
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r, jsxs as s } from "react/jsx-runtime";
|
|
3
|
+
import { useEffect as i } from "react";
|
|
4
|
+
import { AsideNavMenu as m } from "./AsideNavMenu.js";
|
|
5
|
+
import { Jumbotron2 as f } from "./Jumbotron2.js";
|
|
6
|
+
import { FaqSection as d } from "./FaqSection.js";
|
|
7
|
+
const v = ({ jumbotron: n, asideNavMenu: a, faqSections: c }) => (i(() => {
|
|
8
|
+
const e = window.location.hash.replace("#", "");
|
|
9
|
+
if (!e) return;
|
|
10
|
+
const o = () => {
|
|
11
|
+
const l = document.getElementById(e);
|
|
12
|
+
return l ? (l.scrollIntoView({ behavior: "smooth", block: "start" }), !0) : !1;
|
|
13
|
+
};
|
|
14
|
+
if (o()) return;
|
|
15
|
+
const t = new MutationObserver(() => {
|
|
16
|
+
o() && t.disconnect();
|
|
17
|
+
});
|
|
18
|
+
return t.observe(document.body, { childList: !0, subtree: !0 }), () => t.disconnect();
|
|
19
|
+
}, []), /* @__PURE__ */ r("main", { className: "bg-primary-50 flex-1 px-4 py-10 text-neutral-800 md:px-8", children: /* @__PURE__ */ s("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-10", children: [
|
|
20
|
+
/* @__PURE__ */ r(f, { ...n }),
|
|
21
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col gap-10 md:flex-row md:gap-24", children: [
|
|
22
|
+
/* @__PURE__ */ r(m, { ...a }),
|
|
23
|
+
/* @__PURE__ */ r("div", { className: "flex flex-1 flex-col gap-10", children: c.map((e) => /* @__PURE__ */ r(d, { ...e }, e.title)) })
|
|
10
24
|
] })
|
|
11
|
-
] }) });
|
|
25
|
+
] }) }));
|
|
12
26
|
export {
|
|
13
|
-
|
|
27
|
+
v as FaqsTemplate
|
|
14
28
|
};
|