@npm_leadtech/legal-contracts-ui 0.73.5 → 0.74.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.
@@ -1,30 +1,41 @@
1
- import { jsxs as a, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import { JumboCard as i } from "./JumboCard.js";
3
- import { DocumentCategories as s } from "./DocumentCategories.js";
4
- import { DocumentSection as x } from "./DocumentSection.js";
5
- import { Breadcrumb as f } from "./Breadcrumb.js";
6
- import { FaqSection as n } from "./FaqSection.js";
3
+ import { DocumentCategories as c } from "./DocumentCategories.js";
4
+ import { DocumentSection as n } from "./DocumentSection.js";
5
+ import { Breadcrumb as x } from "./Breadcrumb.js";
6
+ import { FaqSection as f } from "./FaqSection.js";
7
7
  import { BlogSection as d } from "./BlogSection.js";
8
- const C = ({
9
- jumbo: l,
10
- breadcrumb: m,
11
- categories: o,
12
- documentSections: r,
8
+ const w = ({
9
+ jumbo: r,
10
+ breadcrumb: o,
11
+ categories: m,
12
+ documentSections: s,
13
13
  faqSection: p,
14
- articles: c
15
- }) => /* @__PURE__ */ a("main", { className: "mx-auto flex flex-1 flex-col gap-4 px-6 pt-8 pb-16 lg:px-8 xl:max-w-300 xl:px-0", children: [
16
- /* @__PURE__ */ e(i, { ...l }),
17
- /* @__PURE__ */ e(f, { ...m, className: "pt-2" }),
18
- /* @__PURE__ */ a("div", { className: "mx-auto flex justify-center gap-4 text-neutral-800 lg:gap-26.5 xl:gap-31.5", children: [
19
- /* @__PURE__ */ e("aside", { className: "sticky top-24 hidden self-start md:block", children: /* @__PURE__ */ e(s, { ...o }) }),
20
- /* @__PURE__ */ a("div", { className: "flex flex-col gap-10", children: [
21
- r.map((t) => /* @__PURE__ */ e(x, { ...t }, t.id)),
14
+ articles: a
15
+ }) => /* @__PURE__ */ l("main", { className: "mx-auto flex flex-1 flex-col gap-4 px-6 pt-8 pb-16 lg:px-8 xl:max-w-300 xl:px-0", children: [
16
+ /* @__PURE__ */ e(i, { ...r }),
17
+ /* @__PURE__ */ e(x, { ...o, className: "pt-2" }),
18
+ /* @__PURE__ */ l("div", { className: "mx-auto flex justify-center gap-4 text-neutral-800 lg:gap-26.5 xl:gap-31.5", children: [
19
+ /* @__PURE__ */ e("aside", { className: "sticky top-24 hidden self-start md:block", children: /* @__PURE__ */ e(c, { ...m }) }),
20
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-10", children: [
21
+ s.map((t) => /* @__PURE__ */ e(n, { ...t }, t.id)),
22
22
  /* @__PURE__ */ e("span", { className: "h-px w-full bg-neutral-200" }),
23
- /* @__PURE__ */ e(n, { ...p }),
24
- /* @__PURE__ */ e(d, { ...c })
23
+ /* @__PURE__ */ e(f, { ...p }),
24
+ /* @__PURE__ */ e(
25
+ d,
26
+ {
27
+ ...a,
28
+ header: a.header ? {
29
+ ...a.header,
30
+ align: "start",
31
+ titleClass: "font-bold font-inter text-super-large",
32
+ className: "w-full"
33
+ } : null
34
+ }
35
+ )
25
36
  ] })
26
37
  ] })
27
38
  ] });
28
39
  export {
29
- C as CategoryProductTemplate
40
+ w as CategoryProductTemplate
30
41
  };
@@ -1,15 +1,16 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { DocumentItem as m } from "./DocumentItem.js";
3
- const n = ({ id: r, title: s, description: c, icon: t, documents: i }) => /* @__PURE__ */ l("article", { id: r, className: "flex scroll-mt-24 flex-col gap-6", children: [
2
+ import { DocumentItem as i } from "./DocumentItem.js";
3
+ import { Markdown as o } from "./Markdown.js";
4
+ const x = ({ id: r, title: t, description: s, icon: c, documents: m }) => /* @__PURE__ */ l("article", { id: r, className: "flex scroll-mt-24 flex-col gap-6", children: [
4
5
  /* @__PURE__ */ l("div", { className: "flex items-start gap-4 rounded bg-neutral-50 p-6", children: [
5
- t,
6
+ c,
6
7
  /* @__PURE__ */ l("div", { className: "flex flex-1 flex-col gap-2 text-neutral-800", children: [
7
- /* @__PURE__ */ e("p", { className: "font-lora text-super-large", children: s }),
8
- /* @__PURE__ */ e("p", { className: "text-medium", children: c })
8
+ /* @__PURE__ */ e("p", { className: "font-lora text-super-large", children: t }),
9
+ /* @__PURE__ */ e(o, { className: "text-medium [&_p:last-child]:mb-0", content: s })
9
10
  ] })
10
11
  ] }),
11
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: i.map((a) => /* @__PURE__ */ e(m, { ...a, className: "w-full" }, a.id)) })
12
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 gap-6 lg:grid-cols-2", children: m.map((a) => /* @__PURE__ */ e(i, { ...a, className: "w-full" }, a.id)) })
12
13
  ] });
13
14
  export {
14
- n as DocumentSection
15
+ x as DocumentSection
15
16
  };
@@ -1,21 +1,22 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import "react";
3
- const m = ({
3
+ import { Markdown as m } from "./Markdown.js";
4
+ const i = ({
4
5
  title: r,
5
6
  description: e,
6
7
  align: l = "center",
7
8
  titleClass: a = "font-lora text-super-large",
8
- className: c = ""
9
- }) => /* @__PURE__ */ n(
9
+ className: n = ""
10
+ }) => /* @__PURE__ */ c(
10
11
  "div",
11
12
  {
12
- className: `flex flex-col gap-4 text-neutral-800 ${c} ${l === "center" ? "items-center text-center" : "text-left"}`,
13
+ className: `flex flex-col gap-4 text-neutral-800 ${n} ${l === "center" ? "items-center text-center" : "text-left"}`,
13
14
  children: [
14
15
  /* @__PURE__ */ t("h2", { className: a, children: r }),
15
- e && /* @__PURE__ */ t("p", { className: "text-medium max-w-3xl", children: e })
16
+ e && /* @__PURE__ */ t(m, { className: "text-medium max-w-3xl [&_p:last-child]:mb-0", content: e })
16
17
  ]
17
18
  }
18
19
  );
19
20
  export {
20
- m as SectionHeading
21
+ i as SectionHeading
21
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.73.5",
3
+ "version": "0.74.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -554,6 +554,10 @@
554
554
  "import": "./dist/components/HomeTemplate.js",
555
555
  "types": "./dist/components/HomeTemplate.d.ts"
556
556
  },
557
+ "./components/HowItWorksTemplate": {
558
+ "import": "./dist/components/HowItWorksTemplate.js",
559
+ "types": "./dist/components/HowItWorksTemplate.d.ts"
560
+ },
557
561
  "./components/LegalTemplate": {
558
562
  "import": "./dist/components/LegalTemplate.js",
559
563
  "types": "./dist/components/LegalTemplate.d.ts"