@npm_leadtech/legal-contracts-ui 0.37.2 → 0.37.4

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.
@@ -4,18 +4,14 @@ import { ReactNode } from 'react';
4
4
  export declare const ContentItem: FC<ContentItemProps>;
5
5
 
6
6
  export declare interface ContentItemProps {
7
- items: SingleContentItemProps[];
7
+ id: string;
8
+ title: string | null;
9
+ content: string | null;
10
+ linkedProducts: LinkedProductProps[];
8
11
  }
9
12
 
10
13
  export interface LinkedProductProps {
11
14
  slug: string;
12
15
  children: ReactNode;
13
16
  }
14
-
15
- export declare interface SingleContentItemProps {
16
- id: string;
17
- title: string | null;
18
- content: string | null;
19
- linkedProducts: LinkedProductProps[];
20
- }
21
17
 
@@ -1,11 +1,11 @@
1
- import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
- import { LinkedProducts as r } from "./LinkedProducts.js";
3
- import { Markdown as d } from "./Markdown.js";
4
- const a = ({ items: n }) => n.map((t) => /* @__PURE__ */ o("div", { id: t.id, className: "flex flex-col gap-6 text-neutral-800", children: [
5
- t.title && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: t.title }),
6
- t.content && /* @__PURE__ */ e(d, { content: t.content, className: "text-medium" }),
7
- t.linkedProducts.length > 0 && /* @__PURE__ */ e(r, { linkedProducts: t.linkedProducts })
8
- ] }, t.id));
1
+ import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
+ import { LinkedProducts as a } from "./LinkedProducts.js";
3
+ import { Markdown as l } from "./Markdown.js";
4
+ const f = ({ id: r, title: t, content: m, linkedProducts: o }) => /* @__PURE__ */ s("div", { id: r, className: "flex flex-col gap-6 text-neutral-800", children: [
5
+ t && /* @__PURE__ */ e("h2", { className: "text-super-large font-bold", children: t }),
6
+ m && /* @__PURE__ */ e(l, { content: m, className: "text-medium" }),
7
+ o.length > 0 && /* @__PURE__ */ e(a, { linkedProducts: o })
8
+ ] }, r);
9
9
  export {
10
- a as ContentItem
10
+ f as ContentItem
11
11
  };
@@ -29,7 +29,10 @@ export type ButtonSize = 'small' | 'default' | 'large';
29
29
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
30
30
 
31
31
  export interface ContentItemProps {
32
- items: SingleContentItemProps[];
32
+ id: string;
33
+ title: string | null;
34
+ content: string | null;
35
+ linkedProducts: LinkedProductProps[];
33
36
  }
34
37
 
