@npm_leadtech/legal-contracts-ui 0.188.5 → 0.188.21
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/AllDocumentsTemplate.d.ts +1 -0
- package/dist/components/ContactBanner.d.ts +0 -1
- package/dist/components/ContactBanner.js +20 -20
- package/dist/components/ContentItem.d.ts +1 -0
- package/dist/components/ContentItem.js +5 -1
- package/dist/components/CtaSection.d.ts +1 -0
- package/dist/components/DefaultSubtypeDocument.d.ts +1 -0
- package/dist/components/DefaultSubtypeDocument.js +10 -9
- package/dist/components/GuidelinesSection.d.ts +1 -0
- package/dist/components/Header.js +4 -4
- package/dist/components/IntroSection.d.ts +1 -0
- package/dist/components/LinkWrapper.d.ts +2 -1
- package/dist/components/LinkWrapper.js +12 -7
- package/dist/components/Preform.js +1 -0
- package/dist/components/PreformMobile.js +2 -3
- package/dist/components/PreviewDownload.js +1 -0
- package/dist/components/PreviewSection.js +1 -0
- package/dist/components/PricingTemplate.d.ts +1 -0
- package/dist/components/ProductTemplate.d.ts +1 -0
- package/dist/components/TryNowSection.js +4 -1
- package/dist/components/WeHelpSection.d.ts +1 -0
- package/dist/components/index.d.ts +3 -2
- package/package.json +2 -2
|
@@ -7,7 +7,6 @@ export declare interface ContactBannerProps {
|
|
|
7
7
|
phoneNumber?: string;
|
|
8
8
|
contactHoursText?: string;
|
|
9
9
|
contactHours?: string;
|
|
10
|
-
/** @deprecated No longer used: the banner keeps a fixed height and scrolls away with the page to avoid layout shifts. */
|
|
11
10
|
isScrolled?: boolean;
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { SinglePhoneIcon as e } from "./SinglePhoneIcon.js";
|
|
2
|
+
import { useScroll as t } from "../shared/hooks/useScroll.js";
|
|
2
3
|
import "react";
|
|
3
|
-
import { jsx as
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
5
|
//#region lib/components/organisms/ContactBanner.tsx
|
|
5
|
-
var
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
children: /* @__PURE__ */ n("div", {
|
|
6
|
+
var i = ({ contactText: i, phoneNumber: a, contactHoursText: o, contactHours: s }) => /* @__PURE__ */ n("section", {
|
|
7
|
+
className: `flex w-full justify-center border-b border-neutral-200 bg-neutral-50 px-4 transition-all duration-500 ease-in-out ${t(10) ? "h-0 py-0" : "h-8.75 py-2"}`,
|
|
8
|
+
children: /* @__PURE__ */ r("div", {
|
|
9
9
|
className: "flex flex-wrap items-center justify-center gap-4 text-center text-neutral-900 md:text-left",
|
|
10
10
|
children: [
|
|
11
|
-
|
|
11
|
+
i && /* @__PURE__ */ n("p", {
|
|
12
12
|
className: "text-small hidden sm:block",
|
|
13
|
-
children:
|
|
13
|
+
children: i
|
|
14
14
|
}),
|
|
15
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ n("div", {
|
|
16
16
|
className: "h-5 w-5",
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ n(e, {})
|
|
18
18
|
}),
|
|
19
|
-
|
|
20
|
-
href: `tel:${
|
|
19
|
+
a && /* @__PURE__ */ n("a", {
|
|
20
|
+
href: `tel:${a}`,
|
|
21
21
|
className: "text-small block font-bold sm:hidden",
|
|
22
|
-
children:
|
|
22
|
+
children: a
|
|
23
23
|
}),
|
|
24
|
-
|
|
24
|
+
a && /* @__PURE__ */ n("p", {
|
|
25
25
|
className: "text-small hidden font-bold sm:block",
|
|
26
|
-
children:
|
|
26
|
+
children: a
|
|
27
27
|
}),
|
|
28
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ r("div", {
|
|
29
29
|
className: "text-small flex items-center gap-1",
|
|
30
|
-
children: [
|
|
30
|
+
children: [o && /* @__PURE__ */ n("span", {
|
|
31
31
|
className: "hidden sm:block",
|
|
32
|
-
children: a
|
|
33
|
-
}), o && /* @__PURE__ */ t("span", {
|
|
34
|
-
className: "sm:hidden",
|
|
35
32
|
children: o
|
|
33
|
+
}), s && /* @__PURE__ */ n("span", {
|
|
34
|
+
className: "sm:hidden",
|
|
35
|
+
children: s
|
|
36
36
|
})]
|
|
37
37
|
})
|
|
38
38
|
]
|
|
39
39
|
})
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
|
-
export {
|
|
42
|
+
export { i as ContactBanner };
|
|
@@ -22,6 +22,7 @@ var c = ({ id: c, title: l, content: u, linkedProducts: d, sampleImage: f, cta:
|
|
|
22
22
|
f && /* @__PURE__ */ o(n, { ...f }),
|
|
23
23
|
!!p && /* @__PURE__ */ o(t, {
|
|
24
24
|
className: "w-75 self-center text-center",
|
|
25
|
+
"data-qa": `createDocument-seo-content-cta-${c}`,
|
|
25
26
|
children: p
|
|
26
27
|
}),
|
|
27
28
|
!!m && /* @__PURE__ */ o(t, {
|
|
@@ -44,7 +45,10 @@ var c = ({ id: c, title: l, content: u, linkedProducts: d, sampleImage: f, cta:
|
|
|
44
45
|
}),
|
|
45
46
|
g.length > 0 && /* @__PURE__ */ o("div", {
|
|
46
47
|
className: "flex flex-wrap gap-2",
|
|
47
|
-
children: g.map((e) => e.format === "Alternative" ? /* @__PURE__ */ o(i, { ...e }, e.id) : /* @__PURE__ */ o(a, {
|
|
48
|
+
children: g.map((e) => e.format === "Alternative" ? /* @__PURE__ */ o(i, { ...e }, e.id) : /* @__PURE__ */ o(a, {
|
|
49
|
+
...e,
|
|
50
|
+
ctaDataQa: `createDocument-seo-content-${c}-subtype-${e.id}`
|
|
51
|
+
}, e.id))
|
|
48
52
|
})
|
|
49
53
|
]
|
|
50
54
|
});
|
|
@@ -19,6 +19,7 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
19
19
|
format: 'Default';
|
|
20
20
|
createDocButton: ReactNode;
|
|
21
21
|
description: string;
|
|
22
|
+
ctaDataQa?: string;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
export declare type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { LinkWrapper as e } from "./LinkWrapper.js";
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
//#region lib/components/molecules/DefaultSubtypeDocument.tsx
|
|
4
|
-
var r = ({
|
|
4
|
+
var r = ({ id: r, link: i, sampleImage: a, pdfDownload: o, wordDownload: s, createDocButton: c, description: l, ctaDataQa: u = `createDocument-seo-subtype-${r}` }) => /* @__PURE__ */ n("div", {
|
|
5
5
|
className: "bg-secondary-50 mb-6 flex max-w-100 flex-col items-center justify-center gap-6 rounded-xs px-6 py-8 shadow-md last:mb-0 lg:max-w-136 lg:flex-row lg:items-start xl:max-w-179",
|
|
6
6
|
children: [/* @__PURE__ */ t("div", {
|
|
7
7
|
className: "max-w-35 shadow",
|
|
8
|
-
children:
|
|
8
|
+
children: a
|
|
9
9
|
}), /* @__PURE__ */ n("div", {
|
|
10
10
|
className: "flex w-full flex-col gap-4",
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ t("div", {
|
|
13
13
|
className: "text-medium font-bold text-neutral-900 underline",
|
|
14
|
-
children:
|
|
14
|
+
children: i
|
|
15
15
|
}),
|
|
16
16
|
/* @__PURE__ */ t("p", {
|
|
17
17
|
className: "text-medium text-neutral-900",
|
|
18
|
-
children:
|
|
18
|
+
children: l
|
|
19
19
|
}),
|
|
20
20
|
/* @__PURE__ */ n("div", {
|
|
21
21
|
className: "flex flex-col gap-4 xl:flex-row",
|
|
22
22
|
children: [/* @__PURE__ */ t(e, {
|
|
23
23
|
size: "small",
|
|
24
24
|
className: "w-full",
|
|
25
|
-
|
|
25
|
+
"data-qa": u,
|
|
26
|
+
children: c
|
|
26
27
|
}), /* @__PURE__ */ n("div", {
|
|
27
28
|
className: "flex w-full justify-between gap-4",
|
|
28
|
-
children: [!!
|
|
29
|
+
children: [!!o && /* @__PURE__ */ t(e, {
|
|
29
30
|
size: "small",
|
|
30
31
|
className: "w-full",
|
|
31
32
|
variant: "secondary-black",
|
|
32
|
-
children:
|
|
33
|
-
}), !!
|
|
33
|
+
children: o
|
|
34
|
+
}), !!s && /* @__PURE__ */ t(e, {
|
|
34
35
|
size: "small",
|
|
35
36
|
className: "w-full",
|
|
36
37
|
variant: "secondary-black",
|
|
37
|
-
children:
|
|
38
|
+
children: s
|
|
38
39
|
})]
|
|
39
40
|
})]
|
|
40
41
|
})
|
|
@@ -2,15 +2,15 @@ import { ScalatorIcon as e } from "./ScalatorIcon.js";
|
|
|
2
2
|
import { LanguageSelector as t } from "./LanguageSelector.js";
|
|
3
3
|
import { NavMenu as n } from "./NavMenu.js";
|
|
4
4
|
import { SearchBar as r } from "./SearchBar.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { useScroll as i } from "../shared/hooks/useScroll.js";
|
|
6
|
+
import { MobileMenu as a } from "./MobileMenu.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
9
|
//#region lib/components/organisms/Header.tsx
|
|
10
10
|
var c = ({ logo: c, navMenu: l, searchBarProps: u, languageSelectorProps: d, userActions: f, mobileMenu: p }) => /* @__PURE__ */ s("div", {
|
|
11
11
|
className: "sticky top-0 z-1000 flex w-full flex-col",
|
|
12
12
|
children: [/* @__PURE__ */ o("header", {
|
|
13
|
-
className: `transition-colors duration-300 ease-in-out ${
|
|
13
|
+
className: `transition-colors duration-300 ease-in-out ${i(10) ? "bg-white shadow-md" : "bg-primary-50"}`,
|
|
14
14
|
children: /* @__PURE__ */ s("div", {
|
|
15
15
|
className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8",
|
|
16
16
|
children: [
|
|
@@ -42,7 +42,7 @@ var c = ({ logo: c, navMenu: l, searchBarProps: u, languageSelectorProps: d, use
|
|
|
42
42
|
})
|
|
43
43
|
]
|
|
44
44
|
})
|
|
45
|
-
}), /* @__PURE__ */ o(
|
|
45
|
+
}), /* @__PURE__ */ o(a, {
|
|
46
46
|
...p,
|
|
47
47
|
logo: c,
|
|
48
48
|
userActions: f,
|
|
@@ -7,7 +7,7 @@ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yel
|
|
|
7
7
|
|
|
8
8
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
9
9
|
|
|
10
|
-
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapperProps) => JSX.Element;
|
|
10
|
+
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children, "data-qa": dataQa }: LinkWrapperProps) => JSX.Element;
|
|
11
11
|
|
|
12
12
|
export declare interface LinkWrapperProps {
|
|
13
13
|
children: ReactNode;
|
|
@@ -16,6 +16,7 @@ export declare interface LinkWrapperProps {
|
|
|
16
16
|
iconPosition?: IconPosition;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
className?: string;
|
|
19
|
+
'data-qa'?: string;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { getButtonClasses as e } from "./Button.utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Children as t, Fragment as n, cloneElement as r, isValidElement as i } from "react";
|
|
3
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
4
|
+
import { clsx as o } from "clsx";
|
|
4
5
|
//#region lib/components/atoms/LinkWrapper.tsx
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
var s = ({ size: s, variant: c, iconPosition: l, disabled: u = !1, className: d, children: f, "data-qa": p }) => {
|
|
7
|
+
let m = e(s, c, l, u, d), h = p === void 0 ? [] : t.toArray(f), g = h.length === 1 ? h[0] : f, _ = i(g) && g.type !== n;
|
|
8
|
+
return /* @__PURE__ */ a("span", {
|
|
9
|
+
className: o(m, "relative [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[\"\"]"),
|
|
10
|
+
"data-qa": _ ? void 0 : p,
|
|
11
|
+
children: p !== void 0 && _ ? r(g, { "data-qa": p }) : f
|
|
12
|
+
});
|
|
13
|
+
};
|
|
9
14
|
//#endregion
|
|
10
|
-
export {
|
|
15
|
+
export { s as LinkWrapper };
|
|
@@ -70,6 +70,7 @@ var u = ({ radioFieldData: u, inputFieldData: d, cta: f, trustedBadge: p, hasMob
|
|
|
70
70
|
/* @__PURE__ */ c(n, {
|
|
71
71
|
variant: "primary-green",
|
|
72
72
|
className: `text-small ${t ? "w-fit text-nowrap" : "w-full"}`,
|
|
73
|
+
"data-qa": t ? "createDocument-mobile-sticky" : "createDocument-mobile-hero",
|
|
73
74
|
children: f
|
|
74
75
|
})
|
|
75
76
|
]
|
|
@@ -97,9 +98,7 @@ var u = ({ radioFieldData: u, inputFieldData: d, cta: f, trustedBadge: p, hasMob
|
|
|
97
98
|
className: "px-6",
|
|
98
99
|
children: p
|
|
99
100
|
}), /* @__PURE__ */ c("div", {
|
|
100
|
-
"
|
|
101
|
-
className: h ? "invisible" : void 0,
|
|
102
|
-
inert: h,
|
|
101
|
+
className: h ? "hidden" : "block",
|
|
103
102
|
children: y(!1)
|
|
104
103
|
})]
|
|
105
104
|
})
|
|
@@ -38,6 +38,7 @@ var s = ({ title: s, footerText: c, preview: l, cta: u, pdfDownload: d, wordDown
|
|
|
38
38
|
!!u && /* @__PURE__ */ a(n, {
|
|
39
39
|
className: "w-full",
|
|
40
40
|
variant: "primary-green",
|
|
41
|
+
"data-qa": "createDocument-desktop-sidebar",
|
|
41
42
|
children: u
|
|
42
43
|
}),
|
|
43
44
|
/* @__PURE__ */ a("div", { className: "h-px w-full bg-neutral-200" }),
|
|
@@ -15,7 +15,10 @@ var r = ({ title: r, benefits: i, cta: a }) => /* @__PURE__ */ t("section", {
|
|
|
15
15
|
className: "text-medium flex flex-col gap-8 md:grid md:grid-cols-3 md:gap-20",
|
|
16
16
|
children: i.map((e) => /* @__PURE__ */ t("p", { children: e }, e))
|
|
17
17
|
}),
|
|
18
|
-
/* @__PURE__ */ t(e, {
|
|
18
|
+
/* @__PURE__ */ t(e, {
|
|
19
|
+
"data-qa": "createDocument-try-now",
|
|
20
|
+
children: a
|
|
21
|
+
})
|
|
19
22
|
]
|
|
20
23
|
})
|
|
21
24
|
});
|
|
@@ -160,7 +160,6 @@ export declare interface ContactBannerProps {
|
|
|
160
160
|
phoneNumber?: string;
|
|
161
161
|
contactHoursText?: string;
|
|
162
162
|
contactHours?: string;
|
|
163
|
-
/** @deprecated No longer used: the banner keeps a fixed height and scrolls away with the page to avoid layout shifts. */
|
|
164
163
|
isScrolled?: boolean;
|
|
165
164
|
}
|
|
166
165
|
|
|
@@ -323,6 +322,7 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
323
322
|
format: 'Default';
|
|
324
323
|
createDocButton: ReactNode;
|
|
325
324
|
description: string;
|
|
325
|
+
ctaDataQa?: string;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
export declare const DeFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -902,7 +902,7 @@ export declare interface LinkedProductsProps {
|
|
|
902
902
|
linkedProducts: LinkedProductProps[];
|
|
903
903
|
}
|
|
904
904
|
|
|
905
|
-
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapperProps) => JSX.Element;
|
|
905
|
+
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children, "data-qa": dataQa }: LinkWrapperProps) => JSX.Element;
|
|
906
906
|
|
|
907
907
|
export declare interface LinkWrapperProps {
|
|
908
908
|
children: ReactNode;
|
|
@@ -911,6 +911,7 @@ export declare interface LinkWrapperProps {
|
|
|
911
911
|
iconPosition?: IconPosition;
|
|
912
912
|
disabled?: boolean;
|
|
913
913
|
className?: string;
|
|
914
|
+
'data-qa'?: string;
|
|
914
915
|
}
|
|
915
916
|
|
|
916
917
|
export declare const LocationIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.188.
|
|
3
|
+
"version": "0.188.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -746,7 +746,7 @@
|
|
|
746
746
|
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
747
747
|
"sonar:scan": "bash scripts/sonar.sh",
|
|
748
748
|
"sonar": "pnpm test && pnpm sonar:scan",
|
|
749
|
-
"chromatic": "npx chromatic --project-token=
|
|
749
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
750
750
|
"yalc-push": "pnpm build && yalc push",
|
|
751
751
|
"format": "prettier --write .",
|
|
752
752
|
"prettier": "prettier --check .",
|