@npm_leadtech/legal-contracts-ui 0.124.5 → 0.124.7

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.
@@ -31,6 +31,7 @@ export interface ContactUsSectionProps {
31
31
  icon: ReactNode;
32
32
  helper?: string;
33
33
  url?: string;
34
+ dataQa?: string;
34
35
  }>;
35
36
  }
36
37
 
@@ -32,6 +32,7 @@ export interface ConversionSectionProps {
32
32
  icon: ReactNode;
33
33
  title: string;
34
34
  uploadZone: UploadZoneProps;
35
+ dataQa?: string;
35
36
  }
36
37
 
37
38
  export interface FaqItemProps {
@@ -136,5 +137,6 @@ export interface UploadZoneProps {
136
137
  containerClassName?: string;
137
138
  onAddDocument?: () => void;
138
139
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
140
+ dataQa?: string;
139
141
  }
140
142
 
@@ -11,6 +11,7 @@ export declare interface ContactUsSectionProps {
11
11
  icon: ReactNode;
12
12
  helper?: string;
13
13
  url?: string;
14
+ dataQa?: string;
14
15
  }>;
15
16
  }
16
17
 
@@ -1,17 +1,17 @@
1
1
  import { jsx as l, jsxs as r } from "react/jsx-runtime";
2
- import a from "clsx";
2
+ import t from "clsx";
3
3
  import { SectionHeading as c } from "./SectionHeading.js";
