@npm_leadtech/legal-contracts-ui 0.44.17 → 0.44.18

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,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -20,17 +19,13 @@ export declare interface AboutUsTemplateProps {
20
19
  contactUs: ContactUsSectionProps;
21
20
  }
22
21
 
23
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
24
- as?: C;
22
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
25
23
  children: ReactNode;
26
24
  size?: ButtonSize;
27
25
  variant?: ButtonVariant;
28
26
  iconPosition?: IconPosition;
29
- disabled?: boolean;
30
27
  }
31
28
 
32
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
33
-
34
29
  export type ButtonSize = 'small' | 'default' | 'large';
35
30
 
36
31
  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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -17,17 +16,13 @@ export interface BaseSubtypeDocumentProps {
17
16
  wordDownload: ButtonProps;
18
17
  }
19
18
 
20
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
21
- as?: C;
19
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
22
20
  children: ReactNode;
23
21
  size?: ButtonSize;
24
22
  variant?: ButtonVariant;
25
23
  iconPosition?: IconPosition;
26
- disabled?: boolean;
27
24
  }
28
25
 
29
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
30
-
31
26
  export type ButtonSize = 'small' | 'default' | 'large';
32
27
 
33
28
  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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -16,17 +15,13 @@ export declare interface BlogSectionProps {
16
15
  cta: ButtonProps;
17
16
  }
18
17
 
19
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
20
- as?: C;
18
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
21
19
  children: ReactNode;
22
20
  size?: ButtonSize;
23
21
  variant?: ButtonVariant;
24
22
  iconPosition?: IconPosition;
25
- disabled?: boolean;
26
23
  }
27
24
 
28
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
29
-
30
25
  export type ButtonSize = 'small' | 'default' | 'large';
31
26
 
32
27
  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';
@@ -1,21 +1,16 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { JSX } from 'react/jsx-runtime';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export declare const Button: <C extends ElementType = "button">({ as, children, size, variant, iconPosition, disabled, className, ...props }: ButtonProps<C>) => JSX.Element;
5
+ export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, ...props }: ButtonProps) => JSX.Element;
7
6
 
8
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
9
- as?: C;
7
+ export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
10
8
  children: ReactNode;
11
9
  size?: ButtonSize;
12
10
  variant?: ButtonVariant;
13
11
  iconPosition?: IconPosition;
14
- disabled?: boolean;
15
12
  }
16
13
 
17
- export declare type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
18
-
19
14
  export declare type ButtonSize = 'small' | 'default' | 'large';
20
15
 
21
16
  export declare 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';
@@ -1,129 +1,20 @@
1
- import { jsx as u } from "react/jsx-runtime";
1
+ import { jsx as l } from "react/jsx-runtime";
2
2
  import "react";
