@npm_leadtech/legal-contracts-ui 0.101.2 → 0.101.4
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/AboutUsTemplate.d.ts +1 -0
- package/dist/components/ClearIcon.d.ts +4 -0
- package/dist/components/ClearIcon.js +12 -0
- package/dist/components/ContactFormSection.d.ts +3 -3
- package/dist/components/ContactFormSection.js +53 -93
- package/dist/components/ContactUsTemplate.d.ts +5 -3
- package/dist/components/ContactUsTemplate.js +32 -22
- package/dist/components/DoneIcon.d.ts +4 -0
- package/dist/components/DoneIcon.js +12 -0
- package/dist/components/FaqsTemplate.d.ts +1 -0
- package/dist/components/Input.js +108 -54
- package/dist/components/Jumbotron2.d.ts +1 -0
- package/dist/components/Jumbotron2.js +24 -10
- package/dist/components/QuestionOutlineIcon.d.ts +4 -0
- package/dist/components/QuestionOutlineIcon.js +15 -0
- package/dist/components/index.d.ts +10 -3
- package/dist/globals.css +1 -1
- package/package.json +13 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const t = (r) => /* @__PURE__ */ i("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...r, children: /* @__PURE__ */ i(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M18.295 7.115C18.6844 6.72564 18.6844 6.09436 18.295 5.705C17.9056 5.31564 17.2744 5.31564 16.885 5.705L12 10.59L7.115 5.705C6.72564 5.31564 6.09436 5.31564 5.705 5.705C5.31564 6.09436 5.31564 6.72564 5.705 7.115L10.59 12L5.705 16.885C5.31564 17.2744 5.31564 17.9056 5.705 18.295C6.09436 18.6844 6.72564 18.6844 7.115 18.295L12 13.41L16.885 18.295C17.2744 18.6844 17.9056 18.6844 18.295 18.295C18.6844 17.9056 18.6844 17.2744 18.295 16.885L13.41 12L18.295 7.115Z",
|
|
7
|
+
fill: r.fill ?? "var(--color-primary-800)"
|
|
8
|
+
}
|
|
9
|
+
) });
|
|
10
|
+
export {
|
|
11
|
+
t as ClearIcon
|
|
12
|
+
};
|
|
@@ -23,7 +23,7 @@ export interface ContactFormCheckboxFieldProps extends Omit<ContactFormFieldProp
|
|
|
23
23
|
export interface ContactFormFeedbackProps {
|
|
24
24
|
message: string;
|
|
25
25
|
title?: string;
|
|
26
|
-
cta
|
|
26
|
+
cta: ReactNode | ButtonProps;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export declare interface ContactFormFieldProps {
|
|
@@ -54,8 +54,8 @@ export declare interface ContactFormSectionProps {
|
|
|
54
54
|
privacyField: ContactFormCheckboxFieldProps;
|
|
55
55
|
securityHint: string;
|
|
56
56
|
status?: 'default' | 'loading' | 'success' | 'error';
|
|
57
|
-
successFeedback
|
|
58
|
-
errorFeedback
|
|
57
|
+
successFeedback: ContactFormFeedbackProps;
|
|
58
|
+
errorFeedback: ContactFormFeedbackProps;
|
|
59
59
|
onSubmit?: ComponentProps<'form'>['onSubmit'];
|
|
60
60
|
button: ButtonProps;
|
|
61
61
|
}
|
|
@@ -1,114 +1,74 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Textarea as b } from "./Textarea.js";
|
|
3
|
-
import { Checkbox as
|
|
3
|
+
import { Checkbox as v } from "./Checkbox.js";
|
|
4
|
+
import { ClearIcon as y } from "./ClearIcon.js";
|
|
5
|
+
import { DoneIcon as w } from "./DoneIcon.js";
|
|
4
6
|
import { Input as n } from "./Input.js";
|
|
5
|
-
import { Select as
|
|
6
|
-
import { Markdown as
|
|
7
|
-
import { InfoIcon as
|
|
8
|
-
import { Button as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
subjectField: h,
|
|
16
|
-
messageField: u,
|
|
17
|
-
privacyField: s,
|
|
18
|
-
requiredFieldsText: x,
|
|
19
|
-
securityHint: f,
|
|
20
|
-
status: d = "default",
|
|
21
|
-
successFeedback: r,
|
|
22
|
-
errorFeedback: a,
|
|
23
|
-
onSubmit: N,
|
|
24
|
-
button: i
|
|
25
|
-
}) => d === "success" ? /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
26
|
-
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
27
|
-
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: l }),
|
|
28
|
-
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
|
|
7
|
+
import { Select as j } from "./Select.js";
|
|
8
|
+
import { Markdown as I } from "./Markdown.js";
|
|
9
|
+
import { InfoIcon as S } from "./InfoIcon.js";
|
|
10
|
+
import { Button as o } from "./Button.js";
|
|
11
|
+
import { LinkWrapper as k } from "./LinkWrapper.js";
|
|
12
|
+
const C = () => /* @__PURE__ */ e("div", { role: "status", "aria-live": "polite", className: "mt-6 flex items-center justify-center rounded py-6", children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" }) }), L = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
13
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
14
|
+
/* @__PURE__ */ e("div", { className: "bg-error-20 w-fit rounded-full p-3", children: /* @__PURE__ */ e(y, { width: 48, height: 48, fill: "var(--error-500)" }) }),
|
|
15
|
+
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
16
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
29
17
|
] }),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
children: [
|
|
37
|
-
r?.title && /* @__PURE__ */ e("p", { className: "text-medium mb-1 font-bold", children: r.title }),
|
|
38
|
-
/* @__PURE__ */ e("p", { children: r?.message }),
|
|
39
|
-
r?.cta != null && /* @__PURE__ */ e("div", { className: "mt-2", children: r.cta })
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
] }) : d === "error" ? /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
44
|
-
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
45
|
-
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: l }),
|
|
46
|
-
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
|
|
18
|
+
/* @__PURE__ */ e(o, { ...i, variant: "primary-green" })
|
|
19
|
+
] }), B = ({ title: r, message: l, cta: i }) => /* @__PURE__ */ t("div", { role: "status", "aria-live": "polite", className: "flex flex-col items-center justify-center gap-8 px-4 py-3", children: [
|
|
20
|
+
/* @__PURE__ */ t("div", { className: "flex flex-col items-center gap-2", children: [
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "bg-primary-100 w-fit rounded-full p-3", children: /* @__PURE__ */ e(w, { width: 48, height: 48, fill: "var(--primary-500)" }) }),
|
|
22
|
+
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-800", children: r }),
|
|
23
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-800", children: l })
|
|
47
24
|
] }),
|
|
48
|
-
/* @__PURE__ */
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */ e(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
role: "status",
|
|
70
|
-
"aria-live": "polite",
|
|
71
|
-
className: "mt-6 flex items-center justify-center rounded border border-neutral-200 bg-neutral-50 px-4 py-6 text-neutral-700",
|
|
72
|
-
children: /* @__PURE__ */ e("div", { className: "border-primary-500 h-[25px] w-[25px] animate-spin rounded-full border-3 border-t-transparent" })
|
|
73
|
-
}
|
|
74
|
-
)
|
|
75
|
-
] }) : /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
25
|
+
/* @__PURE__ */ e(k, { className: "w-fit", children: i })
|
|
26
|
+
] }), G = ({
|
|
27
|
+
title: r,
|
|
28
|
+
subjectOptions: l,
|
|
29
|
+
fullNameField: i,
|
|
30
|
+
emailField: m,
|
|
31
|
+
referenceNumberField: d,
|
|
32
|
+
subjectField: p,
|
|
33
|
+
messageField: f,
|
|
34
|
+
privacyField: s,
|
|
35
|
+
requiredFieldsText: h,
|
|
36
|
+
securityHint: x,
|
|
37
|
+
status: a = "default",
|
|
38
|
+
successFeedback: u,
|
|
39
|
+
errorFeedback: N,
|
|
40
|
+
onSubmit: g,
|
|
41
|
+
button: c
|
|
42
|
+
}) => /* @__PURE__ */ t("section", { className: "rounded-sm bg-white p-8 shadow-sm", children: [
|
|
76
43
|
/* @__PURE__ */ t("div", { className: "space-y-4", children: [
|
|
77
|
-
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children:
|
|
44
|
+
/* @__PURE__ */ e("p", { className: "text-big font-bold text-neutral-600", children: r }),
|
|
78
45
|
/* @__PURE__ */ e("div", { className: "h-px w-full bg-neutral-200", "aria-hidden": "true" })
|
|
79
46
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
/* @__PURE__ */ e(
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
/* @__PURE__ */ e(
|
|
87
|
-
/* @__PURE__ */ e(
|
|
47
|
+
a === "loading" && /* @__PURE__ */ e(C, {}),
|
|
48
|
+
a === "error" && /* @__PURE__ */ e(L, { ...N }),
|
|
49
|
+
a === "success" && /* @__PURE__ */ e(B, { ...u }),
|
|
50
|
+
a === "default" && /* @__PURE__ */ t("form", { className: "mt-6 flex flex-col gap-6", noValidate: !0, onSubmit: g, children: [
|
|
51
|
+
/* @__PURE__ */ e(n, { ...i, type: "text" }),
|
|
52
|
+
/* @__PURE__ */ e(n, { ...m, type: "email" }),
|
|
53
|
+
/* @__PURE__ */ e(n, { ...d }),
|
|
54
|
+
/* @__PURE__ */ e(j, { ...p, options: l }),
|
|
55
|
+
/* @__PURE__ */ e(b, { ...f }),
|
|
56
|
+
/* @__PURE__ */ e("p", { className: "text-medium text-neutral-600", children: h }),
|
|
57
|
+
/* @__PURE__ */ e(v, { ...s, children: /* @__PURE__ */ e(I, { className: "text-medium [&_p:last-child]:mb-0", content: s.label }) }),
|
|
88
58
|
/* @__PURE__ */ t(
|
|
89
59
|
"div",
|
|
90
60
|
{
|
|
91
61
|
id: "security-hint",
|
|
92
62
|
className: "text-small flex items-start gap-2 rounded bg-neutral-50 p-4 text-neutral-600",
|
|
93
63
|
children: [
|
|
94
|
-
/* @__PURE__ */ e(
|
|
95
|
-
/* @__PURE__ */ e("p", { children:
|
|
64
|
+
/* @__PURE__ */ e(S, { width: 24, height: 24, "aria-hidden": "true" }),
|
|
65
|
+
/* @__PURE__ */ e("p", { children: x })
|
|
96
66
|
]
|
|
97
67
|
}
|
|
98
68
|
),
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
j,
|
|
101
|
-
{
|
|
102
|
-
...i,
|
|
103
|
-
variant: "primary-green",
|
|
104
|
-
className: "w-fit self-center",
|
|
105
|
-
type: i.type ?? "submit",
|
|
106
|
-
disabled: i.disabled,
|
|
107
|
-
children: i.children
|
|
108
|
-
}
|
|
109
|
-
)
|
|
69
|
+
/* @__PURE__ */ e(o, { ...c, className: "w-fit self-center", type: "submit", children: c.children })
|
|
110
70
|
] })
|
|
111
71
|
] });
|
|
112
72
|
export {
|
|
113
|
-
|
|
73
|
+
G as ContactFormSection
|
|
114
74
|
};
|
|
@@ -23,7 +23,7 @@ export interface ContactFormCheckboxFieldProps extends Omit<ContactFormFieldProp
|
|
|
23
23
|
export interface ContactFormFeedbackProps {
|
|
24
24
|
message: string;
|
|
25
25
|
title?: string;
|
|
26
|
-
cta
|
|
26
|
+
cta: ReactNode | ButtonProps;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export interface ContactFormFieldProps {
|
|
@@ -52,8 +52,8 @@ export interface ContactFormSectionProps {
|
|
|
52
52
|
privacyField: ContactFormCheckboxFieldProps;
|
|
53
53
|
securityHint: string;
|
|
54
54
|
status?: 'default' | 'loading' | 'success' | 'error';
|
|
55
|
-
successFeedback
|
|
56
|
-
errorFeedback
|
|
55
|
+
successFeedback: ContactFormFeedbackProps;
|
|
56
|
+
errorFeedback: ContactFormFeedbackProps;
|
|
57
57
|
onSubmit?: ComponentProps<'form'>['onSubmit'];
|
|
58
58
|
button: ButtonProps;
|
|
59
59
|
}
|
|
@@ -95,6 +95,7 @@ export declare interface ContactUsTemplateProps {
|
|
|
95
95
|
faqText: string;
|
|
96
96
|
faqCta: ReactNode;
|
|
97
97
|
};
|
|
98
|
+
bgImage: ReactNode | null;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
101
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
@@ -104,6 +105,7 @@ export interface Jumbotron2Props {
|
|
|
104
105
|
subtitle?: string;
|
|
105
106
|
className?: string;
|
|
106
107
|
children?: React.ReactNode;
|
|
108
|
+
variant?: 'default' | 'contact';
|
|
107
109
|
}
|
|
108
110
|
|
|
109
111
|
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
@@ -1,26 +1,36 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ContactFormSection as
|
|
3
|
-
import { Jumbotron2 as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { LinkWrapper as
|
|
7
|
-
const
|
|
8
|
-
jumbotron:
|
|
9
|
-
contactMethods:
|
|
10
|
-
contactForm:
|
|
11
|
-
faqSection:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { ContactFormSection as o } from "./ContactFormSection.js";
|
|
3
|
+
import { Jumbotron2 as s } from "./Jumbotron2.js";
|
|
4
|
+
import { Markdown as m } from "./Markdown.js";
|
|
5
|
+
import { ContactMethodsSection as d } from "./ContactMethodsSection.js";
|
|
6
|
+
import { LinkWrapper as n } from "./LinkWrapper.js";
|
|
7
|
+
const v = ({
|
|
8
|
+
jumbotron: t,
|
|
9
|
+
contactMethods: i,
|
|
10
|
+
contactForm: c,
|
|
11
|
+
faqSection: l,
|
|
12
|
+
bgImage: r
|
|
13
|
+
}) => /* @__PURE__ */ a("main", { className: "bg-primary-50 relative flex-1 pt-10 pb-20 md:px-6 lg:px-8 xl:px-0", children: [
|
|
14
|
+
!!r && /* @__PURE__ */ e("div", { className: "absolute right-0 bottom-0 hidden md:block", children: r }),
|
|
15
|
+
/* @__PURE__ */ a("div", { className: "relative mx-auto flex w-full max-w-300 flex-col gap-12", children: [
|
|
16
|
+
/* @__PURE__ */ e(s, { ...t, className: "flex flex-col gap-4 pb-0!", variant: "contact", children: /* @__PURE__ */ e(
|
|
17
|
+
m,
|
|
18
|
+
{
|
|
19
|
+
content: t.children,
|
|
20
|
+
className: "text-medium text-neutral-600 [&_p:last-child]:mb-0"
|
|
21
|
+
}
|
|
22
|
+
) }),
|
|
23
|
+
/* @__PURE__ */ a("div", { className: "relative flex flex-col gap-10 md:grid md:grid-cols-2 md:items-start md:gap-x-10 md:gap-y-8 lg:gap-x-16 xl:gap-x-20", children: [
|
|
24
|
+
/* @__PURE__ */ e(d, { ...i }),
|
|
25
|
+
/* @__PURE__ */ e("div", { className: "md:row-span-2", children: /* @__PURE__ */ e(o, { ...c }) }),
|
|
26
|
+
/* @__PURE__ */ a("div", { className: "flex flex-col gap-8 px-6", children: [
|
|
27
|
+
/* @__PURE__ */ e("h3", { className: "text-large text-primary-700 font-bold", children: l.faqTitle }),
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ e(m, { content: l.faqText, className: "text-medium text-neutral-800 [&_p:last-child]:mb-0" }) }),
|
|
29
|
+
/* @__PURE__ */ e(n, { className: "w-fit", variant: "secondary-green", children: l.faqCta })
|
|
30
|
+
] })
|
|
21
31
|
] })
|
|
22
32
|
] })
|
|
23
|
-
] })
|
|
33
|
+
] });
|
|
24
34
|
export {
|
|
25
|
-
|
|
35
|
+
v as ContactUsTemplate
|
|
26
36
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const l = (o) => /* @__PURE__ */ r("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...o, children: /* @__PURE__ */ r(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
d: "M8.79995 15.9L5.29995 12.4C4.91335 12.0134 4.28655 12.0134 3.89995 12.4C3.51335 12.7866 3.51335 13.4134 3.89995 13.8L8.53328 18.4333C8.68056 18.5806 8.91934 18.5806 9.06662 18.4333L20.1 7.39999C20.4866 7.01339 20.4866 6.38659 20.1 5.99999C19.7134 5.61339 19.0866 5.61339 18.7 5.99999L8.79995 15.9Z",
|
|
7
|
+
fill: o.fill ?? "var(--color-primary-800)"
|
|
8
|
+
}
|
|
9
|
+
) });
|
|
10
|
+
export {
|
|
11
|
+
l as DoneIcon
|
|
12
|
+
};
|
package/dist/components/Input.js
CHANGED
|
@@ -1,60 +1,114 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as p } from "react";
|
|
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,
|
|
6
9
|
id: l,
|
|
7
|
-
name:
|
|
8
|
-
type:
|
|
9
|
-
placeholder:
|
|
10
|
-
required:
|
|
11
|
-
tooltip:
|
|
12
|
-
onInputChange:
|
|
13
|
-
containerClassName:
|
|
14
|
-
error:
|
|
15
|
-
errorMessage:
|
|
16
|
-
...
|
|
17
|
-
}) =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
" ",
|
|
22
|
-
|
|
10
|
+
name: d,
|
|
11
|
+
type: f = "text",
|
|
12
|
+
placeholder: h,
|
|
13
|
+
required: i = !1,
|
|
14
|
+
tooltip: o,
|
|
15
|
+
onInputChange: x,
|
|
16
|
+
containerClassName: g = "",
|
|
17
|
+
error: s = !1,
|
|
18
|
+
errorMessage: b,
|
|
19
|
+
...v
|
|
20
|
+
}) => {
|
|
21
|
+
const [n, c] = p(!1), [w, r] = p(!1);
|
|
22
|
+
return /* @__PURE__ */ t("div", { className: `flex flex-col gap-2 ${g}`, children: [
|
|
23
|
+
/* @__PURE__ */ t("div", { className: "flex items-center gap-2", children: [
|
|
24
|
+
/* @__PURE__ */ t("label", { htmlFor: l, className: "font-bold text-neutral-800", children: [
|
|
25
|
+
m,
|
|
26
|
+
" ",
|
|
27
|
+
i && /* @__PURE__ */ e("span", { className: "text-neutral-800", children: "*" })
|
|
28
|
+
] }),
|
|
29
|
+
o && /* @__PURE__ */ t(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
className: "group relative inline-flex",
|
|
33
|
+
onMouseLeave: () => {
|
|
34
|
+
r(!1);
|
|
35
|
+
},
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ e(
|
|
38
|
+
"button",
|
|
39
|
+
{
|
|
40
|
+
className: "cursor-pointer rounded-full p-0",
|
|
41
|
+
"aria-expanded": n,
|
|
42
|
+
onClick: () => {
|
|
43
|
+
r(!1), c((a) => !a);
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ e(N, { "aria-hidden": "true" })
|
|
46
|
+
}
|
|
47
|
+
),
|
|
48
|
+
/* @__PURE__ */ t(
|
|
49
|
+
"span",
|
|
50
|
+
{
|
|
51
|
+
className: u(
|
|
52
|
+
"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",
|
|
53
|
+
"opacity-0",
|
|
54
|
+
!w && "group-focus-within:visible group-focus-within:opacity-100 group-hover:visible group-hover:opacity-100",
|
|
55
|
+
n && "visible opacity-100"
|
|
56
|
+
),
|
|
57
|
+
role: "tooltip",
|
|
58
|
+
children: [
|
|
59
|
+
/* @__PURE__ */ e(
|
|
60
|
+
"span",
|
|
61
|
+
{
|
|
62
|
+
className: "absolute -top-1 right-[calc(100%-5.75rem)] h-2 w-2 translate-x-1/2 rotate-45 bg-neutral-800 xl:right-[calc(100%-4.25rem)]",
|
|
63
|
+
"aria-hidden": "true"
|
|
64
|
+
}
|
|
65
|
+
),
|
|
66
|
+
/* @__PURE__ */ t("span", { className: "text-extra-small inline-flex items-center gap-2 px-1 py-2 leading-none font-bold text-white", children: [
|
|
67
|
+
/* @__PURE__ */ e("span", { children: o }),
|
|
68
|
+
/* @__PURE__ */ e(
|
|
69
|
+
"button",
|
|
70
|
+
{
|
|
71
|
+
type: "button",
|
|
72
|
+
className: "cursor-pointer p-0",
|
|
73
|
+
onClick: () => {
|
|
74
|
+
r(!0), c(!1);
|
|
75
|
+
},
|
|
76
|
+
children: /* @__PURE__ */ e(y, { width: 20, height: 20, fill: "white" })
|
|
77
|
+
}
|
|
78
|
+
)
|
|
79
|
+
] })
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
)
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
)
|
|
23
86
|
] }),
|
|
24
|
-
|
|
25
|
-
"
|
|
87
|
+
/* @__PURE__ */ e(
|
|
88
|
+
"input",
|
|
26
89
|
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
90
|
+
id: l,
|
|
91
|
+
name: d,
|
|
92
|
+
type: f,
|
|
93
|
+
placeholder: h,
|
|
94
|
+
required: i,
|
|
95
|
+
className: u(
|
|
96
|
+
"text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
|
|
97
|
+
s ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
98
|
+
),
|
|
99
|
+
onChange: (a) => {
|
|
100
|
+
x?.(a.target.value);
|
|
101
|
+
},
|
|
102
|
+
...v
|
|
31
103
|
}
|
|
32
|
-
)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
placeholder: c,
|
|
41
|
-
required: t,
|
|
42
|
-
className: p(
|
|
43
|
-
"text-small focus-visible:outline-primary-500 w-full rounded border p-3 text-neutral-800 placeholder:text-neutral-600 focus-visible:outline-2",
|
|
44
|
-
n ? "border-error-500 bg-error-25" : "bg-neutral-25 border-neutral-400"
|
|
45
|
-
),
|
|
46
|
-
onChange: (f) => {
|
|
47
|
-
d?.(f.target.value);
|
|
48
|
-
},
|
|
49
|
-
...x
|
|
50
|
-
}
|
|
51
|
-
),
|
|
52
|
-
n && /* @__PURE__ */ e("p", { id: `${l}-error-message`, className: "text-small text-error-500 flex items-center gap-1", children: [
|
|
53
|
-
/* @__PURE__ */ r(h, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
|
|
54
|
-
" ",
|
|
55
|
-
u
|
|
56
|
-
] })
|
|
57
|
-
] });
|
|
104
|
+
),
|
|
105
|
+
s && /* @__PURE__ */ t("p", { id: `${l}-error-message`, className: "text-small text-error-500 flex items-center gap-1", children: [
|
|
106
|
+
/* @__PURE__ */ e(I, { width: 20, height: 20, fill: "var(--color-error-500)", "aria-hidden": "true" }),
|
|
107
|
+
" ",
|
|
108
|
+
b
|
|
109
|
+
] })
|
|
110
|
+
] });
|
|
111
|
+
};
|
|
58
112
|
export {
|
|
59
|
-
|
|
113
|
+
$ as Input
|
|
60
114
|
};
|
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
import { jsxs as s, jsx as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
] })
|
|
1
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import a from "clsx";
|
|
3
|
+
const p = ({ title: o, subtitle: r, className: n, children: l, variant: c = "default" }) => {
|
|
4
|
+
const e = c === "contact";
|
|
5
|
+
return /* @__PURE__ */ s("section", { className: `mx-auto px-4 pb-10 text-center md:px-8 ${n ?? ""}`, children: [
|
|
6
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col items-center gap-2", children: [
|
|
7
|
+
/* @__PURE__ */ t("h1", { className: a("text-small font-bold", e ? "text-neutral-600" : "text-neutral-900"), children: o }),
|
|
8
|
+
/* @__PURE__ */ t("span", { className: a("h-px w-24", e ? "bg-neutral-400" : "bg-neutral-200"), "aria-hidden": !0 })
|
|
9
|
+
] }),
|
|
10
|
+
r && /* @__PURE__ */ t(
|
|
11
|
+
"h2",
|
|
12
|
+
{
|
|
13
|
+
className: a(
|
|
14
|
+
"font-lora text-neutral-900",
|
|
15
|
+
e && "text-super-large md:text-hero lg:text-super-hero",
|
|
16
|
+
!e && "text-super-hero"
|
|
17
|
+
),
|
|
18
|
+
children: r
|
|
19
|
+
}
|
|
20
|
+
),
|
|
21
|
+
!!l && /* @__PURE__ */ t("div", { className: a(!e && "mt-4"), children: l })
|
|
22
|
+
] });
|
|
23
|
+
};
|
|
10
24
|
export {
|
|
11
|
-
|
|
25
|
+
p as Jumbotron2
|
|
12
26
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const n = ({
|
|
4
|
+
fill: o = "var(--color-primary-900)",
|
|
5
|
+
...t
|
|
6
|
+
}) => /* @__PURE__ */ C("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t, children: /* @__PURE__ */ C(
|
|
7
|
+
"path",
|
|
8
|
+
{
|
|
9
|
+
d: "M7.96665 12C8.19998 12 8.3972 11.9195 8.55831 11.7584C8.71942 11.5973 8.79998 11.4 8.79998 11.1667C8.79998 10.9334 8.71942 10.7362 8.55831 10.575C8.3972 10.4139 8.19998 10.3334 7.96665 10.3334C7.73331 10.3334 7.53609 10.4139 7.37498 10.575C7.21387 10.7362 7.13331 10.9334 7.13331 11.1667C7.13331 11.4 7.21387 11.5973 7.37498 11.7584C7.53609 11.9195 7.73331 12 7.96665 12ZM7.99998 14.6667C7.07776 14.6667 6.21109 14.4917 5.39998 14.1417C4.58887 13.7917 3.88331 13.3167 3.28331 12.7167C2.68331 12.1167 2.20831 11.4112 1.85831 10.6C1.50831 9.78893 1.33331 8.92226 1.33331 8.00004C1.33331 7.07782 1.50831 6.21115 1.85831 5.40004C2.20831 4.58893 2.68331 3.88337 3.28331 3.28337C3.88331 2.68337 4.58887 2.20837 5.39998 1.85837C6.21109 1.50837 7.07776 1.33337 7.99998 1.33337C8.9222 1.33337 9.78887 1.50837 10.6 1.85837C11.4111 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.4111 13.7917 10.6 14.1417C9.78887 14.4917 8.9222 14.6667 7.99998 14.6667ZM7.99998 13.3334C9.48887 13.3334 10.75 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.75 3.18337 9.48887 2.66671 7.99998 2.66671C6.51109 2.66671 5.24998 3.18337 4.21665 4.21671C3.18331 5.25004 2.66665 6.51115 2.66665 8.00004C2.66665 9.48893 3.18331 10.75 4.21665 11.7834C5.24998 12.8167 6.51109 13.3334 7.99998 13.3334ZM8.06665 5.13337C8.34442 5.13337 8.58609 5.22226 8.79165 5.40004C8.9972 5.57782 9.09998 5.80004 9.09998 6.06671C9.09998 6.31115 9.02498 6.52782 8.87498 6.71671C8.72498 6.9056 8.55553 7.08337 8.36665 7.25004C8.11109 7.47226 7.88609 7.71671 7.69165 7.98337C7.4972 8.25004 7.39998 8.55004 7.39998 8.88337C7.39998 9.03893 7.45831 9.16949 7.57498 9.27504C7.69165 9.3806 7.82776 9.43337 7.98331 9.43337C8.14998 9.43337 8.29165 9.37782 8.40831 9.26671C8.52498 9.1556 8.59998 9.01671 8.63331 8.85004C8.67776 8.61671 8.77776 8.40837 8.93331 8.22504C9.08887 8.04171 9.25554 7.86671 9.43331 7.70004C9.68887 7.4556 9.90831 7.18893 10.0916 6.90004C10.275 6.61115 10.3666 6.28893 10.3666 5.93337C10.3666 5.36671 10.1361 4.90282 9.67498 4.54171C9.21387 4.1806 8.67776 4.00004 8.06665 4.00004C7.64442 4.00004 7.24165 4.08893 6.85831 4.26671C6.47498 4.44448 6.18331 4.71671 5.98331 5.08337C5.90553 5.21671 5.88054 5.35837 5.90831 5.50837C5.93609 5.65837 6.01109 5.77226 6.13331 5.85004C6.28887 5.93893 6.44998 5.96671 6.61665 5.93337C6.78331 5.90004 6.9222 5.8056 7.03331 5.65004C7.15554 5.48337 7.30831 5.3556 7.49165 5.26671C7.67498 5.17782 7.86665 5.13337 8.06665 5.13337Z",
|
|
10
|
+
fill: o
|
|
11
|
+
}
|
|
12
|
+
) });
|
|
13
|
+
export {
|
|
14
|
+
n as QuestionOutlineIcon
|
|
15
|
+
};
|