@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.
@@ -131,15 +131,10 @@ export interface ToastProps {
131
131
  }
132
132
 
133
133
  export interface UploadZoneProps {
134
- uploadPromptText?: string;
134
+ uploadPromptText: string;
135
135
  addDocumentLabel: string;
136
- fileSizeText?: string;
137
- disclaimer?: string;
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?: string;
14
+ uploadPromptText: string;
15
15
  addDocumentLabel: string;
16
- fileSizeText?: string;
17
- disclaimer?: string;
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?: string;
126
+ uploadPromptText: string;
127
127
  addDocumentLabel: string;
128
- fileSizeText?: string;
129
- disclaimer?: string;
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?: string;
23
+ uploadPromptText: string;
24
24
  addDocumentLabel: string;
25
- fileSizeText?: string;
26
- disclaimer?: string;
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?: ReactNode;
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 = (l) => {
9
- let { hasDropdown: u, isNested: d, isOpen: f, onToggle: p, dataQa: m, onItemClick: h } = l, [g, _] = a(!1), [v, y] = a(null), b = f ?? g, x = n((e) => {
10
- e || y(null), p ? p(e) : _(e);
11
- }, [p]), S = i(null);
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 (!b) return;
19
+ if (!x) return;
14
20
  let e = (e) => {
15
- S.current && !S.current.contains(e.target) && x(!1);
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
- }, [b, x]);
21
- let C = {
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
- }, w = d ? C.nested : C.topLevel, T = w.Icon, E = n(() => {
35
- x(!1), h && h();
36
- }, [h, x]), D = i(null);
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 = D.current;
39
- if (e) return e.addEventListener("click", E), () => {
40
- e.removeEventListener("click", E);
44
+ let e = O.current;
45
+ if (e) return e.addEventListener("click", D), () => {
46
+ e.removeEventListener("click", D);
41
47
  };
42
- }, [E]);
43
- let O = (e) => {
44
- e.stopPropagation(), x(!b);
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 && x(!1);
52
+ globalThis.window.matchMedia("(hover: hover)").matches && S(!0);
53
+ }, j = () => {
54
+ globalThis.window.matchMedia("(hover: hover)").matches && S(!1);
49
55
  };