3
- const g = {
4
- "primary-green": {
5
- base: "bg-primary-700 text-white border border-transparent font-semibold",
6
- hover: "hover:bg-primary-500",
7
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
8
- },
9
- "primary-darkgreen": {
10
- base: "bg-primary-900 text-white border border-transparent font-semibold",
11
- hover: "hover:bg-primary-800",
12
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
13
- },
14
- "primary-yellow": {
15
- base: "bg-secondary-500 text-neutral-900 border border-transparent font-semibold",
16
- hover: "hover:bg-secondary-400",
17
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
18
- },
19
- "primary-white": {
20
- base: "bg-white text-neutral-900 font-semibold border border-transparent",
21
- hover: "hover:bg-neutral-50",
22
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
23
- },
24
- "secondary-green": {
25
- base: "bg-white text-primary-700 border-2 border-primary-700 font-semibold",
26
- hover: "hover:bg-primary-100 hover:text-primary-800",
27
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
28
- },
29
- "secondary-yellow": {
30
- base: "bg-transparent text-neutral-900 border-2 border-secondary-500 font-semibold",
31
- hover: "hover:bg-secondary-100 hover:border-secondary-600",
32
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
33
- },
34
- "secondary-red": {
35
- base: "bg-transparent text-error-500 border-2 border-error-500 font-semibold",
36
- hover: "hover:bg-error-25",
37
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
38
- },
39
- "secondary-black": {
40
- base: "bg-transparent text-neutral-800 border-2 border-neutral-600 font-semibold",
41
- hover: "hover:bg-neutral-200",
42
- disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
43
- },
44
- "tertiary-bold": {
45
- base: "bg-transparent text-primary-700 font-semibold border border-transparent font-semibold p-1.5!",
46
- hover: "hover:text-primary-500 hover:bg-primary-200",
47
- disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
48
- },
49
- "tertiary-thin": {
50
- base: "bg-transparent text-neutral-800 font-normal border border-transparent p-1.5!",
51
- hover: " hover:bg-primary-100",
52
- disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
53
- },
54
- "tertiary-icon": {
55
- base: "bg-transparent text-neutral-800 font-medium border border-transparent p-1.5!",
56
- hover: "hover:bg-primary-100",
57
- disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
58
- },
59
- "tertiary-link": {
60
- base: "bg-transparent text-primary-700 underline underline-offset-2 border border-transparent",
61
- hover: "",
62
- disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
63
- },
64
- "icon-black": {
65
- base: "bg-black text-white border border-transparent font-semibold",
66
- hover: "hover:bg-neutral-800",
67
- disabled: "disabled:bg-neutral-400 disabled:cursor-not-allowed"
68
- },
69
- "icon-grey": {
70
- base: "bg-transparent text-neutral-800 border-2 border-neutral-600 font-semibold",
71
- hover: "hover:bg-neutral-200",
72
- disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
73
- },
74
- "icon-mobile": {
75
- base: "bg-transparent text-primary-700 border border-neutral-200 border-2 px-8 rounded-sm",
76
- hover: "hover:bg-neutral-50",
77
- disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
78
- }
79
- }, p = {
80
- small: "px-3 py-1.5 text-small",
81
- default: "px-4 py-2.5 text-medium",
82
- large: "px-6 py-3 text-big"
83
- };
84
- function c({
85
- variant: a = "primary-green",
86
- size: d = "default",
87
- iconPosition: r = "left",
88
- disabled: o = !1,
89
- className: l
90
- }) {
91
- const e = g[a], t = r === "top" ? "flex-col" : r === "right" ? "flex-row-reverse" : "flex-row";
92
- return [
93
- "inline-flex items-center justify-center gap-2 rounded-sm font-medium transition-all duration-200",
94
- "focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",
95
- o ? "" : "cursor-pointer",
96
- e.base,
97
- e.hover,
98
- e.disabled,
99
- p[d],
100
- t,
101
- l ?? ""
102
- ].join(" ").trim();
103
- }
104
- const y = ({
105
- as: a,
106
- children: d,
107
- size: r = "default",
108
- variant: o = "primary-green",
109
- iconPosition: l = "left",
110
- disabled: e = !1,
111
- className: b,
112
- ...t
3
+ import { getButtonStyles as p } from "./atoms/Button.utils.js";
4
+ const x = ({
5
+ children: o,
6
+ type: r = "button",
7
+ size: e = "default",
8
+ variant: s = "primary-green",
9
+ iconPosition: n = "left",
10
+ className: a,
11
+ disabled: t = !1,
12
+ ref: m,
13
+ ...u
113
14
  }) => {
114
- const s = a ?? "button", n = s === "button", i = c({ variant: o, size: r, iconPosition: l, disabled: e, className: b });
115
- return /* @__PURE__ */ u(
116
- s,
117
- {
118
- ...t,
119
- ...n ? { type: t.type ?? "button" } : {},
120
- ...n ? { disabled: e } : { "aria-disabled": e },
121
- "aria-disabled": e,
122
- className: i,
123
- children: d
124
- }
125
- );
15
+ const f = p({ variant: s, size: e, iconPosition: n, disabled: t, className: a });
16
+ return /* @__PURE__ */ l("button", { ref: m, type: r, disabled: t, "aria-disabled": t, className: f, ...u, children: o });
126
17
  };
127
18
  export {
128
- y as Button
19
+ x as Button
129
20
  };
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -22,17 +21,13 @@ export interface BreadcrumbProps {
22
21
  className?: string;
23
22
  }
24
23
 
25
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
26
- as?: C;
24
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
27
25
  children: ReactNode;
28
26
  size?: ButtonSize;
29
27
  variant?: ButtonVariant;
30
28
  iconPosition?: IconPosition;
31
- disabled?: boolean;
32
29
  }
33
30
 
34
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
35
-
36
31
  export type ButtonSize = 'small' | 'default' | 'large';
37
32
 
38
33
  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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -15,17 +14,13 @@ export interface BaseSubtypeDocumentProps {
15
14
  wordDownload: ButtonProps;
16
15
  }
17
16
 
18
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
19
- as?: C;
17
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
20
18
  children: ReactNode;
21
19
  size?: ButtonSize;
22
20
  variant?: ButtonVariant;
23
21
  iconPosition?: IconPosition;
24
- disabled?: boolean;
25
22
  }
