@npm_leadtech/legal-contracts-ui 0.103.2 → 0.103.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.
@@ -1,5 +1,5 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
5
  export declare const AboutUsTemplate: FC<AboutUsTemplateProps>;
@@ -19,13 +19,6 @@ export declare interface AboutUsTemplateProps {
19
19
  contactUs: ContactUsSectionProps;
20
20
  }
21
21
 
22
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
23
- children: ReactNode;
24
- size?: ButtonSize;
25
- variant?: ResponsiveButtonVariant;
26
- iconPosition?: IconPosition;
27
- }
28
-
29
22
  export type ButtonSize = 'small' | 'default' | 'large';
30
23
 
31
24
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
@@ -43,7 +36,7 @@ export interface ContactUsSectionProps {
43
36
  export interface CtaSectionProps {
44
37
  title: string;
45
38
  paragraph?: ReactNode;
46
- cta: ButtonProps;
39
+ cta: LinkWrapper;
47
40
  children?: ReactNode;
48
41
  className?: string;
49
42
  contentClassName?: string;
@@ -70,7 +63,7 @@ export interface GuidelinesSectionProps {
70
63
  title: string;
71
64
  image: ReactNode;
72
65
  content: string;
73
- cta: ButtonProps;
66
+ cta: LinkWrapper;
74
67
  };
75
68
  }
76
69
 
@@ -79,7 +72,7 @@ export type IconPosition = 'left' | 'right' | 'top';
79
72
  export interface IntroSectionProps {
80
73
  image: ReactNode;
81
74
  children: ReactNode;
82
- cta: ButtonProps;
75
+ cta: LinkWrapper;
83
76
  className?: string;
84
77
  containerClassName?: string;
85
78
  }
@@ -92,6 +85,17 @@ export interface Jumbotron2Props {
92
85
  variant?: 'default' | 'contact';
93
86
  }
94
87
 
88
+ export interface LinkWrapper {
89
+ children: ReactNode;
90
+ size?: ButtonSize;
91
+ variant?: ResponsiveButtonVariant;
92
+ iconPosition?: IconPosition;
93
+ disabled?: boolean;
94
+ className?: string;
95
+ }
96
+
97
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
98
+
95
99
  export interface MissionSectionProps {
96
100
  title: string;
97
101
  body: string;
@@ -149,7 +153,7 @@ export interface ValuesSectionProps {
149
153
  export interface WeHelpSectionProps {
150
154
  title: string;
151
155
  image: ReactNode;
152
- cta: ButtonProps;
156
+ cta: LinkWrapper;
153
157
  body: string;
154
158
  }
155
159
 
@@ -1,14 +1,7 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
- children: ReactNode;
7
- size?: ButtonSize;
8
- variant?: ResponsiveButtonVariant;
9
- iconPosition?: IconPosition;
10
- }
11
-
12
5
  export type ButtonSize = 'small' | 'default' | 'large';
13
6
 
14
7
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
@@ -34,7 +27,7 @@ export declare const CtaSection: FC<CtaSectionProps>;
34
27
  export declare interface CtaSectionProps {
35
28
  title: string;
36
29
  paragraph?: ReactNode;
37
- cta: ButtonProps;
30
+ cta: LinkWrapper;
38
31
  children?: ReactNode;
39
32
  className?: string;
40
33
  contentClassName?: string;
@@ -45,6 +38,17 @@ export declare const CtaSummarizedTag: FC<CtaFeatureTagProps>;
45
38
 
46
39
  export type IconPosition = 'left' | 'right' | 'top';
47
40
 
41
+ export interface LinkWrapper {
42
+ children: ReactNode;
43
+ size?: ButtonSize;
44
+ variant?: ResponsiveButtonVariant;
45
+ iconPosition?: IconPosition;
46
+ disabled?: boolean;
47
+ className?: string;
48
+ }
49
+
50
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
51
+
48
52
  export type ResponsiveButtonVariant = ButtonVariant | {
49
53
  initial?: ButtonVariant;
50
54
  sm?: ButtonVariant;
@@ -1,5 +1,5 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { Button as c } from "./Button.js";
2
+ import { LinkWrapper as c } from "./LinkWrapper.js";
3
3
  const x = ({
4
4
  title: a,
5
5
  paragraph: l,
@@ -1,14 +1,7 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
- children: ReactNode;
7
- size?: ButtonSize;
8
- variant?: ResponsiveButtonVariant;
9
- iconPosition?: IconPosition;
10
- }
11
-
12
5
  export type ButtonSize = 'small' | 'default' | 'large';
13
6
 
14
7
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
@@ -26,12 +19,23 @@ export declare interface GuidelinesSectionProps {
26
19
  title: string;
27
20
  image: ReactNode;
28
21
  content: string;
29
- cta: ButtonProps;
22
+ cta: LinkWrapper;
30
23
  };
31
24
  }
32
25
 
33
26
  export type IconPosition = 'left' | 'right' | 'top';
34
27
 
28
+ export interface LinkWrapper {
29
+ children: ReactNode;
30
+ size?: ButtonSize;
31
+ variant?: ResponsiveButtonVariant;
32
+ iconPosition?: IconPosition;
33
+ disabled?: boolean;
34
+ className?: string;
35
+ }
36
+
37
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
38
+
35
39
  export type ResponsiveButtonVariant = ButtonVariant | {
36
40
  initial?: ButtonVariant;
37
41
  sm?: ButtonVariant;
@@ -1,7 +1,7 @@
1
1
  import { jsx as l, jsxs as a } from "react/jsx-runtime";
2
2
  import { SectionHeading as r } from "./SectionHeading.js";
3
3
  import { Markdown as i } from "./Markdown.js";
4
- import { Button as m } from "./Button.js";
4
+ import { LinkWrapper as m } from "./LinkWrapper.js";
5
5
  const f = ({ header: n, guidelineCards: s, footerCard: e }) => /* @__PURE__ */ l("section", { className: "bg-neutral-25 py-8", children: /* @__PURE__ */ a("div", { className: "mx-auto w-full max-w-6xl px-4 md:px-6", children: [
6
6
  /* @__PURE__ */ l(r, { ...n, align: "start", hasMaxWidth: !1 }),
7
7
  /* @__PURE__ */ l("div", { className: "my-8 flex flex-col gap-6 lg:mt-8 lg:mb-4 lg:flex-row", children: s.map((t) => /* @__PURE__ */ a("article", { className: "flex flex-1 flex-col rounded-2xl bg-white p-6 shadow-sm", children: [
@@ -13,7 +13,7 @@ const f = ({ header: n, guidelineCards: s, footerCard: e }) => /* @__PURE__ */ l
13
13
  /* @__PURE__ */ a("div", { className: "order-2 flex flex-1 flex-col justify-start p-6 text-neutral-800 lg:order-1 lg:mr-12 lg:p-0", children: [
14
14
  /* @__PURE__ */ l("p", { className: "mb-4 font-sans text-[18px] leading-[24px] font-bold tracking-[-0.3px] text-neutral-800", children: e.title }),
15
15
  /* @__PURE__ */ l("div", { className: "[&_a]:text-primary-800 mb-6 font-sans text-[16px] leading-[22px] font-normal tracking-[-0.3px] [&_a]:font-normal", children: /* @__PURE__ */ l(i, { content: e.content }) }),
16
- /* @__PURE__ */ l("div", { className: "mt-10 self-start", children: /* @__PURE__ */ l(m, { size: "large", variant: "primary-darkgreen", ...e.cta }) })
16
+ /* @__PURE__ */ l("div", { className: "mt-10 self-start", children: /* @__PURE__ */ l(m, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...e.cta }) })
17
17
  ] }),
18
18
  /* @__PURE__ */ l("div", { className: "order-1 mb-8 w-full lg:order-2 lg:mb-0 lg:w-1/2", children: /* @__PURE__ */ l("div", { className: "w-full", children: e.image }) })
19
19
  ] })
@@ -1,14 +1,7 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
6
- children: ReactNode;
7
- size?: ButtonSize;
8
- variant?: ResponsiveButtonVariant;
9
- iconPosition?: IconPosition;
10
- }
11
-
12
5
  export type ButtonSize = 'small' | 'default' | 'large';
13
6
 
14
7
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
@@ -20,11 +13,22 @@ export declare const IntroSection: FC<IntroSectionProps>;
20
13
  export declare interface IntroSectionProps {
21
14
  image: ReactNode;
22
15
  children: ReactNode;
23
- cta: ButtonProps;
16
+ cta: LinkWrapper;
24
17
  className?: string;
25
18
  containerClassName?: string;
26
19
  }
27
20
 
21
+ export interface LinkWrapper {
22
+ children: ReactNode;
23
+ size?: ButtonSize;
24
+ variant?: ResponsiveButtonVariant;
25
+ iconPosition?: IconPosition;
26
+ disabled?: boolean;
27
+ className?: string;
28
+ }
29
+
30
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
31
+
28
32
  export type ResponsiveButtonVariant = ButtonVariant | {
29
33
  initial?: ButtonVariant;
30
34
  sm?: ButtonVariant;
@@ -1,15 +1,15 @@
1
1
  import { jsx as m, jsxs as o } from "react/jsx-runtime";
2
2
  import { TwoColumnSection as e } from "./TwoColumnSection.js";
3
- import { Button as t } from "./Button.js";
4
- const b = ({ image: s, children: i, cta: l, className: r, containerClassName: a }) => /* @__PURE__ */ m(
3
+ import { LinkWrapper as t } from "./LinkWrapper.js";
4
+ const b = ({ image: s, children: i, cta: r, className: l, containerClassName: a }) => /* @__PURE__ */ m(
5
5
  e,
6
6
  {
7
- className: r ?? "",
7
+ className: l ?? "",
8
8
  containerClassName: a,
9
9
  firstColumn: /* @__PURE__ */ m("div", { className: "mb-4 md:mr-6 md:mb-0 md:basis-42/100 lg:mr-10 lg:basis-39/100 xl:basis-36/100 [&_img]:h-auto [&_img]:w-full [&_img]:rounded-2xl xl:[&_img]:h-full xl:[&_img]:object-cover", children: s }),
10
10
  secondColumn: /* @__PURE__ */ o("div", { className: "mt-4 basis-full md:mt-0 md:basis-56/100 lg:basis-59/100 xl:basis-60/100", children: [
11
11
  i,
12
- /* @__PURE__ */ m(t, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...l })
12
+ /* @__PURE__ */ m(t, { size: "large", variant: "primary-darkgreen", className: "mt-8", ...r })
13
13
  ] })
14
14
  }
15
15
  );
@@ -1,15 +1,8 @@
1
1
  import { ChangeEvent } from 'react';
2
- import { ComponentPropsWithRef } from 'react';
3
2
  import { FC } from 'react';
3
+ import { JSX } from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
7
- children: ReactNode;
8
- size?: ButtonSize;
9
- variant?: ResponsiveButtonVariant;
10
- iconPosition?: IconPosition;
11
- }
12
-
13
6
  export type ButtonSize = 'small' | 'default' | 'large';
14
7
 
15
8
  export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
@@ -37,11 +30,22 @@ export type IconPosition = 'left' | 'right' | 'top';
37
30
  export interface IntroSectionProps {
38
31
  image: ReactNode;
39
32
  children: ReactNode;
40
- cta: ButtonProps;
33
+ cta: LinkWrapper;
41
34
  className?: string;
42
35
  containerClassName?: string;
43
36
  }
44
37
 
38
+ export interface LinkWrapper {
39
+ children: ReactNode;
40
+ size?: ButtonSize;
41
+ variant?: ResponsiveButtonVariant;
42
+ iconPosition?: IconPosition;
43
+ disabled?: boolean;
44
+ className?: string;
45
+ }
46
+
47
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
48
+
45
49
  export declare const NotFoundTemplate: FC<NotFoundTemplateProps>;
46
50
 
47
51
  export declare interface NotFoundTemplateProps {
@@ -1,19 +1,23 @@
1
- import { ComponentPropsWithRef } from 'react';
2
1
  import { FC } from 'react';
2
+ import { JSX } from 'react/jsx-runtime';
3
3
  import { ReactNode } from 'react';
4
4
 
5
- export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
5
+ export type ButtonSize = 'small' | 'default' | 'large';
6
+
7
+ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
8
+
9
+ export type IconPosition = 'left' | 'right' | 'top';
10
+
11
+ export interface LinkWrapper {
6
12
  children: ReactNode;
7
13
  size?: ButtonSize;
8
14
  variant?: ResponsiveButtonVariant;
9
15
  iconPosition?: IconPosition;
16
+ disabled?: boolean;
17
+ className?: string;
10
18
  }
11
19
 
12
- export type ButtonSize = 'small' | 'default' | 'large';
13
-
14
- export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yellow' | 'primary-white' | 'secondary-green' | 'secondary-yellow' | 'secondary-red' | 'secondary-black' | 'tertiary-bold' | 'tertiary-thin' | 'tertiary-icon' | 'tertiary-link' | 'icon-black' | 'icon-grey' | 'icon-mobile';
15
-
16
- export type IconPosition = 'left' | 'right' | 'top';
20
+ declare const LinkWrapper: ({ size, variant, iconPosition, disabled, className, children }: LinkWrapper) => JSX.Element;
17
21
 
18
22
  export type ResponsiveButtonVariant = ButtonVariant | {
19
23
  initial?: ButtonVariant;
@@ -28,7 +32,7 @@ export declare const WeHelpSection: FC<WeHelpSectionProps>;
28
32
  export declare interface WeHelpSectionProps {
29
33
  title: string;
30
34
  image: ReactNode;
31
- cta: ButtonProps;
35
+ cta: LinkWrapper;
32
36
  body: string;
33
37
  }
34
38
 
@@ -1,19 +1,19 @@
1
1
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
2
- import { TwoColumnSection as a } from "./TwoColumnSection.js";
2
+ import { TwoColumnSection as o } from "./TwoColumnSection.js";
3
3
  import { Markdown as i } from "./Markdown.js";
4
- import { Button as s } from "./Button.js";
5
- const u = ({ title: r, image: t, cta: n, body: o }) => /* @__PURE__ */ e(
6
- a,
4
+ import { LinkWrapper as s } from "./LinkWrapper.js";
5
+ const d = ({ title: r, image: t, cta: n, body: a }) => /* @__PURE__ */ e(
6
+ o,
7
7
  {
8
8
  containerClassName: "items-center flex-col-reverse gap-16",
9
9
  firstColumn: /* @__PURE__ */ l("div", { className: "w-full flex-1 space-y-6 text-neutral-800", children: [
10
10
  /* @__PURE__ */ e("p", { className: "text-super-large font-bold text-neutral-800", children: r }),
11
- /* @__PURE__ */ e(i, { content: o, variant: "legal" }),
12
- /* @__PURE__ */ e(s, { size: "large", variant: "primary-green", ...n })
11
+ /* @__PURE__ */ e(i, { content: a, variant: "legal" }),
12
+ /* @__PURE__ */ e(s, { size: "large", variant: "primary-green", className: "mt-8", ...n })
13
13
  ] }),
14
14
  secondColumn: /* @__PURE__ */ e("div", { children: t })
15
15
  }
16
16
  );
17
17
  export {
18
- u as WeHelpSection
18
+ d as WeHelpSection
19
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.103.2",
3
+ "version": "0.103.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",