@npm_leadtech/legal-contracts-ui 0.58.4 → 0.58.6

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,33 +1,21 @@
1
1
  import { FC } from 'react';
2
- import { HTMLInputTypeAttribute } from 'react';
3
2
  import { ReactNode } from 'react';
4
3
 
5
- export declare interface BaseOptionProps {
4
+ export declare type InputFieldData = {
6
5
  isVisible: boolean;
7
- }
8
-
9
- export type CreateOption<T, P> = BaseOptionProps & P & {
10
- type: T;
11
- };
12
-
13
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
14
- label: string;
15
6
  id: string;
7
+ label: string;
16
8
  name: string;
17
- type?: HTMLInputTypeAttribute;
18
- placeholder?: string;
19
- required?: boolean;
20
- tooltip?: string;
21
- onInputChange?: (str: string) => void;
22
- }
23
-
24
- export declare type OptionProps = CreateOption<'input', InputProps> | CreateOption<'radio', PreformOptionProps>;
9
+ value: string;
10
+ placeholder: string;
11
+ onChange: (str: string) => void;
12
+ };
25
13
 
26
14
  export declare const Preform: FC<PreformProps>;
27
15
 
28
16
  export interface PreformOptionProps {
29
- id: string;
30
17
  label: string;
18
+ value: string;
31
19
  icon: ReactNode;
32
20
  selected: boolean;
33
21
  onClick?: (str: string) => void;
@@ -35,15 +23,20 @@ export interface PreformOptionProps {
35
23
 
36
24
  export declare interface PreformProps {
37
25
  trustedBadge: TrustedBadgeProps;
38
- title?: string;
39
- options: OptionProps[];
40
26
  cta: ReactNode;
41
- radioSelected?: string;
42
- onClickRadio?: (str: string) => void;
43
- inputValue?: string;
44
- onInputChange?: (str: string) => void;
27
+ radioFieldData?: RadioFieldData;
28
+ inputFieldData?: InputFieldData;
45
29
  }
46
30
 
31
+ export declare type RadioFieldData = {
32
+ isVisibile: boolean;
33
+ label: string;
34
+ name: string;
35
+ options: PreformOptionProps[];
36
+ radioSelected: string;
37
+ onClick: (str: string) => void;
38
+ };
39
+
47
40
  export interface TrustedBadgeProps {
48
41
  children: ReactNode;
49
42
  }
@@ -1,32 +1,42 @@
1
- import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
- import { TrustedBadge as p } from "./TrustedBadge.js";
3
- import { PreformOption as f } from "./PreformOption.js";
4
- import { Input as n } from "./Input.js";
5
- const h = ({
6
- trustedBadge: r,
7
- title: a,
8
- options: s,
9
- cta: m,
10
- radioSelected: t,
11
- onClickRadio: c,
12
- inputValue: i,
13
- onInputChange: x
14
- }) => /* @__PURE__ */ e("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ d("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
15
- /* @__PURE__ */ e(p, { ...r }),
16
- /* @__PURE__ */ e("h2", { className: "text-medium sm:text-large font-bold", children: a }),
17
- /* @__PURE__ */ e("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: s.map((l) => {
18
- if (l.isVisible)
19
- return l.type === "radio" ? /* @__PURE__ */ e(
1
+ import { jsx as l, jsxs as c, Fragment as a } from "react/jsx-runtime";
2
+ import { TrustedBadge as n } from "./TrustedBadge.js";
3
+ import { PreformOption as o } from "./PreformOption.js";
4
+ import { Input as p } from "./Input.js";
5
+ const i = ({ trustedBadge: r, cta: x, inputFieldData: e, radioFieldData: m }) => /* @__PURE__ */ l("section", { className: "bg-neutral-25 pt-10 text-neutral-800 sm:px-6 lg:px-8 xl:px-30", children: /* @__PURE__ */ c("div", { className: "relative mx-auto flex max-w-300 flex-col gap-6 rounded bg-white px-6 pt-8 pb-6 shadow-md sm:items-center sm:gap-8 lg:px-26 xl:px-10", children: [
6
+ /* @__PURE__ */ l(n, { ...r }),
7
+ m?.isVisibile && /* @__PURE__ */ c(a, { children: [
8
+ /* @__PURE__ */ l("h2", { className: "text-medium sm:text-large font-bold", children: m.label }),
9
+ /* @__PURE__ */ c("div", { className: "flex w-full max-w-272 flex-wrap justify-center gap-2 sm:gap-4", children: [
10
+ m.options.map((s) => /* @__PURE__ */ l(
20
11
  "div",
21
12
  {
22
13
  className: "w-[calc(50%-4px)] sm:w-[calc(25%-12px)] lg:w-[calc(20%-13px)] xl:w-[calc(16.66%-14px)]",
23
- children: /* @__PURE__ */ e(f, { ...l, selected: l.id === t, onClick: c })
14
+ children: /* @__PURE__ */ l(
15
+ o,
16
+ {
17
+ ...s,
18
+ selected: s.value === m.radioSelected,
19
+ onClick: m.onClick
20
+ }
21
+ )
24
22
  },
25
- l.id
26
- ) : /* @__PURE__ */ e("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ e(n, { ...l, value: i, onInputChange: x }) }, l.id);
27
- }) }),
28
- m
23
+ s.value
24
+ )),
25
+ e?.isVisible && /* @__PURE__ */ l("div", { className: "mt-4 flex basis-full justify-center md:mt-0", children: /* @__PURE__ */ l(
26
+ p,
27
+ {
28
+ id: e.id,
29
+ label: e.label,
30
+ name: e.name,
31
+ placeholder: e.placeholder,
32
+ value: e.value,
33
+ onInputChange: e.onChange
34
+ }
35
+ ) }, e.name)
36
+ ] })
37
+ ] }),
38
+ x
29
39
  ] }) });
30
40
  export {
31
- h as Preform
41
+ i as Preform
32
42
  };
@@ -4,8 +4,8 @@ import { ReactNode } from 'react';
4
4
  export declare const PreformOption: FC<PreformOptionProps>;
5
5
 
6
6
  export declare interface PreformOptionProps {
7
- id: string;
8
7
  label: string;
8
+ value: string;
9
9
  icon: ReactNode;
10
10
  selected: boolean;
11
11
  onClick?: (str: string) => void;
@@ -1,6 +1,6 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
2
  import "react";
3
- const m = ({ id: o, label: l, selected: r, icon: n, onClick: t }) => /* @__PURE__ */ i(
3
+ const m = ({ value: o, label: l, selected: r, icon: n, onClick: t }) => /* @__PURE__ */ i(
4
4
  "button",
5
5
  {
6
6
  className: `group flex w-full cursor-pointer items-center gap-2 rounded border-2 p-2 hover:bg-neutral-50 sm:flex-col sm:p-4 ${r ? "border-primary-900" : "border-neutral-200"}`,
@@ -1,16 +1,11 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  import { FC } from 'react';
3
- import { HTMLInputTypeAttribute } from 'react';
4
3
  import { ReactNode } from 'react';
5
4
 
6
5
  export interface AlternativeSubtypeDocumentProps extends BaseSubtypeDocumentProps {
7
6
  format: 'Alternative';
8
7
  }
9
8
 
10
- export interface BaseOptionProps {
11
- isVisible: boolean;
12
- }
13
-
14
9
  export interface BaseSubtypeDocumentProps {
15
10
  id: string;
16
11
  link: ReactNode;
@@ -56,10 +51,6 @@ export interface ContentItemProps {
56
51
  subtypeDocs: SubtypeDocumentProps[];
57
52
  }
58
53
 
59
- export type CreateOption<T, P> = BaseOptionProps & P & {
60
- type: T;
61
- };
62
-
63
54
  export interface DefaultSubtypeDocumentProps extends BaseSubtypeDocumentProps {
64
55
  format: 'Default';
65
56
  createDocButton: ButtonProps;
@@ -93,16 +84,15 @@ export interface ImageWithPreviewProps {
93
84
  large: ReactNode;
94
85
  }
95
86
 
96
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
97
- label: string;
87
+ export type InputFieldData = {
88
+ isVisible: boolean;
98
89
  id: string;
90
+ label: string;
99
91
  name: string;
100
- type?: HTMLInputTypeAttribute;
101
- placeholder?: string;
102
- required?: boolean;
103
- tooltip?: string;
104
- onInputChange?: (str: string) => void;
105
- }
92
+ value: string;
93
+ placeholder: string;
94
+ onChange: (str: string) => void;
95
+ };
106
96
 
107
97
  export interface JumbotronProps {
108
98
  title: string;
@@ -115,11 +105,9 @@ export interface LinkedProductProps {
115
105
  children: ReactNode;
116
106
  }
117
107
 
118
- export type OptionProps = CreateOption<'input', InputProps> | CreateOption<'radio', PreformOptionProps>;
119
-
120
108
  export interface PreformOptionProps {
121
- id: string;
122
109
  label: string;
110
+ value: string;
123
111
  icon: ReactNode;
124
112
  selected: boolean;
125
113
  onClick?: (str: string) => void;
@@ -127,13 +115,9 @@ export interface PreformOptionProps {
127
115
 
128
116
  export interface PreformProps {
129
117
  trustedBadge: TrustedBadgeProps;
130
- title?: string;
131
- options: OptionProps[];
132
118
  cta: ReactNode;
133
- radioSelected?: string;
134
- onClickRadio?: (str: string) => void;
135
- inputValue?: string;
136
- onInputChange?: (str: string) => void;
119
+ radioFieldData?: RadioFieldData;
120
+ inputFieldData?: InputFieldData;
137
121
  }
138
122
 
139
123
  export interface PreviewDownloadProps {
@@ -176,6 +160,15 @@ export declare interface ProductTemplateProps {
176
160
  tryNowSection: TryNowSectionProps;
177
161
  }
178
162
 
163
+ export type RadioFieldData = {
164
+ isVisibile: boolean;
165
+ label: string;
166
+ name: string;
167
+ options: PreformOptionProps[];
168
+ radioSelected: string;
169
+ onClick: (str: string) => void;
170
+ };
171
+
179
172
  export type ResponsiveButtonVariant = ButtonVariant | {
180
173
  initial?: ButtonVariant;
181
174
  sm?: ButtonVariant;
@@ -0,0 +1,884 @@
1
+ import { ComponentPropsWithRef } from '../../../node_modules/.pnpm/react@19.2.4/node_modules/react';
2
+ import { FC } from '../../../node_modules/.pnpm/react@19.2.4/node_modules/react';
3
+ import { FC as FC_2 } from '../../../../node_modules/.pnpm/react@19.2.4/node_modules/react';
4
+ import { HTMLInputTypeAttribute } from '../../../node_modules/.pnpm/react@19.2.4/node_modules/react';
5
+ import { JSX } from 'react/jsx-runtime';
6
+ import * as React_2 from 'react';
7
+ import { ReactNode } from '../../../node_modules/.pnpm/react@19.2.4/node_modules/react';
8
+
9
+ export declare const AlternativeSubtypeDocument: FC<AlternativeSubtypeDocumentProps>;
10
+
11
+ export declare interface AlternativeSubtypeDocumentProps extends BaseSubtypeDocumentProps {
12
+ format: 'Alternative';
13
+ }
14
+
15
+ export declare const AsideNavMenu: FC<AsideNavMenuProps>;
16
+
17
+ export declare interface AsideNavMenuProps {
18
+ menuItems: Array<{
19
+ label: string;
20
+ href: string;
21
+ }>;
22
+ }
23
+
24
+ export declare const Badge: FC<BadgeProps>;
25
+
26
+ export declare interface BadgeProps {
27
+ children?: ReactNode;
28
+ color?: 'primary' | 'secondary';
29
+ className?: string;
30
+ }
31
+
32
+ export declare interface BaseSubtypeDocumentProps {
33
+ id: string;
34
+ link: ReactNode;
35
+ sampleImage: ReactNode;
36
+ pdfDownload: ButtonProps;
37
+ wordDownload: ButtonProps;
38
+ }
39
+
40
+ export declare const BenefitsBar: FC<BenefitsBarProps>;
41
+
42
+ export declare interface BenefitsBarProps {
43
+ benefits: {
44
+ src: string;
45
+ text: string;
46
+ }[];
47
+ }
48
+
49
+ export declare const BlogSection: FC<BlogSectionProps>;
50
+
51
+ export declare interface BlogSectionProps {
52
+ header: SectionHeadingProps;
53
+ articles: {
54
+ title: string;
55
+ image: ReactNode;
56
+ description: string;
57
+ cta: ReactNode;
58
+ }[];
59
+ cta: ButtonProps;
60
+ }
61
+
62
+ export declare const Breadcrumb: FC<BreadcrumbProps>;
63
+
64
+ export declare interface BreadcrumbProps {
65
+ breadcrumbs?: Array<{
66
+ label: string;
67
+ href?: string;
68
+ }>;
69
+ className?: string;
70
+ }
71
+
72
+ export declare const BusinessIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
73
+
74
+ export declare const Button: ({ children, type, size, variant, iconPosition, className, disabled, ref, ...props }: ButtonProps) => JSX.Element;
75
+
76
+ export declare interface ButtonProps extends Omit<ComponentPropsWithRef<'button'>, 'children'> {
77
+ children: ReactNode;
78
+ size?: ButtonSize;
79
+ variant?: ResponsiveButtonVariant;
80
+ iconPosition?: IconPosition;
81
+ }
82
+
83
+ export declare type ButtonSize = 'small' | 'default' | 'large';
84
+
85
+ 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';
86
+
87
+ export declare const CaFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
88
+
89
+ export declare const Card: FC<CardProps>;
90
+
91
+ export declare interface CardProps {
92
+ title?: ReactNode;
93
+ children?: ReactNode;
94
+ }
95
+
96
+ export declare const CategoriesSection: FC<CategoriesSectionProps>;
97
+
98
+ export declare interface CategoriesSectionProps {
99
+ header: SectionHeadingProps;
100
+ categories: {
101
+ title: string;
102
+ description: string;
103
+ icon: ReactNode;
104
+ cta: ButtonProps;
105
+ }[];
106
+ cta: ButtonProps;
107
+ }
108
+
109
+ export declare const Checkbox: FC<CheckboxProps>;
110
+
111
+ export declare interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {
112
+ id: string;
113
+ name: string;
114
+ required?: boolean;
115
+ children: ReactNode;
116
+ }
117
+
118
+ export declare const ChevronDownIcon: ({ fill, ...props }: React_2.SVGProps<SVGSVGElement>) => JSX.Element;
119
+
120
+ export declare const ChevronRightIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
121
+
122
+ export declare const CloseIcon: ({ fill, ...props }: React_2.SVGProps<SVGSVGElement>) => JSX.Element;
123
+
124
+ export declare const CommunicationIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
125
+
126
+ export declare const ContactBanner: FC<ContactBannerProps>;
127
+
128
+ export declare interface ContactBannerProps {
129
+ contactText?: string;
130
+ phoneNumber?: string;
131
+ contactHoursText?: string;
132
+ contactHours?: string;
133
+ }
134
+
135
+ export declare const ContactFormSection: FC;
136
+
137
+ export declare interface ContactMethod {
138
+ icon: React.ReactNode;
139
+ label: string;
140
+ helper?: string;
141
+ href?: string;
142
+ }
143
+
144
+ export declare const ContactMethodCard: FC<ContactMethod>;
145
+
146
+ export declare const ContactMethodsSection: FC<ContactMethodsSectionProps>;
147
+
148
+ export declare interface ContactMethodsSectionProps {
149
+ items: ContactMethod[];
150
+ title?: ReactNode;
151
+ }
152
+
153
+ export declare const ContactUsSection: FC<ContactUsSectionProps>;
154
+
155
+ export declare interface ContactUsSectionProps {
156
+ header: SectionHeadingProps;
157
+ contactOptions: Array<{
158
+ title: string;
159
+ description: string;
160
+ icon: ReactNode;
161
+ helper?: string;
162
+ }>;
163
+ }
164
+
165
+ export declare const ContentItem: FC<ContentItemProps>;
166
+
167
+ export declare interface ContentItemProps {
168
+ id: string;
169
+ title: string | null;
170
+ content: string | null;
171
+ linkedProducts: LinkedProductProps[];
172
+ sampleImage: ImageWithPreviewProps | null;
173
+ cta: string | null;
174
+ docsModules: DocsModuleProps | null;
175
+ subtypeDocs: SubtypeDocumentProps[];
176
+ }
177
+
178
+ export declare const CtaSection: FC<CtaSectionProps>;
179
+
180
+ export declare interface CtaSectionProps {
181
+ title: string;
182
+ cta: ButtonProps;
183
+ children: ReactNode;
184
+ }
185
+
186
+ export declare const DefaultSubtypeDocument: FC<DefaultSubtypeDocumentProps>;
187
+
188
+ export declare interface DefaultSubtypeDocumentProps extends BaseSubtypeDocumentProps {
189
+ format: 'Default';
190
+ createDocButton: ButtonProps;
191
+ description: string;
192
+ }
193
+
194
+ export declare const DeFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
195
+
196
+ export declare const DocEditFillIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
197
+
198
+ export declare const DocOutlineIcon: React.FC<React.SVGProps<SVGSVGElement>>;
199
+
200
+ export declare interface DocsModuleProps {
201
+ pdfDownload: ButtonProps;
202
+ wordDownload: ButtonProps;
203
+ }
204
+
205
+ export declare const DocsModules: FC<DocsModuleProps>;
206
+
207
+ export declare const DocumentCategories: FC<DocumentCategoriesProps>;
208
+
209
+ export declare interface DocumentCategoriesProps {
210
+ title: string;
211
+ categories: Array<{
212
+ id: string;
213
+ title: string;
214
+ icon: ReactNode;
215
+ }>;
216
+ }
217
+
218
+ export declare const DocumentItem: FC<DocumentItemProps>;
219
+
220
+ export declare interface DocumentItemProps {
221
+ id: string;
222
+ title: string;
223
+ description: string;
224
+ featured?: boolean;
225
+ className?: string;
226
+ }
227
+
228
+ export declare const DocumentSection: FC<DocumentSectionProps>;
229
+
230
+ export declare interface DocumentSectionProps {
231
+ id: string;
232
+ title: string;
233
+ description: string;
234
+ icon: ReactNode;
235
+ documents: DocumentItemProps[];
236
+ }
237
+
238
+ export declare const DoneCircleIcon: React_2.FC<DoneCircleIconProps>;
239
+
240
+ export declare interface DoneCircleIconProps extends React_2.SVGProps<SVGSVGElement> {
241
+ fill?: string;
242
+ }
243
+
244
+ export declare const EmploymentIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
245
+
246
+ export declare const EstatePlanningIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
247
+
248
+ export declare const ExpertsSection: FC<ExpertsSectionProps>;
249
+
250
+ export declare interface ExpertsSectionProps {
251
+ header: SectionHeadingProps;
252
+ experts: Array<{
253
+ name: string;
254
+ title: string;
255
+ image: ReactNode;
256
+ }>;
257
+ }
258
+
259
+ export declare const FacebookIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
260
+
261
+ export declare const FamilyIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
262
+
263
+ export declare const FaqItem: FC<FaqItemProps>;
264
+
265
+ export declare interface FaqItemProps {
266
+ question: string;
267
+ answer: string;
268
+ showMoreText?: string;
269
+ collapsedButtonText?: string;
270
+ expandedButtonText?: string;
271
+ }
272
+
273
+ export declare const FaqItemWrapper: FC<{
274
+ question: ReactNode;
275
+ children: ReactNode;
276
+ }>;
277
+
278
+ export declare const FaqSection: FC<FaqSectionProps>;
279
+
280
+ export declare interface FaqSectionProps {
281
+ title: string;
282
+ description: string;
283
+ faqItems: FaqItemProps[];
284
+ className?: string;
285
+ }
286
+
287
+ export declare const FaqTeaserSection: FC<FaqTeaserSectionProps>;
288
+
289
+ export declare interface FaqTeaserSectionProps {
290
+ header: SectionHeadingProps;
291
+ questions: {
292
+ id: string;
293
+ content: ReactNode;
294
+ }[];
295
+ cta: ButtonProps;
296
+ bgImage: ReactNode;
297
+ }
298
+
299
+ export declare const FillFormsIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
300
+
301
+ export declare const FinanceIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
302
+
303
+ export declare const Footer: FC<FooterProps>;
304
+
305
+ export declare const FooterNav: FC<FooterNavProps>;
306
+
307
+ export declare interface FooterNavProps {
308
+ title: string;
309
+ links: ReactNode[];
310
+ }
311
+
312
+ export declare interface FooterProps {
313
+ nav: Array<FooterNavProps>;
314
+ contactInfo: {
315
+ phoneNumber: string;
316
+ contactHoursText: string;
317
+ contactHours: string;
318
+ };
319
+ logoGray?: ReactNode;
320
+ socialLinks?: ReactNode[];
321
+ legalLinks?: ReactNode[];
322
+ disclaimerText?: string;
323
+ copyrightText?: string;
324
+ trustPilotWidget?: ReactNode;
325
+ languageSelector?: ReactNode;
326
+ }
327
+
328
+ export declare interface FormattedLanguageItem {
329
+ code: string;
330
+ name: string;
331
+ url?: string;
332
+ flag: ReactNode;
333
+ }
334
+
335
+ export declare const GbFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
336
+
337
+ export declare const getButtonClasses: (size?: ButtonSize, variant?: ResponsiveButtonVariant, iconPosition?: IconPosition, disabled?: boolean, className?: string) => string;
338
+
339
+ export declare const GuidelinesSection: FC<GuidelinesSectionProps>;
340
+
341
+ export declare interface GuidelinesSectionProps {
342
+ header: SectionHeadingProps;
343
+ guidelineCards: Array<{
344
+ title: string;
345
+ image: ReactNode;
346
+ content: ReactNode;
347
+ }>;
348
+ footerCard: {
349
+ title: string;
350
+ image: ReactNode;
351
+ content: ReactNode;
352
+ cta: ButtonProps;
353
+ };
354
+ }
355
+
356
+ export declare const HamburgerIcon: ({ fill, ...props }: React_2.SVGProps<SVGSVGElement>) => JSX.Element;
357
+
358
+ export declare const Header: FC<HeaderProps>;
359
+
360
+ export declare interface HeaderProps {
361
+ logo: ReactNode;
362
+ navMenu: NavMenuProps;
363
+ searchBarProps: SearchBarProps;
364
+ languageSelectorProps?: LanguageSelectorProps;
365
+ userActions: ReactNode;
366
+ mobileMenu: Omit<MobileMenuProps, 'logo' | 'userActions' | 'searchBarProps'>;
367
+ }
368
+
369
+ export declare const HelpGuideIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
370
+
371
+ export declare const HeroSection: FC<HeroSectionProps>;
372
+
373
+ export declare interface HeroSectionProps {
374
+ title: string;
375
+ description?: string;
376
+ cta: ButtonProps;
377
+ heroDocuments: ItemProps[];
378
+ listTitle?: string;
379
+ backgroundImage?: string;
380
+ }
381
+
382
+ export declare const HighlightedText: React_2.FC<{
383
+ text: string;
384
+ highlight: string;
385
+ }>;
386
+
387
+ export declare const HistoryIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
388
+
389
+ export declare interface HomeStepsProps {
390
+ image: ReactNode;
391
+ header: SectionHeadingProps;
392
+ steps: {
393
+ id: string;
394
+ title: string;
395
+ description: string;
396
+ image: ReactNode;
397
+ }[];
398
+ }
399
+
400
+ export declare type IconPosition = 'left' | 'right' | 'top';
401
+
402
+ export declare const ImageWithPreview: FC<ImageWithPreviewProps>;
403
+
404
+ export declare interface ImageWithPreviewProps {
405
+ small: ReactNode;
406
+ large: ReactNode;
407
+ }
408
+
409
+ export declare const InfoIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
410
+
411
+ export declare const Input: FC<InputProps>;
412
+
413
+ export declare type InputFieldData = {
414
+ isVisible: boolean;
415
+ id: string;
416
+ label: string;
417
+ name: string;
418
+ value: string;
419
+ placeholder: string;
420
+ onChange: (str: string) => void;
421
+ };
422
+
423
+ export declare interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
424
+ label: string;
425
+ id: string;
426
+ name: string;
427
+ type?: HTMLInputTypeAttribute;
428
+ placeholder?: string;
429
+ required?: boolean;
430
+ tooltip?: string;
431
+ onInputChange?: (str: string) => void;
432
+ }
433
+
434
+ export declare const InstagramIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
435
+
436
+ export declare const IntroSection: FC<IntroSectionProps>;
437
+
438
+ export declare interface IntroSectionProps {
439
+ image: ReactNode;
440
+ children: ReactNode;
441
+ cta: ButtonProps;
442
+ className?: string;
443
+ }
444
+
445
+ export declare const Item: FC<ItemProps>;
446
+
447
+ export declare interface ItemProps {
448
+ id: string;
449
+ image: ReactNode;
450
+ title?: string;
451
+ description?: string;
452
+ documentUrl?: string;
453
+ actions?: ReactNode;
454
+ variant?: 'default' | 'card';
455
+ className?: string;
456
+ titleClassName?: string;
457
+ }
458
+
459
+ export declare const JumboCard: FC<JumboCardProps>;
460
+
461
+ export declare interface JumboCardProps {
462
+ title: string;
463
+ description: string;
464
+ subtitle: string;
465
+ bgImage: ReactNode | null;
466
+ }
467
+
468
+ export declare const Jumbotron: FC<JumbotronProps>;
469
+
470
+ export declare const Jumbotron2: FC<Jumbotron2Props>;
471
+
472
+ export declare interface Jumbotron2Props {
473
+ title: string;
474
+ subtitle?: string;
475
+ className?: string;
476
+ children?: React.ReactNode;
477
+ }
478
+
479
+ export declare const Jumbotron3: FC<Jumbotron3Props>;
480
+
481
+ export declare interface Jumbotron3Props {
482
+ title: string;
483
+ }
484
+
485
+ export declare interface JumbotronProps {
486
+ title: string;
487
+ description: string;
488
+ bgImage: ReactNode;
489
+ }
490
+
491
+ export declare const LanguageSelector: FC<LanguageSelectorProps>;
492
+
493
+ export declare interface LanguageSelectorProps {
494
+ currentLanguage: FormattedLanguageItem;
495
+ availableLanguages: FormattedLanguageItem[];
496
+ variant?: LanguageSelectorVariant;
497
+ isOpen?: boolean;
498
+ onToggle?: () => void;
499
+ }
500
+
501
+ export declare type LanguageSelectorVariant = 'default' | 'compact';
502
+
503
+ export declare interface LawGeniusSectionProps {
504
+ title: string;
505
+ content: string;
506
+ benefits: {
507
+ id: string;
508
+ label: string;
509
+ icon: ReactNode;
510
+ }[];
511
+ cta: ButtonProps;
512
+ image: ReactNode;
513
+ }
514
+
515
+ export declare const LegalSection: FC<LegalSectionProps>;
516
+
517
+ export declare interface LegalSectionProps {
518
+ children: ReactNode;
519
+ }
520
+
521
+ export declare const LinkedinIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
522
+
523
+ export declare interface LinkedProductProps {
524
+ slug: string;
525
+ children: ReactNode;
526
+ }
527
+
528
+ export declare const LinkedProducts: FC<LinkedProductsProps>;
529
+
530
+ export declare interface LinkedProductsProps {
531
+ linkedProducts: LinkedProductProps[];
532
+ }
533
+
534
+ export declare const LocationIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
535
+
536
+ export declare const MailFillIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
537
+
538
+ export declare const Markdown: FC_2<MarkdownProps>;
539
+
540
+ export declare interface MarkdownProps {
541
+ content: string;
542
+ className?: string;
543
+ useCustom?: boolean;
544
+ }
545
+
546
+ export declare const MissionSection: FC<MissionSectionProps>;
547
+
548
+ export declare interface MissionSectionProps {
549
+ title: string;
550
+ children: ReactNode;
551
+ image: ReactNode;
552
+ }
553
+
554
+ export declare interface MobileContactInfo {
555
+ phoneNumber: string;
556
+ contactHoursLabel?: string;
557
+ contactHours?: string;
558
+ }
559
+
560
+ export declare const MobileMenu: FC<MobileMenuProps>;
561
+
562
+ export declare interface MobileMenuProps {
563
+ isOpen: boolean;
564
+ onOpen: () => void;
565
+ onClose: () => void;
566
+ logo: ReactNode;
567
+ userActions: ReactNode;
568
+ searchBarProps: SearchBarProps;
569
+ sections?: MobileMenuSection[];
570
+ contactInfo?: MobileContactInfo;
571
+ openText: string;
572
+ closeText: string;
573
+ }
574
+
575
+ export declare interface MobileMenuSection {
576
+ id?: string;
577
+ title?: string;
578
+ icon: ReactNode | null;
579
+ items?: {
580
+ id: string;
581
+ link: ReactNode;
582
+ tag?: string;
583
+ }[];
584
+ seeAll?: ReactNode | null;
585
+ content?: ReactNode | null;
586
+ }
587
+
588
+ export declare const MoreTemplatesSection: FC<PopularDocumentsProps>;
589
+
590
+ export declare const NavMenu: FC<NavMenuProps>;
591
+
592
+ export declare const NavMenuItem: FC<NavMenuItemProps | NavMenuLink>;
593
+
594
+ export declare type NavMenuItemProps = {
595
+ id: string;
596
+ label: string;
597
+ dropdownItems: (NavMenuItemProps | NavMenuLink)[];
598
+ hasDropdown: true;
599
+ isNested?: boolean;
600
+ onItemClick?: () => void;
601
+ isOpen?: boolean;
602
+ onToggle?: (open: boolean) => void;
603
+ };
604
+
605
+ export declare type NavMenuLink = {
606
+ id: string;
607
+ link: ReactNode;
608
+ tag?: string;
609
+ hasDropdown: false;
610
+ isNested?: boolean;
611
+ bold?: boolean;
612
+ onItemClick?: () => void;
613
+ isOpen?: boolean;
614
+ onToggle?: (open: boolean) => void;
615
+ };
616
+
617
+ export declare interface NavMenuProps {
618
+ navItems: (NavMenuItemProps | NavMenuLink)[];
619
+ className?: string;
620
+ }
621
+
622
+ export declare const Note: FC<NoteProps>;
623
+
624
+ export interface NoteProps {
625
+ children: ReactNode;
626
+ }
627
+
628
+ export declare const PartnersSection: FC<PartnersSectionProps>;
629
+
630
+ export declare interface PartnersSectionProps {
631
+ header: SectionHeadingProps;
632
+ children: ReactNode;
633
+ partners: Array<{
634
+ name: string;
635
+ logo: ReactNode;
636
+ }>;
637
+ }
638
+
639
+ export declare const PersonalIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
640
+
641
+ export declare const PhoneTalkIcon: ({ fill, ...props }: React_2.SVGProps<SVGSVGElement>) => JSX.Element;
642
+
643
+ export declare interface PopularDocumentsProps {
644
+ header: SectionHeadingProps;
645
+ moreDocuments?: ItemProps[];
646
+ }
647
+
648
+ export declare const Preform: FC<PreformProps>;
649
+
650
+ export declare const PreformOption: FC<PreformOptionProps>;
651
+
652
+ export declare interface PreformOptionProps {
653
+ label: string;
654
+ value: string;
655
+ icon: ReactNode;
656
+ selected: boolean;
657
+ onClick?: (str: string) => void;
658
+ }
659
+
660
+ export declare interface PreformProps {
661
+ trustedBadge: TrustedBadgeProps;
662
+ cta: ReactNode;
663
+ radioFieldData?: RadioFieldData;
664
+ inputFieldData?: InputFieldData;
665
+ }
666
+
667
+ export declare const PreviewDownload: FC<PreviewDownloadProps>;
668
+
669
+ export declare interface PreviewDownloadProps {
670
+ title: string;
671
+ preview: ImageWithPreviewProps | null;
672
+ cta: ReactNode;
673
+ footerText: string;
674
+ pdfDownload: ReactNode;
675
+ wordDownload: ReactNode;
676
+ }
677
+
678
+ export declare const PreviewSection: FC<PreviewSectionProps>;
679
+
680
+ export declare interface PreviewSectionProps {
681
+ title: string;
682
+ documentPreview: string;
683
+ cta: ButtonProps;
684
+ }
685
+
686
+ export declare const PrintIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
687
+
688
+ export declare const PrivateIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
689
+
690
+ export declare const ProcessSection: FC<HomeStepsProps>;
691
+
692
+ export declare const ProductInfo: FC<ProductInfoProps>;
693
+
694
+ export declare interface ProductInfoProps {
695
+ lastUpdate: string;
696
+ reviewer?: ReactNode;
697
+ alsoKnownAs: {
698
+ label: string;
699
+ docs: string[];
700
+ };
701
+ }
702
+
703
+ export declare type RadioFieldData = {
704
+ isVisibile: boolean;
705
+ label: string;
706
+ name: string;
707
+ options: PreformOptionProps[];
708
+ radioSelected: string;
709
+ onClick: (str: string) => void;
710
+ };
711
+
712
+ export declare const RatafiaSection: FC<LawGeniusSectionProps>;
713
+
714
+ export declare const RealStateIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
715
+
716
+ export declare type ResponsiveButtonVariant = ButtonVariant | {
717
+ initial?: ButtonVariant;
718
+ sm?: ButtonVariant;
719
+ md?: ButtonVariant;
720
+ lg?: ButtonVariant;
721
+ xl?: ButtonVariant;
722
+ };
723
+
724
+ export declare const SaveIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
725
+
726
+ export declare const ScalatorIcon: ({ fill, ...props }: React_2.SVGProps<SVGSVGElement>) => JSX.Element;
727
+
728
+ export declare const SearchBar: React_2.FC<SearchBarProps>;
729
+
730
+ export declare interface SearchBarProps {
731
+ items: SearchItem[];
732
+ placeholder?: string;
733
+ isOpen?: boolean;
734
+ onToggle?: () => void;
735
+ searchValue?: string;
736
+ onInputChange?: (e: React_2.ChangeEvent<HTMLInputElement>) => void;
737
+ onClear?: () => void;
738
+ allDocumentsItem?: SearchItem;
739
+ }
740
+
741
+ export declare const SearchIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
742
+
743
+ export declare interface SearchItem {
744
+ label: string;
745
+ href: string;
746
+ }
747
+
748
+ export declare const SectionHeading: FC<SectionHeadingProps>;
749
+
750
+ export declare interface SectionHeadingProps {
751
+ title: string;
752
+ description?: string;
753
+ align?: 'start' | 'center';
754
+ titleClass?: string;
755
+ className?: string;
756
+ }
757
+
758
+ export declare const Select: FC<SelectProps>;
759
+
760
+ export declare interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
761
+ label: string;
762
+ id: string;
763
+ name: string;
764
+ required?: boolean;
765
+ placeholder?: string;
766
+ options: {
767
+ label: string;
768
+ value: string;
769
+ }[];
770
+ }
771
+
772
+ export declare const StarsIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
773
+
774
+ export declare const Storyline: FC<StorylineProps>;
775
+
776
+ export declare interface StorylineProps {
777
+ title: string;
778
+ text: string;
779
+ storyItems: {
780
+ title: string;
781
+ description: string;
782
+ icon: ReactNode;
783
+ }[];
784
+ }
785
+
786
+ export declare type SubtypeDocumentProps = DefaultSubtypeDocumentProps | AlternativeSubtypeDocumentProps;
787
+
788
+ export declare const TableOfContents: FC<TableOfContentsProps>;
789
+
790
+ export declare interface TableOfContentsProps {
791
+ title: string;
792
+ contents: {
793
+ title: string;
794
+ link: string;
795
+ }[];
796
+ }
797
+
798
+ export declare const TableOfContentsWrapper: FC<{
799
+ title: ReactNode;
800
+ children: ReactNode;
801
+ }>;
802
+
803
+ export declare const Textarea: FC<TextareaProps>;
804
+
805
+ export declare interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
806
+ label: string;
807
+ id: string;
808
+ name: string;
809
+ required?: boolean;
810
+ placeholder?: string;
811
+ }
812
+
813
+ export declare const TikTokIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
814
+
815
+ export declare const TimeIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
816
+
817
+ export declare const TrustedBadge: FC<TrustedBadgeProps>;
818
+
819
+ export declare interface TrustedBadgeProps {
820
+ children: ReactNode;
821
+ }
822
+
823
+ export declare const TrustedIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
824
+
825
+ export declare const TrustpilotSection: FC<TrustpilotSectionProps>;
826
+
827
+ export declare interface TrustpilotSectionProps {
828
+ header: SectionHeadingProps;
829
+ children: ReactNode;
830
+ }
831
+
832
+ export declare const TrustSection: FC<TrustSectionProps>;
833
+
834
+ export declare interface TrustSectionProps {
835
+ header: SectionHeadingProps;
836
+ trustReasons: string[];
837
+ cta: ButtonProps;
838
+ trustPilot: ReactNode;
839
+ }
840
+
841
+ export declare const TryNowSection: FC<TryNowSectionProps>;
842
+
843
+ export declare interface TryNowSectionProps {
844
+ title: string;
845
+ benefits: string[];
846
+ cta: ButtonProps;
847
+ }
848
+
849
+ export declare const TwoColumnSection: FC<TwoColumnSectionProps>;
850
+
851
+ export declare interface TwoColumnSectionProps {
852
+ firstColumn: ReactNode;
853
+ secondColumn: ReactNode;
854
+ className?: string;
855
+ containerClassName?: string;
856
+ }
857
+
858
+ export declare const UnsubscribeSection: FC<UnsubscribeSectionProps>;
859
+
860
+ export declare interface UnsubscribeSectionProps {
861
+ children: ReactNode;
862
+ }
863
+
864
+ export declare const UsFlagIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
865
+
866
+ export declare const ValuesSection: FC<ValuesSectionProps>;
867
+
868
+ export declare interface ValuesSectionProps {
869
+ title: string;
870
+ children: ReactNode;
871
+ image: ReactNode;
872
+ }
873
+
874
+ export declare const VerifiedIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
875
+
876
+ export declare const WeHelpSection: FC<WeHelpSectionProps>;
877
+
878
+ export declare interface WeHelpSectionProps {
879
+ title: string;
880
+ children: ReactNode;
881
+ image: ReactNode;
882
+ cta: ButtonProps;
883
+ }
884
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@npm_leadtech/legal-contracts-ui",
3
- "version": "0.58.4",
3
+ "version": "0.58.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",