@npm_leadtech/legal-contracts-ui 0.124.4 → 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.
@@ -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 l } from "react/jsx-runtime";
2
- import { getButtonClasses as p } from "./Button.utils.js";
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { getButtonClasses as c } from "./Button.utils.js";
3
3
  import "react";
4
- const x = ({
4
+ const B = ({
5
5
  children: o,
6
6
  type: r = "button",
7
- size: s = "default",
8
- variant: e = "primary-green",
9
- iconPosition: a = "left",
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
- ...u
13
+ dataQa: u,
14
+ ...f
14
15
  }) => {
15
- const f = p(s, e, a, t, n);
16
- return /* @__PURE__ */ l("button", { ref: m, type: r, disabled: t, "aria-disabled": t, className: f, ...u, children: o });
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
- x as Button
32
+ B as Button
20
33
  };
@@ -4,6 +4,7 @@ import { ReactNode } from 'react';
4
4
  export declare const Checkbox: FC<CheckboxProps>;
5
5
 
6
6
  export declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
7
+ dataQa?: string;
7
8
  id: string;
8
9
  name: string;
9
10
  required?: boolean;
@@ -1,31 +1,43 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import m from "clsx";
3
- import { CheckIcon as c } from "./CheckIcon.js";
4
- const u = ({
5
- id: o,
6
- name: s,
7
- required: i = !1,
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: t = !1,
11
+ error: o = !1,
11
12
  ...n
12
- }) => /* @__PURE__ */ a("label", { htmlFor: o, className: "text-medium flex cursor-pointer items-center gap-2 text-neutral-800 select-none", children: [
13
- /* @__PURE__ */ r("input", { id: o, name: s, type: "checkbox", required: i, className: "peer sr-only", ...n }),
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: m(
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
- !t && !e && "hover:bg-primary-200 border border-neutral-800 bg-white",
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
- t && "border-error-500 bg-error-20 border"
34
+ o && "border-error-500 bg-error-20 border"
23
35
  ),
24
- children: e && /* @__PURE__ */ r(c, {})
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
- u as Checkbox
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;
@@ -7,6 +7,7 @@ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'chil
7
7
  size?: ButtonSize;
8
8
  variant?: ResponsiveButtonVariant;
9
9
  iconPosition?: IconPosition;
10
+ dataQa?: string;
10
11
  }
11
12
 
12
13
  export type ButtonSize = 'small' | 'default' | 'large';
@@ -4,25 +4,25 @@ import { LawGeniusImageShell as p } from "./LawGeniusImageShell.js";
4
4
  import { Markdown as t } from "./Markdown.js";
5
5
  const v = ({
6
6
  sectionTitle: s,
7
- contentMarkdown: r,
7
+ contentMarkdown: m,
8
8
  descriptionMarkdown: a,
9
- steps: m,
9
+ steps: r,
10
10
  belowStepsMarkdown: i,
11
11
  cta: n,
12
12
  imageUrl: c,
13
13
  imageAlt: x
14
14
  }) => {
15
- const d = a.trim().length > 0, o = i.trim().length > 0;
16
- return /* @__PURE__ */ e("section", { className: "bg-neutral-25 lg:px-ds-10xl px-6 pt-16 pb-12 sm:px-10", children: /* @__PURE__ */ e("div", { className: "bg-ratafia mx-auto w-full max-w-6xl rounded-3xl px-8 pt-16 pb-8 text-white shadow-[0_25px_80px_rgba(3,42,56,0.35)] sm:px-10 sm:pt-16 sm:pb-10", children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 lg:gap-10", children: [
15
+ const o = a.trim().length > 0, d = i.trim().length > 0;
16
+ return /* @__PURE__ */ e("section", { className: "bg-neutral-25 lg:px-ds-10xl px-6 pt-16 pb-12 sm:px-10", children: /* @__PURE__ */ e("div", { className: "bg-law-genius-section mx-auto w-full max-w-6xl rounded-3xl px-8 pt-16 pb-8 text-white shadow-[0_25px_80px_rgba(3,42,56,0.35)] sm:px-10 sm:pt-16 sm:pb-10", children: /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 lg:gap-10", children: [
17
17
  /* @__PURE__ */ l("div", { className: "flex flex-col gap-4 text-center text-white", children: [
18
18
  /* @__PURE__ */ e("h2", { className: "lg:text-super-large text-3xl font-bold lg:leading-tight", children: s }),
19
- /* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: r }) }),
20
- d && /* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: a }) })
19
+ /* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: m }) }),
20
+ o && /* @__PURE__ */ e("div", { className: "[&_p]:text-medium [&_p]:text-white/80 [&_p:last-child]:mb-0", children: /* @__PURE__ */ e(t, { variant: "ratafia", content: a }) })
21
21
  ] }),
22
22
  /* @__PURE__ */ l("div", { className: "flex w-full flex-col gap-8 lg:grid lg:grid-cols-[minmax(0,1fr)_minmax(0,1.05fr)] lg:items-stretch lg:gap-10", children: [
23
23
  /* @__PURE__ */ l("div", { className: "flex min-h-0 flex-col gap-6", children: [
24
- m,
25
- o && /* @__PURE__ */ e(
24
+ r,
25
+ d && /* @__PURE__ */ e(
26
26
  t,
27
27
  {
28
28
  variant: "ratafia",
@@ -32,6 +32,7 @@ export declare type HowItWorksProcessStep = {
32
32
  imageAlt: string;
33
33
  background: 'bg-white' | 'bg-neutral-25';
34
34
  reverse?: boolean;
35
+ imageFirstOnMobile?: boolean;
35
36
  };
36
37
 
37
38
  export declare const HowItWorksTemplate: FC<HowItWorksTemplateProps>;
@@ -11,46 +11,46 @@ import { IntroSection as A } from "./IntroSection.js";
11
11
  import { Markdown as i } from "./Markdown.js";
12
12
  import { TwoColumnSection as c } from "./TwoColumnSection.js";
13
13
  import { LawGeniusImageShell as B } from "./LawGeniusImageShell.js";
14
- const U = (a) => {
15
- const m = /* @__PURE__ */ r("div", { className: "w-full min-w-0 space-y-4 text-neutral-800 md:shrink md:grow-0 md:basis-1/2 lg:basis-[47%]", children: [
16
- /* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children: a.title }),
17
- /* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content: a.bodyMarkdown }) })
18
- ] }), t = /* @__PURE__ */ e("div", { className: "w-full min-w-0 md:shrink md:grow-0 md:basis-1/2 lg:w-1/2 lg:max-w-[50%] lg:basis-auto", children: /* @__PURE__ */ e(W, { src: a.imageUrl, alt: a.imageAlt }) });
19
- return { firstColumn: m, secondColumn: t };
20
- }, K = ({ hero: a, processSteps: m, lawGenius: t, resources: n }) => {
21
- const d = a.introMarkdown.trim().length > 0, p = a.closingMarkdown.trim().length > 0, x = n.supportBodyMarkdown.trim().length > 0, g = t.belowStepsMarkdown.trim().length > 0, { examples: s } = n, f = /* @__PURE__ */ e(
14
+ const U = (t) => {
15
+ const m = /* @__PURE__ */ r("div", { className: "min-w-0 space-y-4 text-neutral-800 lg:basis-[47%]", children: [
16
+ /* @__PURE__ */ e("h2", { className: "font-lora text-[2.05rem] leading-[1.15] font-bold text-neutral-800", children: t.title }),
17
+ /* @__PURE__ */ e("div", { className: "text-small space-y-3 text-neutral-700", children: /* @__PURE__ */ e(i, { variant: "legal", content: t.bodyMarkdown }) })
18
+ ] }), a = /* @__PURE__ */ e("div", { className: "w-full shrink-0 lg:w-1/2 lg:max-w-[50%]", children: /* @__PURE__ */ e(W, { src: t.imageUrl, alt: t.imageAlt }) });
19
+ return t.reverse ? { firstColumn: a, secondColumn: m } : { firstColumn: m, secondColumn: a };
20
+ }, J = ({ hero: t, processSteps: m, lawGenius: a, resources: s }) => {
21
+ const d = t.introMarkdown.trim().length > 0, p = t.closingMarkdown.trim().length > 0, x = s.supportBodyMarkdown.trim().length > 0, g = a.belowStepsMarkdown.trim().length > 0, { examples: n } = s, f = /* @__PURE__ */ e(
22
22
  o,
23
23
  {
24
- size: "small",
24
+ size: "large",
25
25
  variant: "primary-green",
26
- className: "text-small inline-flex w-fit justify-center !rounded-md font-bold",
27
- children: /* @__PURE__ */ e("a", { href: t.cta.href, className: b, children: t.cta.label })
26
+ className: "text-medium w-full justify-center !rounded-md font-bold lg:w-auto",
27
+ children: /* @__PURE__ */ e("a", { href: a.cta.href, className: b, children: a.cta.label })
28
28
  }
29
29
  );
30
30
  return /* @__PURE__ */ r("main", { className: "flex w-full max-w-full min-w-0 flex-1 flex-col", children: [
31
31
  /* @__PURE__ */ e("section", { className: "bg-primary-50 lg:px-ds-10xl px-6 pt-4 pb-12 sm:px-10", children: /* @__PURE__ */ r("div", { className: "mx-auto flex max-w-6xl flex-col gap-12", children: [
32
32
  /* @__PURE__ */ r("div", { className: "text-center", children: [
33
33
  /* @__PURE__ */ r("div", { className: "mx-auto inline-flex max-w-full flex-col items-center gap-2", children: [
34
- /* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em] whitespace-nowrap text-neutral-600 uppercase", children: a.eyebrow }),
34
+ /* @__PURE__ */ e("p", { className: "text-small font-semibold tracking-[0.3em] whitespace-nowrap text-neutral-600 uppercase", children: t.eyebrow }),
35
35
  /* @__PURE__ */ e("span", { className: "h-px w-full max-w-[7.5rem] min-w-[5.5rem] shrink-0 bg-neutral-400", "aria-hidden": !0 })
36
36
  ] }),
37
- /* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-[48rem] text-4xl leading-tight font-bold tracking-tight text-neutral-800 sm:text-5xl sm:leading-tight", children: a.title })
37
+ /* @__PURE__ */ e("h1", { className: "font-lora mx-auto mt-12 max-w-[48rem] text-4xl leading-tight font-bold tracking-tight text-neutral-800 sm:text-5xl sm:leading-tight", children: t.title })
38
38
  ] }),
39
39
  /* @__PURE__ */ e(
40
40
  A,
41
41
  {
42
42
  className: "bg-transparent",
43
43
  containerClassName: "w-full !max-w-none flex-col gap-10 !px-0 !py-0 lg:flex-row lg:items-stretch",
44
- image: /* @__PURE__ */ e(S, { src: a.imageUrl, alt: a.imageAlt, priority: a.imagePriority }),
44
+ image: /* @__PURE__ */ e(S, { src: t.imageUrl, alt: t.imageAlt, priority: t.imagePriority }),
45
45
  cta: {
46
46
  size: "large",
47
47
  variant: "primary-green",
48
48
  className: "text-medium mt-8 w-full justify-center font-bold",
49
- children: /* @__PURE__ */ e("a", { href: a.cta.href, className: k, children: a.cta.label })
49
+ children: /* @__PURE__ */ e("a", { href: t.cta.href, className: k, children: t.cta.label })
50
50
  },
51
51
  children: /* @__PURE__ */ r("div", { className: "text-medium space-y-4 [&_ul]:my-8 [&_ul]:list-disc [&_ul]:pl-[1.2rem]", children: [
52
- d && /* @__PURE__ */ e(i, { variant: "legal", content: a.introMarkdown }),
53
- /* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: a.bullets.map((l) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
52
+ d && /* @__PURE__ */ e(i, { variant: "legal", content: t.introMarkdown }),
53
+ /* @__PURE__ */ e("ul", { className: "text-medium space-y-3", children: t.bullets.map((l) => /* @__PURE__ */ r("li", { className: "flex items-start gap-2", children: [
54
54
  /* @__PURE__ */ e("span", { className: "bg-primary-600 mt-1 h-2.5 w-2.5", "aria-hidden": !0 }),
55
55
  /* @__PURE__ */ r("span", { children: [
56
56
  /* @__PURE__ */ r("strong", { children: [
@@ -60,7 +60,7 @@ const U = (a) => {
60
60
  l.text
61
61
  ] })
62
62
  ] }, l.id)) }),
63
- p && /* @__PURE__ */ e(i, { variant: "legal", content: a.closingMarkdown })
63
+ p && /* @__PURE__ */ e(i, { variant: "legal", content: t.closingMarkdown })
64
64
  ] })
65
65
  }
66
66
  )
@@ -73,8 +73,7 @@ const U = (a) => {
73
73
  className: `${l.background} lg:px-ds-10xl px-6 py-12 sm:px-10`,
74
74
  containerClassName: N(
75
75
  "!mx-auto !w-full !max-w-6xl !px-0 !py-0 !gap-8 md:!gap-10 lg:items-start",
76
- "!flex-col-reverse lg:!flex-row",
77
- l.reverse && "lg:!flex-row-reverse"
76
+ l.imageFirstOnMobile ? "!flex-col-reverse md:!flex-row" : "!flex-col md:!flex-row"
78
77
  ),
79
78
  firstColumn: u,
80
79
  secondColumn: h
@@ -85,9 +84,9 @@ const U = (a) => {
85
84
  /* @__PURE__ */ e(
86
85
  M,
87
86
  {
88
- title: t.title,
89
- content: t.contentMarkdown,
90
- stepsSlot: /* @__PURE__ */ e(w, { children: t.steps.map((l) => /* @__PURE__ */ e(
87
+ title: a.title,
88
+ content: a.contentMarkdown,
89
+ stepsSlot: /* @__PURE__ */ e(w, { children: a.steps.map((l) => /* @__PURE__ */ e(
91
90
  I,
92
91
  {
93
92
  title: l.title,
@@ -101,14 +100,14 @@ const U = (a) => {
101
100
  i,
102
101
  {
103
102
  variant: "ratafia",
104
- content: t.belowStepsMarkdown,
103
+ content: a.belowStepsMarkdown,
105
104
  className: y
106
105
  }
107
106
  ) : null,
108
107
  cta: f,
109
108
  skipCtaWrapper: !0,
110
- image: /* @__PURE__ */ e(B, { src: t.imageUrl, alt: t.imageAlt }),
111
- sectionClassName: t.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12 sm:px-10 lg:px-ds-10xl"
109
+ image: /* @__PURE__ */ e(B, { src: a.imageUrl, alt: a.imageAlt }),
110
+ sectionClassName: a.sectionClassName ?? "bg-neutral-25 px-6 pt-16 pb-12 sm:px-10 lg:px-ds-10xl"
112
111
  }
113
112
  ),
114
113
  /* @__PURE__ */ e(
@@ -116,23 +115,23 @@ const U = (a) => {
116
115
  {
117
116
  className: "bg-neutral-25 lg:px-ds-10xl px-6 py-12 sm:px-10",
118
117
  containerClassName: "!mx-auto !w-full !max-w-6xl !items-start !gap-8 !px-0 !py-0 md:!gap-10 lg:!items-stretch",
119
- firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0 rounded-2xl border border-neutral-100 bg-white p-4 lg:basis-[48%] lg:p-5", children: /* @__PURE__ */ e(L, { src: n.imageUrl, alt: n.imageAlt }) }),
118
+ firstColumn: /* @__PURE__ */ e("div", { className: "w-full min-w-0 shrink-0 rounded-2xl border border-neutral-100 bg-white p-4 lg:basis-[48%] lg:p-5", children: /* @__PURE__ */ e(L, { src: s.imageUrl, alt: s.imageAlt }) }),
120
119
  secondColumn: /* @__PURE__ */ r("div", { className: "w-full space-y-4 lg:basis-[52%]", children: [
121
- s.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: s.eyebrow }),
122
- s.title && /* @__PURE__ */ e("h3", { className: "font-lora text-[2rem] leading-[1.2] font-bold text-neutral-800", children: s.title }),
123
- x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(i, { variant: "legal", content: n.supportBodyMarkdown }) }),
124
- s.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-small space-y-2 text-neutral-700", children: s.rows.map((l) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
120
+ n.eyebrow && /* @__PURE__ */ e("p", { className: "text-xs font-semibold tracking-[0.2em] text-neutral-500 uppercase", children: n.eyebrow }),
121
+ n.title && /* @__PURE__ */ e("h3", { className: "font-lora text-[2rem] leading-[1.2] font-bold text-neutral-800", children: n.title }),
122
+ x && /* @__PURE__ */ e("div", { className: `text-small space-y-3 text-neutral-700 ${C}`, children: /* @__PURE__ */ e(i, { variant: "legal", content: s.supportBodyMarkdown }) }),
123
+ n.rows.length > 0 && /* @__PURE__ */ e("dl", { className: "text-small space-y-2 text-neutral-700", children: n.rows.map((l) => /* @__PURE__ */ r("div", { className: "flex flex-wrap gap-x-2", children: [
125
124
  /* @__PURE__ */ e("dt", { className: "font-semibold", children: l.label }),
126
125
  /* @__PURE__ */ e("dd", { children: l.value })
127
126
  ] }, `${l.label}-${l.value}`)) }),
128
- s.footer && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: s.footer }),
127
+ n.footer && /* @__PURE__ */ e("p", { className: "text-small text-neutral-600", children: n.footer }),
129
128
  /* @__PURE__ */ e(
130
129
  o,
131
130
  {
132
131
  size: "small",
133
132
  variant: "primary-green",
134
133
  className: "text-small inline-flex w-auto justify-center font-bold",
135
- children: /* @__PURE__ */ e("a", { href: n.cta.href, className: v, children: n.cta.label })
134
+ children: /* @__PURE__ */ e("a", { href: s.cta.href, className: v, children: s.cta.label })
136
135
  }
137
136
  )
138
137
  ] })
@@ -141,5 +140,5 @@ const U = (a) => {
141
140
  ] });
142
141
  };
143
142
  export {
144
- K as HowItWorksTemplate
143
+ J as HowItWorksTemplate
145
144
  };
@@ -4,6 +4,7 @@ import { HTMLInputTypeAttribute } from 'react';
4
4
  export declare const Input: FC<InputProps>;
5
5
 
6
6
  export declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
7
+ dataQa?: string;
7
8
  label: string;
8
9
  id: string;
9
10
  name: string;
@@ -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 N } from "./QuestionOutlineIcon.js";
5
- import { CloseIcon as y } from "./CloseIcon.js";
6
- import { InfoIcon as I } from "./InfoIcon.js";
7
- const $ = ({
8
- label: m,
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: d,
11
- type: f = "text",
12
- placeholder: h,
11
+ name: f,
12
+ type: h = "text",
13
+ placeholder: x,
13
14
  required: o = !1,
14
15
  tooltip: i,
15
- onInputChange: x,
16
- containerClassName: b = "",
16
+ onInputChange: b,
17
+ containerClassName: g = "",
17
18
  error: s = !1,
18
- errorMessage: g,
19
- ...v
19
+ errorMessage: v,
20
+ ...w
20
21
  }) => {
21
- const [n, c] = p(!1), [w, r] = p(!1);
22
- return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${b}`, children: [
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
- m,
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
- r(!1);
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
- r(!1), c((a) => !a);
45
+ a(!1), c((r) => !r);
45
46
  },
46
- children: /* @__PURE__ */ e(N, { "aria-hidden": "true" })
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
- !w && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
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
- r(!0), c(!1);
76
+ a(!0), c(!1);
76
77
  },
77
- children: /* @__PURE__ */ e(y, { width: 20, height: 20, fill: "white" })
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: d,
93
- type: f,
94
- placeholder: h,
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: (a) => {
101
- x?.(a.target.value);
102
+ onChange: (r) => {
103
+ b?.(r.target.value);
102
104
  },
103
- ...v
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(I, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
109
+ /* @__PURE__ */ e(C, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
108
110
  " ",
109
- g
111
+ v
110
112
  ] })
111
113
  ] });
112
114
  };
113
115
  export {
114
- $ as Input
116
+ z as Input
115
117
  };
@@ -6,7 +6,7 @@ const c = ({ image: i, children: r, cta: m, className: a, containerClassName: l
6
6
  {
7
7
  className: a ?? "",
8
8
  containerClassName: l,
9
- firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 min-h-0 w-full min-w-0 md:mr-6 md:mb-0 md:shrink md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100", children: i }),
9
+ firstColumn: /* @__PURE__ */ s("div", { className: "mb-4 min-h-0 w-full min-w-0 shrink-0 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100", children: i }),
10
10
  secondColumn: /* @__PURE__ */ n("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
11
11
  r,
12
12
  m && /* @__PURE__ */ s(o, { size: "large", variant: "primary-green", className: "mt-8", ...m })
@@ -9,6 +9,7 @@ export declare type InputFieldData = {
9
9
  placeholder: string;
10
10
  value: string;
11
11
  onChange: (str: string) => void;
12
+ dataQa: string;
12
13
  };
13
14
 
14
15
  export declare const Preform: FC<PreformProps>;
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { jsxs as c, Fragment as p, jsx as e } from "react/jsx-runtime";
2
+ import { jsxs as c, Fragment as n, jsx as e } from "react/jsx-runtime";
3
3
  import "react";
4
- import { Tooltips as x } from "./Tooltips.js";
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: n }) => /* @__PURE__ */ c(p, { children: [
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(p, { children: [
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
- n.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: n.map((r) => /* @__PURE__ */ e(x, { ...r }, r.title)) })
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,
@@ -9,6 +9,7 @@ export type InputFieldData = {
9
9
  placeholder: string;
10
10
  value: string;
11
11
  onChange: (str: string) => void;
12
+ dataQa: string;
12
13
  };
13
14
 
14
15
  export declare const PreformMobile: FC<PreformMobileProps>;
@@ -87,6 +87,7 @@ export type InputFieldData = {
87
87
  placeholder: string;
88
88
  value: string;
89
89
  onChange: (str: string) => void;
90
+ dataQa: string;
90
91
  };
91
92
 
92
93
  export interface JumboDocsProps {