@npm_leadtech/legal-contracts-ui 0.159.2 → 0.159.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/ContinueEditingBanner.d.ts +27 -0
- package/dist/components/ContinueEditingBanner.js +30 -0
- package/dist/components/HomeTemplate.d.ts +24 -0
- package/dist/components/HomeTemplate.js +22 -19
- package/dist/components/Toast.js +3 -3
- package/package.json +5 -1
- package/dist/components/index.d.ts +0 -1333
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const ContinueEditingBanner: FC<ContinueEditingBannerProps>;
|
|
4
|
+
|
|
5
|
+
export declare interface ContinueEditingBannerProps {
|
|
6
|
+
latestApplicationInProgress?: LatestApplication;
|
|
7
|
+
editFormClicked?: (latestApplication: LatestApplication) => void;
|
|
8
|
+
token: string;
|
|
9
|
+
tagLine: string;
|
|
10
|
+
title: string;
|
|
11
|
+
buttonLabel: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export declare interface LatestApplication {
|
|
15
|
+
id: string;
|
|
16
|
+
state?: string;
|
|
17
|
+
link: string;
|
|
18
|
+
lastStep?: number;
|
|
19
|
+
continueFromHome?: boolean;
|
|
20
|
+
form: {
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
type: string;
|
|
24
|
+
subType?: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { Button as m } from "./Button.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
latestApplicationInProgress: t,
|
|
6
|
+
editFormClicked: n,
|
|
7
|
+
tagLine: r,
|
|
8
|
+
title: a,
|
|
9
|
+
token: s,
|
|
10
|
+
buttonLabel: i
|
|
11
|
+
}) => t == null || s.length === 0 ? null : /* @__PURE__ */ e("div", { className: "bg-primary-50 px-ds-sm py-0", children: /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-ds-sm rounded-sm bg-neutral-white p-ds-lg text-center", children: [
|
|
12
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-ds-2xs", children: [
|
|
13
|
+
/* @__PURE__ */ e("span", { className: "font-lora text-large text-primary-800 lg:text-super-large", children: a }),
|
|
14
|
+
/* @__PURE__ */ e("span", { className: "text-medium text-neutral-600", children: r })
|
|
15
|
+
] }),
|
|
16
|
+
/* @__PURE__ */ e(
|
|
17
|
+
m,
|
|
18
|
+
{
|
|
19
|
+
"data-qa": "continue-editing-banner-button",
|
|
20
|
+
className: "lg:w-auto",
|
|
21
|
+
onClick: () => {
|
|
22
|
+
n?.(t);
|
|
23
|
+
},
|
|
24
|
+
children: i
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }) });
|
|
28
|
+
export {
|
|
29
|
+
u as ContinueEditingBanner
|
|
30
|
+
};
|
|
@@ -29,6 +29,15 @@ export interface CategoriesSectionProps {
|
|
|
29
29
|
cta: ReactNode;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
export interface ContinueEditingBannerProps {
|
|
33
|
+
latestApplicationInProgress?: LatestApplication;
|
|
34
|
+
editFormClicked?: (latestApplication: LatestApplication) => void;
|
|
35
|
+
token: string;
|
|
36
|
+
tagLine: string;
|
|
37
|
+
title: string;
|
|
38
|
+
buttonLabel: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
export interface FaqTeaserSectionProps {
|
|
33
42
|
header: SectionHeadingProps;
|
|
34
43
|
questions: {
|
|
@@ -70,6 +79,7 @@ export declare interface HomeTemplateProps {
|
|
|
70
79
|
trust: TrustSectionProps;
|
|
71
80
|
faqTeaser: FaqTeaserSectionProps;
|
|
72
81
|
articles: BlogSectionProps;
|
|
82
|
+
continueEditingBanner: ContinueEditingBannerProps;
|
|
73
83
|
}
|
|
74
84
|
|
|
75
85
|
export interface ItemProps {
|
|
@@ -82,6 +92,20 @@ export interface ItemProps {
|
|
|
82
92
|
className?: string;
|
|
83
93
|
}
|
|
84
94
|
|
|
95
|
+
export interface LatestApplication {
|
|
96
|
+
id: string;
|
|
97
|
+
state?: string;
|
|
98
|
+
link: string;
|
|
99
|
+
lastStep?: number;
|
|
100
|
+
continueFromHome?: boolean;
|
|
101
|
+
form: {
|
|
102
|
+
name: string;
|
|
103
|
+
url: string;
|
|
104
|
+
type: string;
|
|
105
|
+
subType?: string;
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
85
109
|
export interface LawGeniusSectionProps {
|
|
86
110
|
title: string;
|
|
87
111
|
content: string;
|
|
@@ -1,32 +1,35 @@
|
|
|
1
1
|
import { jsxs as c, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { ContinueEditingBanner as f } from "./ContinueEditingBanner.js";
|
|
4
|
+
import { HeroSection as l } from "./HeroSection.js";
|
|
5
|
+
import { MoreTemplatesSection as S } from "./MoreTemplatesSection.js";
|
|
6
|
+
import { ProcessSection as x } from "./ProcessSection.js";
|
|
7
|
+
import { CategoriesSection as T } from "./CategoriesSection.js";
|
|
8
|
+
import { TrustSection as g } from "./TrustSection.js";
|
|
9
|
+
import { FaqTeaserSection as u } from "./FaqTeaserSection.js";
|
|
9
10
|
import { BlogSection as b } from "./BlogSection.js";
|
|
10
|
-
import { RatafiaSection as
|
|
11
|
-
const
|
|
11
|
+
import { RatafiaSection as d } from "./RatafiaSection.js";
|
|
12
|
+
const R = ({
|
|
12
13
|
hero: t,
|
|
13
14
|
moreTemplates: m,
|
|
14
15
|
process: e,
|
|
15
16
|
categories: r,
|
|
16
17
|
ratafia: i,
|
|
17
|
-
trust:
|
|
18
|
-
faqTeaser:
|
|
19
|
-
articles: a
|
|
18
|
+
trust: n,
|
|
19
|
+
faqTeaser: p,
|
|
20
|
+
articles: a,
|
|
21
|
+
continueEditingBanner: s
|
|
20
22
|
}) => /* @__PURE__ */ c("main", { className: "flex-1", children: [
|
|
21
|
-
/* @__PURE__ */ o(
|
|
22
|
-
/* @__PURE__ */ o(
|
|
23
|
-
/* @__PURE__ */ o(
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ o(
|
|
26
|
-
/* @__PURE__ */ o(
|
|
27
|
-
/* @__PURE__ */ o(
|
|
23
|
+
/* @__PURE__ */ o(f, { ...s }),
|
|
24
|
+
/* @__PURE__ */ o(l, { ...t }),
|
|
25
|
+
/* @__PURE__ */ o(S, { ...m }),
|
|
26
|
+
/* @__PURE__ */ o(x, { ...e }),
|
|
27
|
+
r && /* @__PURE__ */ o(T, { ...r }),
|
|
28
|
+
/* @__PURE__ */ o(d, { ...i }),
|
|
29
|
+
/* @__PURE__ */ o(g, { ...n }),
|
|
30
|
+
/* @__PURE__ */ o(u, { ...p }),
|
|
28
31
|
/* @__PURE__ */ o(b, { className: "pt-10 pb-12 lg:pb-14", ...a })
|
|
29
32
|
] });
|
|
30
33
|
export {
|
|
31
|
-
|
|
34
|
+
R as HomeTemplate
|
|
32
35
|
};
|
package/dist/components/Toast.js
CHANGED
|
@@ -18,8 +18,8 @@ const u = {
|
|
|
18
18
|
icon: /* @__PURE__ */ e(l, { fill: "white", width: 24, height: 24 }),
|
|
19
19
|
bg: "bg-neutral-500"
|
|
20
20
|
}
|
|
21
|
-
}, v = ({ show: i, title: s, message:
|
|
22
|
-
const [t, n] = h(i), o = u[
|
|
21
|
+
}, v = ({ show: i, title: s, message: c, type: a = "default", onClose: d }) => {
|
|
22
|
+
const [t, n] = h(i), o = u[a];
|
|
23
23
|
i && !t && n(!0);
|
|
24
24
|
const m = () => {
|
|
25
25
|
i || n(!1);
|
|
@@ -37,7 +37,7 @@ const u = {
|
|
|
37
37
|
/* @__PURE__ */ e("div", { className: "shrink-0", children: o.icon }),
|
|
38
38
|
/* @__PURE__ */ r("div", { className: "flex grow flex-col text-sm text-white", children: [
|
|
39
39
|
/* @__PURE__ */ e("p", { className: "font-bold", children: s }),
|
|
40
|
-
/* @__PURE__ */ e("p", {
|
|
40
|
+
/* @__PURE__ */ e("p", { children: c })
|
|
41
41
|
] }),
|
|
42
42
|
/* @__PURE__ */ e("button", { onClick: d, className: "cursor-pointer", children: /* @__PURE__ */ e(p, { fill: "white", className: "h-4 w-4" }) })
|
|
43
43
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.159.
|
|
3
|
+
"version": "0.159.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -294,6 +294,10 @@
|
|
|
294
294
|
"import": "./dist/components/ContentItem.js",
|
|
295
295
|
"types": "./dist/components/ContentItem.d.ts"
|
|
296
296
|
},
|
|
297
|
+
"./components/ContinueEditingBanner": {
|
|
298
|
+
"import": "./dist/components/ContinueEditingBanner.js",
|
|
299
|
+
"types": "./dist/components/ContinueEditingBanner.d.ts"
|
|
300
|
+
},
|
|
297
301
|
"./components/CookiesBar": {
|
|
298
302
|
"import": "./dist/components/CookiesBar.js",
|
|
299
303
|
"types": "./dist/components/CookiesBar.d.ts"
|