26
23
 
27
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
28
-
29
24
  export type ButtonSize = 'small' | 'default' | 'large';
30
25
 
31
26
  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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -15,17 +14,13 @@ export declare interface BaseSubtypeDocumentProps {
15
14
  wordDownload: ButtonProps;
16
15
  }
17
16
 
18
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
19
- as?: C;
17
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
20
18
  children: ReactNode;
21
19
  size?: ButtonSize;
22
20
  variant?: ButtonVariant;
23
21
  iconPosition?: IconPosition;
24
- disabled?: boolean;
25
22
  }
26
23
 
27
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
28
-
29
24
  export type ButtonSize = 'small' | 'default' | 'large';
30
25
 
31
26
  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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,8 @@
1
- import { ComponentPropsWithRef } from 'react';
1
+ import { ComponentPropsWithoutRef } from 'react';
2
2
  import { ElementType } from 'react';
3
3
  import { FC } from 'react';
4
4
  import { ReactNode } from 'react';
5
5
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
8
- children: ReactNode;
9
- size?: ButtonSize;
10
- variant?: ButtonVariant;
11
- iconPosition?: IconPosition;
12
- disabled?: boolean;
13
- }
14
-
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
6
  export type ButtonSize = 'small' | 'default' | 'large';
18
7
 
19
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';
@@ -26,12 +15,21 @@ export declare interface FaqTeaserSectionProps {
26
15
  id: string;
27
16
  content: ReactNode;
28
17
  }[];
29
- cta: ButtonProps;
18
+ cta: LinkProps;
30
19
  bgImage: ReactNode;
31
20
  }
32
21
 
33
22
  export type IconPosition = 'left' | 'right' | 'top';
34
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
+
35
33
  export interface SectionHeadingProps {
36
34
  title: string;
37
35
  description?: string;
@@ -1,14 +1,14 @@
1
- import { jsxs as l, jsx as e } from "react/jsx-runtime";
1
+ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- import { SectionHeading as n } from "./SectionHeading.js";
3
+ import { Link as n } from "./Link.js";
4
+ import { SectionHeading as c } from "./SectionHeading.js";
4
5
  import { ChevronRightIcon as d } from "./ChevronRightIcon.js";
5
- import { Button as s } from "./Button.js";
6
- const g = ({ header: o, questions: r, cta: t, bgImage: a }) => 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
+ 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
7
  /* @__PURE__ */ e("div", { className: "pointer-events-none absolute -bottom-17 -left-16 hidden xl:block", children: a }),
8
- /* @__PURE__ */ l("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(n, { className: "xl:max-w-120", align: "start", ...o }),
10
- /* @__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: [
11
- /* @__PURE__ */ e("ul", { className: "flex flex-col gap-6", children: r.map((i) => /* @__PURE__ */ l(
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(
12
12
  "li",
13
13
  {
14
14
  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,7 +19,7 @@ const g = ({ header: o, questions: r, cta: t, bgImage: a }) => r.length === 0 ?
19
19
  },
20
20
  i.id
21
21
  )) }),
22
- /* @__PURE__ */ e(s, { className: "w-fit", size: "default", variant: "primary-yellow", ...t })
22
+ /* @__PURE__ */ e(n, { className: "w-fit", variant: "primary-yellow", ...t })
23
23
  ] })
24
24
  ] })
25
25
  ] });
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,3 +1,4 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
1
2
  import { ComponentPropsWithRef } from 'react';
2
3
  import { ElementType } from 'react';
3
4
  import { FC } from 'react';
@@ -14,17 +15,13 @@ export interface BlogSectionProps {
14
15
  cta: ButtonProps;
15
16
  }
16
17
 
17
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
18
- as?: C;
18
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
19
19
  children: ReactNode;
20
20
  size?: ButtonSize;
21
21
  variant?: ButtonVariant;
22
22
  iconPosition?: IconPosition;
23
- disabled?: boolean;
24
23
  }
25
24
 
26
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
27
-
28
25
  export type ButtonSize = 'small' | 'default' | 'large';
29
26
 
30
27
  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';
