@npm_leadtech/legal-contracts-ui 0.94.0 → 0.95.0
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/ContactBanner.js +6 -6
- package/dist/components/ElectronicSignatureTemplate.d.ts +9 -0
- package/dist/components/ElectronicSignatureTemplate.js +25 -22
- package/dist/components/InfoIcon.js +7 -5
- package/dist/components/ProductInfo.js +4 -4
- package/dist/components/SinglePhoneIcon.d.ts +4 -0
- package/dist/components/SinglePhoneIcon.js +12 -0
- package/dist/components/Toast.d.ts +12 -0
- package/dist/components/Toast.js +49 -0
- package/dist/globals.css +1 -1
- package/package.json +9 -1
- package/dist/components/index.d.ts +0 -1152
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { useScroll as
|
|
4
|
-
import {
|
|
5
|
-
const
|
|
6
|
-
const
|
|
3
|
+
import { useScroll as r } from "../shared/hooks/useScroll.js";
|
|
4
|
+
import { SinglePhoneIcon as d } from "./SinglePhoneIcon.js";
|
|
5
|
+
const f = ({ contactText: s, phoneNumber: l, contactHoursText: t, contactHours: a }) => {
|
|
6
|
+
const i = r(10);
|
|
7
7
|
return /* @__PURE__ */ e(
|
|
8
8
|
"section",
|
|
9
9
|
{
|
|
10
|
-
className: `flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 transition-all duration-500 ease-in-out ${
|
|
10
|
+
className: `flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 transition-all duration-500 ease-in-out ${i ? "h-0 py-0" : "h-8.75 py-2"}`,
|
|
11
11
|
children: /* @__PURE__ */ n("div", { className: "flex flex-wrap items-center justify-center gap-4 text-center text-neutral-900 md:text-left", children: [
|
|
12
12
|
s && /* @__PURE__ */ e("p", { className: "text-small hidden sm:block", children: s }),
|
|
13
13
|
/* @__PURE__ */ e("div", { className: "h-5 w-5", children: /* @__PURE__ */ e(d, {}) }),
|
|
@@ -22,5 +22,5 @@ const h = ({ contactText: s, phoneNumber: l, contactHoursText: t, contactHours:
|
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
export {
|
|
25
|
-
|
|
25
|
+
f as ContactBanner
|
|
26
26
|
};
|
|
@@ -23,6 +23,7 @@ export declare interface ElectronicSignatureTemplateProps {
|
|
|
23
23
|
trustPilot: ReactNode;
|
|
24
24
|
signAndSend: BannerTagSectionProps;
|
|
25
25
|
faq: FaqSectionProps;
|
|
26
|
+
toast?: ToastProps;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
export interface FaqItemProps {
|
|
@@ -108,6 +109,14 @@ export interface TagProps {
|
|
|
108
109
|
className?: string;
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
export interface ToastProps {
|
|
113
|
+
show: boolean;
|
|
114
|
+
title: string;
|
|
115
|
+
message: string;
|
|
116
|
+
type?: 'success' | 'error' | 'default';
|
|
117
|
+
onClose: () => void;
|
|
118
|
+
}
|
|
119
|
+
|
|
111
120
|
export interface UploadZoneProps {
|
|
112
121
|
uploadPromptText: string;
|
|
113
122
|
addDocumentLabel: string;
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as p, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { Hero2Section as s } from "./Hero2Section.js";
|
|
3
3
|
import { HowItWorksSection as c } from "./HowItWorksSection.js";
|
|
4
|
-
import { FastAndSimpleSection as
|
|
5
|
-
import { FeaturesSection as
|
|
6
|
-
import { BannerTagSection as
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
4
|
+
import { FastAndSimpleSection as x } from "./FastAndSimpleSection.js";
|
|
5
|
+
import { FeaturesSection as f } from "./FeaturesSection.js";
|
|
6
|
+
import { BannerTagSection as g } from "./BannerTagSection.js";
|
|
7
|
+
import { Toast as S } from "./Toast.js";
|
|
8
|
+
import { FaqSection as u } from "./FaqSection.js";
|
|
9
|
+
const b = ({
|
|
10
|
+
hero: r,
|
|
11
|
+
howItWorks: i,
|
|
12
|
+
fastAndSimple: m,
|
|
13
|
+
benefits: t,
|
|
14
|
+
trustPilot: a,
|
|
15
|
+
signAndSend: n,
|
|
16
|
+
faq: l,
|
|
17
|
+
toast: e
|
|
18
|
+
}) => /* @__PURE__ */ p("main", { className: "bg-neutral-25 w-full flex-1", children: [
|
|
19
|
+
/* @__PURE__ */ o(s, { ...r, variant: "esign" }),
|
|
20
|
+
/* @__PURE__ */ o(c, { ...i }),
|
|
21
|
+
/* @__PURE__ */ o(x, { ...m, variant: "esign" }),
|
|
22
|
+
/* @__PURE__ */ o(f, { ...t }),
|
|
23
|
+
/* @__PURE__ */ o("section", { className: "bg-white px-6 py-8 lg:px-8 lg:py-12 xl:px-0", children: /* @__PURE__ */ o("div", { className: "mx-auto w-full max-w-254 md:h-34", children: a }) }),
|
|
24
|
+
/* @__PURE__ */ o(g, { ...n }),
|
|
25
|
+
/* @__PURE__ */ o(u, { ...l, className: "mx-auto max-w-4xl px-4 py-16" }),
|
|
26
|
+
e && /* @__PURE__ */ o(S, { ...e })
|
|
24
27
|
] });
|
|
25
28
|
export {
|
|
26
|
-
|
|
29
|
+
b as ElectronicSignatureTemplate
|
|
27
30
|
};
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
const
|
|
3
|
+
const o = (C) => /* @__PURE__ */ l("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...C, children: /* @__PURE__ */ l(
|
|
4
4
|
"path",
|
|
5
5
|
{
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
fillRule: "evenodd",
|
|
7
|
+
clipRule: "evenodd",
|
|
8
|
+
d: "M2 12C2 6.47 6.47 2 12 2C17.53 2 22 6.47 22 12C22 17.53 17.53 22 12 22C6.47 22 2 17.53 2 12ZM4 12C4 16.41 7.59 20 12 20C16.41 20 20 16.41 20 12C20 7.59 16.41 4 12 4C7.59 4 4 7.59 4 12ZM11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12V16C13 16.5523 12.5523 17 12 17C11.4477 17 11 16.5523 11 16V12ZM12 7C11.4477 7 11 7.44772 11 8C11 8.55228 11.4477 9 12 9C12.5523 9 13 8.55228 13 8C13 7.44772 12.5523 7 12 7Z",
|
|
9
|
+
fill: C.fill ?? "#1E2021"
|
|
8
10
|
}
|
|
9
11
|
) });
|
|
10
12
|
export {
|
|
11
|
-
|
|
13
|
+
o as InfoIcon
|
|
12
14
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as l, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import { Note as a } from "./Note.js";
|
|
3
3
|
import { HistoryIcon as i } from "./HistoryIcon.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { DocOutlineIcon as m } from "./DocOutlineIcon.js";
|
|
5
|
+
import { DoneCircleIcon as o } from "./DoneCircleIcon.js";
|
|
6
6
|
const u = ({ lastUpdate: n, reviewer: t, alsoKnownAs: r }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-6 py-4 text-neutral-800 lg:px-8 xl:px-30", children: /* @__PURE__ */ e("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: /* @__PURE__ */ l("div", { className: "text-small flex flex-col gap-2 text-neutral-600", children: [
|
|
7
7
|
/* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2 sm:gap-4", children: [
|
|
8
8
|
/* @__PURE__ */ l(a, { children: [
|
|
@@ -12,14 +12,14 @@ const u = ({ lastUpdate: n, reviewer: t, alsoKnownAs: r }) => /* @__PURE__ */ e(
|
|
|
12
12
|
!!t && /* @__PURE__ */ l(s, { children: [
|
|
13
13
|
/* @__PURE__ */ e("span", { className: "hidden h-5 w-px bg-neutral-600 sm:block", "aria-hidden": !0 }),
|
|
14
14
|
/* @__PURE__ */ l(a, { children: [
|
|
15
|
-
/* @__PURE__ */ e(
|
|
15
|
+
/* @__PURE__ */ e(o, { className: "size-4.5", fill: "var(--neutral-600)" }),
|
|
16
16
|
t
|
|
17
17
|
] })
|
|
18
18
|
] })
|
|
19
19
|
] }),
|
|
20
20
|
r.docs.length > 0 && /* @__PURE__ */ l("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
21
21
|
/* @__PURE__ */ l(a, { children: [
|
|
22
|
-
/* @__PURE__ */ e(
|
|
22
|
+
/* @__PURE__ */ e(m, { className: "size-4.5", fill: "var(--neutral-600)" }),
|
|
23
23
|
" ",
|
|
24
24
|
r.label
|
|
25
25
|
] }),
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
const n = (o) => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", fill: "none", viewBox: "0 0 20 20", ...o, children: /* @__PURE__ */ l(
|
|
4
|
+
"path",
|
|
5
|
+
{
|
|
6
|
+
fill: "var(--neutral-900)",
|
|
7
|
+
d: "M16.675 12.817a9.5 9.5 0 0 1-2.942-.467.81.81 0 0 0-.841.2l-1.309 1.642c-2.358-1.125-4.566-3.25-5.741-5.692l1.625-1.383a.85.85 0 0 0 .2-.85A9.3 9.3 0 0 1 7.2 3.325a.83.83 0 0 0-.825-.825H3.492c-.45 0-.992.2-.992.825C2.5 11.067 8.942 17.5 16.675 17.5c.592 0 .825-.525.825-.983v-2.875a.83.83 0 0 0-.825-.825"
|
|
8
|
+
}
|
|
9
|
+
) });
|
|
10
|
+
export {
|
|
11
|
+
n as SinglePhoneIcon
|
|
12
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
export declare const Toast: ({ show, title, message, type, onClose }: ToastProps) => JSX.Element | null;
|
|
4
|
+
|
|
5
|
+
export declare interface ToastProps {
|
|
6
|
+
show: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
type?: 'success' | 'error' | 'default';
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import f from "clsx";
|
|
4
|
+
import { useState as h } from "react";
|
|
5
|
+
import { InfoIcon as l } from "./InfoIcon.js";
|
|
6
|
+
import { DoneCircleIcon as g } from "./DoneCircleIcon.js";
|
|
7
|
+
import { CloseIcon as p } from "./CloseIcon.js";
|
|
8
|
+
const u = {
|
|
9
|
+
success: {
|
|
10
|
+
icon: /* @__PURE__ */ e(g, { fill: "white", width: 24, height: 24 }),
|
|
11
|
+
bg: "bg-primary-500"
|
|
12
|
+
},
|
|
13
|
+
error: {
|
|
14
|
+
icon: /* @__PURE__ */ e(l, { fill: "white", width: 24, height: 24 }),
|
|
15
|
+
bg: "bg-error-500"
|
|
16
|
+
},
|
|
17
|
+
default: {
|
|
18
|
+
icon: /* @__PURE__ */ e(l, { fill: "white", width: 24, height: 24 }),
|
|
19
|
+
bg: "bg-neutral-500"
|
|
20
|
+
}
|
|
21
|
+
}, v = ({ show: i, title: s, message: c, type: a = "default", onClose: d }) => {
|
|
22
|
+
const [t, n] = h(i), o = u[a];
|
|
23
|
+
i && !t && n(!0);
|
|
24
|
+
const m = () => {
|
|
25
|
+
i || n(!1);
|
|
26
|
+
};
|
|
27
|
+
return t ? /* @__PURE__ */ r(
|
|
28
|
+
"div",
|
|
29
|
+
{
|
|
30
|
+
onAnimationEnd: m,
|
|
31
|
+
className: f(
|
|
32
|
+
"fixed top-5 right-5 left-5 z-9999 flex min-w-75 items-center gap-4 rounded px-4 py-2 shadow-lg sm:left-auto",
|
|
33
|
+
o.bg,
|
|
34
|
+
i ? "animate-slide-in" : "animate-slide-out"
|
|
35
|
+
),
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "shrink-0", children: o.icon }),
|
|
38
|
+
/* @__PURE__ */ r("div", { className: "flex grow flex-col text-sm text-white", children: [
|
|
39
|
+
/* @__PURE__ */ e("p", { className: "font-bold", children: s }),
|
|
40
|
+
/* @__PURE__ */ e("p", { children: c })
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ e("button", { onClick: d, className: "cursor-pointer", children: /* @__PURE__ */ e(p, { fill: "white", className: "h-4 w-4" }) })
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
) : null;
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
v as Toast
|
|
49
|
+
};
|