@npm_leadtech/legal-contracts-ui 0.188.21 → 0.188.23
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 +0 -1
- package/dist/components/AllDocumentsTemplate.d.ts +0 -1
- package/dist/components/ContentItem.d.ts +0 -1
- package/dist/components/ContentItem.js +1 -5
- package/dist/components/CtaSection.d.ts +0 -1
- package/dist/components/DefaultSubtypeDocument.d.ts +0 -1
- package/dist/components/DefaultSubtypeDocument.js +9 -10
- package/dist/components/GuidelinesSection.d.ts +0 -1
- package/dist/components/IntroSection.d.ts +0 -1
- package/dist/components/LinkWrapper.d.ts +1 -2
- package/dist/components/LinkWrapper.js +7 -12
- package/dist/components/Preform.js +0 -1
- package/dist/components/PreformMobile.js +0 -1
- package/dist/components/PreviewDownload.js +0 -1
- package/dist/components/PreviewSection.js +0 -1
- package/dist/components/PricingTemplate.d.ts +0 -1
- package/dist/components/ProductTemplate.d.ts +0 -1
- package/dist/components/TryNowSection.js +1 -4
- package/dist/components/UploadZone.js +1 -0
- package/dist/components/WeHelpSection.d.ts +0 -1
- package/dist/components/index.d.ts +1 -3
- package/package.json +24 -26
|
@@ -22,7 +22,6 @@ 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}`,
|
|
26
25
|
children: p
|
|
27
26
|
}),
|
|
28
27
|
!!m && /* @__PURE__ */ o(t, {
|
|
@@ -45,10 +44,7 @@ var c = ({ id: c, title: l, content: u, linkedProducts: d, sampleImage: f, cta:
|
|
|
45
44
|
}),
|
|
46
45
|
g.length > 0 && /* @__PURE__ */ o("div", {
|
|
47
46
|
className: "flex flex-wrap gap-2",
|
|
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))
|
|
47
|
+
children: g.map((e) => e.format === "Alternative" ? /* @__PURE__ */ o(i, { ...e }, e.id) : /* @__PURE__ */ o(a, { ...e }, e.id))
|
|
52
48
|
})
|
|
53
49
|
]
|
|
54
50
|
});
|
|
@@ -19,7 +19,6 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
19
19
|
format: 'Default';
|
|
20
20
|
createDocButton: ReactNode;
|
|
21
21
|
description: string;
|
|
22
|
-
ctaDataQa?: string;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
export declare type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
|
|
@@ -1,41 +1,40 @@
|
|
|
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 = ({ link: r, sampleImage: i, pdfDownload: a, wordDownload: o, createDocButton: s, description: c }) => /* @__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: i
|
|
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: r
|
|
15
15
|
}),
|
|
16
16
|
/* @__PURE__ */ t("p", {
|
|
17
17
|
className: "text-medium text-neutral-900",
|
|
18
|
-
children:
|
|
18
|
+
children: c
|
|
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
|
-
|
|
26
|
-
children: c
|
|
25
|
+
children: s
|
|
27
26
|
}), /* @__PURE__ */ n("div", {
|
|
28
27
|
className: "flex w-full justify-between gap-4",
|
|
29
|
-
children: [!!
|
|
28
|
+
children: [!!a && /* @__PURE__ */ t(e, {
|
|
30
29
|
size: "small",
|
|
31
30
|
className: "w-full",
|
|
32
31
|
variant: "secondary-black",
|
|
33
|
-
children:
|
|
34
|
-
}), !!
|
|
32
|
+
children: a
|
|
33
|
+
}), !!o && /* @__PURE__ */ t(e, {
|
|
35
34
|
size: "small",
|
|
36
35
|
className: "w-full",
|
|
37
36
|
variant: "secondary-black",
|
|
38
|
-
children:
|
|
37
|
+
children: o
|
|
39
38
|
})]
|
|
40
39
|
})]
|
|
41
40
|
})
|
|
@@ -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
|
|
10
|
+
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapperProps) => JSX.Element;
|
|
11
11
|
|
|
12
12
|
export declare interface LinkWrapperProps {
|
|
13
13
|
children: ReactNode;
|
|
@@ -16,7 +16,6 @@ export declare interface LinkWrapperProps {
|
|
|
16
16
|
iconPosition?: IconPosition;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
className?: string;
|
|
19
|
-
'data-qa'?: string;
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { getButtonClasses as e } from "./Button.utils.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { clsx as o } from "clsx";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { clsx as n } from "clsx";
|
|
5
4
|
//#region lib/components/atoms/LinkWrapper.tsx
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"data-qa": _ ? void 0 : p,
|
|
11
|
-
children: p !== void 0 && _ ? r(g, { "data-qa": p }) : f
|
|
12
|
-
});
|
|
13
|
-
};
|
|
5
|
+
var r = ({ size: r, variant: i, iconPosition: a, disabled: o = !1, className: s, children: c }) => /* @__PURE__ */ t("span", {
|
|
6
|
+
className: n(e(r, i, a, o, s), "relative [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[\"\"]"),
|
|
7
|
+
children: c
|
|
8
|
+
});
|
|
14
9
|
//#endregion
|
|
15
|
-
export {
|
|
10
|
+
export { r as LinkWrapper };
|
|
@@ -70,7 +70,6 @@ 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",
|
|
74
73
|
children: f
|
|
75
74
|
})
|
|
76
75
|
]
|
|
@@ -38,7 +38,6 @@ 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",
|
|
42
41
|
children: u
|
|
43
42
|
}),
|
|
44
43
|
/* @__PURE__ */ a("div", { className: "h-px w-full bg-neutral-200" }),
|
|
@@ -15,10 +15,7 @@ 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, {
|
|
19
|
-
"data-qa": "createDocument-try-now",
|
|
20
|
-
children: a
|
|
21
|
-
})
|
|
18
|
+
/* @__PURE__ */ t(e, { children: a })
|
|
22
19
|
]
|
|
23
20
|
})
|
|
24
21
|
});
|
|
@@ -12,6 +12,7 @@ var c = ({ uploadPromptText: c, addDocumentLabel: l, fileSizeText: u, disclaimer
|
|
|
12
12
|
let x = g === "pdf-tools";
|
|
13
13
|
return /* @__PURE__ */ o("div", {
|
|
14
14
|
role: "presentation",
|
|
15
|
+
"data-qa": "upload-document-dragover",
|
|
15
16
|
onDragOver: (e) => {
|
|
16
17
|
e.preventDefault();
|
|
17
18
|
},
|
|
@@ -322,7 +322,6 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
322
322
|
format: 'Default';
|
|
323
323
|
createDocButton: ReactNode;
|
|
324
324
|
description: string;
|
|
325
|
-
ctaDataQa?: string;
|
|
326
325
|
}
|
|
327
326
|
|
|
328
327
|
export declare const DeFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -902,7 +901,7 @@ export declare interface LinkedProductsProps {
|
|
|
902
901
|
linkedProducts: LinkedProductProps[];
|
|
903
902
|
}
|
|
904
903
|
|
|
905
|
-
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children
|
|
904
|
+
export declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapperProps) => JSX.Element;
|
|
906
905
|
|
|
907
906
|
export declare interface LinkWrapperProps {
|
|
908
907
|
children: ReactNode;
|
|
@@ -911,7 +910,6 @@ export declare interface LinkWrapperProps {
|
|
|
911
910
|
iconPosition?: IconPosition;
|
|
912
911
|
disabled?: boolean;
|
|
913
912
|
className?: string;
|
|
914
|
-
'data-qa'?: string;
|
|
915
913
|
}
|
|
916
914
|
|
|
917
915
|
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.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -741,29 +741,6 @@
|
|
|
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
|
-
},
|
|
767
744
|
"dependencies": {
|
|
768
745
|
"clsx": "^2.1.1",
|
|
769
746
|
"react-markdown": "^10.1.0",
|
|
@@ -841,5 +818,26 @@
|
|
|
841
818
|
"prettier --write --ignore-unknown"
|
|
842
819
|
]
|
|
843
820
|
},
|
|
844
|
-
"
|
|
845
|
-
|
|
821
|
+
"scripts": {
|
|
822
|
+
"dev": "vite",
|
|
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
|
+
}
|