@npm_leadtech/legal-contracts-ui 0.182.40 → 0.183.1
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/DoneCircleIcon.js +10 -41
- package/dist/components/HomeTemplate.d.ts +3 -3
- package/dist/components/HomeTemplate.js +3 -3
- package/dist/components/LeadGateErrorModal.js +1 -0
- package/dist/components/LeadGateModal.js +1 -0
- package/dist/components/LeadGateSuccessModal.js +1 -0
- package/dist/components/Modal.d.ts +2 -1
- package/dist/components/Modal.js +8 -8
- package/dist/components/index.d.ts +2 -1
- package/package.json +22 -33
|
@@ -1,50 +1,19 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { jsx as e
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
//#region lib/components/icons/DoneCircleIcon.tsx
|
|
4
|
-
var
|
|
4
|
+
var t = ({ fill: t = "var(--color-primary-900)", ...n }) => /* @__PURE__ */ e("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
6
|
width: "32",
|
|
7
7
|
height: "32",
|
|
8
8
|
fill: "none",
|
|
9
9
|
viewBox: "0 0 32 32",
|
|
10
|
-
...
|
|
11
|
-
children:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
maskUnits: "userSpaceOnUse",
|
|
18
|
-
style: { maskType: "luminance" },
|
|
19
|
-
children: /* @__PURE__ */ e("path", {
|
|
20
|
-
fill: "#fff",
|
|
21
|
-
fillRule: "evenodd",
|
|
22
|
-
d: "M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667m0 24C10.12 26.667 5.333 21.88 5.333 16S10.12 5.333 16 5.333 26.667 10.12 26.667 16 21.88 26.667 16 26.667m-2.667-7.774 7.84-7.84c.52-.52 1.374-.52 1.894 0s.52 1.36 0 1.88L14.28 21.72c-.52.52-1.36.52-1.88 0l-3.453-3.453c-.52-.52-.52-1.36 0-1.88s1.36-.52 1.88 0z",
|
|
23
|
-
clipRule: "evenodd"
|
|
24
|
-
})
|
|
25
|
-
}), /* @__PURE__ */ t("g", {
|
|
26
|
-
mask: "url(#mask0_1024_3975)",
|
|
27
|
-
children: [/* @__PURE__ */ e("path", {
|
|
28
|
-
fill: n,
|
|
29
|
-
fillRule: "evenodd",
|
|
30
|
-
d: "M0 0h32v32H0z",
|
|
31
|
-
clipRule: "evenodd"
|
|
32
|
-
}), /* @__PURE__ */ e("mask", {
|
|
33
|
-
id: "mask1_1024_3975",
|
|
34
|
-
width: "32",
|
|
35
|
-
height: "32",
|
|
36
|
-
x: "0",
|
|
37
|
-
y: "0",
|
|
38
|
-
maskUnits: "userSpaceOnUse",
|
|
39
|
-
style: { maskType: "luminance" },
|
|
40
|
-
children: /* @__PURE__ */ e("path", {
|
|
41
|
-
fill: "#fff",
|
|
42
|
-
fillRule: "evenodd",
|
|
43
|
-
d: "M0 0h32v32H0z",
|
|
44
|
-
clipRule: "evenodd"
|
|
45
|
-
})
|
|
46
|
-
})]
|
|
47
|
-
})]
|
|
10
|
+
...n,
|
|
11
|
+
children: /* @__PURE__ */ e("path", {
|
|
12
|
+
fill: t,
|
|
13
|
+
fillRule: "evenodd",
|
|
14
|
+
clipRule: "evenodd",
|
|
15
|
+
d: "M16 2.667C8.64 2.667 2.667 8.64 2.667 16S8.64 29.333 16 29.333 29.333 23.36 29.333 16 23.36 2.667 16 2.667m0 24C10.12 26.667 5.333 21.88 5.333 16S10.12 5.333 16 5.333 26.667 10.12 26.667 16 21.88 26.667 16 26.667m-2.667-7.774 7.84-7.84c.52-.52 1.374-.52 1.894 0s.52 1.36 0 1.88L14.28 21.72c-.52.52-1.36.52-1.88 0l-3.453-3.453c-.52-.52-.52-1.36 0-1.88s1.36-.52 1.88 0z"
|
|
16
|
+
})
|
|
48
17
|
});
|
|
49
18
|
//#endregion
|
|
50
|
-
export {
|
|
19
|
+
export { t as DoneCircleIcon };
|
|
@@ -66,10 +66,10 @@ export declare interface HomeTemplateProps {
|
|
|
66
66
|
moreTemplates: PopularDocumentsProps;
|
|
67
67
|
process: HomeStepsProps;
|
|
68
68
|
categories?: CategoriesSectionProps;
|
|
69
|
-
ratafia
|
|
69
|
+
ratafia: LawGeniusSectionProps;
|
|
70
70
|
trust: TrustSectionProps;
|
|
71
|
-
faqTeaser
|
|
72
|
-
articles
|
|
71
|
+
faqTeaser: FaqTeaserSectionProps;
|
|
72
|
+
articles: BlogSectionProps;
|
|
73
73
|
continueEditingBannerSlot?: ReactNode;
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -17,10 +17,10 @@ var u = ({ hero: u, moreTemplates: d, process: f, categories: p, ratafia: m, tru
|
|
|
17
17
|
/* @__PURE__ */ c(i, { ...d }),
|
|
18
18
|
/* @__PURE__ */ c(a, { ...f }),
|
|
19
19
|
p && /* @__PURE__ */ c(t, { ...p }),
|
|
20
|
-
|
|
20
|
+
/* @__PURE__ */ c(o, { ...m }),
|
|
21
21
|
/* @__PURE__ */ c(s, { ...h }),
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
/* @__PURE__ */ c(n, { ...g }),
|
|
23
|
+
/* @__PURE__ */ c(e, {
|
|
24
24
|
className: "pt-10 pb-12 lg:pb-14",
|
|
25
25
|
..._
|
|
26
26
|
})
|
|
@@ -11,6 +11,7 @@ var o = ({ isOpen: o, setIsOpen: s, title: c, closeLeadGateLabel: l, heading: u,
|
|
|
11
11
|
setIsOpen: s,
|
|
12
12
|
showClose: !1,
|
|
13
13
|
overlayVariant: "grey",
|
|
14
|
+
isScrollable: !1,
|
|
14
15
|
children: /* @__PURE__ */ a("div", {
|
|
15
16
|
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
16
17
|
children: [/* @__PURE__ */ a("div", {
|
|
@@ -17,6 +17,7 @@ var c = (e) => {
|
|
|
17
17
|
setIsOpen: u,
|
|
18
18
|
showClose: !1,
|
|
19
19
|
overlayVariant: "grey",
|
|
20
|
+
isScrollable: !1,
|
|
20
21
|
children: /* @__PURE__ */ s("div", {
|
|
21
22
|
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
22
23
|
children: [/* @__PURE__ */ s("div", {
|
|
@@ -14,6 +14,7 @@ var l = ({ isOpen: l, setIsOpen: u, title: d, closeLeadGateLabel: f, subtitle: p
|
|
|
14
14
|
setIsOpen: u,
|
|
15
15
|
showClose: !1,
|
|
16
16
|
overlayVariant: "grey",
|
|
17
|
+
isScrollable: !1,
|
|
17
18
|
children: /* @__PURE__ */ c("div", {
|
|
18
19
|
className: "shadow-small flex w-[338px] max-w-[calc(100vw-3rem)] flex-col rounded-sm bg-white p-6 sm:w-96",
|
|
19
20
|
children: [/* @__PURE__ */ c("div", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JSX } from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant }: ModalProps) => JSX.Element;
|
|
4
|
+
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant, isScrollable }: ModalProps) => JSX.Element;
|
|
5
5
|
|
|
6
6
|
export declare type ModalOverlayVariant = 'primary' | 'grey';
|
|
7
7
|
|
|
@@ -13,5 +13,6 @@ export interface ModalProps {
|
|
|
13
13
|
showClose?: boolean;
|
|
14
14
|
onTrigger?: () => void;
|
|
15
15
|
overlayVariant?: ModalOverlayVariant;
|
|
16
|
+
isScrollable?: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
package/dist/components/Modal.js
CHANGED
|
@@ -9,10 +9,10 @@ import { createPortal as o } from "react-dom";
|
|
|
9
9
|
var s = {
|
|
10
10
|
primary: "bg-primary-900/80",
|
|
11
11
|
grey: "bg-backdrop-grey"
|
|
12
|
-
}, c = ({ trigger: c, children: l, isOpen: u, setIsOpen: d, showClose: f, onTrigger: p, overlayVariant: m = "primary" }) => {
|
|
13
|
-
let
|
|
12
|
+
}, c = ({ trigger: c, children: l, isOpen: u, setIsOpen: d, showClose: f, onTrigger: p, overlayVariant: m = "primary", isScrollable: h = !0 }) => {
|
|
13
|
+
let g = () => {
|
|
14
14
|
p?.(), d(!0);
|
|
15
|
-
},
|
|
15
|
+
}, _ = () => {
|
|
16
16
|
d(!1);
|
|
17
17
|
};
|
|
18
18
|
return t(() => {
|
|
@@ -24,28 +24,28 @@ var s = {
|
|
|
24
24
|
}, [u]), /* @__PURE__ */ i(n, { children: [!!c && /* @__PURE__ */ r("button", {
|
|
25
25
|
type: "button",
|
|
26
26
|
"aria-label": "zoom",
|
|
27
|
-
onClick:
|
|
27
|
+
onClick: g,
|
|
28
28
|
className: "flex w-full cursor-pointer justify-center",
|
|
29
29
|
children: c
|
|
30
30
|
}), u && o(/* @__PURE__ */ i("div", {
|
|
31
31
|
role: "dialog",
|
|
32
32
|
"aria-modal": "true",
|
|
33
|
-
className: a(s[m], "fixed inset-0 z-1001"),
|
|
33
|
+
className: a(s[m], "fixed inset-0 z-1001 flex items-center justify-center"),
|
|
34
34
|
children: [/* @__PURE__ */ r("button", {
|
|
35
35
|
type: "button",
|
|
36
36
|
tabIndex: -1,
|
|
37
37
|
"data-testid": "modal-backdrop",
|
|
38
38
|
className: "absolute inset-0 z-0 cursor-default border-none bg-transparent p-0",
|
|
39
|
-
onClick:
|
|
39
|
+
onClick: _,
|
|
40
40
|
"aria-label": "Close modal"
|
|
41
41
|
}), /* @__PURE__ */ r("div", {
|
|
42
|
-
className: "pointer-events-none relative z-10 flex
|
|
42
|
+
className: a("pointer-events-none relative z-10 flex w-full", h ? "max-h-screen items-start justify-center overflow-y-auto px-6 py-24" : "min-h-full items-center justify-center p-6"),
|
|
43
43
|
children: /* @__PURE__ */ i("div", {
|
|
44
44
|
className: "pointer-events-auto relative",
|
|
45
45
|
children: [f && /* @__PURE__ */ r("button", {
|
|
46
46
|
type: "button",
|
|
47
47
|
className: "absolute top-4 right-4 z-10 cursor-pointer rounded-full p-2 transition-colors hover:bg-neutral-100 focus:outline-none",
|
|
48
|
-
onClick:
|
|
48
|
+
onClick: _,
|
|
49
49
|
"aria-label": "Close",
|
|
50
50
|
children: /* @__PURE__ */ r(e, {})
|
|
51
51
|
}), l]
|
|
@@ -947,7 +947,7 @@ export declare interface MobileMenuSection {
|
|
|
947
947
|
content?: ReactNode | null;
|
|
948
948
|
}
|
|
949
949
|
|
|
950
|
-
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant }: ModalProps) => JSX.Element;
|
|
950
|
+
export declare const Modal: ({ trigger, children, isOpen, setIsOpen, showClose, onTrigger, overlayVariant, isScrollable }: ModalProps) => JSX.Element;
|
|
951
951
|
|
|
952
952
|
export declare type ModalOverlayVariant = 'primary' | 'grey';
|
|
953
953
|
|
|
@@ -959,6 +959,7 @@ export interface ModalProps {
|
|
|
959
959
|
showClose?: boolean;
|
|
960
960
|
onTrigger?: () => void;
|
|
961
961
|
overlayVariant?: ModalOverlayVariant;
|
|
962
|
+
isScrollable?: boolean;
|
|
962
963
|
}
|
|
963
964
|
|
|
964
965
|
export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@npm_leadtech/legal-contracts-ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.183.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -717,27 +717,6 @@
|
|
|
717
717
|
"bugs": {
|
|
718
718
|
"url": "https://bitbucket.org/grupoblidoo/legal-contracts-ui/issues"
|
|
719
719
|
},
|
|
720
|
-
"scripts": {
|
|
721
|
-
"dev": "vite",
|
|
722
|
-
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
723
|
-
"sonar:scan": "bash scripts/sonar.sh",
|
|
724
|
-
"sonar": "pnpm test && pnpm sonar:scan",
|
|
725
|
-
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
726
|
-
"yalc-push": "pnpm build && yalc push",
|
|
727
|
-
"format": "prettier --write .",
|
|
728
|
-
"prettier": "prettier --check .",
|
|
729
|
-
"eslint": "eslint . --quiet",
|
|
730
|
-
"test": "vitest run --coverage",
|
|
731
|
-
"test:watch": "vitest --coverage",
|
|
732
|
-
"storybook": "storybook dev -p 6006",
|
|
733
|
-
"build-storybook": "storybook build",
|
|
734
|
-
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
735
|
-
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
736
|
-
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
737
|
-
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
738
|
-
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags",
|
|
739
|
-
"prepare": "husky"
|
|
740
|
-
},
|
|
741
720
|
"dependencies": {
|
|
742
721
|
"clsx": "^2.1.1",
|
|
743
722
|
"react-markdown": "^10.1.0",
|
|
@@ -809,20 +788,30 @@
|
|
|
809
788
|
"@ast-grep/napi-linux-x64-gnu": "^0.44.1",
|
|
810
789
|
"@rollup/rollup-linux-x64-gnu": "^4.62.2"
|
|
811
790
|
},
|
|
812
|
-
"pnpm": {
|
|
813
|
-
"onlyBuiltDependencies": [
|
|
814
|
-
"esbuild",
|
|
815
|
-
"unrs-resolver"
|
|
816
|
-
],
|
|
817
|
-
"overrides": {
|
|
818
|
-
"aria-query": "5.3.2"
|
|
819
|
-
}
|
|
820
|
-
},
|
|
821
791
|
"lint-staged": {
|
|
822
792
|
"**/*": [
|
|
823
793
|
"eslint --fix",
|
|
824
794
|
"prettier --write --ignore-unknown"
|
|
825
795
|
]
|
|
826
796
|
},
|
|
827
|
-
"
|
|
828
|
-
|
|
797
|
+
"scripts": {
|
|
798
|
+
"dev": "vite",
|
|
799
|
+
"build": "tsc --project tsconfig.build.json && vite build && cp lib/globals-core.css dist/globals.css",
|
|
800
|
+
"sonar:scan": "bash scripts/sonar.sh",
|
|
801
|
+
"sonar": "pnpm test && pnpm sonar:scan",
|
|
802
|
+
"chromatic": "npx chromatic --project-token=chpt_f2cdc115a03f4c9",
|
|
803
|
+
"yalc-push": "pnpm build && yalc push",
|
|
804
|
+
"format": "prettier --write .",
|
|
805
|
+
"prettier": "prettier --check .",
|
|
806
|
+
"eslint": "eslint . --quiet",
|
|
807
|
+
"test": "vitest run --coverage",
|
|
808
|
+
"test:watch": "vitest --coverage",
|
|
809
|
+
"storybook": "storybook dev -p 6006",
|
|
810
|
+
"build-storybook": "storybook build",
|
|
811
|
+
"reinstall-force": "rm -Rf node_modules && pnpm install",
|
|
812
|
+
"prepare-upgrade": "pnpm reinstall-force && pnpm build && pnpm chromatic && git add . && git commit -m \"$MSG\" --allow-empty && npm config set tag-version-prefix ''",
|
|
813
|
+
"upgrade-patch": "pnpm prepare-upgrade && npm version patch -m \"Update patch version number\" && git push && git push --tags",
|
|
814
|
+
"upgrade-minor": "pnpm prepare-upgrade && npm version minor -m \"Update minor version number\" && git push && git push --tags",
|
|
815
|
+
"upgrade-major": "pnpm prepare-upgrade && npm version major -m \"Update major version number\" && git push && git push --tags"
|
|
816
|
+
}
|
|
817
|
+
}
|