@npm_leadtech/legal-contracts-ui 0.165.3 → 0.165.4
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/Preform.js +21 -28
- package/package.json +1 -1
|
@@ -1,42 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
2
|
+
import { jsxs as c, Fragment as p, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Tooltips as a } from "./Tooltips.js";
|
|
5
5
|
import { PreformMobile as f } from "./PreformMobile.js";
|
|
6
6
|
import { TrustedBadge as i } from "./TrustedBadge.js";
|
|
7
7
|
import { PreformOption as h } from "./PreformOption.js";
|
|
8
|
-
import { Input as
|
|
9
|
-
import { LinkWrapper as
|
|
8
|
+
import { Input as g } from "./Input.js";
|
|
9
|
+
import { LinkWrapper as t } from "./LinkWrapper.js";
|
|
10
10
|
const C = ({
|
|
11
11
|
trustedBadge: s,
|
|
12
12
|
cta: o,
|
|
13
13
|
inputFieldData: l,
|
|
14
|
-
radioFieldData:
|
|
15
|
-
tooltips:
|
|
16
|
-
hasMobileRadioField:
|
|
17
|
-
}) => /* @__PURE__ */ c(
|
|
14
|
+
radioFieldData: r,
|
|
15
|
+
tooltips: n,
|
|
16
|
+
hasMobileRadioField: x
|
|
17
|
+
}) => /* @__PURE__ */ c(p, { children: [
|
|
18
18
|
/* @__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: [
|
|
19
19
|
/* @__PURE__ */ e(i, { ...s }),
|
|
20
|
-
|
|
21
|
-
/* @__PURE__ */ e("p", { className: "text-
|
|
20
|
+
r?.isVisible && /* @__PURE__ */ c(p, { children: [
|
|
21
|
+
/* @__PURE__ */ e("p", { className: "text-large font-bold", children: r.label }),
|
|
22
22
|
/* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
r.options.map((m) => /* @__PURE__ */ e("div", { className: "w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]", children: /* @__PURE__ */ e(
|
|
24
|
+
h,
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selected: r.value === m.radioSelected,
|
|
32
|
-
onClick: m.onClick
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
},
|
|
36
|
-
r.value
|
|
37
|
-
)),
|
|
26
|
+
...m,
|
|
27
|
+
selected: m.value === r.radioSelected,
|
|
28
|
+
onClick: r.onClick
|
|
29
|
+
}
|
|
30
|
+
) }, m.value)),
|
|
38
31
|
l?.isVisible && /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(
|
|
39
|
-
|
|
32
|
+
g,
|
|
40
33
|
{
|
|
41
34
|
id: l.id,
|
|
42
35
|
label: l.label,
|
|
@@ -49,8 +42,8 @@ const C = ({
|
|
|
49
42
|
) }, l.name)
|
|
50
43
|
] })
|
|
51
44
|
] }),
|
|
52
|
-
/* @__PURE__ */ e(
|
|
53
|
-
|
|
45
|
+
/* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
|
|
46
|
+
n.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: n.map((m) => /* @__PURE__ */ e(a, { ...m }, m.title)) })
|
|
54
47
|
] }) }),
|
|
55
48
|
/* @__PURE__ */ e(
|
|
56
49
|
f,
|
|
@@ -58,8 +51,8 @@ const C = ({
|
|
|
58
51
|
cta: o,
|
|
59
52
|
trustedBadge: s,
|
|
60
53
|
inputFieldData: l,
|
|
61
|
-
radioFieldData:
|
|
62
|
-
hasMobileRadioField:
|
|
54
|
+
radioFieldData: r,
|
|
55
|
+
hasMobileRadioField: x
|
|
63
56
|
}
|
|
64
57
|
)
|
|
65
58
|
] });
|