@npm_leadtech/legal-contracts-ui 0.104.0 → 0.104.5

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.
@@ -30,6 +30,7 @@ export interface ContactUsSectionProps {
30
30
  description?: string;
31
31
  icon: ReactNode;
32
32
  helper?: string;
33
+ url?: string;
33
34
  }>;
34
35
  }
35
36
 
@@ -10,6 +10,7 @@ export declare interface ContactUsSectionProps {
10
10
  description?: string;
11
11
  icon: ReactNode;
12
12
  helper?: string;
13
+ url?: string;
13
14
  }>;
14
15
  }
15
16
 
@@ -1,23 +1,28 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
1
+ import { jsx as l, jsxs as r } from "react/jsx-runtime";
2
+ import a from "clsx";
2
3
  import { SectionHeading as c } from "./SectionHeading.js";
3
- const n = ({ header: r, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ e("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ t("div", { className: "mx-auto max-w-6xl space-y-10", children: [
4
- /* @__PURE__ */ e(c, { ...r, className: "px-6" }),
5
- /* @__PURE__ */ e("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((l) => /* @__PURE__ */ t(
4
+ const d = ({ header: t, contactOptions: s }) => s.length === 0 ? null : /* @__PURE__ */ l("section", { className: "bg-neutral-25 px-4 pt-16 pb-20", children: /* @__PURE__ */ r("div", { className: "mx-auto max-w-6xl space-y-10", children: [
5
+ /* @__PURE__ */ l(c, { ...t, className: "px-6" }),
6
+ /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-6 sm:flex-row sm:items-start sm:justify-center", children: s.map((e) => /* @__PURE__ */ r(
6
7
  "article",
7
8
  {
8
- className: "flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
9
+ className: a(
10
+ "relative flex h-36 w-52 flex-col items-center justify-center gap-4 rounded bg-white text-center shadow-sm",
11
+ e.url && 'cursor-pointer [&_a]:before:absolute [&_a]:before:inset-0 [&_a]:before:content-[""]'
12
+ ),
9
13
  children: [
10
- /* @__PURE__ */ e("div", { className: "bg-primary-50 rounded-full p-3", children: l.icon }),
11
- /* @__PURE__ */ t("div", { className: "flex flex-col items-center justify-center", children: [
12
- /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.title }),
13
- /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.description }),
14
- l.helper && /* @__PURE__ */ e("p", { className: "text-neutral-800", children: l.helper })
14
+ e.url && /* @__PURE__ */ l("a", { href: e.url, children: /* @__PURE__ */ l("span", { className: "sr-only", children: e.title }) }),
15
+ /* @__PURE__ */ l("div", { className: "bg-primary-50 rounded-full p-3", children: e.icon }),
16
+ /* @__PURE__ */ r("div", { className: "flex flex-col items-center justify-center", children: [
17
+ /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.title }),
18
+ /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.description }),
19
+ e.helper && /* @__PURE__ */ l("p", { className: "text-neutral-800", children: e.helper })
15
20
  ] })
16
21
  ]
17
22
  },
18
- l.title
23
+ e.title
19
24
  )) })
20
25
  ] }) });
21
26
  export {
22
- n as ContactUsSection
27
+ d as ContactUsSection
23
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.104.0",
3
+ "version": "0.104.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",