@npm_leadtech/legal-contracts-ui 0.144.0 → 0.145.0

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.
@@ -0,0 +1,14 @@
1
+ import { FC } from 'react';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare const Article: FC<ArticleProps>;
5
+
6
+ export declare interface ArticleProps {
7
+ id: string;
8
+ title: ReactNode;
9
+ description: string;
10
+ image: ReactNode;
11
+ cta: ReactNode;
12
+ isRow?: boolean;
13
+ }
14
+
@@ -0,0 +1,24 @@
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
+ import "react";
3
+ import m from "clsx";
4
+ import { LinkWrapper as a } from "./LinkWrapper.js";
5
+ const x = ({ id: t, title: d, description: i, image: o, cta: s, isRow: l = !1 }) => /* @__PURE__ */ r("article", { className: m("flex flex-col rounded-sm bg-white shadow", l && "md:flex-row"), children: [
6
+ /* @__PURE__ */ e(
7
+ "div",
8
+ {
9
+ className: m(
10
+ "relative h-42 shrink-0 overflow-hidden rounded-t-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
11
+ l && "md:h-auto md:max-w-51 md:self-stretch md:rounded-t-none md:rounded-l-sm"
12
+ ),
13
+ children: o
14
+ }
15
+ ),
16
+ /* @__PURE__ */ r("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
17
+ /* @__PURE__ */ e("p", { className: "text-big font-semibold", children: d }),
18
+ /* @__PURE__ */ e("p", { className: "text-medium", children: i }),
19
+ /* @__PURE__ */ e(a, { className: "w-fit", variant: "tertiary-bold", children: s })
20
+ ] })
21
+ ] }, t);
22
+ export {
23
+ x as Article
24
+ };
@@ -1,16 +1,20 @@
1
1
  import { FC } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ export interface ArticleProps {
5
+ id: string;
6
+ title: ReactNode;
7
+ description: string;
8
+ image: ReactNode;
9
+ cta: ReactNode;
10
+ isRow?: boolean;
11
+ }
12
+
4
13
  export declare const BlogSection: FC<BlogSectionProps>;
5
14
 
6
15
  export declare interface BlogSectionProps {
7
16
  header: SectionHeadingProps | null;
8
- articles: {
9
- title: string;
10
- image: ReactNode;
11
- description: string;
12
- cta: ReactNode;
13
- }[];
17
+ articles: ArticleProps[];
14
18
  cta: ReactNode | null;
15
19
  className?: string;
16
20
  variant?: 'column' | 'row';
@@ -1,40 +1,14 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as t } from "react/jsx-runtime";
2
2
  import "react";
3
- import o from "clsx";
4
- import { SectionHeading as c } from "./SectionHeading.js";
5
- import { LinkWrapper as s } from "./LinkWrapper.js";
6
- const u = ({ header: r, articles: m, cta: t, className: n = "", variant: a = "row" }) => {
7
- if (m.length === 0) return null;
8
- const d = a === "row";
9
- return /* @__PURE__ */ e("section", { className: o("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", n), children: /* @__PURE__ */ i("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
10
- r && /* @__PURE__ */ e(c, { ...r }),
11
- /* @__PURE__ */ e("div", { className: "grid gap-6 lg:grid-cols-2", children: m.map((l) => /* @__PURE__ */ i(
12
- "article",
13
- {
14
- className: o("flex flex-col rounded-sm bg-white shadow", d && "md:flex-row"),
15
- children: [
16
- /* @__PURE__ */ e(
17
- "div",
18
- {
19
- className: o(
20
- "relative h-42 shrink-0 overflow-hidden rounded-t-sm [&_img]:h-full [&_img]:w-full [&_img]:object-cover",
21
- d && "md:h-auto md:max-w-51 md:self-stretch md:rounded-t-none md:rounded-l-sm"
22
- ),
23
- children: l.image
24
- }
25
- ),
26
- /* @__PURE__ */ i("div", { className: "flex flex-col gap-4 p-6 text-neutral-800", children: [
27
- /* @__PURE__ */ e("h3", { className: "text-big font-semibold", children: l.title }),
28
- /* @__PURE__ */ e("p", { className: "text-medium", children: l.description }),
29
- /* @__PURE__ */ e(s, { className: "w-fit", variant: "tertiary-bold", children: l.cta })
30
- ] })
31
- ]
32
- },
33
- l.title
34
- )) }),
35
- !!t && /* @__PURE__ */ e(s, { className: "w-full md:w-fit", variant: "secondary-green", children: t })
36
- ] }) });
37
- };
3
+ import s from "clsx";
4
+ import { SectionHeading as a } from "./SectionHeading.js";
5
+ import { Article as c } from "./Article.js";
6
+ import { LinkWrapper as p } from "./LinkWrapper.js";
7
+ const h = ({ header: o, articles: i, cta: e, className: m = "", variant: n = "row" }) => i.length === 0 ? null : /* @__PURE__ */ r("section", { className: s("mx-auto px-8 lg:px-12 xl:max-w-300 xl:px-0", m), children: /* @__PURE__ */ t("div", { className: "mx-auto flex flex-col items-center gap-8", children: [
8
+ o && /* @__PURE__ */ r(a, { ...o }),
9
+ /* @__PURE__ */ r("div", { className: "grid gap-6 lg:grid-cols-2", children: i.map((l) => /* @__PURE__ */ r(c, { ...l, isRow: n === "row" }, l.id)) }),
10
+ !!e && /* @__PURE__ */ r(p, { className: "w-full md:w-fit", variant: "secondary-green", children: e })
11
+ ] }) });
38
12
  export {
39
- u as BlogSection
13
+ h as BlogSection
40
14
  };
@@ -1,14 +1,18 @@
1
1
  import { FC } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ export interface ArticleProps {
5
+ id: string;
6
+ title: ReactNode;
7
+ description: string;
8
+ image: ReactNode;
9
+ cta: ReactNode;
10
+ isRow?: boolean;
11
+ }
12
+
4
13
  export interface BlogSectionProps {
5
14
  header: SectionHeadingProps | null;
6
- articles: {
7
- title: string;
8
- image: ReactNode;
9
- description: string;
10
- cta: ReactNode;
11
- }[];
15
+ articles: ArticleProps[];
12
16
  cta: ReactNode | null;
13
17
  className?: string;
14
18
  variant?: 'column' | 'row';
@@ -1,14 +1,18 @@
1
1
  import { FC } from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ export interface ArticleProps {
5
+ id: string;
6
+ title: ReactNode;
7
+ description: string;
8
+ image: ReactNode;
9
+ cta: ReactNode;
10
+ isRow?: boolean;
11
+ }
12
+
4
13
  export interface BlogSectionProps {
5
14
  header: SectionHeadingProps | null;
6
- articles: {
7
- title: string;
8
- image: ReactNode;
9
- description: string;
10
- cta: ReactNode;
11
- }[];
15
+ articles: ArticleProps[];
12
16
  cta: ReactNode | null;
13
17
  className?: string;
14
18
  variant?: 'column' | 'row';