35
38
  export interface FaqItemProps {
@@ -103,20 +106,13 @@ export declare interface ProductTemplateProps {
103
106
  benefitsBar: BenefitsBarProps;
104
107
  breadcrumb: BreadcrumbProps;
105
108
  tableOfContents: TableOfContentsProps;
106
- contentItems: ContentItemProps;
109
+ contentItems: ContentItemProps[];
107
110
  faqSection: FaqSectionProps;
108
111
  previewDownload: PreviewDownloadProps;
109
112
  previewSection: PreviewSectionProps;
110
113
  tryNowSection: TryNowSectionProps;
111
114
  }
112
115
 
113
- export interface SingleContentItemProps {
114
- id: string;
115
- title: string | null;
116
- content: string | null;
117
- linkedProducts: LinkedProductProps[];
118
- }
119
-
120
116
  export interface TableOfContentsProps {
121
117
  title: string;
122
118
  contents: {
@@ -1,46 +1,46 @@
1
1
  import { jsxs as r, jsx as o } from "react/jsx-runtime";
2
- import { Jumbotron as x } from "./Jumbotron.js";
3
- import { Preform as d } from "./Preform.js";
4
- import { ProductInfo as g } from "./ProductInfo.js";
5
- import { BenefitsBar as u } from "./BenefitsBar.js";
6
- import { Breadcrumb as w } from "./Breadcrumb.js";
7
- import { TableOfContents as h } from "./TableOfContents.js";
8
- import { ContentItem as N } from "./ContentItem.js";
9
- import { FaqSection as b } from "./FaqSection.js";
10
- import { PreviewDownload as v } from "./PreviewDownload.js";
11
- import { PreviewSection as P } from "./PreviewSection.js";
12
- import { TryNowSection as B } from "./TryNowSection.js";
13
- const z = ({
14
- jumbotron: m,
15
- preform: e,
16
- productInfo: t,
17
- benefitsBar: i,
18
- breadcrumb: l,
19
- tableOfContents: a,
20
- contentItems: p,
21
- faqSection: c,
22
- previewDownload: f,
23
- previewSection: n,
24
- tryNowSection: s
2
+ import { Jumbotron as d } from "./Jumbotron.js";
3
+ import { Preform as g } from "./Preform.js";
4
+ import { ProductInfo as u } from "./ProductInfo.js";
5
+ import { BenefitsBar as w } from "./BenefitsBar.js";
6
+ import { Breadcrumb as h } from "./Breadcrumb.js";
7
+ import { TableOfContents as N } from "./TableOfContents.js";
8
+ import { ContentItem as b } from "./ContentItem.js";
9
+ import { FaqSection as v } from "./FaqSection.js";
10
+ import { PreviewDownload as P } from "./PreviewDownload.js";
11
+ import { PreviewSection as B } from "./PreviewSection.js";
12
+ import { TryNowSection as S } from "./TryNowSection.js";
13
+ const A = ({
14
+ jumbotron: e,
15
+ preform: t,
16
+ productInfo: i,
17
+ benefitsBar: l,
18
+ breadcrumb: a,
19
+ tableOfContents: p,
20
+ contentItems: c,
21
+ faqSection: f,
22
+ previewDownload: n,
23
+ previewSection: s,
24
+ tryNowSection: x
25
25
  }) => /* @__PURE__ */ r("main", { className: "flex-1", children: [
26
- /* @__PURE__ */ o(x, { ...m }),
27
26
  /* @__PURE__ */ o(d, { ...e }),
28
27
  /* @__PURE__ */ o(g, { ...t }),
29
28
  /* @__PURE__ */ o(u, { ...i }),
29
+ /* @__PURE__ */ o(w, { ...l }),
30
30
  /* @__PURE__ */ o("section", { className: "px-4 pt-6 pb-10 text-neutral-800 md:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ r("div", { className: "mx-auto flex w-full max-w-300 flex-col gap-6", children: [
31
- /* @__PURE__ */ o(w, { ...l }),
31
+ /* @__PURE__ */ o(h, { ...a }),
32
32
  /* @__PURE__ */ r("div", { className: "flex items-start md:gap-4 lg:gap-26.5 xl:gap-31", children: [
33
33
  /* @__PURE__ */ r("div", { className: "flex flex-col gap-8 lg:max-w-137.5 xl:max-w-172.5", children: [
34
- /* @__PURE__ */ o(h, { ...a }),
35
34
  /* @__PURE__ */ o(N, { ...p }),
36
- /* @__PURE__ */ o(b, { ...c })
35
+ c.map((m) => /* @__PURE__ */ o(b, { ...m }, m.id)),
36
+ /* @__PURE__ */ o(v, { ...f })
37
37
  ] }),
38
- /* @__PURE__ */ o("aside", { className: "sticky top-10 hidden pt-4 md:block", children: /* @__PURE__ */ o(v, { ...f }) })
38
+ /* @__PURE__ */ o("aside", { className: "sticky top-10 hidden pt-4 md:block", children: /* @__PURE__ */ o(P, { ...n }) })
39
39
  ] })
40
40
  ] }) }),
41
- /* @__PURE__ */ o(P, { ...n }),
42
- /* @__PURE__ */ o(B, { ...s })
41
+ /* @__PURE__ */ o(B, { ...s }),
42
+ /* @__PURE__ */ o(S, { ...x })
43
43
  ] });
44
44
  export {
45
- z as ProductTemplate
45
+ A as ProductTemplate
46
46
  };
@@ -149,7 +149,10 @@ export declare interface ContactUsSectionProps {
149
149
  export declare const ContentItem: FC<ContentItemProps>;
150
150
 
151
151
  export declare interface ContentItemProps {
152
- items: SingleContentItemProps[];
152
+ id: string;
153
+ title: string | null;
154
+ content: string | null;
155
+ linkedProducts: LinkedProductProps[];
153
156
  }
154
157
 
155
158
  export declare const CtaSection: FC<CtaSectionProps>;
@@ -662,13 +665,6 @@ export declare interface SelectProps extends React.SelectHTMLAttributes<HTMLSele
662
665
  }[];
663
666
  }
664
667
 
665
- export declare interface SingleContentItemProps {
666
- id: string;
667
- title: string | null;
668
- content: string | null;
669
- linkedProducts: LinkedProductProps[];
670
- }
671
-
672
668
  export declare const StarsIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
673
669
 
674
670
  export declare const Storyline: FC<StorylineProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.37.2",
3
+ "version": "0.37.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",