50
- if (u) {
51
- let { dropdownItems: e, label: t } = l;
56
+ if (d) {
57
+ let { dropdownItems: e, label: t, tag: n, tagVariant: r = "standard" } = c;
52
58
  return /* @__PURE__ */ s("li", {
53
- ref: S,
54
- className: w.liClass,
55
- onMouseEnter: k,
56
- onMouseLeave: A,
57
- children: [/* @__PURE__ */ s("button", {
58
- "data-qa": m,
59
- className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${w.triggerClass}`,
60
- "aria-haspopup": "menu",
61
- "aria-expanded": b,
62
- onClick: O,
63
- children: [/* @__PURE__ */ o("span", {
64
- className: "text-medium",
65
- children: t
66
- }), /* @__PURE__ */ o(T, {
67
- fill: "#000",
68
- width: 20,
69
- height: 20
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 ${w.dropdownPosition} ${b ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
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(c, {
89
+ children: e.map((e) => /* @__PURE__ */ o(u, {
78
90
  ...e,
79
91
  isNested: !0,
80
- onItemClick: E,
81
- isOpen: v === e.id,
92
+ onItemClick: D,
93
+ isOpen: y === e.id,
82
94
  onToggle: (t) => {
83
- y(t ? e.id : null);
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: j, tag: M, bold: N } = l;
103
+ let { link: M, tag: N, tagVariant: P = "standard", bold: F } = c;
92
104
  return /* @__PURE__ */ o("li", {
93
- ref: D,
94
- className: w.liClass,
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 ${w.triggerClass} `,
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 ${N ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`,
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 { c as NavMenuItem };
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?: ReactNode;
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 i = ({ image: i, header: a, steps: o, variant: s = "default" }) => {
7
- if (o.length === 0) return null;
8
- let c = s === "pdf-tools";
9
- return /* @__PURE__ */ n("section", {
10
- className: r("relative mx-auto px-6 py-10 lg:px-8 lg:py-12 xl:px-0", c ? "bg-white" : "bg-neutral-50"),
11
- children: [!c && /* @__PURE__ */ t("div", {
12
- className: "pointer-events-none absolute top-0 right-0 hidden lg:block",
13
- children: i
14
- }), /* @__PURE__ */ n("div", {
15
- className: "relative mx-auto flex flex-col gap-6 xl:max-w-250",
16
- children: [/* @__PURE__ */ t(e, {
17
- ...a,
18
- titleClass: "font-sans text-super-large font-bold",
19
- align: c ? "start" : a.align
20
- }), /* @__PURE__ */ t("div", {
21
- className: "grid grid-cols-1 gap-4 md:grid-cols-3 lg:gap-8",
22
- children: o.map((e) => /* @__PURE__ */ n("div", {
23
- className: c ? "flex flex-col overflow-hidden rounded-2xl bg-white shadow-[0px_2px_6px_0px_rgba(2,55,74,0.1)]" : "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",
24
- children: [/* @__PURE__ */ t("div", {
25
- className: r("overflow-hidden [&_img]:h-full [&_img]:w-full [&_img]:object-cover", c ? "bg-primary-50 h-53.5 w-full" : "h-22 w-22 shrink-0 md:h-30 md:w-30"),
26
- children: e.image
27
- }), /* @__PURE__ */ n("div", {
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
- }, e.id))
38
- })]
28
+ })]
29
+ }, e.id))
39
30
  })]
40
- });
41
- };
31
+ })]
32
+ });
42
33
  //#endregion
43
- export { i as ProcessSection };
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?: string;
13
+ uploadPromptText: string;
14
14
  addDocumentLabel: string;
15
- fileSizeText?: string;
16
- disclaimer?: string;
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 { UploadDocIcon as t } from "./UploadDocIcon.js";
5
- import { LockIcon as n } from "./LockIcon.js";
6
- import { Button as r } from "./Button.js";
7
- import { Markdown as i } from "./Markdown.js";
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 c = ({ uploadPromptText: c, addDocumentLabel: l, fileSizeText: u, disclaimer: d, title: f, description: p, trustLine: m, uploadIcon: h, variant: g = "default", containerClassName: _ = "", onAddDocument: v, onDropDocument: y, dataQa: b }) => {
12
- let x = g === "pdf-tools";
13
- return /* @__PURE__ */ o("div", {
14
- role: "presentation",
15
- onDragOver: (e) => {
16
- e.preventDefault();
17
- },
18
- onDragEnter: (e) => {
19
- e.preventDefault();
20
- },
21
- onDrop: (e) => {
22
- e.preventDefault(), y?.(e);
23
- },
24
- className: s("rounded-3xl", x ? "w-full bg-white p-5 shadow-[0px_10px_30px_0px_rgba(2,55,74,0.06)]" : "group bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140", _),
25
- children: [
26
- /* @__PURE__ */ a("input", {
27
- type: "file",
28
- id: "file-upload",
29
- className: "sr-only",
30
- onChange: v,
31
- multiple: !0
32
- }),
33
- x && /* @__PURE__ */ o("div", {
34
- className: "flex flex-col gap-4",
35
- children: [/* @__PURE__ */ o("div", {
36
- className: "border-primary-300 flex flex-col items-center gap-4 rounded-2xl border-[1.5px] border-dashed px-6 py-6 text-center lg:px-8",
37
- children: [
38
- /* @__PURE__ */ a("div", {
39
- className: "bg-primary-50 text-primary-800 flex h-13.5 w-13.5 items-center justify-center rounded-2xl",
40
- children: h ?? /* @__PURE__ */ a(t, { className: "h-6 w-6" })
41
- }),
42
- (f || p) && /* @__PURE__ */ o("div", {
43
- className: "flex flex-col gap-1.5",
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
- !x && /* @__PURE__ */ o("div", {
76
- className: "bg-neutral-25 flex flex-col gap-14 rounded-2xl px-6 pt-14 pb-2 text-center",
77
- children: [/* @__PURE__ */ o("div", {
78
- className: "flex flex-col items-center gap-10",
79
- children: [c && /* @__PURE__ */ a("p", {
80
- className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900",
81
- children: c
82
- }), /* @__PURE__ */ o(r, {
83
- dataQa: b,
84
- variant: "primary-green",
85
- className: "w-fit",
86
- onClick: v,
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 { c as UploadZone };
57
+ export { o as UploadZone };