@npm_leadtech/legal-contracts-ui 0.93.2 → 0.93.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.
- package/dist/components/AboutUsTemplate.d.ts +1 -7
- package/dist/components/AboutUsTemplate.js +34 -35
- package/dist/components/Anchor.d.ts +1 -1
- package/dist/components/Anchor.js +10 -11
- package/dist/components/Blockquote.d.ts +1 -5
- package/dist/components/Blockquote.js +2 -5
- package/dist/components/ContactBanner.js +6 -6
- package/dist/components/ElectronicSignatureTemplate.js +21 -20
- package/dist/components/Header2.d.ts +1 -1
- package/dist/components/InfoIcon.js +7 -5
- package/dist/components/Markdown.d.ts +1 -1
- package/dist/components/Markdown.js +31 -31
- package/dist/components/OrderedList.d.ts +1 -1
- package/dist/components/Paragraph.d.ts +1 -1
- 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 +13 -0
- package/dist/components/Toast.js +41 -0
- package/dist/components/UiComponents.d.ts +6 -10
- package/dist/components/UnorderedList.d.ts +1 -1
- package/dist/components/UnsubscribeTemplate.d.ts +1 -1
- package/dist/globals.css +1 -1
- package/dist/shared/hooks/useToast.js +31 -0
- package/package.json +9 -5
- package/dist/components/TrustPilotSection.d.ts +0 -10
- package/dist/components/TrustPilotSection.js +0 -10
|
@@ -13,7 +13,7 @@ export declare interface AboutUsTemplateProps {
|
|
|
13
13
|
howWeHelp: WeHelpSectionProps;
|
|
14
14
|
guidelines: GuidelinesSectionProps;
|
|
15
15
|
experts: ExpertsSectionProps;
|
|
16
|
-
trustPilot:
|
|
16
|
+
trustPilot: ReactNode;
|
|
17
17
|
partners: PartnersSectionProps;
|
|
18
18
|
cta: CtaSectionProps;
|
|
19
19
|
contactUs: ContactUsSectionProps;
|
|
@@ -128,12 +128,6 @@ export interface StorylineProps {
|
|
|
128
128
|
}[];
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
export interface TrustPilotSectionProps {
|
|
132
|
-
trustPilot: React.ReactNode;
|
|
133
|
-
content: string;
|
|
134
|
-
title: string;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
131
|
export interface ValuesSectionProps {
|
|
138
132
|
title: string;
|
|
139
133
|
children: ReactNode;
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { MissionSection as
|
|
3
|
-
import { ValuesSection as
|
|
4
|
-
import { Storyline as
|
|
5
|
-
import { WeHelpSection as
|
|
6
|
-
import { GuidelinesSection as
|
|
7
|
-
import { ExpertsSection as
|
|
8
|
-
import { TrustPilotSection as C } from "./TrustPilotSection.js";
|
|
1
|
+
import { jsxs as x, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { MissionSection as S } from "./MissionSection.js";
|
|
3
|
+
import { ValuesSection as u } from "./ValuesSection.js";
|
|
4
|
+
import { Storyline as d } from "./Storyline.js";
|
|
5
|
+
import { WeHelpSection as b } from "./WeHelpSection.js";
|
|
6
|
+
import { GuidelinesSection as h } from "./GuidelinesSection.js";
|
|
7
|
+
import { ExpertsSection as w } from "./ExpertsSection.js";
|
|
9
8
|
import { PartnersSection as N } from "./PartnersSection.js";
|
|
10
|
-
import { CtaSection as
|
|
11
|
-
import { ContactUsSection as
|
|
12
|
-
import { Jumbotron2 as
|
|
13
|
-
import { IntroSection as
|
|
14
|
-
const
|
|
15
|
-
jumbotron:
|
|
16
|
-
intro:
|
|
9
|
+
import { CtaSection as j } from "./CtaSection.js";
|
|
10
|
+
import { ContactUsSection as y } from "./ContactUsSection.js";
|
|
11
|
+
import { Jumbotron2 as C } from "./Jumbotron2.js";
|
|
12
|
+
import { IntroSection as U } from "./IntroSection.js";
|
|
13
|
+
const W = ({
|
|
14
|
+
jumbotron: r,
|
|
15
|
+
intro: t,
|
|
17
16
|
mission: m,
|
|
18
|
-
coreValues:
|
|
19
|
-
storyline:
|
|
17
|
+
coreValues: e,
|
|
18
|
+
storyline: i,
|
|
20
19
|
howWeHelp: n,
|
|
21
|
-
guidelines:
|
|
22
|
-
experts:
|
|
23
|
-
trustPilot:
|
|
24
|
-
partners:
|
|
25
|
-
cta:
|
|
20
|
+
guidelines: l,
|
|
21
|
+
experts: s,
|
|
22
|
+
trustPilot: c,
|
|
23
|
+
partners: f,
|
|
24
|
+
cta: p,
|
|
26
25
|
contactUs: a
|
|
27
|
-
}) => /* @__PURE__ */
|
|
28
|
-
/* @__PURE__ */ o(
|
|
29
|
-
/* @__PURE__ */ o(
|
|
30
|
-
/* @__PURE__ */ o(
|
|
31
|
-
/* @__PURE__ */ o(
|
|
32
|
-
/* @__PURE__ */ o(
|
|
33
|
-
/* @__PURE__ */ o(
|
|
26
|
+
}) => /* @__PURE__ */ x("main", { className: "mx-auto flex w-full flex-1 flex-col text-neutral-800", children: [
|
|
27
|
+
/* @__PURE__ */ o(C, { ...r }),
|
|
28
|
+
/* @__PURE__ */ o(U, { ...t, className: "bg-primary-50" }),
|
|
29
|
+
/* @__PURE__ */ o(S, { ...m }),
|
|
30
|
+
/* @__PURE__ */ o(u, { ...e }),
|
|
31
|
+
/* @__PURE__ */ o(d, { ...i }),
|
|
32
|
+
/* @__PURE__ */ o(b, { ...n }),
|
|
33
|
+
/* @__PURE__ */ o(h, { ...l }),
|
|
34
|
+
/* @__PURE__ */ o(w, { ...s }),
|
|
35
|
+
/* @__PURE__ */ o("div", { className: "w-full max-w-254 md:h-34", children: c }),
|
|
36
|
+
/* @__PURE__ */ o(N, { ...f }),
|
|
34
37
|
/* @__PURE__ */ o(j, { ...p }),
|
|
35
|
-
/* @__PURE__ */ o(y, { ...
|
|
36
|
-
/* @__PURE__ */ o(C, { ...s }),
|
|
37
|
-
/* @__PURE__ */ o(N, { ...c }),
|
|
38
|
-
/* @__PURE__ */ o(P, { ...l }),
|
|
39
|
-
/* @__PURE__ */ o(T, { ...a })
|
|
38
|
+
/* @__PURE__ */ o(y, { ...a })
|
|
40
39
|
] });
|
|
41
40
|
export {
|
|
42
|
-
|
|
41
|
+
W as AboutUsTemplate
|
|
43
42
|
};
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface AnchorProps extends React.ComponentProps<'a'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const v = ({ children: o, variant: i = "default", className:
|
|
4
|
-
const t = e.href || "", r = t.toLowerCase(),
|
|
1
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import h from "clsx";
|
|
3
|
+
const v = ({ children: o, variant: i = "default", className: l = "", ...e }) => {
|
|
4
|
+
const t = e.href || "", r = t.toLowerCase(), c = r.startsWith("mailto:"), n = r.startsWith("tel:"), a = {
|
|
5
5
|
default: "text-neutral-900 underline ",
|
|
6
|
-
legal: "text-primary-700 cursor-pointer"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
if (!a) return t;
|
|
6
|
+
legal: "text-primary-700 cursor-pointer"
|
|
7
|
+
}, f = a[i] ?? a.default, s = t.startsWith("http") && !n && !c, d = (() => {
|
|
8
|
+
if (!n) return t;
|
|
10
9
|
try {
|
|
11
10
|
return decodeURIComponent(t).replace(/\s/g, "");
|
|
12
11
|
} catch {
|
|
13
12
|
return t.replace(/%20/g, "").replace(/\s/g, "");
|
|
14
13
|
}
|
|
15
14
|
})();
|
|
16
|
-
return /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ u(
|
|
17
16
|
"a",
|
|
18
17
|
{
|
|
19
18
|
...e,
|
|
20
|
-
href:
|
|
21
|
-
className:
|
|
19
|
+
href: d,
|
|
20
|
+
className: h(l, f),
|
|
22
21
|
target: s ? "_blank" : void 0,
|
|
23
22
|
rel: s ? "noopener noreferrer" : void 0,
|
|
24
23
|
children: o
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
|
-
export declare const Blockquote: ({ children
|
|
4
|
-
|
|
5
|
-
export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
|
|
7
|
-
}
|
|
3
|
+
export declare const Blockquote: ({ children }: React.ComponentProps<"blockquote">) => JSX.Element;
|
|
8
4
|
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
const
|
|
3
|
-
default: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic",
|
|
4
|
-
"about-us": "my-4 text-gray-700 italic bg-neutral-25 pt-4 px-4 pb-0.5"
|
|
5
|
-
}[a], children: t });
|
|
2
|
+
const e = ({ children: o }) => /* @__PURE__ */ r("blockquote", { className: "my-4 border-l-4 border-gray-300 pl-4 text-gray-700 italic", children: o });
|
|
6
3
|
export {
|
|
7
|
-
|
|
4
|
+
e as Blockquote
|
|
8
5
|
};
|
|
@@ -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
|
};
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { ToastProvider as s } from "../shared/hooks/useToast.js";
|
|
3
|
+
import { Hero2Section as c } from "./Hero2Section.js";
|
|
4
|
+
import { HowItWorksSection as p } from "./HowItWorksSection.js";
|
|
5
|
+
import { FastAndSimpleSection as x } from "./FastAndSimpleSection.js";
|
|
6
|
+
import { FeaturesSection as f } from "./FeaturesSection.js";
|
|
7
|
+
import { BannerTagSection as d } from "./BannerTagSection.js";
|
|
7
8
|
import { FaqSection as g } from "./FaqSection.js";
|
|
8
|
-
const
|
|
9
|
-
hero:
|
|
10
|
-
howItWorks:
|
|
9
|
+
const T = ({
|
|
10
|
+
hero: r,
|
|
11
|
+
howItWorks: e,
|
|
11
12
|
fastAndSimple: i,
|
|
12
|
-
benefits:
|
|
13
|
+
benefits: t,
|
|
13
14
|
trustPilot: m,
|
|
14
15
|
signAndSend: a,
|
|
15
16
|
faq: n
|
|
16
|
-
}) => /* @__PURE__ */ l("main", { className: "bg-neutral-25 w-full flex-1", children: [
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
-
] });
|
|
17
|
+
}) => /* @__PURE__ */ o(s, { children: /* @__PURE__ */ l("main", { className: "bg-neutral-25 w-full flex-1", children: [
|
|
18
|
+
/* @__PURE__ */ o(c, { ...r, variant: "esign" }),
|
|
19
|
+
/* @__PURE__ */ o(p, { ...e }),
|
|
20
|
+
/* @__PURE__ */ o(x, { ...i, variant: "esign" }),
|
|
21
|
+
/* @__PURE__ */ o(f, { ...t }),
|
|
22
|
+
/* @__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: m }) }),
|
|
23
|
+
/* @__PURE__ */ o(d, { ...a }),
|
|
24
|
+
/* @__PURE__ */ o(g, { ...n, className: "mx-auto max-w-4xl px-4 py-16" })
|
|
25
|
+
] }) });
|
|
25
26
|
export {
|
|
26
|
-
|
|
27
|
+
T as ElectronicSignatureTemplate
|
|
27
28
|
};
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -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,51 +1,51 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import a, { defaultUrlTransform as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { Anchor as
|
|
6
|
-
import { Blockquote as
|
|
7
|
-
import { Code as
|
|
2
|
+
import a, { defaultUrlTransform as i } from "react-markdown";
|
|
3
|
+
import s from "rehype-raw";
|
|
4
|
+
import f from "remark-gfm";
|
|
5
|
+
import { Anchor as l } from "./Anchor.js";
|
|
6
|
+
import { Blockquote as d } from "./Blockquote.js";
|
|
7
|
+
import { Code as c } from "./Code.js";
|
|
8
8
|
import { Header1 as h } from "./Header1.js";
|
|
9
9
|
import { Header2 as u } from "./Header2.js";
|
|
10
10
|
import { Header3 as C } from "./Header3.js";
|
|
11
|
-
import { Header4 as
|
|
12
|
-
import { OrderedList as
|
|
13
|
-
import { Paragraph as
|
|
14
|
-
import { TableRow as w, TableHeader as g, TableData as H, Table as
|
|
15
|
-
import { UnorderedList as
|
|
16
|
-
import { Video as
|
|
17
|
-
import { Emphasis as
|
|
18
|
-
import
|
|
19
|
-
const y = (
|
|
11
|
+
import { Header4 as T } from "./Header4.js";
|
|
12
|
+
import { OrderedList as b } from "./OrderedList.js";
|
|
13
|
+
import { Paragraph as k } from "./Paragraph.js";
|
|
14
|
+
import { TableRow as w, TableHeader as g, TableData as H, Table as x } from "./Table.js";
|
|
15
|
+
import { UnorderedList as P } from "./UnorderedList.js";
|
|
16
|
+
import { Video as R } from "./Video.js";
|
|
17
|
+
import { Emphasis as U } from "./Emphasis.js";
|
|
18
|
+
import q from "clsx";
|
|
19
|
+
const y = (e) => e.startsWith("tel:") ? e : i(e), $ = ({ content: e, className: t = "", useCustom: n = !0, variant: m = "default" }) => {
|
|
20
20
|
const p = {
|
|
21
21
|
h1: h,
|
|
22
|
-
h2: (o) => /* @__PURE__ */ r(u, { variant:
|
|
22
|
+
h2: (o) => /* @__PURE__ */ r(u, { variant: m, ...o }),
|
|
23
23
|
h3: C,
|
|
24
|
-
h4:
|
|
25
|
-
p: (o) => /* @__PURE__ */ r(
|
|
26
|
-
a: (o) => /* @__PURE__ */ r(
|
|
27
|
-
ul: (o) => /* @__PURE__ */ r(
|
|
28
|
-
ol: (o) => /* @__PURE__ */ r(
|
|
29
|
-
code:
|
|
30
|
-
blockquote:
|
|
31
|
-
video:
|
|
32
|
-
table:
|
|
24
|
+
h4: T,
|
|
25
|
+
p: (o) => /* @__PURE__ */ r(k, { variant: m, ...o }),
|
|
26
|
+
a: (o) => /* @__PURE__ */ r(l, { variant: m, ...o }),
|
|
27
|
+
ul: (o) => /* @__PURE__ */ r(P, { variant: m, ...o }),
|
|
28
|
+
ol: (o) => /* @__PURE__ */ r(b, { variant: m, ...o }),
|
|
29
|
+
code: c,
|
|
30
|
+
blockquote: d,
|
|
31
|
+
video: R,
|
|
32
|
+
table: x,
|
|
33
33
|
td: H,
|
|
34
34
|
th: g,
|
|
35
35
|
tr: w,
|
|
36
|
-
em:
|
|
36
|
+
em: U
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */ r("div", { className:
|
|
38
|
+
return /* @__PURE__ */ r("div", { className: q("w-full min-w-0", t), children: /* @__PURE__ */ r(
|
|
39
39
|
a,
|
|
40
40
|
{
|
|
41
|
-
rehypePlugins: [
|
|
42
|
-
remarkPlugins: [
|
|
41
|
+
rehypePlugins: [s],
|
|
42
|
+
remarkPlugins: [f],
|
|
43
43
|
urlTransform: y,
|
|
44
44
|
components: n ? p : void 0,
|
|
45
|
-
children:
|
|
45
|
+
children: e
|
|
46
46
|
}
|
|
47
47
|
) });
|
|
48
48
|
};
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
$ as Markdown
|
|
51
51
|
};
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
6
|
-
variant?: 'default' | 'tooltip' | 'legal'
|
|
6
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface ParagraphProps extends React.ComponentProps<'p'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -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,13 @@
|
|
|
1
|
+
import { JSX } from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
export declare const Toast: ({ show, title, message, type, onClose, duration }: ToastProps) => JSX.Element | undefined;
|
|
4
|
+
|
|
5
|
+
export declare interface ToastProps {
|
|
6
|
+
show: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
message: string;
|
|
9
|
+
type?: 'success' | 'error' | 'default';
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
duration?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsxs as o, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as a } from "react";
|
|
3
|
+
import { InfoIcon as c } from "./InfoIcon.js";
|
|
4
|
+
import { DoneCircleIcon as f } from "./DoneCircleIcon.js";
|
|
5
|
+
import { CloseIcon as d } from "./CloseIcon.js";
|
|
6
|
+
const g = {
|
|
7
|
+
success: {
|
|
8
|
+
icon: /* @__PURE__ */ e(f, { fill: "white", width: 24, height: 24 }),
|
|
9
|
+
bg: "bg-primary-500"
|
|
10
|
+
},
|
|
11
|
+
error: {
|
|
12
|
+
icon: /* @__PURE__ */ e(c, { fill: "white", width: 24, height: 24 }),
|
|
13
|
+
bg: "bg-error-500"
|
|
14
|
+
},
|
|
15
|
+
default: {
|
|
16
|
+
icon: /* @__PURE__ */ e(c, { fill: "white", width: 24, height: 24 }),
|
|
17
|
+
bg: "bg-neutral-500"
|
|
18
|
+
}
|
|
19
|
+
}, N = ({ show: l, title: n, message: s, type: m = "default", onClose: i, duration: t = 3e3 }) => {
|
|
20
|
+
a(() => {
|
|
21
|
+
const h = setTimeout(() => {
|
|
22
|
+
i();
|
|
23
|
+
}, t);
|
|
24
|
+
return () => {
|
|
25
|
+
clearTimeout(h);
|
|
26
|
+
};
|
|
27
|
+
}, [i, t]);
|
|
28
|
+
const r = g[m];
|
|
29
|
+
if (l)
|
|
30
|
+
return /* @__PURE__ */ o("div", { className: `animate-slide-in flex min-w-75 items-center gap-4 rounded px-4 py-2 shadow-lg ${r.bg}`, children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "shrink-0", children: r.icon }),
|
|
32
|
+
/* @__PURE__ */ o("div", { className: "flex grow flex-col text-sm text-white", children: [
|
|
33
|
+
/* @__PURE__ */ e("p", { className: "font-bold", children: n }),
|
|
34
|
+
/* @__PURE__ */ e("p", { children: s })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ e("button", { onClick: i, className: "cursor-pointer", children: /* @__PURE__ */ e(d, { fill: "white", className: "h-4 w-4" }) })
|
|
37
|
+
] });
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
N as Toast
|
|
41
|
+
};
|
|
@@ -3,14 +3,10 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const Anchor: ({ children, variant, className, ...props }: AnchorProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface AnchorProps extends React.ComponentProps<'a'> {
|
|
6
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
6
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export declare const Blockquote: ({ children
|
|
10
|
-
|
|
11
|
-
export interface BlockquoteProps extends React.ComponentProps<'blockquote'> {
|
|
12
|
-
variant?: 'default' | 'legal' | 'tooltip' | 'about-us';
|
|
13
|
-
}
|
|
9
|
+
export declare const Blockquote: ({ children }: React.ComponentProps<"blockquote">) => JSX.Element;
|
|
14
10
|
|
|
15
11
|
export declare const Code: ({ children, className }: React.ComponentProps<"code">) => JSX.Element;
|
|
16
12
|
|
|
@@ -21,7 +17,7 @@ export declare const Header1: ({ children }: React.ComponentProps<"h1">) => JSX.
|
|
|
21
17
|
export declare const Header2: ({ children, variant }: Header2Props) => JSX.Element;
|
|
22
18
|
|
|
23
19
|
export interface Header2Props extends React.ComponentProps<'h2'> {
|
|
24
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
20
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
25
21
|
}
|
|
26
22
|
|
|
27
23
|
export declare const Header3: ({ children }: React.ComponentProps<"h3">) => JSX.Element;
|
|
@@ -31,13 +27,13 @@ export declare const Header4: ({ children }: React.ComponentProps<"h4">) => JSX.
|
|
|
31
27
|
export declare const OrderedList: ({ variant, children }: OrderedListProps) => JSX.Element;
|
|
32
28
|
|
|
33
29
|
export interface OrderedListProps extends React.ComponentProps<'ol'> {
|
|
34
|
-
variant?: 'default' | 'tooltip' | 'legal'
|
|
30
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
35
31
|
}
|
|
36
32
|
|
|
37
33
|
export declare const Paragraph: ({ variant, children }: ParagraphProps) => JSX.Element;
|
|
38
34
|
|
|
39
35
|
export interface ParagraphProps extends React.ComponentProps<'p'> {
|
|
40
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
36
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
export declare const Table: ({ children }: React.ComponentProps<"table">) => JSX.Element;
|
|
@@ -51,7 +47,7 @@ export declare const TableRow: ({ children }: React.ComponentProps<"tr">) => JSX
|
|
|
51
47
|
export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
|
|
52
48
|
|
|
53
49
|
export interface UnorderedListProps extends React.ComponentProps<'ul'> {
|
|
54
|
-
variant?: 'default' | '
|
|
50
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
55
51
|
}
|
|
56
52
|
|
|
57
53
|
export declare const Video: ({ children }: React.ComponentProps<"video">) => JSX.Element;
|
|
@@ -3,6 +3,6 @@ import { JSX } from 'react/jsx-runtime';
|
|
|
3
3
|
export declare const UnorderedList: ({ variant, children }: UnorderedListProps) => JSX.Element;
|
|
4
4
|
|
|
5
5
|
export interface UnorderedListProps extends React.ComponentProps<'ul'> {
|
|
6
|
-
variant?: 'default' | '
|
|
6
|
+
variant?: 'default' | 'tooltip' | 'legal';
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -8,7 +8,7 @@ export interface MarkdownProps {
|
|
|
8
8
|
content: string;
|
|
9
9
|
className?: string;
|
|
10
10
|
useCustom?: boolean;
|
|
11
|
-
variant?: 'default' | 'legal' | 'tooltip'
|
|
11
|
+
variant?: 'default' | 'legal' | 'tooltip';
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
export declare const UnsubscribeTemplate: FC<UnsubscribeTemplateProps>;
|