@npm_leadtech/legal-contracts-ui 0.72.1 → 0.72.3

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.
@@ -20,6 +20,5 @@ export interface ItemProps {
20
20
  documentUrl?: ReactNode;
21
21
  variant?: 'default' | 'card';
22
22
  className?: string;
23
- titleClassName?: string;
24
23
  }
25
24
 
@@ -74,7 +74,6 @@ export interface ItemProps {
74
74
  documentUrl?: ReactNode;
75
75
  variant?: 'default' | 'card';
76
76
  className?: string;
77
- titleClassName?: string;
78
77
  }
79
78
 
80
79
  export interface LawGeniusSectionProps {
@@ -11,6 +11,5 @@ export declare interface ItemProps {
11
11
  documentUrl?: ReactNode;
12
12
  variant?: 'default' | 'card';
13
13
  className?: string;
14
- titleClassName?: string;
15
14
  }
16
15
 
@@ -1,32 +1,32 @@
1
1
  import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { ChevronRightIcon as d } from "./ChevronRightIcon.js";
4
- const b = ({
3
+ import d from "clsx";
4
+ import { ChevronRightIcon as c } from "./ChevronRightIcon.js";
5
+ const x = ({
5
6
  image: l,
6
- title: r,
7
+ title: t,
7
8
  description: a,
8
- documentUrl: t,
9
- variant: s = "default",
10
- className: i = "",
11
- titleClassName: n = ""
9
+ documentUrl: s,
10
+ variant: r = "default",
11
+ className: i = ""
12
12
  }) => /* @__PURE__ */ o(
13
13
  "div",
14
14
  {
15
15
  className: `hover:bg-primary-50 relative flex cursor-pointer items-center gap-4 rounded-sm p-4 pl-6 [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""] ${{
16
16
  default: "",
17
17
  card: "border border-0.5 border-neutral-200 shadow-lg bg-white"
18
- }[s]} ${i}`,
18
+ }[r]} ${i}`,
19
19
  children: [
20
20
  l,
21
21
  /* @__PURE__ */ o("div", { className: "flex-1", children: [
22
- r && /* @__PURE__ */ e("p", { className: `text-medium font-semibold text-neutral-900 ${n}`, children: r }),
22
+ t && /* @__PURE__ */ e("p", { className: d("text-medium text-neutral-900", r === "card" && "font-semibold"), children: t }),
23
23
  a && /* @__PURE__ */ e("p", { className: "text-extra-small text-neutral-600", children: a })
24
24
  ] }),
25
- !!t && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: t }),
26
- s === "card" && /* @__PURE__ */ e(d, { width: 20, height: 20 })
25
+ !!s && /* @__PURE__ */ e("div", { className: "h-0 w-0 opacity-0", children: s }),
26
+ r === "card" && /* @__PURE__ */ e(c, { width: 20, height: 20 })
27
27
  ]
28
28
  }
29
29
  );
30
30
  export {
31
- b as Item
31
+ x as Item
32
32
  };
@@ -9,7 +9,6 @@ export interface ItemProps {
9
9
  documentUrl?: ReactNode;
10
10
  variant?: 'default' | 'card';
11
11
  className?: string;
12
- titleClassName?: string;
13
12
  }
14
13
 
15
14
  export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
@@ -1,20 +1,20 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as s } from "./SectionHeading.js";
4
- import { Item as n } from "./Item.js";
5
- import { ChevronDownIcon as d } from "./ChevronDownIcon.js";
6
- const x = ({ 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: [
3
+ import { SectionHeading as a } from "./SectionHeading.js";
4
+ import { Item as s } from "./Item.js";
5
+ import { ChevronDownIcon as n } from "./ChevronDownIcon.js";
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__ */ e(s, { ...o, align: "start" }),
9
- /* @__PURE__ */ e("div", { className: "grid grid-cols-3", children: l.map((r) => /* @__PURE__ */ e("div", { className: "border-neutral-200 px-6 not-nth-[3n]:border-r", children: /* @__PURE__ */ e(n, { ...r, className: "items-start! px-2!", titleClassName: "font-normal!" }) }, `desktop-${r.id}`)) })
8
+ /* @__PURE__ */ e(a, { ...o, align: "start", className: "pl-7" }),
9
+ /* @__PURE__ */ e("div", { className: "grid grid-flow-col grid-rows-3", children: l.map((r, d) => /* @__PURE__ */ e("div", { className: `border-neutral-200 px-6 ${d < 6 ? "border-r" : ""} `, children: /* @__PURE__ */ e(s, { ...r, className: "items-start! px-2!" }) }, `desktop-${r.id}`)) })
10
10
  ] }),
11
11
  /* @__PURE__ */ e("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
13
  /* @__PURE__ */ e("span", { children: o.title }),
14
- /* @__PURE__ */ e(d, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
14
+ /* @__PURE__ */ e(n, { className: "h-5 w-5 transition-transform group-open:rotate-180" })
15
15
  ] }),
16
16
  /* @__PURE__ */ e("div", { className: "flex flex-col border-x border-b border-neutral-200", children: l.map((r) => /* @__PURE__ */ e(
17
- n,
17
+ s,
18
18
  {
19
19
  id: r.id,
20
20
  image: r.image,
@@ -28,5 +28,5 @@ const x = ({ header: o, moreDocuments: l = [] }) => l.length === 0 ? null : /* @
28
28
  ] }) })
29
29
  ] });
30
30
  export {
31
- x as MoreTemplatesSection
31
+ b as MoreTemplatesSection
32
32
  };