@npm_leadtech/legal-contracts-ui 0.188.1 → 0.188.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 +3 -8
- package/dist/components/ConversionSection.d.ts +3 -8
- package/dist/components/ElectronicSignatureTemplate.d.ts +3 -8
- package/dist/components/Header.d.ts +5 -0
- package/dist/components/Hero2Section.d.ts +3 -8
- package/dist/components/HomeTemplate.d.ts +1 -2
- package/dist/components/NavMenu.d.ts +5 -0
- package/dist/components/NavMenuItem.d.ts +5 -0
- package/dist/components/NavMenuItem.js +65 -53
- package/dist/components/ProcessSection.d.ts +1 -2
- package/dist/components/ProcessSection.js +27 -36
- package/dist/components/UploadZone.d.ts +3 -8
- package/dist/components/UploadZone.js +51 -101
- package/dist/components/index.d.ts +9 -68
- package/dist/index.js +100 -105
- package/package.json +24 -50
- package/dist/components/ExploreToolsSection.d.ts +0 -24
- package/dist/components/ExploreToolsSection.js +0 -42
- package/dist/components/LockIcon.d.ts +0 -4
- package/dist/components/LockIcon.js +0 -34
- package/dist/components/PdfToolsBenefitsSection.d.ts +0 -17
- package/dist/components/PdfToolsBenefitsSection.js +0 -37
- package/dist/components/PdfToolsHero.d.ts +0 -38
- package/dist/components/PdfToolsHero.js +0 -53
- package/dist/components/PdfToolsTemplate.d.ts +0 -126
- package/dist/components/PdfToolsTemplate.js +0 -36
- package/dist/components/UploadDocIcon.d.ts +0 -4
- package/dist/components/UploadDocIcon.js +0 -32
|
@@ -131,15 +131,10 @@ export interface ToastProps {
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export interface UploadZoneProps {
|
|
134
|
-
uploadPromptText
|
|
134
|
+
uploadPromptText: string;
|
|
135
135
|
addDocumentLabel: string;
|
|
136
|
-
fileSizeText
|
|
137
|
-
disclaimer
|
|
138
|
-
title?: string;
|
|
139
|
-
description?: string;
|
|
140
|
-
trustLine?: string;
|
|
141
|
-
uploadIcon?: ReactNode;
|
|
142
|
-
variant?: 'default' | 'pdf-tools';
|
|
136
|
+
fileSizeText: string;
|
|
137
|
+
disclaimer: string;
|
|
143
138
|
containerClassName?: string;
|
|
144
139
|
onAddDocument?: () => void;
|
|
145
140
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -11,15 +11,10 @@ export declare interface ConversionSectionProps {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export interface UploadZoneProps {
|
|
14
|
-
uploadPromptText
|
|
14
|
+
uploadPromptText: string;
|
|
15
15
|
addDocumentLabel: string;
|
|
16
|
-
fileSizeText
|
|
17
|
-
disclaimer
|
|
18
|
-
title?: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
trustLine?: string;
|
|
21
|
-
uploadIcon?: ReactNode;
|
|
22
|
-
variant?: 'default' | 'pdf-tools';
|
|
16
|
+
fileSizeText: string;
|
|
17
|
+
disclaimer: string;
|
|
23
18
|
containerClassName?: string;
|
|
24
19
|
onAddDocument?: () => void;
|
|
25
20
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -123,15 +123,10 @@ export interface ToastProps {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
export interface UploadZoneProps {
|
|
126
|
-
uploadPromptText
|
|
126
|
+
uploadPromptText: string;
|
|
127
127
|
addDocumentLabel: string;
|
|
128
|
-
fileSizeText
|
|
129
|
-
disclaimer
|
|
130
|
-
title?: string;
|
|
131
|
-
description?: string;
|
|
132
|
-
trustLine?: string;
|
|
133
|
-
uploadIcon?: ReactNode;
|
|
134
|
-
variant?: 'default' | 'pdf-tools';
|
|
128
|
+
fileSizeText: string;
|
|
129
|
+
disclaimer: string;
|
|
135
130
|
containerClassName?: string;
|
|
136
131
|
onAddDocument?: () => void;
|
|
137
132
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -70,6 +70,8 @@ export type NavMenuItemProps = {
|
|
|
70
70
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
71
71
|
hasDropdown: true;
|
|
72
72
|
isNested?: boolean;
|
|
73
|
+
tag?: string;
|
|
74
|
+
tagVariant?: NavMenuTagVariant;
|
|
73
75
|
onItemClick?: () => void;
|
|
74
76
|
isOpen?: boolean;
|
|
75
77
|
onToggle?: (open: boolean) => void;
|
|
@@ -79,6 +81,7 @@ export type NavMenuLink = {
|
|
|
79
81
|
id: string;
|
|
80
82
|
link: ReactNode;
|
|
81
83
|
tag?: string;
|
|
84
|
+
tagVariant?: NavMenuTagVariant;
|
|
82
85
|
hasDropdown: false;
|
|
83
86
|
isNested?: boolean;
|
|
84
87
|
bold?: boolean;
|
|
@@ -93,6 +96,8 @@ export interface NavMenuProps {
|
|
|
93
96
|
className?: string;
|
|
94
97
|
}
|
|
95
98
|
|
|
99
|
+
export type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
100
|
+
|
|
96
101
|
export interface SearchBarProps {
|
|
97
102
|
items: SearchItem[];
|
|
98
103
|
placeholder?: string;
|
|
@@ -20,15 +20,10 @@ export declare interface Hero2SectionProps {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export interface UploadZoneProps {
|
|
23
|
-
uploadPromptText
|
|
23
|
+
uploadPromptText: string;
|
|
24
24
|
addDocumentLabel: string;
|
|
25
|
-
fileSizeText
|
|
26
|
-
disclaimer
|
|
27
|
-
title?: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
trustLine?: string;
|
|
30
|
-
uploadIcon?: ReactNode;
|
|
31
|
-
variant?: 'default' | 'pdf-tools';
|
|
25
|
+
fileSizeText: string;
|
|
26
|
+
disclaimer: string;
|
|
32
27
|
containerClassName?: string;
|
|
33
28
|
onAddDocument?: () => void;
|
|
34
29
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -49,7 +49,7 @@ export interface HeroSectionProps {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export interface HomeStepsProps {
|
|
52
|
-
image
|
|
52
|
+
image: ReactNode;
|
|
53
53
|
header: SectionHeadingProps;
|
|
54
54
|
steps: {
|
|
55
55
|
id: string;
|
|
@@ -57,7 +57,6 @@ export interface HomeStepsProps {
|
|
|
57
57
|
description: string;
|
|
58
58
|
image: ReactNode;
|
|
59
59
|
}[];
|
|
60
|
-
variant?: 'default' | 'pdf-tools';
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
export declare const HomeTemplate: FC<HomeTemplateProps>;
|
|
@@ -10,6 +10,8 @@ export type NavMenuItemProps = {
|
|
|
10
10
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
11
11
|
hasDropdown: true;
|
|
12
12
|
isNested?: boolean;
|
|
13
|
+
tag?: string;
|
|
14
|
+
tagVariant?: NavMenuTagVariant;
|
|
13
15
|
onItemClick?: () => void;
|
|
14
16
|
isOpen?: boolean;
|
|
15
17
|
onToggle?: (open: boolean) => void;
|
|
@@ -19,6 +21,7 @@ export type NavMenuLink = {
|
|
|
19
21
|
id: string;
|
|
20
22
|
link: ReactNode;
|
|
21
23
|
tag?: string;
|
|
24
|
+
tagVariant?: NavMenuTagVariant;
|
|
22
25
|
hasDropdown: false;
|
|
23
26
|
isNested?: boolean;
|
|
24
27
|
bold?: boolean;
|
|
@@ -32,4 +35,6 @@ export declare interface NavMenuProps {
|
|
|
32
35
|
navItems: (NavMenuItemProps | NavMenuLink)[];
|
|
33
36
|
className?: string;
|
|
34
37
|
}
|
|
38
|
+
|
|
39
|
+
export type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
35
40
|
|
|
@@ -10,6 +10,8 @@ export declare type NavMenuItemProps = {
|
|
|
10
10
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
11
11
|
hasDropdown: true;
|
|
12
12
|
isNested?: boolean;
|
|
13
|
+
tag?: string;
|
|
14
|
+
tagVariant?: NavMenuTagVariant;
|
|
13
15
|
onItemClick?: () => void;
|
|
14
16
|
isOpen?: boolean;
|
|
15
17
|
onToggle?: (open: boolean) => void;
|
|
@@ -19,6 +21,7 @@ export declare type NavMenuLink = {
|
|
|
19
21
|
id: string;
|
|
20
22
|
link: ReactNode;
|
|
21
23
|
tag?: string;
|
|
24
|
+
tagVariant?: NavMenuTagVariant;
|
|
22
25
|
hasDropdown: false;
|
|
23
26
|
isNested?: boolean;
|
|
24
27
|
bold?: boolean;
|
|
@@ -27,4 +30,6 @@ export declare type NavMenuLink = {
|
|
|
27
30
|
onToggle?: (open: boolean) => void;
|
|
28
31
|
dataQa?: string;
|
|
29
32
|
};
|
|
33
|
+
|
|
34
|
+
export declare type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
30
35
|
|
|
@@ -5,20 +5,26 @@ import { ChevronRightIcon as t } from "./ChevronRightIcon.js";
|
|
|
5
5
|
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region lib/components/atoms/NavMenuItem.tsx
|
|
8
|
-
var c =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
var c = {
|
|
9
|
+
standard: "bg-secondary-200 h-4.5 w-5.25",
|
|
10
|
+
emphasized: "bg-[var(--tag-emphasized-bg,var(--primary-300))] h-4.5 px-1"
|
|
11
|
+
}, l = ({ tag: e, variant: t }) => /* @__PURE__ */ o("span", {
|
|
12
|
+
className: `text-extra-small flex h-4.5 items-center justify-center rounded align-middle font-bold ${c[t]}`,
|
|
13
|
+
children: e
|
|
14
|
+
}), u = (c) => {
|
|
15
|
+
let { hasDropdown: d, isNested: f, isOpen: p, onToggle: m, dataQa: h, onItemClick: g } = c, [_, v] = a(!1), [y, b] = a(null), x = p ?? _, S = n((e) => {
|
|
16
|
+
e || b(null), m ? m(e) : v(e);
|
|
17
|
+
}, [m]), C = i(null);
|
|
12
18
|
r(() => {
|
|
13
|
-
if (!
|
|
19
|
+
if (!x) return;
|
|
14
20
|
let e = (e) => {
|
|
15
|
-
|
|
21
|
+
C.current && !C.current.contains(e.target) && S(!1);
|
|
16
22
|
};
|
|
17
23
|
return document.addEventListener("mousedown", e), () => {
|
|
18
24
|
document.removeEventListener("mousedown", e);
|
|
19
25
|
};
|
|
20
|
-
}, [
|
|
21
|
-
let
|
|
26
|
+
}, [x, S]);
|
|
27
|
+
let w = {
|
|
22
28
|
topLevel: {
|
|
23
29
|
liClass: "relative py-2",
|
|
24
30
|
triggerClass: "hover:text-neutral-600",
|
|
@@ -31,56 +37,62 @@ var c = (l) => {
|
|
|
31
37
|
dropdownPosition: "top-0 left-full -mt-4 pl-6",
|
|
32
38
|
Icon: t
|
|
33
39
|
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
}, [
|
|
40
|
+
}, T = f ? w.nested : w.topLevel, E = T.Icon, D = n(() => {
|
|
41
|
+
S(!1), g && g();
|
|
42
|
+
}, [g, S]), O = i(null);
|
|
37
43
|
r(() => {
|
|
38
|
-
let e =
|
|
39
|
-
if (e) return e.addEventListener("click",
|
|
40
|
-
e.removeEventListener("click",
|
|
44
|
+
let e = O.current;
|
|
45
|
+
if (e) return e.addEventListener("click", D), () => {
|
|
46
|
+
e.removeEventListener("click", D);
|
|
41
47
|
};
|
|
42
|
-
}, [
|
|
43
|
-
let
|
|
44
|
-
e.stopPropagation(),
|
|
45
|
-
}, k = () => {
|
|
46
|
-
globalThis.window.matchMedia("(hover: hover)").matches && x(!0);
|
|
48
|
+
}, [D]);
|
|
49
|
+
let k = (e) => {
|
|
50
|
+
e.stopPropagation(), S(!x);
|
|
47
51
|
}, A = () => {
|
|
48
|
-
globalThis.window.matchMedia("(hover: hover)").matches &&
|
|
52
|
+
globalThis.window.matchMedia("(hover: hover)").matches && S(!0);
|
|
53
|
+
}, j = () => {
|
|
54
|
+
globalThis.window.matchMedia("(hover: hover)").matches && S(!1);
|
|
49
55
|
};
|
|
50
|
-
if (
|
|
51
|
-
let { dropdownItems: e, label: t } =
|
|
56
|
+
if (d) {
|
|
57
|
+
let { dropdownItems: e, label: t, tag: n, tagVariant: r = "standard" } = c;
|
|
52
58
|
return /* @__PURE__ */ s("li", {
|
|
53
|
-
ref:
|
|
54
|
-
className:
|
|
55
|
-
onMouseEnter:
|
|
56
|
-
onMouseLeave:
|
|
57
|
-
children: [/* @__PURE__ */ s("
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
children:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
59
|
+
ref: C,
|
|
60
|
+
className: T.liClass,
|
|
61
|
+
onMouseEnter: A,
|
|
62
|
+
onMouseLeave: j,
|
|
63
|
+
children: [/* @__PURE__ */ s("div", {
|
|
64
|
+
className: "inline-flex w-full items-center gap-1",
|
|
65
|
+
children: [/* @__PURE__ */ s("button", {
|
|
66
|
+
"data-qa": h,
|
|
67
|
+
className: `text-small flex flex-1 cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${T.triggerClass}`,
|
|
68
|
+
"aria-haspopup": "menu",
|
|
69
|
+
"aria-expanded": x,
|
|
70
|
+
onClick: k,
|
|
71
|
+
children: [/* @__PURE__ */ o("span", {
|
|
72
|
+
className: "text-medium",
|
|
73
|
+
children: t
|
|
74
|
+
}), /* @__PURE__ */ o(E, {
|
|
75
|
+
fill: "#000",
|
|
76
|
+
width: 20,
|
|
77
|
+
height: 20
|
|
78
|
+
})]
|
|
79
|
+
}), n && /* @__PURE__ */ o(l, {
|
|
80
|
+
tag: n,
|
|
81
|
+
variant: r
|
|
70
82
|
})]
|
|
71
83
|
}), /* @__PURE__ */ o("div", {
|
|
72
|
-
className: `absolute z-50 min-w-48 transition-all duration-200 ${
|
|
84
|
+
className: `absolute z-50 min-w-48 transition-all duration-200 ${T.dropdownPosition} ${x ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
|
|
73
85
|
children: /* @__PURE__ */ o("div", {
|
|
74
86
|
className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg",
|
|
75
87
|
children: /* @__PURE__ */ o("ul", {
|
|
76
88
|
className: "flex flex-col gap-2",
|
|
77
|
-
children: e.map((e) => /* @__PURE__ */ o(
|
|
89
|
+
children: e.map((e) => /* @__PURE__ */ o(u, {
|
|
78
90
|
...e,
|
|
79
91
|
isNested: !0,
|
|
80
|
-
onItemClick:
|
|
81
|
-
isOpen:
|
|
92
|
+
onItemClick: D,
|
|
93
|
+
isOpen: y === e.id,
|
|
82
94
|
onToggle: (t) => {
|
|
83
|
-
|
|
95
|
+
b(t ? e.id : null);
|
|
84
96
|
}
|
|
85
97
|
}, e.id))
|
|
86
98
|
})
|
|
@@ -88,21 +100,21 @@ var c = (l) => {
|
|
|
88
100
|
})]
|
|
89
101
|
});
|
|
90
102
|
}
|
|
91
|
-
let { link:
|
|
103
|
+
let { link: M, tag: N, tagVariant: P = "standard", bold: F } = c;
|
|
92
104
|
return /* @__PURE__ */ o("li", {
|
|
93
|
-
ref:
|
|
94
|
-
className:
|
|
105
|
+
ref: O,
|
|
106
|
+
className: T.liClass,
|
|
95
107
|
children: /* @__PURE__ */ s("span", {
|
|
96
|
-
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${
|
|
108
|
+
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${T.triggerClass} `,
|
|
97
109
|
children: [/* @__PURE__ */ o("span", {
|
|
98
|
-
className: `text-medium flex-1 ${
|
|
99
|
-
children: j
|
|
100
|
-
}), M && /* @__PURE__ */ o("span", {
|
|
101
|
-
className: "bg-secondary-200 text-extra-small flex h-4.5 w-5.25 items-center justify-center rounded align-middle font-bold",
|
|
110
|
+
className: `text-medium flex-1 ${F ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`,
|
|
102
111
|
children: M
|
|
112
|
+
}), N && /* @__PURE__ */ o(l, {
|
|
113
|
+
tag: N,
|
|
114
|
+
variant: P
|
|
103
115
|
})]
|
|
104
116
|
})
|
|
105
117
|
});
|
|
106
118
|
};
|
|
107
119
|
//#endregion
|
|
108
|
-
export {
|
|
120
|
+
export { u as NavMenuItem };
|
|
@@ -2,7 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
4
|
export declare interface HomeStepsProps {
|
|
5
|
-
image
|
|
5
|
+
image: ReactNode;
|
|
6
6
|
header: SectionHeadingProps;
|
|
7
7
|
steps: {
|
|
8
8
|
id: string;
|
|
@@ -10,7 +10,6 @@ export declare interface HomeStepsProps {
|
|
|
10
10
|
description: string;
|
|
11
11
|
image: ReactNode;
|
|
12
12
|
}[];
|
|
13
|
-
variant?: 'default' | 'pdf-tools';
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export declare const ProcessSection: FC<HomeStepsProps>;
|
|
@@ -1,43 +1,34 @@
|
|
|
1
1
|
import { SectionHeading as e } from "./SectionHeading.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
|
-
import r from "clsx";
|
|
5
4
|
//#region lib/components/organisms/ProcessSection.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
className: r("flex flex-col", c ? "gap-4 border-t border-neutral-200 p-6" : "gap-2 md:text-center"),
|
|
29
|
-
children: [/* @__PURE__ */ t("p", {
|
|
30
|
-
className: "text-big font-semibold text-neutral-800",
|
|
31
|
-
children: e.title
|
|
32
|
-
}), /* @__PURE__ */ t("p", {
|
|
33
|
-
className: r(c ? "text-medium text-neutral-600" : "text-small text-neutral-600"),
|
|
34
|
-
children: e.description
|
|
35
|
-
})]
|
|
5
|
+
var r = ({ image: r, header: i, steps: a }) => a.length === 0 ? null : /* @__PURE__ */ n("section", {
|
|
6
|
+
className: "relative mx-auto bg-neutral-50 px-6 py-10 lg:px-8 lg:py-12 xl:px-0",
|
|
7
|
+
children: [/* @__PURE__ */ t("div", {
|
|
8
|
+
className: "pointer-events-none absolute top-0 right-0 hidden lg:block",
|
|
9
|
+
children: r
|
|
10
|
+
}), /* @__PURE__ */ n("div", {
|
|
11
|
+
className: "relative mx-auto flex flex-col gap-6 xl:max-w-250",
|
|
12
|
+
children: [/* @__PURE__ */ t(e, { ...i }), /* @__PURE__ */ t("div", {
|
|
13
|
+
className: "grid grid-cols-1 gap-4 md:grid-cols-3 lg:gap-8",
|
|
14
|
+
children: a.map((e) => /* @__PURE__ */ n("div", {
|
|
15
|
+
className: "flex items-center gap-6 rounded-sm bg-white p-6 shadow-lg md:flex-col md:justify-center md:gap-10 md:py-10",
|
|
16
|
+
children: [/* @__PURE__ */ t("div", {
|
|
17
|
+
className: "h-22 w-22 shrink-0 overflow-hidden md:h-30 md:w-30 [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
|
|
18
|
+
children: e.image
|
|
19
|
+
}), /* @__PURE__ */ n("div", {
|
|
20
|
+
className: "flex flex-col gap-2 md:text-center",
|
|
21
|
+
children: [/* @__PURE__ */ t("p", {
|
|
22
|
+
className: "text-big font-semibold text-neutral-800",
|
|
23
|
+
children: e.title
|
|
24
|
+
}), /* @__PURE__ */ t("p", {
|
|
25
|
+
className: "text-small text-neutral-600",
|
|
26
|
+
children: e.description
|
|
36
27
|
})]
|
|
37
|
-
}
|
|
38
|
-
})
|
|
28
|
+
})]
|
|
29
|
+
}, e.id))
|
|
39
30
|
})]
|
|
40
|
-
})
|
|
41
|
-
};
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
42
33
|
//#endregion
|
|
43
|
-
export {
|
|
34
|
+
export { r as ProcessSection };
|
|
@@ -10,15 +10,10 @@ export declare type Hero2Highlight = {
|
|
|
10
10
|
export declare const UploadZone: FC<UploadZoneProps>;
|
|
11
11
|
|
|
12
12
|
export declare interface UploadZoneProps {
|
|
13
|
-
uploadPromptText
|
|
13
|
+
uploadPromptText: string;
|
|
14
14
|
addDocumentLabel: string;
|
|
15
|
-
fileSizeText
|
|
16
|
-
disclaimer
|
|
17
|
-
title?: string;
|
|
18
|
-
description?: string;
|
|
19
|
-
trustLine?: string;
|
|
20
|
-
uploadIcon?: ReactNode;
|
|
21
|
-
variant?: 'default' | 'pdf-tools';
|
|
15
|
+
fileSizeText: string;
|
|
16
|
+
disclaimer: string;
|
|
22
17
|
containerClassName?: string;
|
|
23
18
|
onAddDocument?: () => void;
|
|
24
19
|
onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
|
|
@@ -1,107 +1,57 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { AddIcon as e } from "./AddIcon.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
9
|
-
import s from "clsx";
|
|
4
|
+
import { Button as t } from "./Button.js";
|
|
5
|
+
import { Markdown as n } from "./Markdown.js";
|
|
6
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
|
+
import a from "clsx";
|
|
10
8
|
//#region lib/components/molecules/UploadZone.tsx
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
className: "
|
|
35
|
-
children:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
children: [f && /* @__PURE__ */ a("p", {
|
|
45
|
-
className: "text-large font-bold text-neutral-800",
|
|
46
|
-
children: f
|
|
47
|
-
}), p && /* @__PURE__ */ a("p", {
|
|
48
|
-
className: "text-medium text-neutral-600",
|
|
49
|
-
children: p
|
|
50
|
-
})]
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ o(r, {
|
|
53
|
-
dataQa: b,
|
|
54
|
-
variant: "primary-green",
|
|
55
|
-
className: "w-fit",
|
|
56
|
-
onClick: v,
|
|
57
|
-
children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
|
|
58
|
-
className: "text-medium font-bold",
|
|
59
|
-
children: l
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
u && /* @__PURE__ */ a("p", {
|
|
63
|
-
className: "text-small text-neutral-600",
|
|
64
|
-
children: u
|
|
65
|
-
})
|
|
66
|
-
]
|
|
67
|
-
}), m && /* @__PURE__ */ o("div", {
|
|
68
|
-
className: "flex items-center justify-center gap-1",
|
|
69
|
-
children: [/* @__PURE__ */ a(n, { className: "h-4 w-4 text-neutral-600" }), /* @__PURE__ */ a("p", {
|
|
70
|
-
className: "text-small text-neutral-600",
|
|
71
|
-
children: m
|
|
72
|
-
})]
|
|
9
|
+
var o = ({ uploadPromptText: o, addDocumentLabel: s, fileSizeText: c, disclaimer: l, onAddDocument: u, onDropDocument: d, containerClassName: f = "", dataQa: p }) => /* @__PURE__ */ i("div", {
|
|
10
|
+
role: "presentation",
|
|
11
|
+
onDragOver: (e) => {
|
|
12
|
+
e.preventDefault();
|
|
13
|
+
},
|
|
14
|
+
onDragEnter: (e) => {
|
|
15
|
+
e.preventDefault();
|
|
16
|
+
},
|
|
17
|
+
onDrop: (e) => {
|
|
18
|
+
e.preventDefault(), d?.(e);
|
|
19
|
+
},
|
|
20
|
+
className: a("group rounded-3xl bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140", f),
|
|
21
|
+
children: [/* @__PURE__ */ r("input", {
|
|
22
|
+
type: "file",
|
|
23
|
+
id: "file-upload",
|
|
24
|
+
className: "sr-only",
|
|
25
|
+
onChange: u,
|
|
26
|
+
multiple: !0
|
|
27
|
+
}), /* @__PURE__ */ i("div", {
|
|
28
|
+
className: "bg-neutral-25 flex flex-col gap-14 rounded-2xl px-6 pt-14 pb-2 text-center",
|
|
29
|
+
children: [/* @__PURE__ */ i("div", {
|
|
30
|
+
className: "flex flex-col items-center gap-10",
|
|
31
|
+
children: [/* @__PURE__ */ r("p", {
|
|
32
|
+
className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
|
|
33
|
+
children: o
|
|
34
|
+
}), /* @__PURE__ */ i(t, {
|
|
35
|
+
dataQa: p,
|
|
36
|
+
variant: "primary-green",
|
|
37
|
+
className: "w-fit",
|
|
38
|
+
onClick: u,
|
|
39
|
+
children: [/* @__PURE__ */ r(e, {}), /* @__PURE__ */ r("span", {
|
|
40
|
+
className: "text-medium font-bold",
|
|
41
|
+
children: s
|
|
73
42
|
})]
|
|
74
|
-
})
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
children: [/* @__PURE__ */ a(e, {}), /* @__PURE__ */ a("span", {
|
|
88
|
-
className: "text-medium font-bold",
|
|
89
|
-
children: l
|
|
90
|
-
})]
|
|
91
|
-
})]
|
|
92
|
-
}), /* @__PURE__ */ o("div", {
|
|
93
|
-
className: "flex flex-col gap-2",
|
|
94
|
-
children: [u && /* @__PURE__ */ a("p", {
|
|
95
|
-
className: "text-extra-small text-neutral-400",
|
|
96
|
-
children: u
|
|
97
|
-
}), d && /* @__PURE__ */ a(i, {
|
|
98
|
-
className: "text-tiny text-neutral-400 [&_a]:text-neutral-400",
|
|
99
|
-
content: d
|
|
100
|
-
})]
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
]
|
|
104
|
-
});
|
|
105
|
-
};
|
|
43
|
+
})]
|
|
44
|
+
}), /* @__PURE__ */ i("div", {
|
|
45
|
+
className: "flex flex-col gap-2",
|
|
46
|
+
children: [/* @__PURE__ */ r("p", {
|
|
47
|
+
className: "text-extra-small text-neutral-400",
|
|
48
|
+
children: c
|
|
49
|
+
}), /* @__PURE__ */ r(n, {
|
|
50
|
+
className: "text-tiny text-neutral-400 [&_a]:text-neutral-400",
|
|
51
|
+
content: l
|
|
52
|
+
})]
|
|
53
|
+
})]
|
|
54
|
+
})]
|
|
55
|
+
});
|
|
106
56
|
//#endregion
|
|
107
|
-
export {
|
|
57
|
+
export { o as UploadZone };
|