@npm_leadtech/legal-contracts-ui 0.188.4 → 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/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.d.ts +0 -5
- 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/NavMenu.d.ts +0 -5
- package/dist/components/NavMenuItem.d.ts +0 -5
- package/dist/components/NavMenuItem.js +54 -66
- package/dist/components/Preform.js +1 -0
- package/dist/components/PreformMobile.js +1 -0
- 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 -6
- package/package.json +26 -24
|
@@ -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
|
})
|
|
@@ -70,8 +70,6 @@ export type NavMenuItemProps = {
|
|
|
70
70
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
71
71
|
hasDropdown: true;
|
|
72
72
|
isNested?: boolean;
|
|
73
|
-
tag?: string;
|
|
74
|
-
tagVariant?: NavMenuTagVariant;
|
|
75
73
|
onItemClick?: () => void;
|
|
76
74
|
isOpen?: boolean;
|
|
77
75
|
onToggle?: (open: boolean) => void;
|
|
@@ -81,7 +79,6 @@ export type NavMenuLink = {
|
|
|
81
79
|
id: string;
|
|
82
80
|
link: ReactNode;
|
|
83
81
|
tag?: string;
|
|
84
|
-
tagVariant?: NavMenuTagVariant;
|
|
85
82
|
hasDropdown: false;
|
|
86
83
|
isNested?: boolean;
|
|
87
84
|
bold?: boolean;
|
|
@@ -96,8 +93,6 @@ export interface NavMenuProps {
|
|
|
96
93
|
className?: string;
|
|
97
94
|
}
|
|
98
95
|
|
|
99
|
-
export type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
100
|
-
|
|
101
96
|
export interface SearchBarProps {
|
|
102
97
|
items: SearchItem[];
|
|
103
98
|
placeholder?: string;
|
|
@@ -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 };
|
|
@@ -10,8 +10,6 @@ export type NavMenuItemProps = {
|
|
|
10
10
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
11
11
|
hasDropdown: true;
|
|
12
12
|
isNested?: boolean;
|
|
13
|
-
tag?: string;
|
|
14
|
-
tagVariant?: NavMenuTagVariant;
|
|
15
13
|
onItemClick?: () => void;
|
|
16
14
|
isOpen?: boolean;
|
|
17
15
|
onToggle?: (open: boolean) => void;
|
|
@@ -21,7 +19,6 @@ export type NavMenuLink = {
|
|
|
21
19
|
id: string;
|
|
22
20
|
link: ReactNode;
|
|
23
21
|
tag?: string;
|
|
24
|
-
tagVariant?: NavMenuTagVariant;
|
|
25
22
|
hasDropdown: false;
|
|
26
23
|
isNested?: boolean;
|
|
27
24
|
bold?: boolean;
|
|
@@ -35,6 +32,4 @@ export declare interface NavMenuProps {
|
|
|
35
32
|
navItems: (NavMenuItemProps | NavMenuLink)[];
|
|
36
33
|
className?: string;
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
export type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
40
35
|
|
|
@@ -10,8 +10,6 @@ export declare type NavMenuItemProps = {
|
|
|
10
10
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
11
11
|
hasDropdown: true;
|
|
12
12
|
isNested?: boolean;
|
|
13
|
-
tag?: string;
|
|
14
|
-
tagVariant?: NavMenuTagVariant;
|
|
15
13
|
onItemClick?: () => void;
|
|
16
14
|
isOpen?: boolean;
|
|
17
15
|
onToggle?: (open: boolean) => void;
|
|
@@ -21,7 +19,6 @@ export declare type NavMenuLink = {
|
|
|
21
19
|
id: string;
|
|
22
20
|
link: ReactNode;
|
|
23
21
|
tag?: string;
|
|
24
|
-
tagVariant?: NavMenuTagVariant;
|
|
25
22
|
hasDropdown: false;
|
|
26
23
|
isNested?: boolean;
|
|
27
24
|
bold?: boolean;
|
|
@@ -30,6 +27,4 @@ export declare type NavMenuLink = {
|
|
|
30
27
|
onToggle?: (open: boolean) => void;
|
|
31
28
|
dataQa?: string;
|
|
32
29
|
};
|
|
33
|
-
|
|
34
|
-
export declare type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
35
30
|
|
|
@@ -5,26 +5,20 @@ import { ChevronRightIcon as t } from "./ChevronRightIcon.js";
|
|
|
5
5
|
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
//#region lib/components/atoms/NavMenuItem.tsx
|
|
8
|
-
var c = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
},
|
|
12
|
-
className: `text-extra-small flex h-4.5 items-center justify-center rounded align-middle font-bold ${c[t]}`,
|
|
13
|
-
children: e
|
|
14
|
-
}), u = (c) => {
|
|
15
|
-
let { hasDropdown: d, isNested: f, isOpen: p, onToggle: m, dataQa: h, onItemClick: g } = c, [_, v] = a(!1), [y, b] = a(null), x = p ?? _, S = n((e) => {
|
|
16
|
-
e || b(null), m ? m(e) : v(e);
|
|
17
|
-
}, [m]), C = i(null);
|
|
8
|
+
var c = (l) => {
|
|
9
|
+
let { hasDropdown: u, isNested: d, isOpen: f, onToggle: p, dataQa: m, onItemClick: h } = l, [g, _] = a(!1), [v, y] = a(null), b = f ?? g, x = n((e) => {
|
|
10
|
+
e || y(null), p ? p(e) : _(e);
|
|
11
|
+
}, [p]), S = i(null);
|
|
18
12
|
r(() => {
|
|
19
|
-
if (!
|
|
13
|
+
if (!b) return;
|
|
20
14
|
let e = (e) => {
|
|
21
|
-
|
|
15
|
+
S.current && !S.current.contains(e.target) && x(!1);
|
|
22
16
|
};
|
|
23
17
|
return document.addEventListener("mousedown", e), () => {
|
|
24
18
|
document.removeEventListener("mousedown", e);
|
|
25
19
|
};
|
|
26
|
-
}, [
|
|
27
|
-
let
|
|
20
|
+
}, [b, x]);
|
|
21
|
+
let C = {
|
|
28
22
|
topLevel: {
|
|
29
23
|
liClass: "relative py-2",
|
|
30
24
|
triggerClass: "hover:text-neutral-600",
|
|
@@ -33,66 +27,60 @@ var c = {
|
|
|
33
27
|
},
|
|
34
28
|
nested: {
|
|
35
29
|
liClass: "relative",
|
|
36
|
-
triggerClass: "p-1 hover:bg-primary-100 w-full rounded",
|
|
30
|
+
triggerClass: "p-1 hover:bg-primary-100 w-full rounded min-w-48.5",
|
|
37
31
|
dropdownPosition: "top-0 left-full -mt-4 pl-6",
|
|
38
32
|
Icon: t
|
|
39
33
|
}
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
}, [
|
|
34
|
+
}, w = d ? C.nested : C.topLevel, T = w.Icon, E = n(() => {
|
|
35
|
+
x(!1), h && h();
|
|
36
|
+
}, [h, x]), D = i(null);
|
|
43
37
|
r(() => {
|
|
44
|
-
let e =
|
|
45
|
-
if (e) return e.addEventListener("click",
|
|
46
|
-
e.removeEventListener("click",
|
|
38
|
+
let e = D.current;
|
|
39
|
+
if (e) return e.addEventListener("click", E), () => {
|
|
40
|
+
e.removeEventListener("click", E);
|
|
47
41
|
};
|
|
48
|
-
}, [
|
|
49
|
-
let
|
|
50
|
-
e.stopPropagation(),
|
|
42
|
+
}, [E]);
|
|
43
|
+
let O = (e) => {
|
|
44
|
+
e.stopPropagation(), x(!b);
|
|
45
|
+
}, k = () => {
|
|
46
|
+
globalThis.window.matchMedia("(hover: hover)").matches && x(!0);
|
|
51
47
|
}, A = () => {
|
|
52
|
-
globalThis.window.matchMedia("(hover: hover)").matches &&
|
|
53
|
-
}, j = () => {
|
|
54
|
-
globalThis.window.matchMedia("(hover: hover)").matches && S(!1);
|
|
48
|
+
globalThis.window.matchMedia("(hover: hover)").matches && x(!1);
|
|
55
49
|
};
|
|
56
|
-
if (
|
|
57
|
-
let { dropdownItems: e, label: t
|
|
50
|
+
if (u) {
|
|
51
|
+
let { dropdownItems: e, label: t } = l;
|
|
58
52
|
return /* @__PURE__ */ s("li", {
|
|
59
|
-
ref:
|
|
60
|
-
className:
|
|
61
|
-
onMouseEnter:
|
|
62
|
-
onMouseLeave:
|
|
63
|
-
children: [/* @__PURE__ */ s("
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
children:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
width: 20,
|
|
77
|
-
height: 20
|
|
78
|
-
})]
|
|
79
|
-
}), n && /* @__PURE__ */ o(l, {
|
|
80
|
-
tag: n,
|
|
81
|
-
variant: r
|
|
53
|
+
ref: S,
|
|
54
|
+
className: w.liClass,
|
|
55
|
+
onMouseEnter: k,
|
|
56
|
+
onMouseLeave: A,
|
|
57
|
+
children: [/* @__PURE__ */ s("button", {
|
|
58
|
+
"data-qa": m,
|
|
59
|
+
className: `text-small flex w-full cursor-pointer items-center justify-between gap-1 text-nowrap text-neutral-800 transition-colors ${w.triggerClass}`,
|
|
60
|
+
"aria-haspopup": "menu",
|
|
61
|
+
"aria-expanded": b,
|
|
62
|
+
onClick: O,
|
|
63
|
+
children: [/* @__PURE__ */ o("span", {
|
|
64
|
+
className: "text-medium",
|
|
65
|
+
children: t
|
|
66
|
+
}), /* @__PURE__ */ o(T, {
|
|
67
|
+
fill: "#000",
|
|
68
|
+
width: 20,
|
|
69
|
+
height: 20
|
|
82
70
|
})]
|
|
83
71
|
}), /* @__PURE__ */ o("div", {
|
|
84
|
-
className: `absolute z-50
|
|
72
|
+
className: `absolute z-50 min-w-48 transition-all duration-200 ${w.dropdownPosition} ${b ? "pointer-events-auto opacity-100" : "pointer-events-none opacity-0"}`,
|
|
85
73
|
children: /* @__PURE__ */ o("div", {
|
|
86
74
|
className: "rounded-md border border-neutral-200 bg-white p-4 shadow-lg",
|
|
87
75
|
children: /* @__PURE__ */ o("ul", {
|
|
88
76
|
className: "flex flex-col gap-2",
|
|
89
|
-
children: e.map((e) => /* @__PURE__ */ o(
|
|
77
|
+
children: e.map((e) => /* @__PURE__ */ o(c, {
|
|
90
78
|
...e,
|
|
91
79
|
isNested: !0,
|
|
92
|
-
onItemClick:
|
|
93
|
-
isOpen:
|
|
80
|
+
onItemClick: E,
|
|
81
|
+
isOpen: v === e.id,
|
|
94
82
|
onToggle: (t) => {
|
|
95
|
-
|
|
83
|
+
y(t ? e.id : null);
|
|
96
84
|
}
|
|
97
85
|
}, e.id))
|
|
98
86
|
})
|
|
@@ -100,21 +88,21 @@ var c = {
|
|
|
100
88
|
})]
|
|
101
89
|
});
|
|
102
90
|
}
|
|
103
|
-
let { link:
|
|
91
|
+
let { link: j, tag: M, bold: N } = l;
|
|
104
92
|
return /* @__PURE__ */ o("li", {
|
|
105
|
-
ref:
|
|
106
|
-
className:
|
|
93
|
+
ref: D,
|
|
94
|
+
className: w.liClass,
|
|
107
95
|
children: /* @__PURE__ */ s("span", {
|
|
108
|
-
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${
|
|
96
|
+
className: `text-small relative flex w-full items-center gap-1 text-nowrap text-neutral-800 transition-colors ${w.triggerClass} `,
|
|
109
97
|
children: [/* @__PURE__ */ o("span", {
|
|
110
|
-
className: `text-medium flex-1 ${
|
|
98
|
+
className: `text-medium flex-1 ${N ? "font-bold" : ""} [&_a]:after:absolute [&_a]:after:inset-0`,
|
|
99
|
+
children: j
|
|
100
|
+
}), M && /* @__PURE__ */ o("span", {
|
|
101
|
+
className: "bg-secondary-200 text-extra-small flex h-4.5 w-5.25 items-center justify-center rounded align-middle font-bold",
|
|
111
102
|
children: M
|
|
112
|
-
}), N && /* @__PURE__ */ o(l, {
|
|
113
|
-
tag: N,
|
|
114
|
-
variant: P
|
|
115
103
|
})]
|
|
116
104
|
})
|
|
117
105
|
});
|
|
118
106
|
};
|
|
119
107
|
//#endregion
|
|
120
|
-
export {
|
|
108
|
+
export { c as NavMenuItem };
|
|
@@ -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
|
]
|
|
@@ -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
|
});
|
|
@@ -322,6 +322,7 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
322
322
|
format: 'Default';
|
|
323
323
|
createDocButton: ReactNode;
|
|
324
324
|
description: string;
|
|
325
|
+
ctaDataQa?: string;
|
|
325
326
|
}
|
|
326
327
|
|
|
327
328
|
export declare const DeFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -901,7 +902,7 @@ export declare interface LinkedProductsProps {
|
|
|
901
902
|
linkedProducts: LinkedProductProps[];
|
|
902
903
|
}
|
|
903
904
|
|
|
904
|
-
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;
|
|
905
906
|
|
|
906
907
|
export declare interface LinkWrapperProps {
|
|
907
908
|
children: ReactNode;
|
|
@@ -910,6 +911,7 @@ export declare interface LinkWrapperProps {
|
|
|
910
911
|
iconPosition?: IconPosition;
|
|
911
912
|
disabled?: boolean;
|
|
912
913
|
className?: string;
|
|
914
|
+
'data-qa'?: string;
|
|
913
915
|
}
|
|
914
916
|
|
|
915
917
|
export declare const LocationIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -1000,8 +1002,6 @@ export declare type NavMenuItemProps = {
|
|
|
1000
1002
|
dropdownItems: (NavMenuItemProps | NavMenuLink)[];
|
|
1001
1003
|
hasDropdown: true;
|
|
1002
1004
|
isNested?: boolean;
|
|
1003
|
-
tag?: string;
|
|
1004
|
-
tagVariant?: NavMenuTagVariant;
|
|
1005
1005
|
onItemClick?: () => void;
|
|
1006
1006
|
isOpen?: boolean;
|
|
1007
1007
|
onToggle?: (open: boolean) => void;
|
|
@@ -1011,7 +1011,6 @@ export declare type NavMenuLink = {
|
|
|
1011
1011
|
id: string;
|
|
1012
1012
|
link: ReactNode;
|
|
1013
1013
|
tag?: string;
|
|
1014
|
-
tagVariant?: NavMenuTagVariant;
|
|
1015
1014
|
hasDropdown: false;
|
|
1016
1015
|
isNested?: boolean;
|
|
1017
1016
|
bold?: boolean;
|
|
@@ -1026,8 +1025,6 @@ export declare interface NavMenuProps {
|
|
|
1026
1025
|
className?: string;
|
|
1027
1026
|
}
|
|
1028
1027
|
|
|
1029
|
-
export declare type NavMenuTagVariant = 'standard' | 'emphasized';
|
|
1030
|
-
|
|
1031
1028
|
export declare const PartnersSection: FC<PartnersSectionProps>;
|
|
1032
1029
|
|
|
1033
1030
|
export declare interface PartnersSectionProps {
|
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",
|
|
@@ -741,6 +741,29 @@
|
|
|
741
741
|
"bugs": {
|
|
742
742
|
"url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
|
|
743
743
|
},
|
|
744
|
+
"scripts": {
|
|
745
|
+
"dev": "vite",
|
|
746
|
+
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
747
|
+
"sonar:scan": "bash scripts/sonar.sh",
|
|
748
|
+
"sonar": "pnpm test && pnpm sonar:scan",
|
|
749
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
750
|
+
"yalc-push": "pnpm build && yalc push",
|
|
751
|
+
"format": "prettier --write .",
|
|
752
|
+
"prettier": "prettier --check .",
|
|
753
|
+
"eslint": "eslint . --quiet",
|
|
754
|
+
"test": "vitest run --coverage --project unit",
|
|
755
|
+
"test:storybook": "vitest run --project storybook --reporter=default",
|
|
756
|
+
"test:all": "pnpm test && pnpm test:storybook",
|
|
757
|
+
"test:watch": "vitest --coverage --project unit",
|
|
758
|
+
"storybook": "storybook dev -p 6006",
|
|
759
|
+
"build-storybook": "storybook build",
|
|
760
|
+
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
761
|
+
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
762
|
+
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
763
|
+
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
764
|
+
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
|
|
765
|
+
"prepare": "husky"
|
|
766
|
+
},
|
|
744
767
|
"dependencies": {
|
|
745
768
|
"clsx": "^2.1.1",
|
|
746
769
|
"react-markdown": "^10.1.0",
|
|
@@ -818,26 +841,5 @@
|
|
|
818
841
|
"prettier --write --ignore-unknown"
|
|
819
842
|
]
|
|
820
843
|
},
|
|
821
|
-
"
|
|
822
|
-
|
|
823
|
-
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
824
|
-
"sonar:scan": "bash scripts/sonar.sh",
|
|
825
|
-
"sonar": "pnpm test && pnpm sonar:scan",
|
|
826
|
-
"chromatic": "npx chromatic --project-token=chpt_be90ce8462f803c",
|
|
827
|
-
"yalc-push": "pnpm build && yalc push",
|
|
828
|
-
"format": "prettier --write .",
|
|
829
|
-
"prettier": "prettier --check .",
|
|
830
|
-
"eslint": "eslint . --quiet",
|
|
831
|
-
"test": "vitest run --coverage --project unit",
|
|
832
|
-
"test:storybook": "vitest run --project storybook --reporter=default",
|
|
833
|
-
"test:all": "pnpm test && pnpm test:storybook",
|
|
834
|
-
"test:watch": "vitest --coverage --project unit",
|
|
835
|
-
"storybook": "storybook dev -p 6006",
|
|
836
|
-
"build-storybook": "storybook build",
|
|
837
|
-
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
838
|
-
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
839
|
-
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
840
|
-
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
841
|
-
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
+
"packageManager": "pnpm@10.28.0+sha512.05df71d1421f21399e053fde567cea34d446fa02c76571441bfc1c7956e98e363088982d940465fd34480d4d90a0668bc12362f8aa88000a64e83d0b0e47be48"
|
|
845
|
+
}
|