@@ -46,7 +43,7 @@ export interface FaqTeaserSectionProps {
46
43
  id: string;
47
44
  content: ReactNode;
48
45
  }[];
49
- cta: ButtonProps;
46
+ cta: LinkProps;
50
47
  bgImage: ReactNode;
51
48
  }
52
49
 
@@ -109,6 +106,15 @@ export interface LawGeniusSectionProps {
109
106
  image: ReactNode;
110
107
  }
111
108
 
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
+
112
118
  export interface PopularDocumentsProps {
113
119
  header: SectionHeadingProps;
114
120
  moreDocuments?: ItemProps[];
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -0,0 +1,22 @@
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
+
@@ -0,0 +1,19 @@
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
+ };
@@ -1,20 +1,15 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import * as React_2 from 'react';
5
4
  import { ReactNode } from 'react';
6
5
 
7
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
8
- as?: C;
6
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
9
7
  children: ReactNode;
10
8
  size?: ButtonSize;
11
9
  variant?: ButtonVariant;
12
10
  iconPosition?: IconPosition;
13
- disabled?: boolean;
14
11
  }
15
12
 
16
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
17
-
18
13
  export type ButtonSize = 'small' | 'default' | 'large';
19
14
 
20
15
  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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -32,7 +27,7 @@ export declare interface PreformProps {
32
27
  trustedBadge: TrustedBadgeProps;
33
28
  title?: string;
34
29
  options: PreformOptionProps[];
35
- cta: ButtonProps<ElementType>;
30
+ cta: ButtonProps;
36
31
  }
37
32
 
38
33
  export interface TrustedBadgeProps {
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,5 +1,4 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
@@ -30,17 +29,13 @@ export interface BreadcrumbProps {
30
29
  className?: string;
31
30
  }
32
31
 
33
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
34
- as?: C;
32
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
35
33
  children: ReactNode;
36
34
  size?: ButtonSize;
37
35
  variant?: ButtonVariant;
38
36
  iconPosition?: IconPosition;
39
- disabled?: boolean;
40
37
  }
41
38
 
42
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
43
-
44
39
  export type ButtonSize = 'small' | 'default' | 'large';
45
40
 
46
41
  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';
@@ -107,7 +102,7 @@ export interface PreformProps {
107
102
  trustedBadge: TrustedBadgeProps;
108
103
  title?: string;
109
104
  options: PreformOptionProps[];
110
- cta: ButtonProps<ElementType>;
105
+ cta: ButtonProps;
111
106
  }
112
107
 