4
- const d = ({ header: t, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ l("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-10", children: [
5
- /* @__PURE__ */ l(c, { ...t, className: "px-6" }),
6
- /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((e) => /* @__PURE__ */ r(
4
+ const d = ({ header: s, contactOptions: a }) => a.length === 0 ? null : /* @__PURE__ */ l("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-10", children: [
5
+ /* @__PURE__ */ l(c, { ...s, className: "px-6" }),
6
+ /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: a.map((e) => /* @__PURE__ */ r(
7
7
  "article",
8
8
  {
9
- className: a(
9
+ className: t(
10
10
  "relative flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
11
11
  e.url && 'cursor-pointer [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]'
12
12
  ),
13
13
  children: [
14
- e.url && /* @__PURE__ */ l("a", { href: e.url, children: /* @__PURE__ */ l("span", { className: "sr-only", children: e.title }) }),
14
+ e.url && /* @__PURE__ */ l("a", { "data-qa": e.dataQa, href: e.url, children: /* @__PURE__ */ l("span", { className: "sr-only", children: e.title }) }),
15
15
  /* @__PURE__ */ l("div", { className: "bg-primary-50 rounded-full p-3", children: e.icon }),
16
16
  /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center", children: [
17
17
  /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.title }),
@@ -7,6 +7,7 @@ export declare interface ConversionSectionProps {
7
7
  icon: ReactNode;
8
8
  title: string;
9
9
  uploadZone: UploadZoneProps;
10
+ dataQa?: string;
10
11
  }
11
12
 
12
13
  export interface UploadZoneProps {
@@ -17,5 +18,6 @@ export interface UploadZoneProps {
17
18
  containerClassName?: string;
18
19
  onAddDocument?: () => void;
19
20
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
21
+ dataQa?: string;
20
22
  }
21
23
 
@@ -1,12 +1,12 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { UploadZone as s } from "./UploadZone.js";
3
- const n = ({ icon: a, title: t, uploadZone: r }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 xl:px-0", children: /* @__PURE__ */ l("div", { className: "bg-ratafia mx-auto flex w-full max-w-300 shrink flex-col gap-6 rounded-2xl p-6 md:flex-row md:items-center md:gap-10 md:p-8 lg:pe-10 lg:pl-16 xl:items-start xl:gap-20", children: [
2
+ import { UploadZone as m } from "./UploadZone.js";
3
+ const x = ({ icon: a, title: t, uploadZone: r, dataQa: s }) => /* @__PURE__ */ e("section", { className: "bg-white px-6 py-8 xl:px-0", children: /* @__PURE__ */ l("div", { className: "bg-ratafia mx-auto flex w-full max-w-300 shrink flex-col gap-6 rounded-2xl p-6 md:flex-row md:items-center md:gap-10 md:p-8 lg:pe-10 lg:pl-16 xl:items-start xl:gap-20", children: [
4
4
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-4", children: [
5
5
  /* @__PURE__ */ e("span", { className: "xl:pt-12", children: a }),
6
6
  /* @__PURE__ */ e("h4", { className: "text-super-large md:text-extra-large font-bold text-white", children: t })
7
7
  ] }),
8
- /* @__PURE__ */ e(s, { ...r, containerClassName: "md:min-w-77 lg:min-w-115" })
8
+ /* @__PURE__ */ e(m, { dataQa: s, ...r, containerClassName: "md:min-w-77 lg:min-w-115" })
9
9
  ] }) });
10
10
  export {
11
- n as ConversionSection
11
+ x as ConversionSection
12
12
  };
@@ -129,5 +129,6 @@ export interface UploadZoneProps {
129
129
  containerClassName?: string;
130
130
  onAddDocument?: () => void;
131
131
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
132
+ dataQa?: string;
132
133
  }
133
134
 
@@ -20,6 +20,7 @@ export declare interface FooterProps {
20
20
  phoneNumber: string;
21
21
  contactHoursText: string;
22
22
  contactHours: string;
23
+ dataQa?: string;
23
24
  };
24
25
  logoGray?: ReactNode;
25
26
  socialLinks?: ReactNode[];
@@ -1,7 +1,7 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
3
  import { PhoneButton as o } from "./PhoneButton.js";
4
- import { FooterNav as f } from "./FooterNav.js";
4
+ import { FooterNav as h } from "./FooterNav.js";
5
5
  const g = ({
6
6
  nav: r,
7
7
  contactInfo: t,
@@ -14,13 +14,13 @@ const g = ({
14
14
  languageSelector: s
15
15
  }) => /* @__PURE__ */ l("footer", { className: "text-neutral-25 max-w-full overflow-x-hidden", children: [
16
16
  /* @__PURE__ */ e("div", { className: "bg-primary-900", children: /* @__PURE__ */ l("div", { className: "mx-auto flex w-full max-w-300 flex-col items-start gap-8 px-6 py-10 md:grid md:grid-cols-3 lg:flex lg:flex-row lg:justify-between", children: [
17
- r.map((a) => /* @__PURE__ */ e(f, { ...a }, a.title)),
17
+ r.map((a) => /* @__PURE__ */ e(h, { ...a }, a.title)),
18
18
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-6 max-sm:w-full md:contents lg:flex", children: [
19
19
  /* @__PURE__ */ l("div", { className: "", children: [
20
20
  /* @__PURE__ */ e("div", { className: "mb-8 xl:hidden", children: !!s && /* @__PURE__ */ e("div", { className: "language-selector-mobile-container", children: s }) }),
21
21
  /* @__PURE__ */ l("div", { children: [
22
22
  /* @__PURE__ */ e("p", { className: "text-small hidden font-bold text-white sm:block", children: t.phoneNumber }),
23
- /* @__PURE__ */ e("div", { className: "mb-2 w-full text-center sm:hidden", children: /* @__PURE__ */ e(o, { phoneNumber: t.phoneNumber }) }),
23
+ /* @__PURE__ */ e("div", { className: "mb-2 w-full text-center sm:hidden", children: /* @__PURE__ */ e(o, { dataQa: t.dataQa, phoneNumber: t.phoneNumber }) }),
24
24
  /* @__PURE__ */ l("p", { className: "text-neutral-25 text-medium md:text-small text-center md:text-left", children: [
25
25
  t.contactHoursText,
26
26
  " ",
@@ -34,6 +34,7 @@ export interface MobileContactInfo {
34
34
  phoneNumber: string;
35
35
  contactHoursLabel?: string;
36
36
  contactHours?: string;
37
+ dataQa?: string;
37
38
  }
38
39
 
39
40
  export interface MobileMenuProps {
@@ -27,5 +27,6 @@ export interface UploadZoneProps {
27
27
  containerClassName?: string;
28
28
  onAddDocument?: () => void;
29
29
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
30
+ dataQa?: string;
30
31
  }
31
32
 
@@ -6,6 +6,7 @@ export declare interface MobileContactInfo {
6
6
  phoneNumber: string;
7
7
  contactHoursLabel?: string;
8
8
  contactHours?: string;
9
+ dataQa?: string;
9
10
  }
10
11
 
11
12
  export declare const MobileMenu: FC<MobileMenuProps>;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SearchBar as u } from "./SearchBar.js";
3
+ import { SearchBar as x } from "./SearchBar.js";
4
4
  import { CloseIcon as f } from "./CloseIcon.js";
5
5
  import { LinkWrapper as h } from "./LinkWrapper.js";
6
6
  import { PhoneTalkIcon as b } from "./PhoneTalkIcon.js";
@@ -12,7 +12,7 @@ const k = ({
12
12
  searchBarProps: o,
13
13
  sections: p = [],
14
14
  contactInfo: t,
15
- closeText: x
15
+ closeText: u
16
16
  }) => s ? /* @__PURE__ */ l("div", { className: "fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white text-neutral-800 lg:hidden", children: [
17
17
  /* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
18
18
  c,
@@ -23,7 +23,7 @@ const k = ({
23
23
  onClick: m,
24
24
  "aria-label": "Close menu",
25
25
  children: [
26
- x,
26
+ u,
27
27
  /* @__PURE__ */ r(f, { fill: "var(--color-primary-500)" })
28
28
  ]
29
29
  }
@@ -32,7 +32,7 @@ const k = ({
32
32
  /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
33
33
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
34
34
  /* @__PURE__ */ r("div", { className: "flex items-center gap-4", children: d }),
35
- /* @__PURE__ */ r(u, { ...o })
35
+ /* @__PURE__ */ r(x, { ...o })
36
36
  ] }),
37
37
  /* @__PURE__ */ r("nav", { className: "flex flex-col gap-0", children: p.map((e, n) => {
38
38
  const i = e.icon != null;
@@ -62,6 +62,7 @@ const k = ({
62
62
  /* @__PURE__ */ l(
63
63
  "a",
64
64
  {
65
+ "data-qa": "mobile_menu_contact_phone",
65
66
  href: `tel:${t.phoneNumber.replaceAll(" ", "")}`,
66
67
  className: "bg-primary-700 flex w-full items-center justify-center gap-2 rounded-md p-3 text-base font-semibold text-white",
67
68
  children: [
@@ -1,9 +1,10 @@
1
1
  import { JSX } from 'react/jsx-runtime';
2
2
 
3
- export declare const PhoneButton: ({ phoneNumber, className }: PhoneButtonProps) => JSX.Element;
3
+ export declare const PhoneButton: ({ phoneNumber, className, dataQa }: PhoneButtonProps) => JSX.Element;
4
4
 
5
5
  export interface PhoneButtonProps {
6
6
  phoneNumber: string;
7
7
  className?: string;
8
+ dataQa?: string;
8
9
  }
9
10
 
@@ -1,12 +1,13 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- import { PhoneIcon as r } from "./PhoneIcon.js";
3
- const h = ({ phoneNumber: t, className: i = "" }) => /* @__PURE__ */ n(
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import { PhoneIcon as o } from "./PhoneIcon.js";
3
+ const h = ({ phoneNumber: t, className: i = "", dataQa: n }) => /* @__PURE__ */ r(
4
4
  "a",
5
5
  {
6
+ "data-qa": n,
6
7
  href: `tel:${t}`,
7
8
  className: `bg-primary-700 inline-flex w-full items-center justify-center gap-2 rounded py-2.75 text-[16px] font-bold text-white ${i}`,
8
9
  children: [
9
- /* @__PURE__ */ e(r, { fill: "white", width: 20, height: 20 }),
10
+ /* @__PURE__ */ e(o, { fill: "white", width: 20, height: 20 }),
10
11
  /* @__PURE__ */ e("span", { children: t })
11
12
  ]
12
13
  }
@@ -18,6 +18,7 @@ export interface PreformOptionProps {
18
18
  label: string;
19
19
  value: string;
20
20
  alternativeUrl: string | null;
21
+ dataQa?: string;
21
22
  icon: ReactNode;
22
23
  selected: boolean;
23
24
  onClick?: (str: string) => void;
@@ -25,6 +25,7 @@ export interface PreformOptionProps {
25
25
  label: string;
26
26
  value: string;
27
27
  alternativeUrl: string | null;
28
+ dataQa?: string;
28
29
  icon: ReactNode;
29
30
  selected: boolean;
30
31
  onClick?: (str: string) => void;
@@ -7,6 +7,7 @@ export declare interface PreformOptionProps {
7
7
  label: string;
8
8
  value: string;
9
9
  alternativeUrl: string | null;
10
+ dataQa?: string;
10
11
  icon: ReactNode;
11
12
  selected: boolean;
12
13
  onClick?: (str: string) => void;
@@ -1,8 +1,9 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- const m = ({ value: o, label: l, selected: r, icon: n, onClick: t }) => /* @__PURE__ */ i(
3
+ const d = ({ value: o, label: l, selected: r, icon: n, onClick: t, dataQa: a }) => /* @__PURE__ */ i(
4
4
  "button",
5
5
  {
6
+ "data-qa": a,
6
7
  className: `group flex w-full cursor-pointer items-center gap-2 rounded border-2 p-2 hover:bg-neutral-50 sm:flex-col sm:p-4 ${r ? "border-primary-900" : "border-neutral-200"}`,
7
8
  onClick: () => {
8
9
  t?.(o);
@@ -20,5 +21,5 @@ const m = ({ value: o, label: l, selected: r, icon: n, onClick: t }) => /* @__PU
20
21
  }
21
22
  );
22
23
  export {
23
- m as PreformOption
24
+ d as PreformOption
24
25
  };
@@ -114,6 +114,7 @@ export interface PreformOptionProps {
114
114
  label: string;
115
115
  value: string;
116
116
  alternativeUrl: string | null;
117
+ dataQa?: string;
117
118
  icon: ReactNode;
118
119
  selected: boolean;
119
120
  onClick?: (str: string) => void;
@@ -17,5 +17,6 @@ export declare interface UploadZoneProps {
17
17
  containerClassName?: string;
18
18
  onAddDocument?: () => void;
19
19
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
20
+ dataQa?: string;
20
21
  }
21
22
 
@@ -1,18 +1,19 @@
1
1
  "use client";
2
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
3
- import { AddIcon as p } from "./AddIcon.js";
4
- import x from "clsx";
5
- import { Button as c } from "./Button.js";
6
- import { Markdown as d } from "./Markdown.js";
7
- const N = ({
8
- uploadPromptText: a,
2
+ import { jsxs as a, jsx as t } from "react/jsx-runtime";
3
+ import { AddIcon as x } from "./AddIcon.js";
4
+ import c from "clsx";
5
+ import { Button as d } from "./Button.js";
6
+ import { Markdown as u } from "./Markdown.js";
7
+ const b = ({
8
+ uploadPromptText: r,
9
9
  addDocumentLabel: n,
10
10
  fileSizeText: o,
11
11
  disclaimer: i,
12
- onAddDocument: r,
12
+ onAddDocument: l,
13
13
  onDropDocument: m,
14
- containerClassName: s = ""
15
- }) => /* @__PURE__ */ l(
14
+ containerClassName: s = "",
15
+ dataQa: p
16
+ }) => /* @__PURE__ */ a(
16
17
  "div",
17
18
  {
18
19
  onDragOver: (e) => {
@@ -24,28 +25,28 @@ const N = ({
24
25
  onDrop: (e) => {
25
26
  e.preventDefault(), m?.(e);
26
27
  },
27
- className: x(
28
+ className: c(
28
29
  "group rounded-3xl bg-neutral-200/50 p-4 backdrop-blur-xs md:max-w-80 lg:max-w-120 xl:max-w-140",
29
30
  s
30
31
  ),
31
32
  children: [
32
- /* @__PURE__ */ t("input", { type: "file", id: "file-upload", className: "sr-only", onChange: r, multiple: !0 }),
33
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-14 rounded-2xl bg-white px-6 pt-14 pb-2 text-center", children: [
34
- /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-10", children: [
35
- /* @__PURE__ */ t("p", { className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900", children: a }),
36
- /* @__PURE__ */ l(c, { variant: "primary-green", className: "w-fit", onClick: r, children: [
37
- /* @__PURE__ */ t(p, {}),
33
+ /* @__PURE__ */ t("input", { type: "file", id: "file-upload", className: "sr-only", onChange: l, multiple: !0 }),
34
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-14 rounded-2xl bg-white px-6 pt-14 pb-2 text-center", children: [
35
+ /* @__PURE__ */ a("div", { className: "flex flex-col items-center gap-10", children: [
36
+ /* @__PURE__ */ t("p", { className: "text-medium text-neutral-400 transition-all duration-500 group-hover:text-neutral-900", children: r }),
37
+ /* @__PURE__ */ a(d, { "data-qa": p, variant: "primary-green", className: "w-fit", onClick: l, children: [
38
+ /* @__PURE__ */ t(x, {}),
38
39
  /* @__PURE__ */ t("span", { className: "text-medium font-bold", children: n })
39
40
  ] })
40
41
  ] }),
41
- /* @__PURE__ */ l("div", { className: "flex flex-col gap-2", children: [
42
+ /* @__PURE__ */ a("div", { className: "flex flex-col gap-2", children: [
42
43
  /* @__PURE__ */ t("p", { className: "text-extra-small text-neutral-400", children: o }),
43
- /* @__PURE__ */ t(d, { className: "text-tiny text-neutral-400 [&_a]:text-neutral-400", content: i })
44
+ /* @__PURE__ */ t(u, { className: "text-tiny text-neutral-400 [&_a]:text-neutral-400", content: i })
44
45
  ] })
45
46
  ] })
46
47
  ]
47
48
  }
48
49
  );
49
50
  export {
50
- N as UploadZone
51
+ b as UploadZone
51
52
  };
@@ -240,6 +240,7 @@ export declare interface ContactUsSectionProps {
240
240
  icon: ReactNode;
241
241
  helper?: string;
242
242
  url?: string;
243
+ dataQa?: string;
243
244
  }>;
244
245
  }
245
246
 
@@ -474,6 +475,7 @@ export declare interface FooterProps {
474
475
  phoneNumber: string;
475
476
  contactHoursText: string;
476
477
  contactHours: string;
478
+ dataQa?: string;
477
479
  };
478
480
  logoGray?: ReactNode;
479
481
  socialLinks?: ReactNode[];
@@ -836,6 +838,7 @@ export declare interface MobileContactInfo {
836
838
  phoneNumber: string;
837
839
  contactHoursLabel?: string;
838
840
  contactHours?: string;
841
+ dataQa?: string;
839
842
  }
840
843
 
841
844
  export declare const MobileMenu: FC<MobileMenuProps>;
@@ -946,6 +949,7 @@ export declare interface PreformOptionProps {
946
949
  label: string;
947
950
  value: string;
948
951
  alternativeUrl: string | null;
952
+ dataQa?: string;
949
953
  icon: ReactNode;
950
954
  selected: boolean;
951
955
  onClick?: (str: string) => void;
@@ -1310,6 +1314,7 @@ export interface UploadZoneProps {
1310
1314
  containerClassName?: string;
1311
1315
  onAddDocument?: () => void;
1312
1316
  onDropDocument?: (e: React.DragEvent<HTMLDivElement>) => void;
1317
+ dataQa?: string;
1313
1318
  }
1314
1319
 
1315
1320
  export declare const UsFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.124.5",
3
+ "version": "0.124.7",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",