@npm_leadtech/legal-contracts-ui 0.44.18 → 0.44.20

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,12 +1,6 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { ElementType } from 'react';
3
1
  import { FC } from 'react';
4
2
  import { ReactNode } from 'react';
5
3
 
6
- export type ButtonSize = 'small' | 'default' | 'large';
7
-
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';
9
-
10
4
  export declare const FaqTeaserSection: FC<FaqTeaserSectionProps>;
11
5
 
12
6
  export declare interface FaqTeaserSectionProps {
@@ -15,21 +9,10 @@ export declare interface FaqTeaserSectionProps {
15
9
  id: string;
16
10
  content: ReactNode;
17
11
  }[];
18
- cta: LinkProps;
12
+ ctaNode: ReactNode;
19
13
  bgImage: ReactNode;
20
14
  }
21
15
 
22
- export type IconPosition = 'left' | 'right' | 'top';
23
-
24
- export interface LinkProps extends ComponentPropsWithoutRef<'a'> {
25
- children: ReactNode;
26
- href: string;
27
- asCustom?: ElementType;
28
- size?: ButtonSize;
29
- variant?: ButtonVariant;
30
- iconPosition?: IconPosition;
31
- }
32
-
33
16
  export interface SectionHeadingProps {
34
17
  title: string;
35
18
  description?: string;
@@ -1,14 +1,13 @@
1
- import { jsxs as r, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { Link as n } from "./Link.js";
4
- import { SectionHeading as c } from "./SectionHeading.js";
3
+ import { SectionHeading as a } from "./SectionHeading.js";
5
4
  import { ChevronRightIcon as d } from "./ChevronRightIcon.js";
6
- const g = ({ header: o, questions: l, cta: t, bgImage: a }) => l.length === 0 ? null : /* @__PURE__ */ r("section", { className: "bg-neutral-25 relative overflow-hidden px-6 py-10 lg:px-8 lg:py-12 xl:px-55", children: [
7
- /* @__PURE__ */ e("div", { className: "pointer-events-none absolute -bottom-17 -left-16 hidden xl:block", children: a }),
8
- /* @__PURE__ */ r("div", { className: "relative z-2 flex flex-col justify-center gap-6 md:flex-row md:items-center xl:gap-10", children: [
9
- /* @__PURE__ */ e(c, { className: "xl:max-w-120", align: "start", ...o }),
10
- /* @__PURE__ */ r("div", { className: "flex flex-col gap-10 rounded-lg bg-white p-8 shadow md:min-w-87 lg:min-w-117 xl:max-w-120 xl:min-w-120", children: [
11
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-6", children: l.map((i) => /* @__PURE__ */ r(
5
+ const x = ({ header: o, questions: r, ctaNode: t, bgImage: n }) => r.length === 0 ? null : /* @__PURE__ */ l("section", { className: "bg-neutral-25 relative overflow-hidden px-6 py-10 lg:px-8 lg:py-12 xl:px-55", children: [
6
+ /* @__PURE__ */ e("div", { className: "pointer-events-none absolute -bottom-17 -left-16 hidden xl:block", children: n }),
7
+ /* @__PURE__ */ l("div", { className: "relative z-2 flex flex-col justify-center gap-6 md:flex-row md:items-center xl:gap-10", children: [
8
+ /* @__PURE__ */ e(a, { className: "xl:max-w-120", align: "start", ...o }),
9
+ /* @__PURE__ */ l("div", { className: "flex flex-col gap-10 rounded-lg bg-white p-8 shadow md:min-w-87 lg:min-w-117 xl:max-w-120 xl:min-w-120", children: [
10
+ /* @__PURE__ */ e("ul", { className: "flex flex-col gap-6", children: r.map((i) => /* @__PURE__ */ l(
12
11
  "li",
13
12
  {
14
13
  className: "text-medium group hover:bg-primary-100 flex w-fit cursor-pointer items-center rounded-sm p-2 font-bold text-neutral-800 transition duration-300",
@@ -19,10 +18,10 @@ const g = ({ header: o, questions: l, cta: t, bgImage: a }) => l.length === 0 ?
19
18
  },
20
19
  i.id
21
20
  )) }),
22
- /* @__PURE__ */ e(n, { className: "w-fit", variant: "primary-yellow", ...t })
21
+ t
23
22
  ] })
24
23
  ] })
25
24
  ] });
26
25
  export {
27
- g as FaqTeaserSection
26
+ x as FaqTeaserSection
28
27
  };
@@ -1,6 +1,4 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
1
  import { ComponentPropsWithRef } from 'react';
3
- import { ElementType } from 'react';
4
2
  import { FC } from 'react';
5
3
  import { ReactNode } from 'react';
6
4
 
@@ -43,7 +41,7 @@ export interface FaqTeaserSectionProps {
43
41
  id: string;
44
42
  content: ReactNode;
45
43
  }[];
46
- cta: LinkProps;
44
+ ctaNode: ReactNode;
47
45
  bgImage: ReactNode;
48
46
  }
49
47
 
@@ -106,15 +104,6 @@ export interface LawGeniusSectionProps {
106
104
  image: ReactNode;
107
105
  }
108
106
 
109
- export interface LinkProps extends ComponentPropsWithoutRef<'a'> {
110
- children: ReactNode;
111
- href: string;
112
- asCustom?: ElementType;
113
- size?: ButtonSize;
114
- variant?: ButtonVariant;
115
- iconPosition?: IconPosition;
116
- }
117
-
118
107
  export interface PopularDocumentsProps {
119
108
  header: SectionHeadingProps;
120
109
  moreDocuments?: ItemProps[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.44.18",
3
+ "version": "0.44.20",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -46,10 +46,6 @@
46
46
  "import": "./dist/components/Item.js",
47
47
  "types": "./dist/components/Item.d.ts"
48
48
  },
49
- "./components/Link": {
50
- "import": "./dist/components/Link.js",
51
- "types": "./dist/components/Link.d.ts"
52
- },
53
49
  "./components/Markdown": {
54
50
  "import": "./dist/components/Markdown.js",
55
51
  "types": "./dist/components/Markdown.d.ts"
@@ -1,22 +0,0 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- import { ElementType } from 'react';
3
- import { JSX } from 'react/jsx-runtime';
4
- import { ReactNode } from 'react';
5
-
6
- export type ButtonSize = 'small' | 'default' | 'large';
7
-
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';
9
-
10
- export type IconPosition = 'left' | 'right' | 'top';
11
-
12
- export declare const Link: ({ children, href, asCustom, size, variant, iconPosition, className, ...props }: LinkProps) => JSX.Element;
13
-
14
- export declare interface LinkProps extends ComponentPropsWithoutRef<'a'> {
15
- children: ReactNode;
16
- href: string;
17
- asCustom?: ElementType;
18
- size?: ButtonSize;
19
- variant?: ButtonVariant;
20
- iconPosition?: IconPosition;
21
- }
22
-
@@ -1,19 +0,0 @@
1
- import { jsx as c } from "react/jsx-runtime";
2
- import "react";
3
- import { getButtonStyles as i } from "./atoms/Button.utils.js";
4
- const x = ({
5
- children: t,
6
- href: o,
7
- asCustom: e,
8
- size: n = "default",
9
- variant: r = "primary-green",
10
- iconPosition: s = "left",
11
- className: m,
12
- ...p
13
- }) => {
14
- const a = i({ variant: r, size: n, iconPosition: s, className: m });
15
- return /* @__PURE__ */ c(e ?? "a", { href: o, className: a, ...p, children: t });
16
- };
17
- export {
18
- x as Link
19
- };