@npm_leadtech/legal-contracts-ui 0.156.0 → 0.156.2
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/HeroSection.d.ts +1 -2
- package/dist/components/HeroSection.js +1 -1
- package/dist/components/HomeTemplate.d.ts +1 -2
- package/dist/components/Item.d.ts +1 -2
- package/dist/components/Item.js +18 -28
- package/dist/components/MoreTemplatesSection.d.ts +1 -2
- package/dist/components/MoreTemplatesSection.js +15 -16
- package/package.json +1 -1
- package/dist/components/index.d.ts +0 -1333
|
@@ -15,9 +15,8 @@ export declare interface HeroSectionProps {
|
|
|
15
15
|
export interface ItemProps {
|
|
16
16
|
id: string;
|
|
17
17
|
image: ReactNode;
|
|
18
|
-
title?: string;
|
|
19
18
|
description?: string;
|
|
20
|
-
|
|
19
|
+
url: ReactNode;
|
|
21
20
|
variant?: 'default' | 'card';
|
|
22
21
|
className?: string;
|
|
23
22
|
}
|
|
@@ -12,7 +12,7 @@ const g = ({ title: i, description: s, cta: l, heroDocuments: m, listTitle: c, b
|
|
|
12
12
|
] }),
|
|
13
13
|
/* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center gap-4 md:w-full md:items-start md:justify-start xl:max-w-115", children: [
|
|
14
14
|
/* @__PURE__ */ e("div", { className: "flex items-center justify-between", children: /* @__PURE__ */ e("p", { className: "text-big text-primary-800 font-semibold", children: c }) }),
|
|
15
|
-
/* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(n, { ...a, variant: "card" }, a.
|
|
15
|
+
/* @__PURE__ */ e("div", { className: "flex w-full flex-col gap-2", children: m.map((a) => /* @__PURE__ */ e(n, { ...a, variant: "card" }, a.id)) })
|
|
16
16
|
] })
|
|
17
17
|
] })
|
|
18
18
|
] });
|
|
@@ -75,9 +75,8 @@ export declare interface HomeTemplateProps {
|
|
|
75
75
|
export interface ItemProps {
|
|
76
76
|
id: string;
|
|
77
77
|
image: ReactNode;
|
|
78
|
-
title?: string;
|
|
79
78
|
description?: string;
|
|
80
|
-
|
|
79
|
+
url: ReactNode;
|
|
81
80
|
variant?: 'default' | 'card';
|
|
82
81
|
className?: string;
|
|
83
82
|
}
|
|
@@ -6,9 +6,8 @@ export declare const Item: FC<ItemProps>;
|
|
|
6
6
|
export declare interface ItemProps {
|
|
7
7
|
id: string;
|
|
8
8
|
image: ReactNode;
|
|
9
|
-
title?: string;
|
|
10
9
|
description?: string;
|
|
11
|
-
|
|
10
|
+
url: ReactNode;
|
|
12
11
|
variant?: 'default' | 'card';
|
|
13
12
|
className?: string;
|
|
14
13
|
}
|
package/dist/components/Item.js
CHANGED
|
@@ -1,42 +1,32 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as a, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import
|
|
3
|
+
import l from "clsx";
|
|
4
4
|
import { ChevronRightIcon as n } from "./ChevronRightIcon.js";
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
description: a,
|
|
9
|
-
documentUrl: l,
|
|
10
|
-
variant: r = "default",
|
|
11
|
-
className: d = ""
|
|
12
|
-
}) => {
|
|
13
|
-
const i = {
|
|
14
|
-
default: "py-4 px-2 items-start",
|
|
15
|
-
card: "border border-0.5 border-neutral-200 shadow-lg bg-white pl-6 pr-4 py-5"
|
|
16
|
-
}, m = {
|
|
17
|
-
default: "",
|
|
18
|
-
card: "font-bold"
|
|
19
|
-
};
|
|
20
|
-
return /* @__PURE__ */ s(
|
|
5
|
+
const h = ({ id: s, image: o, description: t, url: i, variant: e = "default", className: d = "" }) => {
|
|
6
|
+
const m = e === "default";
|
|
7
|
+
return /* @__PURE__ */ a(
|
|
21
8
|
"div",
|
|
22
9
|
{
|
|
23
|
-
className:
|
|
10
|
+
className: l(
|
|
24
11
|
'hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]',
|
|
25
|
-
|
|
12
|
+
{
|
|
13
|
+
default: "py-4 px-2 items-start",
|
|
14
|
+
card: "border border-0.5 border-neutral-200 shadow-lg bg-white pl-6 pr-4 py-5"
|
|
15
|
+
}[e],
|
|
26
16
|
d
|
|
27
17
|
),
|
|
28
18
|
children: [
|
|
29
|
-
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
o,
|
|
20
|
+
/* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-1", children: [
|
|
21
|
+
/* @__PURE__ */ r("p", { className: l("text-medium break-all text-neutral-800", m ? "" : "font-bold"), children: i }),
|
|
22
|
+
t && /* @__PURE__ */ r("p", { className: "text-extra-small break-all text-neutral-600", children: t })
|
|
33
23
|
] }),
|
|
34
|
-
|
|
35
|
-
r === "card" && /* @__PURE__ */ e(n, { width: 20, height: 20 })
|
|
24
|
+
e === "card" && /* @__PURE__ */ r(n, { width: 20, height: 20 })
|
|
36
25
|
]
|
|
37
|
-
}
|
|
26
|
+
},
|
|
27
|
+
s
|
|
38
28
|
);
|
|
39
29
|
};
|
|
40
30
|
export {
|
|
41
|
-
|
|
31
|
+
h as Item
|
|
42
32
|
};
|
|
@@ -1,29 +1,28 @@
|
|
|
1
|
-
import { jsxs as i, jsx as
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { SectionHeading as
|
|
3
|
+
import { SectionHeading as a } from "./SectionHeading.js";
|
|
4
4
|
import { Item as d } from "./Item.js";
|
|
5
|
-
import { ChevronDownIcon as
|
|
5
|
+
import { ChevronDownIcon as n } from "./ChevronDownIcon.js";
|
|
6
6
|
const b = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @__PURE__ */ i("section", { className: "mx-auto px-6 py-10 text-neutral-800 lg:px-8 lg:py-12 xl:max-w-300 xl:px-0", children: [
|
|
7
7
|
/* @__PURE__ */ i("div", { className: "hidden flex-col gap-6 md:flex", children: [
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
/* @__PURE__ */
|
|
8
|
+
/* @__PURE__ */ r(a, { ...o, align: "start", className: "pl-7" }),
|
|
9
|
+
/* @__PURE__ */ r("div", { className: "grid grid-flow-col grid-rows-3", children: l.map((e, s) => /* @__PURE__ */ r("div", { className: `border-neutral-200 px-6 ${s < 6 ? "border-r" : ""} `, children: /* @__PURE__ */ r(d, { ...e }) }, `desktop-${e.id}`)) })
|
|
10
10
|
] }),
|
|
11
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col gap-10 md:hidden", children: /* @__PURE__ */ i("details", { className: "group", children: [
|
|
12
12
|
/* @__PURE__ */ i("summary", { className: "flex cursor-pointer list-none items-center justify-between rounded-sm border border-neutral-200 p-4", children: [
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
13
|
+
/* @__PURE__ */ r("span", { children: o.title }),
|
|
14
|
+
/* @__PURE__ */ r(n, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
|
|
15
15
|
] }),
|
|
16
|
-
/* @__PURE__ */
|
|
16
|
+
/* @__PURE__ */ r("div", { className: "flex flex-col border-x border-b border-neutral-200", children: l.map((e) => /* @__PURE__ */ r(
|
|
17
17
|
d,
|
|
18
18
|
{
|
|
19
|
-
id:
|
|
20
|
-
image:
|
|
21
|
-
|
|
22
|
-
description:
|
|
23
|
-
className: "border-b border-neutral-200 p-6 last:border-b-0"
|
|
24
|
-
documentUrl: r.documentUrl
|
|
19
|
+
id: e.id,
|
|
20
|
+
image: e.image,
|
|
21
|
+
url: e.url,
|
|
22
|
+
description: e.description,
|
|
23
|
+
className: "border-b border-neutral-200 p-6! last:border-b-0"
|
|
25
24
|
},
|
|
26
|
-
`mobile-${
|
|
25
|
+
`mobile-${e.id}`
|
|
27
26
|
)) })
|
|
28
27
|
] }) })
|
|
29
28
|
] });
|