113
108
  export interface PreviewDownloadProps {
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -1,19 +1,14 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
- import { ElementType } from 'react';
3
2
  import { FC } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
- export interface ButtonOwnProps<C extends ElementType = 'button'> {
7
- as?: C;
5
+ export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
8
6
  children: ReactNode;
9
7
  size?: ButtonSize;
10
8
  variant?: ButtonVariant;
11
9
  iconPosition?: IconPosition;
12
- disabled?: boolean;
13
10
  }
14
11
 
15
- export type ButtonProps<C extends ElementType = 'button'> = ButtonOwnProps<C> & Omit<ComponentPropsWithRef<C>, keyof ButtonOwnProps<C>>;
16
-
17
12
  export type ButtonSize = 'small' | 'default' | 'large';
18
13
 
19
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';
@@ -0,0 +1,105 @@
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ const b = {
4
+ "primary-green": {
5
+ base: "bg-primary-700 text-white border border-transparent font-semibold",
6
+ hover: "hover:bg-primary-500",
7
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
8
+ },
9
+ "primary-darkgreen": {
10
+ base: "bg-primary-900 text-white border border-transparent font-semibold",
11
+ hover: "hover:bg-primary-800",
12
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
13
+ },
14
+ "primary-yellow": {
15
+ base: "bg-secondary-500 text-neutral-900 border border-transparent font-semibold",
16
+ hover: "hover:bg-secondary-400",
17
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
18
+ },
19
+ "primary-white": {
20
+ base: "bg-white text-neutral-900 font-semibold border border-transparent",
21
+ hover: "hover:bg-neutral-50",
22
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:cursor-not-allowed"
23
+ },
24
+ "secondary-green": {
25
+ base: "bg-white text-primary-700 border-2 border-primary-700 font-semibold",
26
+ hover: "hover:bg-primary-100 hover:text-primary-800",
27
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
28
+ },
29
+ "secondary-yellow": {
30
+ base: "bg-transparent text-neutral-900 border-2 border-secondary-500 font-semibold",
31
+ hover: "hover:bg-secondary-100 hover:border-secondary-600",
32
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
33
+ },
34
+ "secondary-red": {
35
+ base: "bg-transparent text-error-500 border-2 border-error-500 font-semibold",
36
+ hover: "hover:bg-error-25",
37
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
38
+ },
39
+ "secondary-black": {
40
+ base: "bg-transparent text-neutral-800 border-2 border-neutral-600 font-semibold",
41
+ hover: "hover:bg-neutral-200",
42
+ disabled: "disabled:bg-neutral-200 disabled:text-neutral-400 disabled:border-neutral-200 disabled:cursor-not-allowed"
43
+ },
44
+ "tertiary-bold": {
45
+ base: "bg-transparent text-primary-700 font-semibold border border-transparent font-semibold p-1.5!",
46
+ hover: "hover:text-primary-500 hover:bg-primary-200",
47
+ disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
48
+ },
49
+ "tertiary-thin": {
50
+ base: "bg-transparent text-neutral-800 font-normal border border-transparent p-1.5!",
51
+ hover: " hover:bg-primary-100",
52
+ disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
53
+ },
54
+ "tertiary-icon": {
55
+ base: "bg-transparent text-neutral-800 font-medium border border-transparent p-1.5!",
56
+ hover: "hover:bg-primary-100",
57
+ disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
58
+ },
59
+ "tertiary-link": {
60
+ base: "bg-transparent text-primary-700 underline underline-offset-2 border border-transparent",
61
+ hover: "",
62
+ disabled: "disabled:text-neutral-400 disabled:cursor-not-allowed disabled:bg-white"
63
+ },
64
+ "icon-black": {
65
+ base: "bg-black text-white border border-transparent font-semibold",
66
+ hover: "hover:bg-neutral-800",
67
+ disabled: "disabled:bg-neutral-400 disabled:cursor-not-allowed"
68
+ },
69
+ "icon-grey": {
70
+ base: "bg-transparent text-neutral-800 border-2 border-neutral-600 font-semibold",
71
+ hover: "hover:bg-neutral-200",
72
+ disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
73
+ },
74
+ "icon-mobile": {
75
+ base: "bg-transparent text-primary-700 border border-neutral-200 border-2 px-8 rounded-sm",
76
+ hover: "hover:bg-neutral-50",
77
+ disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
78
+ }
79
+ }, s = {
80
+ small: "px-3 py-1.5 text-small",
81
+ default: "px-4 py-2.5 text-medium",
82
+ large: "px-6 py-3 text-big"
83
+ }, u = ({
84
+ variant: t,
85
+ size: a,
86
+ iconPosition: r,
87
+ disabled: d = !1,
88
+ className: o = ""
89
+ }) => {
90
+ const e = b[t], l = () => r === "top" ? "flex-col" : r === "right" ? "flex-row-reverse" : "flex-row";
91
+ return [
92
+ "inline-flex items-center justify-center gap-2 rounded-sm font-medium transition-all duration-200",
93
+ "focus:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2",
94
+ d ? "" : "cursor-pointer",
95
+ e.base,
96
+ e.hover,
97
+ e.disabled,
98
+ s[a],
99
+ l(),
100
+ o
101
+ ].filter(Boolean).join(" ");
102
+ };
103
+ export {
104
+ u as getButtonStyles
105
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.44.17",
3
+ "version": "0.44.18",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,6 +22,10 @@
22
22
  "import": "./dist/components/Button.js",
23
23
  "types": "./dist/components/Button.d.ts"
24
24
  },
25
+ "./components/Button.utils.ts": {
26
+ "import": "./dist/components/Button.utils.ts.js",
27
+ "types": "./dist/components/Button.utils.ts.d.ts"
28
+ },
25
29
  "./components/Card": {
26
30
  "import": "./dist/components/Card.js",
27
31
  "types": "./dist/components/Card.d.ts"
@@ -42,6 +46,10 @@
42
46
  "import": "./dist/components/Item.js",
43
47
  "types": "./dist/components/Item.d.ts"
44
48
  },
49
+ "./components/Link": {
50
+ "import": "./dist/components/Link.js",
51
+ "types": "./dist/components/Link.d.ts"
52
+ },
45
53
  "./components/Markdown": {
46
54
  "import": "./dist/components/Markdown.js",
47
55
  "types": "./dist/components/Markdown.d.ts"