@npm_leadtech/legal-contracts-ui 0.124.2 → 0.124.5
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/AllDocumentsTemplate.d.ts +0 -1
- package/dist/components/Button.d.ts +2 -1
- package/dist/components/Button.js +23 -10
- package/dist/components/Checkbox.d.ts +1 -0
- package/dist/components/Checkbox.js +27 -15
- package/dist/components/ContactFormSection.d.ts +2 -0
- package/dist/components/ContactUsTemplate.d.ts +2 -0
- package/dist/components/ContentItem.d.ts +0 -1
- package/dist/components/CookiesBar.d.ts +1 -0
- package/dist/components/ImageWithPreview.d.ts +0 -1
- package/dist/components/ImageWithPreview.js +9 -11
- package/dist/components/Input.d.ts +1 -0
- package/dist/components/Input.js +32 -30
- package/dist/components/Preform.d.ts +1 -0
- package/dist/components/Preform.js +7 -6
- package/dist/components/PreformMobile.d.ts +1 -0
- package/dist/components/PreviewDownload.d.ts +0 -2
- package/dist/components/PreviewDownload.js +19 -22
- package/dist/components/PreviewSection.d.ts +0 -1
- package/dist/components/PreviewSection.js +11 -24
- package/dist/components/ProductTemplate.d.ts +1 -3
- package/dist/components/Select.d.ts +1 -0
- package/dist/components/Select.js +22 -20
- package/dist/components/Textarea.d.ts +1 -0
- package/dist/components/Textarea.js +18 -16
- package/dist/components/index.d.ts +1335 -0
- package/package.json +1 -1
|
@@ -2,13 +2,14 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
import { JSX } from 'react/jsx-runtime';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
|
-
export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, ...props }: ButtonProps) => JSX.Element;
|
|
5
|
+
export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, dataQa, ...props }: ButtonProps) => JSX.Element;
|
|
6
6
|
|
|
7
7
|
export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
+
dataQa?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -1,20 +1,33 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { getButtonClasses as
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { getButtonClasses as c } from "./Button.utils.js";
|
|
3
3
|
import "react";
|
|
4
|
-
const
|
|
4
|
+
const B = ({
|
|
5
5
|
children: o,
|
|
6
6
|
type: r = "button",
|
|
7
|
-
size:
|
|
8
|
-
variant:
|
|
9
|
-
iconPosition:
|
|
7
|
+
size: a = "default",
|
|
8
|
+
variant: s = "primary-green",
|
|
9
|
+
iconPosition: e = "left",
|
|
10
10
|
className: n,
|
|
11
11
|
disabled: t = !1,
|
|
12
12
|
ref: m,
|
|
13
|
-
|
|
13
|
+
dataQa: u,
|
|
14
|
+
...f
|
|
14
15
|
}) => {
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */
|
|
16
|
+
const l = c(a, s, e, t, n);
|
|
17
|
+
return /* @__PURE__ */ p(
|
|
18
|
+
"button",
|
|
19
|
+
{
|
|
20
|
+
"data-qa": u,
|
|
21
|
+
ref: m,
|
|
22
|
+
type: r,
|
|
23
|
+
disabled: t,
|
|
24
|
+
"aria-disabled": t,
|
|
25
|
+
className: l,
|
|
26
|
+
...f,
|
|
27
|
+
children: o
|
|
28
|
+
}
|
|
29
|
+
);
|
|
17
30
|
};
|
|
18
31
|
export {
|
|
19
|
-
|
|
32
|
+
B as Button
|
|
20
33
|
};
|
|
@@ -1,31 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { CheckIcon as
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import c from "clsx";
|
|
3
|
+
import { CheckIcon as p } from "./CheckIcon.js";
|
|
4
|
+
const d = ({
|
|
5
|
+
dataQa: s,
|
|
6
|
+
id: t,
|
|
7
|
+
name: i,
|
|
8
|
+
required: a = !1,
|
|
8
9
|
children: l,
|
|
9
10
|
checked: e,
|
|
10
|
-
error:
|
|
11
|
+
error: o = !1,
|
|
11
12
|
...n
|
|
12
|
-
}) => /* @__PURE__ */
|
|
13
|
-
/* @__PURE__ */ r(
|
|
13
|
+
}) => /* @__PURE__ */ m("label", { htmlFor: t, className: "text-medium flex cursor-pointer items-center gap-2 text-neutral-800 select-none", children: [
|
|
14
|
+
/* @__PURE__ */ r(
|
|
15
|
+
"input",
|
|
16
|
+
{
|
|
17
|
+
"data-qa": s,
|
|
18
|
+
id: t,
|
|
19
|
+
name: i,
|
|
20
|
+
type: "checkbox",
|
|
21
|
+
required: a,
|
|
22
|
+
className: "peer sr-only",
|
|
23
|
+
...n
|
|
24
|
+
}
|
|
25
|
+
),
|
|
14
26
|
/* @__PURE__ */ r(
|
|
15
27
|
"div",
|
|
16
28
|
{
|
|
17
|
-
className:
|
|
29
|
+
className: c(
|
|
18
30
|
"flex h-5.5 w-5.5 items-center justify-center rounded transition-colors",
|
|
19
31
|
"peer-focus-visible:ring-primary-500 peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",
|
|
20
|
-
!
|
|
32
|
+
!o && !e && "hover:bg-primary-200 border border-neutral-800 bg-white",
|
|
21
33
|
e && "border-primary-500 bg-primary-200 border-2",
|
|
22
|
-
|
|
34
|
+
o && "border-error-500 bg-error-20 border"
|
|
23
35
|
),
|
|
24
|
-
children: e && /* @__PURE__ */ r(
|
|
36
|
+
children: e && /* @__PURE__ */ r(p, {})
|
|
25
37
|
}
|
|
26
38
|
),
|
|
27
39
|
/* @__PURE__ */ r("span", { className: "leading-tight text-neutral-800", children: l })
|
|
28
40
|
] });
|
|
29
41
|
export {
|
|
30
|
-
|
|
42
|
+
d as Checkbox
|
|
31
43
|
};
|
|
@@ -9,6 +9,7 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
|
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
+
dataQa?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -27,6 +28,7 @@ export interface ContactFormFeedbackProps {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export declare interface ContactFormFieldProps {
|
|
31
|
+
dataQa: string;
|
|
30
32
|
label: string;
|
|
31
33
|
id: string;
|
|
32
34
|
name: string;
|
|
@@ -9,6 +9,7 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
|
|
|
9
9
|
size?: ButtonSize;
|
|
10
10
|
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
|
+
dataQa?: string;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export type ButtonSize = 'small' | 'default' | 'large';
|
|
@@ -27,6 +28,7 @@ export interface ContactFormFeedbackProps {
|
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export interface ContactFormFieldProps {
|
|
31
|
+
dataQa: string;
|
|
30
32
|
label: string;
|
|
31
33
|
id: string;
|
|
32
34
|
name: string;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ZoomIcon as
|
|
2
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useState as s } from "react";
|
|
4
|
+
import { ZoomIcon as a } from "./ZoomIcon.js";
|
|
5
5
|
import { Modal as m } from "./Modal.js";
|
|
6
|
-
const
|
|
7
|
-
const [
|
|
8
|
-
return /* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children:
|
|
10
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(
|
|
11
|
-
o(i), i && r && r();
|
|
12
|
-
}, children: s }) })
|
|
6
|
+
const u = ({ small: r, large: i }) => {
|
|
7
|
+
const [o, t] = s(!1);
|
|
8
|
+
return /* @__PURE__ */ l("div", { className: "relative aspect-3/4 w-75 self-center overflow-hidden border border-neutral-200", children: [
|
|
9
|
+
/* @__PURE__ */ e("div", { className: "h-full w-full [&_img]:h-full [&_img]:w-full [&_img]:object-cover", children: r }),
|
|
10
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(m, { trigger: /* @__PURE__ */ e(a, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" }), isOpen: o, setIsOpen: t, children: i }) })
|
|
13
11
|
] });
|
|
14
12
|
};
|
|
15
13
|
export {
|
|
16
|
-
|
|
14
|
+
u as ImageWithPreview
|
|
17
15
|
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import u from "clsx";
|
|
4
|
-
import { QuestionOutlineIcon as
|
|
5
|
-
import { CloseIcon as
|
|
6
|
-
import { InfoIcon as
|
|
7
|
-
const
|
|
8
|
-
|
|
4
|
+
import { QuestionOutlineIcon as y } from "./QuestionOutlineIcon.js";
|
|
5
|
+
import { CloseIcon as I } from "./CloseIcon.js";
|
|
6
|
+
import { InfoIcon as C } from "./InfoIcon.js";
|
|
7
|
+
const z = ({
|
|
8
|
+
dataQa: m,
|
|
9
|
+
label: d,
|
|
9
10
|
id: l,
|
|
10
|
-
name:
|
|
11
|
-
type:
|
|
12
|
-
placeholder:
|
|
11
|
+
name: f,
|
|
12
|
+
type: h = "text",
|
|
13
|
+
placeholder: x,
|
|
13
14
|
required: o = !1,
|
|
14
15
|
tooltip: i,
|
|
15
|
-
onInputChange:
|
|
16
|
-
containerClassName:
|
|
16
|
+
onInputChange: b,
|
|
17
|
+
containerClassName: g = "",
|
|
17
18
|
error: s = !1,
|
|
18
|
-
errorMessage:
|
|
19
|
-
...
|
|
19
|
+
errorMessage: v,
|
|
20
|
+
...w
|
|
20
21
|
}) => {
|
|
21
|
-
const [n, c] = p(!1), [
|
|
22
|
-
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${
|
|
22
|
+
const [n, c] = p(!1), [N, a] = p(!1);
|
|
23
|
+
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${g}`, children: [
|
|
23
24
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
24
25
|
/* @__PURE__ */ t("label", { htmlFor: l, className: "font-bold text-neutral-800", children: [
|
|
25
|
-
|
|
26
|
+
d,
|
|
26
27
|
" ",
|
|
27
28
|
o && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
|
|
28
29
|
] }),
|
|
@@ -31,7 +32,7 @@ const $ = ({
|
|
|
31
32
|
{
|
|
32
33
|
className: "group relative inline-flex",
|
|
33
34
|
onMouseLeave: () => {
|
|
34
|
-
|
|
35
|
+
a(!1);
|
|
35
36
|
},
|
|
36
37
|
children: [
|
|
37
38
|
/* @__PURE__ */ e(
|
|
@@ -41,9 +42,9 @@ const $ = ({
|
|
|
41
42
|
type: "button",
|
|
42
43
|
"aria-expanded": n,
|
|
43
44
|
onClick: () => {
|
|
44
|
-
|
|
45
|
+
a(!1), c((r) => !r);
|
|
45
46
|
},
|
|
46
|
-
children: /* @__PURE__ */ e(
|
|
47
|
+
children: /* @__PURE__ */ e(y, { "aria-hidden": "true" })
|
|
47
48
|
}
|
|
48
49
|
),
|
|
49
50
|
/* @__PURE__ */ t(
|
|
@@ -52,7 +53,7 @@ const $ = ({
|
|
|
52
53
|
className: u(
|
|
53
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",
|
|
54
55
|
"opacity-0",
|
|
55
|
-
!
|
|
56
|
+
!N && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
|
|
56
57
|
n && "visible opacity-100"
|
|
57
58
|
),
|
|
58
59
|
role: "tooltip",
|
|
@@ -72,9 +73,9 @@ const $ = ({
|
|
|
72
73
|
type: "button",
|
|
73
74
|
className: "cursor-pointer p-0",
|
|
74
75
|
onClick: () => {
|
|
75
|
-
|
|
76
|
+
a(!0), c(!1);
|
|
76
77
|
},
|
|
77
|
-
children: /* @__PURE__ */ e(
|
|
78
|
+
children: /* @__PURE__ */ e(I, { width: 20, height: 20, fill: "white" })
|
|
78
79
|
}
|
|
79
80
|
)
|
|
80
81
|
] })
|
|
@@ -88,28 +89,29 @@ const $ = ({
|
|
|
88
89
|
/* @__PURE__ */ e(
|
|
89
90
|
"input",
|
|
90
91
|
{
|
|
92
|
+
"data-qa": m,
|
|
91
93
|
id: l,
|
|
92
|
-
name:
|
|
93
|
-
type:
|
|
94
|
-
placeholder:
|
|
94
|
+
name: f,
|
|
95
|
+
type: h,
|
|
96
|
+
placeholder: x,
|
|
95
97
|
required: o,
|
|
96
98
|
className: u(
|
|
97
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",
|
|
98
100
|
s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
99
101
|
),
|
|
100
|
-
onChange: (
|
|
101
|
-
|
|
102
|
+
onChange: (r) => {
|
|
103
|
+
b?.(r.target.value);
|
|
102
104
|
},
|
|
103
|
-
...
|
|
105
|
+
...w
|
|
104
106
|
}
|
|
105
107
|
),
|
|
106
108
|
s && /* @__PURE__ */ t("p", { id: `${l}-error-message`, className: "text-small text-error-500 flex items-center gap-1", children: [
|
|
107
|
-
/* @__PURE__ */ e(
|
|
109
|
+
/* @__PURE__ */ e(C, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
|
|
108
110
|
" ",
|
|
109
|
-
|
|
111
|
+
v
|
|
110
112
|
] })
|
|
111
113
|
] });
|
|
112
114
|
};
|
|
113
115
|
export {
|
|
114
|
-
|
|
116
|
+
z as Input
|
|
115
117
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as c, Fragment as
|
|
2
|
+
import { jsxs as c, Fragment as n, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Tooltips as
|
|
4
|
+
import { Tooltips as p } 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:
|
|
10
|
+
const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tooltips: x }) => /* @__PURE__ */ c(n, { 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(
|
|
13
|
+
m?.isVisible && /* @__PURE__ */ c(n, { children: [
|
|
14
14
|
/* @__PURE__ */ e("h2", { 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(
|
|
@@ -36,13 +36,14 @@ const k = ({ trustedBadge: s, cta: o, inputFieldData: l, radioFieldData: m, tool
|
|
|
36
36
|
name: l.name,
|
|
37
37
|
placeholder: l.placeholder,
|
|
38
38
|
value: l.value,
|
|
39
|
-
onInputChange: l.onChange
|
|
39
|
+
onInputChange: l.onChange,
|
|
40
|
+
"data-qa": l.dataQa
|
|
40
41
|
}
|
|
41
42
|
) }, l.name)
|
|
42
43
|
] })
|
|
43
44
|
] }),
|
|
44
45
|
/* @__PURE__ */ e(t, { variant: "primary-green", children: o }),
|
|
45
|
-
|
|
46
|
+
x.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: x.map((r) => /* @__PURE__ */ e(p, { ...r }, r.title)) })
|
|
46
47
|
] }) }),
|
|
47
48
|
/* @__PURE__ */ e(
|
|
48
49
|
a,
|
|
@@ -4,7 +4,6 @@ import { ReactNode } from 'react';
|
|
|
4
4
|
export interface ImageWithPreviewProps {
|
|
5
5
|
small: ReactNode;
|
|
6
6
|
large: ReactNode;
|
|
7
|
-
onZoomClick?: () => void;
|
|
8
7
|
}
|
|
9
8
|
|
|
10
9
|
export declare const PreviewDownload: FC<PreviewDownloadProps>;
|
|
@@ -16,6 +15,5 @@ export declare interface PreviewDownloadProps {
|
|
|
16
15
|
footerText: string;
|
|
17
16
|
pdfDownload: ReactNode;
|
|
18
17
|
wordDownload: ReactNode;
|
|
19
|
-
onZoomClick?: () => void;
|
|
20
18
|
}
|
|
21
19
|
|
|
@@ -1,41 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { ZoomIcon as
|
|
5
|
-
import { Modal as
|
|
6
|
-
import { Markdown as
|
|
3
|
+
import { useState as f } from "react";
|
|
4
|
+
import { ZoomIcon as u } from "./ZoomIcon.js";
|
|
5
|
+
import { Modal as p } from "./Modal.js";
|
|
6
|
+
import { Markdown as x } from "./Markdown.js";
|
|
7
7
|
import { LinkWrapper as r } from "./LinkWrapper.js";
|
|
8
|
-
const
|
|
9
|
-
title:
|
|
10
|
-
footerText:
|
|
8
|
+
const y = ({
|
|
9
|
+
title: t,
|
|
10
|
+
footerText: s,
|
|
11
11
|
preview: a,
|
|
12
|
-
cta:
|
|
13
|
-
pdfDownload:
|
|
14
|
-
wordDownload:
|
|
15
|
-
onZoomClick: t
|
|
12
|
+
cta: n,
|
|
13
|
+
pdfDownload: i,
|
|
14
|
+
wordDownload: c
|
|
16
15
|
}) => {
|
|
17
|
-
const [
|
|
18
|
-
f(s), s && t && t();
|
|
19
|
-
};
|
|
16
|
+
const [o, m] = f(!1);
|
|
20
17
|
if (!a) return;
|
|
21
|
-
const
|
|
18
|
+
const d = /* @__PURE__ */ e(u, { className: "bg-primary-700 size-8 rounded p-2 opacity-80 hover:opacity-100" });
|
|
22
19
|
return /* @__PURE__ */ l("div", { className: "bg-neutral-25 relative mt-24 flex flex-col items-center gap-4 rounded border border-neutral-200 p-6 pt-44 lg:max-w-76 xl:max-w-96.5", children: [
|
|
23
20
|
/* @__PURE__ */ l("div", { className: "absolute -top-24 border border-neutral-200 shadow", children: [
|
|
24
21
|
/* @__PURE__ */ e("div", { className: "h-full max-h-64.5 w-full max-w-50 overflow-hidden", children: a.small }),
|
|
25
|
-
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ e(p, { trigger: d, isOpen: o, setIsOpen: m, children: a.large }) })
|
|
26
23
|
] }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children:
|
|
24
|
+
/* @__PURE__ */ e(x, { className: "text-medium text-center text-neutral-800 [&_p:last-child]:mb-0", content: t }),
|
|
25
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "primary-green", children: n }),
|
|
29
26
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200" }),
|
|
30
27
|
/* @__PURE__ */ l("div", { className: "flex w-full flex-col items-center gap-6", children: [
|
|
31
|
-
/* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children:
|
|
28
|
+
/* @__PURE__ */ e("p", { className: "text-small text-neutral-800", children: s }),
|
|
32
29
|
/* @__PURE__ */ l("div", { className: "flex w-full gap-4", children: [
|
|
33
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children:
|
|
34
|
-
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children:
|
|
30
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: i }),
|
|
31
|
+
/* @__PURE__ */ e(r, { className: "w-full", variant: "secondary-black", children: c })
|
|
35
32
|
] })
|
|
36
33
|
] })
|
|
37
34
|
] });
|
|
38
35
|
};
|
|
39
36
|
export {
|
|
40
|
-
|
|
37
|
+
y as PreviewDownload
|
|
41
38
|
};
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
/* @__PURE__ */ e(
|
|
12
|
-
"div",
|
|
13
|
-
{
|
|
14
|
-
className: "flex max-h-89.75 w-full overflow-auto border border-neutral-200 bg-white px-8 py-8 md:py-16",
|
|
15
|
-
onScroll: () => {
|
|
16
|
-
!t.current && r && (t.current = !0, r());
|
|
17
|
-
},
|
|
18
|
-
children: /* @__PURE__ */ e(m, { useCustom: !1, className: "select-none", content: o })
|
|
19
|
-
}
|
|
20
|
-
),
|
|
21
|
-
/* @__PURE__ */ e(i, { className: "w-full md:w-auto", children: a })
|
|
22
|
-
] }) });
|
|
23
|
-
};
|
|
1
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { SectionHeading as a } from "./SectionHeading.js";
|
|
4
|
+
import { Markdown as n } from "./Markdown.js";
|
|
5
|
+
import { LinkWrapper as s } from "./LinkWrapper.js";
|
|
6
|
+
const d = ({ title: t, documentPreview: r, cta: l }) => /* @__PURE__ */ e("section", { className: "bg-secondary-50 px-4 py-10 text-neutral-900 md:px-8 xl:px-30", children: /* @__PURE__ */ o("div", { className: "mx-auto flex w-full max-w-300 flex-col items-center gap-8", children: [
|
|
7
|
+
/* @__PURE__ */ e(a, { title: t, titleClass: "text-neutral-800 font-bold font-inter text-large" }),
|
|
8
|
+
/* @__PURE__ */ e("div", { className: "flex max-h-89.75 w-full overflow-auto border border-neutral-200 bg-white px-8 py-8 md:py-16", children: /* @__PURE__ */ e(n, { useCustom: !1, className: "select-none", content: r }) }),
|
|
9
|
+
/* @__PURE__ */ e(s, { className: "w-full md:w-auto", children: l })
|
|
10
|
+
] }) });
|
|
24
11
|
export {
|
|
25
|
-
|
|
12
|
+
d as PreviewSection
|
|
26
13
|
};
|
|
@@ -77,7 +77,6 @@ export interface FreeDocumentModalProps {
|
|
|
77
77
|
export interface ImageWithPreviewProps {
|
|
78
78
|
small: ReactNode;
|
|
79
79
|
large: ReactNode;
|
|
80
|
-
onZoomClick?: () => void;
|
|
81
80
|
}
|
|
82
81
|
|
|
83
82
|
export type InputFieldData = {
|
|
@@ -88,6 +87,7 @@ export type InputFieldData = {
|
|
|
88
87
|
placeholder: string;
|
|
89
88
|
value: string;
|
|
90
89
|
onChange: (str: string) => void;
|
|
90
|
+
dataQa: string;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
93
|
export interface JumboDocsProps {
|
|
@@ -134,14 +134,12 @@ export interface PreviewDownloadProps {
|
|
|
134
134
|
footerText: string;
|
|
135
135
|
pdfDownload: ReactNode;
|
|
136
136
|
wordDownload: ReactNode;
|
|
137
|
-
onZoomClick?: () => void;
|
|
138
137
|
}
|
|
139
138
|
|
|
140
139
|
export interface PreviewSectionProps {
|
|
141
140
|
title: string;
|
|
142
141
|
documentPreview: string;
|
|
143
142
|
cta: ReactNode;
|
|
144
|
-
onPreviewScroll?: () => void;
|
|
145
143
|
}
|
|
146
144
|
|
|
147
145
|
export interface ProductInfoProps {
|