@npm_leadtech/legal-contracts-ui 0.48.8 → 0.48.10
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.
- package/dist/components/AboutUsTemplate.d.ts +9 -1
- package/dist/components/AllDocumentsTemplate.d.ts +9 -1
- package/dist/components/AlternativeSubtypeDocument.d.ts +9 -1
- package/dist/components/BlogSection.d.ts +9 -1
- package/dist/components/Button.d.ts +9 -1
- package/dist/components/Button.utils.d.ts +9 -1
- package/dist/components/Button.utils.js +93 -88
- package/dist/components/CategoriesSection.d.ts +9 -1
- package/dist/components/CategoryProductTemplate.d.ts +9 -1
- package/dist/components/ContentItem.d.ts +9 -1
- package/dist/components/CtaSection.d.ts +9 -1
- package/dist/components/DefaultSubtypeDocument.d.ts +9 -1
- package/dist/components/DocsModules.d.ts +9 -1
- package/dist/components/FaqTeaserSection.d.ts +9 -1
- package/dist/components/GuidelinesSection.d.ts +9 -1
- package/dist/components/Header.js +26 -24
- package/dist/components/HeroSection.d.ts +9 -1
- package/dist/components/HomeTemplate.d.ts +9 -1
- package/dist/components/IntroSection.d.ts +9 -1
- package/dist/components/NotFoundTemplate.d.ts +9 -1
- package/dist/components/Preform.d.ts +9 -1
- package/dist/components/PreviewSection.d.ts +9 -1
- package/dist/components/ProductTemplate.d.ts +9 -1
- package/dist/components/RatafiaSection.d.ts +9 -1
- package/dist/components/SearchBar.js +20 -21
- package/dist/components/TrustSection.d.ts +9 -1
- package/dist/components/TryNowSection.d.ts +9 -1
- package/dist/components/WeHelpSection.d.ts +9 -1
- package/dist/components/index.d.ts +828 -0
- package/dist/globals.css +1 -1
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ export declare interface AboutUsTemplateProps {
|
|
|
22
22
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
23
23
|
children: ReactNode;
|
|
24
24
|
size?: ButtonSize;
|
|
25
|
-
variant?:
|
|
25
|
+
variant?: ResponsiveButtonVariant;
|
|
26
26
|
iconPosition?: IconPosition;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -101,6 +101,14 @@ export interface PartnersSectionProps {
|
|
|
101
101
|
}>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
105
|
+
initial?: ButtonVariant;
|
|
106
|
+
sm?: ButtonVariant;
|
|
107
|
+
md?: ButtonVariant;
|
|
108
|
+
lg?: ButtonVariant;
|
|
109
|
+
xl?: ButtonVariant;
|
|
110
|
+
};
|
|
111
|
+
|
|
104
112
|
export interface SectionHeadingProps {
|
|
105
113
|
title: string;
|
|
106
114
|
description?: string;
|
|
@@ -36,7 +36,7 @@ export interface BreadcrumbProps {
|
|
|
36
36
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
37
37
|
children: ReactNode;
|
|
38
38
|
size?: ButtonSize;
|
|
39
|
-
variant?:
|
|
39
|
+
variant?: ResponsiveButtonVariant;
|
|
40
40
|
iconPosition?: IconPosition;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -125,5 +125,13 @@ export interface LinkedProductProps {
|
|
|
125
125
|
children: ReactNode;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
129
|
+
initial?: ButtonVariant;
|
|
130
|
+
sm?: ButtonVariant;
|
|
131
|
+
md?: ButtonVariant;
|
|
132
|
+
lg?: ButtonVariant;
|
|
133
|
+
xl?: ButtonVariant;
|
|
134
|
+
};
|
|
135
|
+
|
|
128
136
|
export type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
|
|
129
137
|
|
|
@@ -19,7 +19,7 @@ export interface BaseSubtypeDocumentProps {
|
|
|
19
19
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
size?: ButtonSize;
|
|
22
|
-
variant?:
|
|
22
|
+
variant?: ResponsiveButtonVariant;
|
|
23
23
|
iconPosition?: IconPosition;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -28,4 +28,12 @@ export type ButtonSize = 'small' | 'default' | 'large';
|
|
|
28
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';
|
|
29
29
|
|
|
30
30
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
31
|
+
|
|
32
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
33
|
+
initial?: ButtonVariant;
|
|
34
|
+
sm?: ButtonVariant;
|
|
35
|
+
md?: ButtonVariant;
|
|
36
|
+
lg?: ButtonVariant;
|
|
37
|
+
xl?: ButtonVariant;
|
|
38
|
+
};
|
|
31
39
|
|
|
@@ -18,7 +18,7 @@ export declare interface BlogSectionProps {
|
|
|
18
18
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
19
19
|
children: ReactNode;
|
|
20
20
|
size?: ButtonSize;
|
|
21
|
-
variant?:
|
|
21
|
+
variant?: ResponsiveButtonVariant;
|
|
22
22
|
iconPosition?: IconPosition;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -28,6 +28,14 @@ export type ButtonVariant = 'primary-green' | 'primary-darkgreen' | 'primary-yel
|
|
|
28
28
|
|
|
29
29
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
30
30
|
|
|
31
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
32
|
+
initial?: ButtonVariant;
|
|
33
|
+
sm?: ButtonVariant;
|
|
34
|
+
md?: ButtonVariant;
|
|
35
|
+
lg?: ButtonVariant;
|
|
36
|
+
xl?: ButtonVariant;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
export interface SectionHeadingProps {
|
|
32
40
|
title: string;
|
|
33
41
|
description?: string;
|
|
@@ -7,7 +7,7 @@ export declare const Button: ({ children, type, size, variant, iconPosition, cla
|
|
|
7
7
|
export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
8
8
|
children: ReactNode;
|
|
9
9
|
size?: ButtonSize;
|
|
10
|
-
variant?:
|
|
10
|
+
variant?: ResponsiveButtonVariant;
|
|
11
11
|
iconPosition?: IconPosition;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -16,4 +16,12 @@ export type ButtonSize = 'small' | 'default' | 'large';
|
|
|
16
16
|
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';
|
|
17
17
|
|
|
18
18
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
19
|
+
|
|
20
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
21
|
+
initial?: ButtonVariant;
|
|
22
|
+
sm?: ButtonVariant;
|
|
23
|
+
md?: ButtonVariant;
|
|
24
|
+
lg?: ButtonVariant;
|
|
25
|
+
xl?: ButtonVariant;
|
|
26
|
+
};
|
|
19
27
|
|
|
@@ -2,7 +2,15 @@ export declare type ButtonSize = 'small' | 'default' | 'large';
|
|
|
2
2
|
|
|
3
3
|
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';
|
|
4
4
|
|
|
5
|
-
export declare const getButtonClasses: (size?: ButtonSize, variant?:
|
|
5
|
+
export declare const getButtonClasses: (size?: ButtonSize, variant?: ResponsiveButtonVariant, iconPosition?: IconPosition, disabled?: boolean, className?: string) => string;
|
|
6
6
|
|
|
7
7
|
export declare type IconPosition = 'left' | 'right' | 'top';
|
|
8
|
+
|
|
9
|
+
export declare type ResponsiveButtonVariant = ButtonVariant | {
|
|
10
|
+
initial?: ButtonVariant;
|
|
11
|
+
sm?: ButtonVariant;
|
|
12
|
+
md?: ButtonVariant;
|
|
13
|
+
lg?: ButtonVariant;
|
|
14
|
+
xl?: ButtonVariant;
|
|
15
|
+
};
|
|
8
16
|
|
|
@@ -1,97 +1,102 @@
|
|
|
1
|
-
const
|
|
2
|
-
"primary-green":
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"secondary-green":
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"tertiary-bold":
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"icon-black":
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
disabled: "disabled:bg-neutral-400 disabled:cursor-not-allowed"
|
|
66
|
-
},
|
|
67
|
-
"icon-grey": {
|
|
68
|
-
base: "bg-transparent text-neutral-800 border-2 border-neutral-600 font-semibold",
|
|
69
|
-
hover: "hover:bg-neutral-200",
|
|
70
|
-
disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
|
|
71
|
-
},
|
|
72
|
-
"icon-mobile": {
|
|
73
|
-
base: "bg-transparent text-primary-700 border border-neutral-200 border-2 px-8 rounded-sm",
|
|
74
|
-
hover: "hover:bg-neutral-50",
|
|
75
|
-
disabled: "disabled:text-neutral-400 disabled:border-neutral-400 disabled:bg-white disabled:cursor-not-allowed"
|
|
76
|
-
}
|
|
1
|
+
const t = {
|
|
2
|
+
"primary-green": "btn-primary-green",
|
|
3
|
+
"primary-darkgreen": "btn-primary-darkgreen",
|
|
4
|
+
"primary-yellow": "btn-primary-yellow",
|
|
5
|
+
"primary-white": "btn-primary-white",
|
|
6
|
+
"secondary-green": "btn-secondary-green",
|
|
7
|
+
"secondary-yellow": "btn-secondary-yellow",
|
|
8
|
+
"secondary-red": "btn-secondary-red",
|
|
9
|
+
"secondary-black": "btn-secondary-black",
|
|
10
|
+
"tertiary-bold": "btn-tertiary-bold",
|
|
11
|
+
"tertiary-thin": "btn-tertiary-thin",
|
|
12
|
+
"tertiary-icon": "btn-tertiary-icon",
|
|
13
|
+
"tertiary-link": "btn-tertiary-link",
|
|
14
|
+
"icon-black": "btn-icon-black",
|
|
15
|
+
"icon-grey": "btn-icon-grey",
|
|
16
|
+
"icon-mobile": "btn-icon-mobile"
|
|
17
|
+
}, o = {
|
|
18
|
+
"primary-green": "sm:btn-primary-green",
|
|
19
|
+
"primary-darkgreen": "sm:btn-primary-darkgreen",
|
|
20
|
+
"primary-yellow": "sm:btn-primary-yellow",
|
|
21
|
+
"primary-white": "sm:btn-primary-white",
|
|
22
|
+
"secondary-green": "sm:btn-secondary-green",
|
|
23
|
+
"secondary-yellow": "sm:btn-secondary-yellow",
|
|
24
|
+
"secondary-red": "sm:btn-secondary-red",
|
|
25
|
+
"secondary-black": "sm:btn-secondary-black",
|
|
26
|
+
"tertiary-bold": "sm:btn-tertiary-bold",
|
|
27
|
+
"tertiary-thin": "sm:btn-tertiary-thin",
|
|
28
|
+
"tertiary-icon": "sm:btn-tertiary-icon",
|
|
29
|
+
"tertiary-link": "sm:btn-tertiary-link",
|
|
30
|
+
"icon-black": "sm:btn-icon-black",
|
|
31
|
+
"icon-grey": "sm:btn-icon-grey",
|
|
32
|
+
"icon-mobile": "sm:btn-icon-mobile"
|
|
33
|
+
}, b = {
|
|
34
|
+
"primary-green": "md:btn-primary-green",
|
|
35
|
+
"primary-darkgreen": "md:btn-primary-darkgreen",
|
|
36
|
+
"primary-yellow": "md:btn-primary-yellow",
|
|
37
|
+
"primary-white": "md:btn-primary-white",
|
|
38
|
+
"secondary-green": "md:btn-secondary-green",
|
|
39
|
+
"secondary-yellow": "md:btn-secondary-yellow",
|
|
40
|
+
"secondary-red": "md:btn-secondary-red",
|
|
41
|
+
"secondary-black": "md:btn-secondary-black",
|
|
42
|
+
"tertiary-bold": "md:btn-tertiary-bold",
|
|
43
|
+
"tertiary-thin": "md:btn-tertiary-thin",
|
|
44
|
+
"tertiary-icon": "md:btn-tertiary-icon",
|
|
45
|
+
"tertiary-link": "md:btn-tertiary-link",
|
|
46
|
+
"icon-black": "md:btn-icon-black",
|
|
47
|
+
"icon-grey": "md:btn-icon-grey",
|
|
48
|
+
"icon-mobile": "md:btn-icon-mobile"
|
|
49
|
+
}, c = {
|
|
50
|
+
"primary-green": "lg:btn-primary-green",
|
|
51
|
+
"primary-darkgreen": "lg:btn-primary-darkgreen",
|
|
52
|
+
"primary-yellow": "lg:btn-primary-yellow",
|
|
53
|
+
"primary-white": "lg:btn-primary-white",
|
|
54
|
+
"secondary-green": "lg:btn-secondary-green",
|
|
55
|
+
"secondary-yellow": "lg:btn-secondary-yellow",
|
|
56
|
+
"secondary-red": "lg:btn-secondary-red",
|
|
57
|
+
"secondary-black": "lg:btn-secondary-black",
|
|
58
|
+
"tertiary-bold": "lg:btn-tertiary-bold",
|
|
59
|
+
"tertiary-thin": "lg:btn-tertiary-thin",
|
|
60
|
+
"tertiary-icon": "lg:btn-tertiary-icon",
|
|
61
|
+
"tertiary-link": "lg:btn-tertiary-link",
|
|
62
|
+
"icon-black": "lg:btn-icon-black",
|
|
63
|
+
"icon-grey": "lg:btn-icon-grey",
|
|
64
|
+
"icon-mobile": "lg:btn-icon-mobile"
|
|
77
65
|
}, s = {
|
|
66
|
+
"primary-green": "xl:btn-primary-green",
|
|
67
|
+
"primary-darkgreen": "xl:btn-primary-darkgreen",
|
|
68
|
+
"primary-yellow": "xl:btn-primary-yellow",
|
|
69
|
+
"primary-white": "xl:btn-primary-white",
|
|
70
|
+
"secondary-green": "xl:btn-secondary-green",
|
|
71
|
+
"secondary-yellow": "xl:btn-secondary-yellow",
|
|
72
|
+
"secondary-red": "xl:btn-secondary-red",
|
|
73
|
+
"secondary-black": "xl:btn-secondary-black",
|
|
74
|
+
"tertiary-bold": "xl:btn-tertiary-bold",
|
|
75
|
+
"tertiary-thin": "xl:btn-tertiary-thin",
|
|
76
|
+
"tertiary-icon": "xl:btn-tertiary-icon",
|
|
77
|
+
"tertiary-link": "xl:btn-tertiary-link",
|
|
78
|
+
"icon-black": "xl:btn-icon-black",
|
|
79
|
+
"icon-grey": "xl:btn-icon-grey",
|
|
80
|
+
"icon-mobile": "xl:btn-icon-mobile"
|
|
81
|
+
}, d = {
|
|
78
82
|
small: "px-3 py-1.5 text-small",
|
|
79
83
|
default: "px-4 py-2.5 text-medium",
|
|
80
84
|
large: "px-6 py-3 text-big"
|
|
81
|
-
},
|
|
82
|
-
const
|
|
85
|
+
}, p = (i = "default", r = "primary-green", n = "left", y = !1, a) => {
|
|
86
|
+
const l = () => n === "top" ? "flex-col" : n === "right" ? "flex-row-reverse" : "flex-row";
|
|
83
87
|
return [
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
l
|
|
88
|
+
y ? "" : "cursor-pointer",
|
|
89
|
+
(() => {
|
|
90
|
+
if (typeof r == "string")
|
|
91
|
+
return t[r];
|
|
92
|
+
const e = [];
|
|
93
|
+
return r.initial && e.push(t[r.initial]), r.sm && e.push(o[r.sm]), r.md && e.push(b[r.md]), r.lg && e.push(c[r.lg]), r.xl && e.push(s[r.xl]), e.join(" ");
|
|
94
|
+
})(),
|
|
95
|
+
d[i],
|
|
96
|
+
l(),
|
|
97
|
+
a
|
|
93
98
|
].join(" ");
|
|
94
99
|
};
|
|
95
100
|
export {
|
|
96
|
-
|
|
101
|
+
p as getButtonClasses
|
|
97
102
|
};
|
|
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
size?: ButtonSize;
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: ResponsiveButtonVariant;
|
|
9
9
|
iconPosition?: IconPosition;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -28,6 +28,14 @@ export declare interface CategoriesSectionProps {
|
|
|
28
28
|
|
|
29
29
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
30
30
|
|
|
31
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
32
|
+
initial?: ButtonVariant;
|
|
33
|
+
sm?: ButtonVariant;
|
|
34
|
+
md?: ButtonVariant;
|
|
35
|
+
lg?: ButtonVariant;
|
|
36
|
+
xl?: ButtonVariant;
|
|
37
|
+
};
|
|
38
|
+
|
|
31
39
|
export interface SectionHeadingProps {
|
|
32
40
|
title: string;
|
|
33
41
|
description?: string;
|
|
@@ -36,7 +36,7 @@ export interface BreadcrumbProps {
|
|
|
36
36
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
37
37
|
children: ReactNode;
|
|
38
38
|
size?: ButtonSize;
|
|
39
|
-
variant?:
|
|
39
|
+
variant?: ResponsiveButtonVariant;
|
|
40
40
|
iconPosition?: IconPosition;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -137,6 +137,14 @@ export interface LinkedProductProps {
|
|
|
137
137
|
children: ReactNode;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
141
|
+
initial?: ButtonVariant;
|
|
142
|
+
sm?: ButtonVariant;
|
|
143
|
+
md?: ButtonVariant;
|
|
144
|
+
lg?: ButtonVariant;
|
|
145
|
+
xl?: ButtonVariant;
|
|
146
|
+
};
|
|
147
|
+
|
|
140
148
|
export interface SectionHeadingProps {
|
|
141
149
|
title: string;
|
|
142
150
|
description?: string;
|
|
@@ -17,7 +17,7 @@ export interface BaseSubtypeDocumentProps {
|
|
|
17
17
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
size?: ButtonSize;
|
|
20
|
-
variant?:
|
|
20
|
+
variant?: ResponsiveButtonVariant;
|
|
21
21
|
iconPosition?: IconPosition;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -61,5 +61,13 @@ export interface LinkedProductProps {
|
|
|
61
61
|
children: ReactNode;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
65
|
+
initial?: ButtonVariant;
|
|
66
|
+
sm?: ButtonVariant;
|
|
67
|
+
md?: ButtonVariant;
|
|
68
|
+
lg?: ButtonVariant;
|
|
69
|
+
xl?: ButtonVariant;
|
|
70
|
+
};
|
|
71
|
+
|
|
64
72
|
export type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
|
|
65
73
|
|
|
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
size?: ButtonSize;
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: ResponsiveButtonVariant;
|
|
9
9
|
iconPosition?: IconPosition;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -22,4 +22,12 @@ export declare interface CtaSectionProps {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
25
|
+
|
|
26
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
27
|
+
initial?: ButtonVariant;
|
|
28
|
+
sm?: ButtonVariant;
|
|
29
|
+
md?: ButtonVariant;
|
|
30
|
+
lg?: ButtonVariant;
|
|
31
|
+
xl?: ButtonVariant;
|
|
32
|
+
};
|
|
25
33
|
|
|
@@ -17,7 +17,7 @@ export declare interface BaseSubtypeDocumentProps {
|
|
|
17
17
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
size?: ButtonSize;
|
|
20
|
-
variant?:
|
|
20
|
+
variant?: ResponsiveButtonVariant;
|
|
21
21
|
iconPosition?: IconPosition;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -35,5 +35,13 @@ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocument
|
|
|
35
35
|
|
|
36
36
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
37
37
|
|
|
38
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
39
|
+
initial?: ButtonVariant;
|
|
40
|
+
sm?: ButtonVariant;
|
|
41
|
+
md?: ButtonVariant;
|
|
42
|
+
lg?: ButtonVariant;
|
|
43
|
+
xl?: ButtonVariant;
|
|
44
|
+
};
|
|
45
|
+
|
|
38
46
|
export declare type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
|
|
39
47
|
|
|
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
size?: ButtonSize;
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: ResponsiveButtonVariant;
|
|
9
9
|
iconPosition?: IconPosition;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -21,4 +21,12 @@ export declare interface DocsModuleProps {
|
|
|
21
21
|
export declare const DocsModules: FC<DocsModuleProps>;
|
|
22
22
|
|
|
23
23
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
24
|
+
|
|
25
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
26
|
+
initial?: ButtonVariant;
|
|
27
|
+
sm?: ButtonVariant;
|
|
28
|
+
md?: ButtonVariant;
|
|
29
|
+
lg?: ButtonVariant;
|
|
30
|
+
xl?: ButtonVariant;
|
|
31
|
+
};
|
|
24
32
|
|
|
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
size?: ButtonSize;
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: ResponsiveButtonVariant;
|
|
9
9
|
iconPosition?: IconPosition;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -27,6 +27,14 @@ export declare interface FaqTeaserSectionProps {
|
|
|
27
27
|
|
|
28
28
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
29
29
|
|
|
30
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
31
|
+
initial?: ButtonVariant;
|
|
32
|
+
sm?: ButtonVariant;
|
|
33
|
+
md?: ButtonVariant;
|
|
34
|
+
lg?: ButtonVariant;
|
|
35
|
+
xl?: ButtonVariant;
|
|
36
|
+
};
|
|
37
|
+
|
|
30
38
|
export interface SectionHeadingProps {
|
|
31
39
|
title: string;
|
|
32
40
|
description?: string;
|
|
@@ -5,7 +5,7 @@ import { ReactNode } from 'react';
|
|
|
5
5
|
export interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
size?: ButtonSize;
|
|
8
|
-
variant?:
|
|
8
|
+
variant?: ResponsiveButtonVariant;
|
|
9
9
|
iconPosition?: IconPosition;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -32,6 +32,14 @@ export declare interface GuidelinesSectionProps {
|
|
|
32
32
|
|
|
33
33
|
export type IconPosition = 'left' | 'right' | 'top';
|
|
34
34
|
|
|
35
|
+
export type ResponsiveButtonVariant = ButtonVariant | {
|
|
36
|
+
initial?: ButtonVariant;
|
|
37
|
+
sm?: ButtonVariant;
|
|
38
|
+
md?: ButtonVariant;
|
|
39
|
+
lg?: ButtonVariant;
|
|
40
|
+
xl?: ButtonVariant;
|
|
41
|
+
};
|
|
42
|
+
|
|
35
43
|
export interface SectionHeadingProps {
|
|
36
44
|
title: string;
|
|
37
45
|
description?: string;
|
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
import { jsxs as l, Fragment as N, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { NavMenu as b } from "./NavMenu.js";
|
|
4
|
-
import { SearchBar as
|
|
5
|
-
import { LanguageSelector as
|
|
6
|
-
import { HamburgerIcon as
|
|
4
|
+
import { SearchBar as x } from "./SearchBar.js";
|
|
5
|
+
import { LanguageSelector as v } from "./LanguageSelector.js";
|
|
6
|
+
import { HamburgerIcon as y } from "./HamburgerIcon.js";
|
|
7
7
|
import { PhoneTalkIcon as g } from "./PhoneTalkIcon.js";
|
|
8
8
|
import { CloseIcon as j } from "./CloseIcon.js";
|
|
9
9
|
const S = ({
|
|
10
10
|
logo: i,
|
|
11
|
-
navMenu:
|
|
12
|
-
seeAll:
|
|
11
|
+
navMenu: p,
|
|
12
|
+
seeAll: f,
|
|
13
13
|
searchBarProps: c,
|
|
14
14
|
languageSelectorProps: s,
|
|
15
15
|
userActions: n,
|
|
16
|
-
isMobileMenuOpen:
|
|
17
|
-
onOpenMobileMenu:
|
|
18
|
-
onCloseMobileMenu:
|
|
19
|
-
mobileMenuSections:
|
|
16
|
+
isMobileMenuOpen: d,
|
|
17
|
+
onOpenMobileMenu: h,
|
|
18
|
+
onCloseMobileMenu: m,
|
|
19
|
+
mobileMenuSections: o = [],
|
|
20
20
|
mobileContactInfo: a
|
|
21
21
|
}) => /* @__PURE__ */ l(N, { children: [
|
|
22
22
|
/* @__PURE__ */ e("header", { className: "bg-primary-50", children: /* @__PURE__ */ l("div", { className: "flex w-full items-center justify-between px-4 py-4 text-neutral-800 md:px-8", children: [
|
|
23
23
|
/* @__PURE__ */ l("div", { className: "flex flex-1 items-center gap-8", children: [
|
|
24
24
|
i,
|
|
25
|
-
/* @__PURE__ */ e("div", { className: "hidden lg:block", children: /* @__PURE__ */ e(b, { ...
|
|
25
|
+
/* @__PURE__ */ e("div", { className: "hidden lg:block", children: /* @__PURE__ */ e(b, { ...p }) })
|
|
26
26
|
] }),
|
|
27
27
|
/* @__PURE__ */ l("div", { className: "text-medium hidden flex-wrap items-center gap-4 lg:flex xl:gap-6", children: [
|
|
28
|
-
/* @__PURE__ */ e(
|
|
29
|
-
/* @__PURE__ */ e("div", { className: "hidden xl:block", children: s && /* @__PURE__ */ e(
|
|
28
|
+
/* @__PURE__ */ e(x, { ...c }),
|
|
29
|
+
/* @__PURE__ */ e("div", { className: "hidden xl:block", children: s && /* @__PURE__ */ e(v, { ...s }) }),
|
|
30
30
|
n
|
|
31
31
|
] }),
|
|
32
32
|
/* @__PURE__ */ e(
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
35
35
|
className: "flex cursor-pointer items-center justify-center p-2 lg:hidden",
|
|
36
|
-
onClick:
|
|
36
|
+
onClick: h,
|
|
37
37
|
"aria-label": "Open menu",
|
|
38
|
-
"aria-expanded":
|
|
39
|
-
children: /* @__PURE__ */ e(
|
|
38
|
+
"aria-expanded": d,
|
|
39
|
+
children: /* @__PURE__ */ e(y, {})
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
] }) }),
|
|
43
|
-
|
|
44
|
-
/* @__PURE__ */ l("div", { className: "flex items-center justify-between px-
|
|
43
|
+
d && /* @__PURE__ */ l("div", { className: "fixed inset-0 z-50 flex flex-col overflow-y-auto bg-white lg:hidden", children: [
|
|
44
|
+
/* @__PURE__ */ l("div", { className: "flex items-center justify-between px-6 py-4", children: [
|
|
45
45
|
i,
|
|
46
46
|
/* @__PURE__ */ e(
|
|
47
47
|
"button",
|
|
48
48
|
{
|
|
49
49
|
className: "flex cursor-pointer items-center justify-center p-2",
|
|
50
|
-
onClick:
|
|
50
|
+
onClick: m,
|
|
51
51
|
"aria-label": "Close menu",
|
|
52
52
|
children: /* @__PURE__ */ e(j, {})
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
] }),
|
|
56
56
|
/* @__PURE__ */ l("div", { className: "flex flex-1 flex-col pb-6", children: [
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
/* @__PURE__ */ l("div", { className: "flex flex-col gap-6 px-6", children: [
|
|
58
|
+
/* @__PURE__ */ e("div", { className: "flex items-center gap-4", children: n }),
|
|
59
|
+
/* @__PURE__ */ e(x, { ...c })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ e("nav", { className: "flex-1", children: o.map((r, u) => /* @__PURE__ */ l(
|
|
60
62
|
"div",
|
|
61
63
|
{
|
|
62
64
|
className: `py-4 ${r.icon == null && r.title ? "border-t border-b border-neutral-200" : ""}`,
|
|
@@ -71,7 +73,7 @@ const S = ({
|
|
|
71
73
|
{
|
|
72
74
|
href: t.href ?? "#",
|
|
73
75
|
className: "hover:text-primary-700 text-base transition-colors",
|
|
74
|
-
onClick:
|
|
76
|
+
onClick: m,
|
|
75
77
|
children: t.label
|
|
76
78
|
}
|
|
77
79
|
) }, t.label)) }),
|
|
@@ -79,9 +81,9 @@ const S = ({
|
|
|
79
81
|
] })
|
|
80
82
|
]
|
|
81
83
|
},
|
|
82
|
-
r.title ??
|
|
84
|
+
r.title ?? u
|
|
83
85
|
)) }),
|
|
84
|
-
/* @__PURE__ */ e("div", { className: "my-4 flex items-center justify-center", children:
|
|
86
|
+
/* @__PURE__ */ e("div", { className: "my-4 flex items-center justify-center", children: f }),
|
|
85
87
|
a && /* @__PURE__ */ l("div", { className: "mt-auto flex flex-col items-center justify-center border-t border-neutral-100 p-6", children: [
|
|
86
88
|
/* @__PURE__ */ l(
|
|
87
89
|
"a",
|