@npm_leadtech/legal-contracts-ui 0.161.0 → 0.162.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.
|
@@ -3,70 +3,70 @@ import { Textarea as b } from "./Textarea.js";
|
|
|
3
3
|
import { Checkbox as v } from "./Checkbox.js";
|
|
4
4
|
import { ClearIcon as y } from "./ClearIcon.js";
|
|
5
5
|
import { DoneIcon as w } from "./DoneIcon.js";
|
|
6
|
-
import { Input as
|
|
6
|
+
import { Input as n } from "./Input.js";
|
|
7
7
|
import { Select as j } from "./Select.js";
|
|
8
|
-
import { Markdown as
|
|
9
|
-
import { InfoIcon as
|
|
8
|
+
import { Markdown as I } from "./Markdown.js";
|
|
9
|
+
import { InfoIcon as S } from "./InfoIcon.js";
|
|
10
10
|
import { Button as o } from "./Button.js";
|
|
11
|
-
import { LinkWrapper as
|
|
12
|
-
const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }),
|
|
11
|
+
import { LinkWrapper as k } from "./LinkWrapper.js";
|
|
12
|
+
const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }), L = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
13
13
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "bg-error-20 w-fit rounded-full p-3", children: /* @__PURE__ */ e(y, { width: 48, height: 48, fill: "var(--error-500)" }) }),
|
|
15
15
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
16
|
-
/* @__PURE__ */ e("p", {
|
|
16
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
17
17
|
] }),
|
|
18
|
-
/* @__PURE__ */ e(o, { ...
|
|
19
|
-
] }),
|
|
18
|
+
/* @__PURE__ */ e(o, { ...i, variant: "primary-green" })
|
|
19
|
+
] }), B = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
20
20
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
21
21
|
/* @__PURE__ */ e("div", { className: "bg-primary-100 w-fit rounded-full p-3", children: /* @__PURE__ */ e(w, { width: 48, height: 48, fill: "var(--color-primary-500)" }) }),
|
|
22
22
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
23
|
-
/* @__PURE__ */ e("p", {
|
|
23
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
24
24
|
] }),
|
|
25
|
-
/* @__PURE__ */ e(
|
|
25
|
+
/* @__PURE__ */ e(k, { className: "w-fit", children: i })
|
|
26
26
|
] }), G = ({
|
|
27
27
|
title: r,
|
|
28
|
-
subjectOptions:
|
|
29
|
-
fullNameField:
|
|
28
|
+
subjectOptions: l,
|
|
29
|
+
fullNameField: i,
|
|
30
30
|
emailField: m,
|
|
31
31
|
referenceNumberField: d,
|
|
32
32
|
subjectField: p,
|
|
33
33
|
messageField: f,
|
|
34
|
-
privacyField:
|
|
34
|
+
privacyField: s,
|
|
35
35
|
requiredFieldsText: h,
|
|
36
|
-
securityHint:
|
|
37
|
-
status:
|
|
38
|
-
successFeedback:
|
|
39
|
-
errorFeedback:
|
|
40
|
-
onSubmit:
|
|
41
|
-
button:
|
|
36
|
+
securityHint: x,
|
|
37
|
+
status: a = "default",
|
|
38
|
+
successFeedback: u,
|
|
39
|
+
errorFeedback: N,
|
|
40
|
+
onSubmit: g,
|
|
41
|
+
button: c
|
|
42
42
|
}) => /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
43
43
|
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
44
44
|
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: r }),
|
|
45
45
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
|
|
46
46
|
] }),
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/* @__PURE__ */ e(
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
/* @__PURE__ */ e(
|
|
54
|
-
/* @__PURE__ */ e(j, { ...p, options:
|
|
47
|
+
a === "loading" && /* @__PURE__ */ e(C, {}),
|
|
48
|
+
a === "error" && /* @__PURE__ */ e(L, { ...N }),
|
|
49
|
+
a === "success" && /* @__PURE__ */ e(B, { ...u }),
|
|
50
|
+
a === "default" && /* @__PURE__ */ t("form", { className: "mt-6 flex flex-col gap-6", noValidate: !0, onSubmit: g, children: [
|
|
51
|
+
/* @__PURE__ */ e(n, { ...i, type: "text" }),
|
|
52
|
+
/* @__PURE__ */ e(n, { ...m, type: "email" }),
|
|
53
|
+
/* @__PURE__ */ e(n, { ...d }),
|
|
54
|
+
/* @__PURE__ */ e(j, { ...p, options: l }),
|
|
55
55
|
/* @__PURE__ */ e(b, { ...f }),
|
|
56
56
|
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: h }),
|
|
57
|
-
/* @__PURE__ */ e(v, { ...
|
|
57
|
+
/* @__PURE__ */ e(v, { ...s, children: /* @__PURE__ */ e(I, { className: "text-medium [&_p:last-child]:mb-0", content: s.label }) }),
|
|
58
58
|
/* @__PURE__ */ t(
|
|
59
59
|
"div",
|
|
60
60
|
{
|
|
61
61
|
id: "security-hint",
|
|
62
62
|
className: "text-small flex items-start gap-2 rounded bg-neutral-50 p-4 text-neutral-600",
|
|
63
63
|
children: [
|
|
64
|
-
/* @__PURE__ */ e(
|
|
65
|
-
/* @__PURE__ */ e("p", { children:
|
|
64
|
+
/* @__PURE__ */ e(S, { width: 24, height: 24, "aria-hidden": "true" }),
|
|
65
|
+
/* @__PURE__ */ e("p", { children: x })
|
|
66
66
|
]
|
|
67
67
|
}
|
|
68
68
|
),
|
|
69
|
-
/* @__PURE__ */ e(o, { ...
|
|
69
|
+
/* @__PURE__ */ e(o, { ...c, className: "w-fit self-center", type: "submit", children: c.children })
|
|
70
70
|
] })
|
|
71
71
|
] });
|
|
72
72
|
export {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as r, jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { Jumbotron as u } from "./Jumbotron.js";
|
|
3
3
|
import { JumboDocs as g } from "./JumboDocs.js";
|
|
4
4
|
import { Preform as h } from "./Preform.js";
|
|
5
5
|
import { ProductInfo as N } from "./ProductInfo.js";
|
|
6
6
|
import { BenefitsBar as b } from "./BenefitsBar.js";
|
|
7
|
-
import { Breadcrumb as
|
|
8
|
-
import { TableOfContents as
|
|
7
|
+
import { Breadcrumb as v } from "./Breadcrumb.js";
|
|
8
|
+
import { TableOfContents as P } from "./TableOfContents.js";
|
|
9
9
|
import { ContentItem as B } from "./ContentItem.js";
|
|
10
10
|
import { FaqSection as T } from "./FaqSection.js";
|
|
11
11
|
import { PreviewDownload as k } from "./PreviewDownload.js";
|
|
@@ -14,10 +14,10 @@ import { TryNowSection as F } from "./TryNowSection.js";
|
|
|
14
14
|
import { FreeDocumentModal as I } from "./FreeDocumentModal.js";
|
|
15
15
|
const M = ({
|
|
16
16
|
jumbotron: p,
|
|
17
|
-
jumboDocs:
|
|
17
|
+
jumboDocs: o,
|
|
18
18
|
preform: t,
|
|
19
|
-
productInfo:
|
|
20
|
-
benefitsBar:
|
|
19
|
+
productInfo: n,
|
|
20
|
+
benefitsBar: f,
|
|
21
21
|
breadcrumb: s,
|
|
22
22
|
tableOfContents: c,
|
|
23
23
|
contentItems: x,
|
|
@@ -25,27 +25,27 @@ const M = ({
|
|
|
25
25
|
previewDownload: w,
|
|
26
26
|
previewSection: e,
|
|
27
27
|
tryNowSection: l,
|
|
28
|
-
freeDocModal:
|
|
29
|
-
}) => /* @__PURE__ */
|
|
28
|
+
freeDocModal: a
|
|
29
|
+
}) => /* @__PURE__ */ r("main", { className: "min-w-0 flex-1", children: [
|
|
30
30
|
/* @__PURE__ */ m(u, { ...p }),
|
|
31
|
-
|
|
31
|
+
o && /* @__PURE__ */ m(g, { ...o }),
|
|
32
32
|
t && /* @__PURE__ */ m(h, { ...t }),
|
|
33
|
-
/* @__PURE__ */ m(N, { ...
|
|
34
|
-
/* @__PURE__ */ m(b, { ...
|
|
35
|
-
/* @__PURE__ */ m("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */
|
|
36
|
-
/* @__PURE__ */ m(
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */ m(
|
|
40
|
-
x.map((
|
|
41
|
-
/* @__PURE__ */ m(T, { ...d })
|
|
33
|
+
/* @__PURE__ */ m(N, { ...n }),
|
|
34
|
+
/* @__PURE__ */ m(b, { ...f }),
|
|
35
|
+
/* @__PURE__ */ m("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: [
|
|
36
|
+
/* @__PURE__ */ m(v, { ...s }),
|
|
37
|
+
/* @__PURE__ */ r("div", { className: "flex w-full min-w-0 items-start md:gap-4 lg:gap-26.5 xl:gap-31", children: [
|
|
38
|
+
/* @__PURE__ */ r("div", { className: "flex w-full max-w-100 min-w-0 flex-col gap-8 lg:max-w-137.5 xl:max-w-172.5", children: [
|
|
39
|
+
/* @__PURE__ */ m(P, { ...c }),
|
|
40
|
+
x.map((i) => /* @__PURE__ */ m(B, { ...i }, i.id)),
|
|
41
|
+
/* @__PURE__ */ m(T, { ...d, variant: "legal" })
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ m("aside", { className: "sticky top-20 hidden pt-4 md:block", children: /* @__PURE__ */ m(k, { ...w }) })
|
|
44
44
|
] })
|
|
45
45
|
] }) }),
|
|
46
46
|
e && /* @__PURE__ */ m(C, { ...e }),
|
|
47
47
|
l && /* @__PURE__ */ m(F, { ...l }),
|
|
48
|
-
|
|
48
|
+
a && /* @__PURE__ */ m(I, { ...a })
|
|
49
49
|
] });
|
|
50
50
|
export {
|
|
51
51
|
M as ProductTemplate
|
package/dist/components/Toast.js
CHANGED
|
@@ -18,8 +18,8 @@ const u = {
|
|
|
18
18
|
icon: /* @__PURE__ */ e(l, { fill: "white", width: 24, height: 24 }),
|
|
19
19
|
bg: "bg-neutral-500"
|
|
20
20
|
}
|
|
21
|
-
}, v = ({ show: i, title: s, message:
|
|
22
|
-
const [t, n] = h(i), o = u[
|
|
21
|
+
}, v = ({ show: i, title: s, message: c, type: a = "default", onClose: d }) => {
|
|
22
|
+
const [t, n] = h(i), o = u[a];
|
|
23
23
|
i && !t && n(!0);
|
|
24
24
|
const m = () => {
|
|
25
25
|
i || n(!1);
|
|
@@ -37,7 +37,7 @@ const u = {
|
|
|
37
37
|
/* @__PURE__ */ e("div", { className: "shrink-0", children: o.icon }),
|
|
38
38
|
/* @__PURE__ */ r("div", { className: "flex grow flex-col text-sm text-white", children: [
|
|
39
39
|
/* @__PURE__ */ e("p", { className: "font-bold", children: s }),
|
|
40
|
-
/* @__PURE__ */ e("p", {
|
|
40
|
+
/* @__PURE__ */ e("p", { children: c })
|
|
41
41
|
] }),
|
|
42
42
|
/* @__PURE__ */ e("button", { onClick: d, className: "cursor-pointer", children: /* @__PURE__ */ e(p, { fill: "white", className: "h-4 w-4" }) })
|
|
43
43
|
]
|