property-practice-ui 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/dist/index.cjs +7756 -0
- package/dist/index.d.cts +743 -0
- package/dist/index.d.ts +743 -0
- package/dist/index.js +3219 -5611
- package/package.json +14 -6
- package/src/components/Dialog/Dialog.tsx +106 -0
- package/src/components/Filter/Filter.tsx +1 -1
- package/src/components/NavMenu.tsx +1 -1
- package/src/components/SortBy/SortBy.tsx +1 -1
- package/src/components/TableList.tsx +1 -1
- package/src/components/TableRow/TableRow.tsx +7 -7
- package/src/components/Tabs/Tabs.tsx +17 -26
- package/src/components/Toast.tsx +1 -3
- package/src/components/TopMenu.tsx +1 -3
- package/src/index.ts +0 -3
- package/src/organism/ToastProvider/ToastProvider.tsx +1 -1
- package/src/templates/Contact/Contact.tsx +2 -1
- package/src/templates/OtherProducts/OtherProducts.tsx +2 -1
- package/src/types/index.ts +6 -0
- package/{types → src/types}/tableListItem.ts +1 -1
- package/tsconfig.json +2 -1
- package/tsup.config.ts +11 -0
- package/dist/index.mjs +0 -10148
- package/src/components/DynamicInput.tsx +0 -54
- package/src/components/FileUpload.tsx +0 -123
- package/src/components/ModeSwitch.tsx +0 -66
- package/types/index.ts +0 -5
- /package/{types → src/types}/inputAttributes.ts +0 -0
- /package/{types → src/types}/menuItem.ts +0 -0
- /package/{types → src/types}/orderType.ts +0 -0
- /package/{types → src/types}/toast.ts +0 -0
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,743 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { ChangeHandler } from 'react-hook-form';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { JSX, ReactElement, ComponentProps, ChangeEvent, ReactNode } from 'react';
|
|
5
|
+
import * as styled_components_dist_types from 'styled-components/dist/types';
|
|
6
|
+
import * as styled_components from 'styled-components';
|
|
7
|
+
|
|
8
|
+
declare const InputTypes: readonly ["number", "text", "email", "date"];
|
|
9
|
+
type InputType = (typeof InputTypes)[number];
|
|
10
|
+
interface BaseInputProps {
|
|
11
|
+
name: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
type?: InputType;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
onBlur?: ChangeHandler;
|
|
16
|
+
onFocus?: () => void;
|
|
17
|
+
}
|
|
18
|
+
type Option<T> = {
|
|
19
|
+
label: string;
|
|
20
|
+
value: T;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
interface FilterProps<T extends string | number> {
|
|
25
|
+
name: string;
|
|
26
|
+
label?: string;
|
|
27
|
+
options: Option<T>[];
|
|
28
|
+
value: T;
|
|
29
|
+
onChange: (value: T) => void;
|
|
30
|
+
placeholder?: string;
|
|
31
|
+
}
|
|
32
|
+
declare function Filter<T extends string | number>({ name, label, options, value, onChange, placeholder, }: FilterProps<T>): react_jsx_runtime.JSX.Element;
|
|
33
|
+
|
|
34
|
+
type MenuItem = {
|
|
35
|
+
title: string;
|
|
36
|
+
subTitle?: string;
|
|
37
|
+
icon?: JSX.Element;
|
|
38
|
+
link?: string;
|
|
39
|
+
items?: MenuSubItem[];
|
|
40
|
+
newTab?: boolean;
|
|
41
|
+
};
|
|
42
|
+
type MenuSubItem = {
|
|
43
|
+
title: string;
|
|
44
|
+
icon?: string;
|
|
45
|
+
link?: string;
|
|
46
|
+
newTab?: boolean;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
interface Props$3 {
|
|
50
|
+
direction: 'horizontal' | 'vertical';
|
|
51
|
+
items: MenuItem[];
|
|
52
|
+
selected?: string;
|
|
53
|
+
}
|
|
54
|
+
declare function NavMenu({ direction, items, selected }: Props$3): react_jsx_runtime.JSX.Element;
|
|
55
|
+
|
|
56
|
+
interface SearchProps {
|
|
57
|
+
value: string;
|
|
58
|
+
onChange: (value: string) => void;
|
|
59
|
+
placeholder?: string;
|
|
60
|
+
delay?: number;
|
|
61
|
+
}
|
|
62
|
+
declare const Search: ({ value, onChange, placeholder, delay, }: SearchProps) => react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare const orderTypes: readonly ["asc", "desc"];
|
|
65
|
+
type OrderType = (typeof orderTypes)[number];
|
|
66
|
+
|
|
67
|
+
interface SortByProps {
|
|
68
|
+
value: OrderType;
|
|
69
|
+
onChange: (value: OrderType) => void;
|
|
70
|
+
}
|
|
71
|
+
declare const SortBy: ({ value, onChange }: SortByProps) => react_jsx_runtime.JSX.Element;
|
|
72
|
+
|
|
73
|
+
interface SpinnerProps {
|
|
74
|
+
height?: `${number}px`;
|
|
75
|
+
width?: `${number}px`;
|
|
76
|
+
}
|
|
77
|
+
declare function Spinner(props: SpinnerProps): react_jsx_runtime.JSX.Element;
|
|
78
|
+
|
|
79
|
+
type TableHeaderConfig = {
|
|
80
|
+
heading: string;
|
|
81
|
+
filterAccessor: string;
|
|
82
|
+
};
|
|
83
|
+
interface TableProps {
|
|
84
|
+
data: any;
|
|
85
|
+
headers: TableHeaderConfig[];
|
|
86
|
+
onDelete?: (id: string) => void;
|
|
87
|
+
}
|
|
88
|
+
declare const Table: ({ data, headers, onDelete }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
89
|
+
|
|
90
|
+
interface TableInnerProps {
|
|
91
|
+
data?: any[];
|
|
92
|
+
headers: TableHeaderConfig[];
|
|
93
|
+
renderOnEmpty?: ReactElement | null;
|
|
94
|
+
onDelete?: (id: string) => void;
|
|
95
|
+
}
|
|
96
|
+
declare const TableInner: ({ data, headers, renderOnEmpty, onDelete, }: TableInnerProps) => react_jsx_runtime.JSX.Element;
|
|
97
|
+
|
|
98
|
+
type TableListItemType = {
|
|
99
|
+
title: string;
|
|
100
|
+
status?: string;
|
|
101
|
+
date: Date;
|
|
102
|
+
type?: string | 'DRAFT' | 'PENDING' | 'ACTIVE' | 'FINALISED' | 'ARCHIVED';
|
|
103
|
+
url?: string;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
interface Props$2 {
|
|
107
|
+
item: TableListItemType;
|
|
108
|
+
variant?: 'Primary' | 'Secondary';
|
|
109
|
+
alt?: boolean;
|
|
110
|
+
selectItemHandler?: () => void;
|
|
111
|
+
}
|
|
112
|
+
declare function TableListItem({ item, selectItemHandler, variant, alt, }: Props$2 & {
|
|
113
|
+
variant?: 'Primary' | 'Secondary';
|
|
114
|
+
}): react_jsx_runtime.JSX.Element;
|
|
115
|
+
interface HeadersProps {
|
|
116
|
+
headers: string[];
|
|
117
|
+
variant?: 'Primary' | 'Secondary';
|
|
118
|
+
}
|
|
119
|
+
declare function TableHeader({ headers, variant, }: HeadersProps & {
|
|
120
|
+
variant?: 'Primary' | 'Secondary';
|
|
121
|
+
}): react_jsx_runtime.JSX.Element;
|
|
122
|
+
|
|
123
|
+
type PaginationOptionsType = {
|
|
124
|
+
perPage?: 10 | 25 | 50 | 100;
|
|
125
|
+
};
|
|
126
|
+
interface TableRowItem {
|
|
127
|
+
id: string;
|
|
128
|
+
[key: string]: any;
|
|
129
|
+
}
|
|
130
|
+
interface TableRowProps {
|
|
131
|
+
data: TableRowItem[];
|
|
132
|
+
headers: TableHeaderConfig[];
|
|
133
|
+
paginationOptions?: PaginationOptionsType;
|
|
134
|
+
onDelete?: (id: string) => void;
|
|
135
|
+
variant?: 'Primary' | 'Secondary';
|
|
136
|
+
}
|
|
137
|
+
declare const TableRow: ({ data, headers, paginationOptions, onDelete, variant, }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
138
|
+
|
|
139
|
+
interface TabsProps<T> {
|
|
140
|
+
defaultTab: T;
|
|
141
|
+
onTabChange?: (tab: T) => void;
|
|
142
|
+
options: Option<T>[];
|
|
143
|
+
}
|
|
144
|
+
declare const Tabs: <T extends string | number>({ defaultTab, onTabChange, options }: TabsProps<T>) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
type ToastType = 'Default' | 'Success' | 'Warning' | 'Error' | 'Message';
|
|
147
|
+
|
|
148
|
+
interface Props$1 {
|
|
149
|
+
visible?: boolean;
|
|
150
|
+
setVisible?: (visible: boolean) => void;
|
|
151
|
+
duration?: number | null;
|
|
152
|
+
type: ToastType;
|
|
153
|
+
message?: string;
|
|
154
|
+
onClear?: () => void;
|
|
155
|
+
}
|
|
156
|
+
declare function Toast({ type, message, visible, setVisible, duration, onClear, }: Props$1): react_jsx_runtime.JSX.Element;
|
|
157
|
+
|
|
158
|
+
interface Props {
|
|
159
|
+
logoUrl: string;
|
|
160
|
+
children: React.ReactNode;
|
|
161
|
+
}
|
|
162
|
+
declare function TopMenu({ logoUrl, children }: Props): react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
interface AccordionHeaderProps {
|
|
165
|
+
title: string;
|
|
166
|
+
isOpen: boolean;
|
|
167
|
+
buttonText?: string;
|
|
168
|
+
onButtonPress?: () => void;
|
|
169
|
+
rightElement?: ReactElement;
|
|
170
|
+
onAccordionPress: () => void;
|
|
171
|
+
}
|
|
172
|
+
declare const AccordionHeader: ({ title, isOpen, buttonText, onAccordionPress, onButtonPress, rightElement, }: AccordionHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
173
|
+
|
|
174
|
+
interface AccordionProps$1 extends Pick<ComponentProps<typeof AccordionHeader>, 'title' | 'onButtonPress' | 'buttonText' | 'rightElement'> {
|
|
175
|
+
children: ReactElement;
|
|
176
|
+
}
|
|
177
|
+
declare const Accordion: ({ buttonText, onButtonPress, title, children, rightElement, }: AccordionProps$1) => react_jsx_runtime.JSX.Element;
|
|
178
|
+
|
|
179
|
+
declare const variants$5: readonly ["primary", "inverse", "subtle"];
|
|
180
|
+
type Variant$5 = (typeof variants$5)[number];
|
|
181
|
+
interface AddressProps {
|
|
182
|
+
title: string;
|
|
183
|
+
phone?: string;
|
|
184
|
+
email?: string;
|
|
185
|
+
addressLines: string[];
|
|
186
|
+
directionsText?: string;
|
|
187
|
+
onDirectionsClick?: () => void;
|
|
188
|
+
variant?: Variant$5;
|
|
189
|
+
}
|
|
190
|
+
declare const Address: {
|
|
191
|
+
({ title, phone, email, addressLines, directionsText, onDirectionsClick, variant, }: AddressProps): react_jsx_runtime.JSX.Element;
|
|
192
|
+
variants: readonly ["primary", "inverse", "subtle"];
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
declare const alignments: readonly ["row", "column"];
|
|
196
|
+
type Align = (typeof alignments)[number];
|
|
197
|
+
interface CheckboxProps<T> {
|
|
198
|
+
error?: string;
|
|
199
|
+
label?: string;
|
|
200
|
+
value: T;
|
|
201
|
+
onChange: (value: T) => void;
|
|
202
|
+
options: Option<T>[];
|
|
203
|
+
align?: Align;
|
|
204
|
+
}
|
|
205
|
+
declare const Checkbox: <T extends string | number | boolean>({ error, label, onChange, options, value, }: CheckboxProps<T>) => react_jsx_runtime.JSX.Element;
|
|
206
|
+
|
|
207
|
+
declare const variants$4: readonly ["primary", "secondary", "tertiary", "subtle", "blue", "brand", "light", "active", "hover", "error", "focus", "success"];
|
|
208
|
+
declare const tokens: readonly ["background", "border", "text", "button"];
|
|
209
|
+
type Token = (typeof tokens)[number];
|
|
210
|
+
type Variant$4 = (typeof variants$4)[number];
|
|
211
|
+
type TokenVariant = Record<Variant$4, string>;
|
|
212
|
+
declare const colors: Record<Token, Partial<TokenVariant>>;
|
|
213
|
+
|
|
214
|
+
type TextColor$b = keyof typeof colors.text;
|
|
215
|
+
type BackgroundColor$5 = keyof typeof colors.background;
|
|
216
|
+
interface ContentCardProps {
|
|
217
|
+
thumbnail: React.ReactNode;
|
|
218
|
+
title: string;
|
|
219
|
+
description: string;
|
|
220
|
+
onArrowClick?: () => void;
|
|
221
|
+
headerVariant?: 'h1' | 'h2' | 'h3';
|
|
222
|
+
titleColor?: TextColor$b;
|
|
223
|
+
descriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
224
|
+
arrowVariant?: 'brand' | 'teal' | 'blue';
|
|
225
|
+
thumbnailBgColor?: BackgroundColor$5;
|
|
226
|
+
}
|
|
227
|
+
declare const ContentCard: ({ thumbnail, title, description, onArrowClick, headerVariant, titleColor, descriptionVariant, arrowVariant, thumbnailBgColor, }: ContentCardProps) => react_jsx_runtime.JSX.Element;
|
|
228
|
+
|
|
229
|
+
type TextColor$a = keyof typeof colors.text;
|
|
230
|
+
declare const variants$3: readonly ["primary", "secondary", "transparent"];
|
|
231
|
+
type Variant$3 = (typeof variants$3)[number];
|
|
232
|
+
interface CTAContainerProps {
|
|
233
|
+
header: string;
|
|
234
|
+
description: string;
|
|
235
|
+
primaryButtonText: string;
|
|
236
|
+
secondaryButtonText?: string;
|
|
237
|
+
onPrimaryClick?: () => void;
|
|
238
|
+
onSecondaryClick?: () => void;
|
|
239
|
+
variant?: Variant$3;
|
|
240
|
+
headerTextColor?: TextColor$a;
|
|
241
|
+
descriptionTextColor?: TextColor$a;
|
|
242
|
+
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
243
|
+
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
244
|
+
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
245
|
+
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
246
|
+
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
247
|
+
}
|
|
248
|
+
declare const CTAContainer: {
|
|
249
|
+
({ header, description, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, variant, headerTextColor, descriptionTextColor, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: CTAContainerProps): react_jsx_runtime.JSX.Element;
|
|
250
|
+
variants: readonly ["primary", "secondary", "transparent"];
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
type DocumentListAccordionFileType = {
|
|
254
|
+
name: string;
|
|
255
|
+
sourceFile: string;
|
|
256
|
+
status: string;
|
|
257
|
+
createdAt?: string;
|
|
258
|
+
id: string;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
interface DropdownProps<T> {
|
|
262
|
+
options: Option<T>[];
|
|
263
|
+
value?: T;
|
|
264
|
+
onChange: (value: T) => void;
|
|
265
|
+
label?: string;
|
|
266
|
+
error?: string;
|
|
267
|
+
name: string;
|
|
268
|
+
placeholder?: string;
|
|
269
|
+
disabled?: boolean;
|
|
270
|
+
}
|
|
271
|
+
declare const Dropdown: <T extends string | number>({ error, onChange, options, value, label, name, placeholder, disabled, }: DropdownProps<T>) => react_jsx_runtime.JSX.Element;
|
|
272
|
+
|
|
273
|
+
type TextColor$9 = keyof typeof colors.text;
|
|
274
|
+
interface AccordionProps {
|
|
275
|
+
number: string;
|
|
276
|
+
title: string;
|
|
277
|
+
content: string;
|
|
278
|
+
defaultOpen?: boolean;
|
|
279
|
+
headerVariant?: 'h1' | 'h2' | 'h3';
|
|
280
|
+
numberColor?: TextColor$9;
|
|
281
|
+
titleColor?: TextColor$9;
|
|
282
|
+
iconColor?: TextColor$9;
|
|
283
|
+
contentVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
284
|
+
}
|
|
285
|
+
declare const FAQAccordion: ({ number, title, content, defaultOpen, headerVariant, numberColor, titleColor, iconColor, contentVariant, }: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
286
|
+
|
|
287
|
+
type TextColor$8 = keyof typeof colors.text;
|
|
288
|
+
type BackgroundColor$4 = keyof typeof colors.background;
|
|
289
|
+
interface FeatureItemData$1 {
|
|
290
|
+
thumbnail: React.ReactNode;
|
|
291
|
+
title: string;
|
|
292
|
+
description: string;
|
|
293
|
+
thumbnailSize?: string;
|
|
294
|
+
}
|
|
295
|
+
interface FeatureContainerProps {
|
|
296
|
+
items: FeatureItemData$1[];
|
|
297
|
+
thumbnailBgColor?: BackgroundColor$4;
|
|
298
|
+
titleColor?: TextColor$8;
|
|
299
|
+
descriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
300
|
+
}
|
|
301
|
+
declare const FeatureContainer: ({ items, thumbnailBgColor, titleColor, descriptionVariant, }: FeatureContainerProps) => react_jsx_runtime.JSX.Element;
|
|
302
|
+
|
|
303
|
+
declare const ButtonTypes: readonly ["submit", "reset", "button"];
|
|
304
|
+
type ButtonType = (typeof ButtonTypes)[number];
|
|
305
|
+
declare const variants$2: readonly ["dark", "light"];
|
|
306
|
+
type Variant$2 = (typeof variants$2)[number];
|
|
307
|
+
interface ButtonProps {
|
|
308
|
+
onClick?: () => void;
|
|
309
|
+
text?: string;
|
|
310
|
+
type?: ButtonType;
|
|
311
|
+
disabled?: boolean;
|
|
312
|
+
icon?: ReactElement;
|
|
313
|
+
variant?: Variant$2;
|
|
314
|
+
isLoading?: boolean;
|
|
315
|
+
}
|
|
316
|
+
declare const Button: {
|
|
317
|
+
({ onClick, text, type, disabled, icon, variant, isLoading, }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
318
|
+
types: readonly ["submit", "reset", "button"];
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
interface ExtendedButtonProps {
|
|
322
|
+
text: string;
|
|
323
|
+
onClick?: () => void;
|
|
324
|
+
arrowVariant?: 'brand' | 'teal' | 'blue';
|
|
325
|
+
textBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
326
|
+
textVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
327
|
+
}
|
|
328
|
+
declare const ExtendedButton: ({ text, onClick, arrowVariant, textBgVariant, textVariant, }: ExtendedButtonProps) => react_jsx_runtime.JSX.Element;
|
|
329
|
+
|
|
330
|
+
interface InputProps$1 extends Omit<BaseInputProps, 'label'> {
|
|
331
|
+
onChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
332
|
+
disabled?: boolean;
|
|
333
|
+
value?: string | number;
|
|
334
|
+
min?: string | number;
|
|
335
|
+
max?: string | number;
|
|
336
|
+
}
|
|
337
|
+
declare const Input$1: {
|
|
338
|
+
({ name, onChange, ...rest }: InputProps$1): react_jsx_runtime.JSX.Element;
|
|
339
|
+
types: readonly ["number", "text", "email", "date"];
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
interface TextareaProps$1 extends Omit<BaseInputProps, 'label'> {
|
|
343
|
+
onChange: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
344
|
+
disabled?: boolean;
|
|
345
|
+
value?: string | number;
|
|
346
|
+
rows?: number;
|
|
347
|
+
cols?: number;
|
|
348
|
+
}
|
|
349
|
+
declare const Textarea$1: {
|
|
350
|
+
({ name, onChange, rows, ...rest }: TextareaProps$1): react_jsx_runtime.JSX.Element;
|
|
351
|
+
types: readonly ["number", "text", "email", "date"];
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
declare const acceptTypes: readonly [".docx", ".doc", ".pdf", "image/*"];
|
|
355
|
+
type AcceptType = (typeof acceptTypes)[number];
|
|
356
|
+
interface FileButtonProps extends Omit<ComponentProps<typeof Button>, 'onClick' | 'type'> {
|
|
357
|
+
onFileSelect?: (file: File) => void;
|
|
358
|
+
accept?: AcceptType[];
|
|
359
|
+
multiple?: boolean;
|
|
360
|
+
}
|
|
361
|
+
declare const FileButton: ({ onFileSelect, accept, multiple, ...rest }: FileButtonProps) => react_jsx_runtime.JSX.Element;
|
|
362
|
+
|
|
363
|
+
interface InputProps extends ComponentProps<typeof Input$1> {
|
|
364
|
+
label?: string;
|
|
365
|
+
error?: string;
|
|
366
|
+
}
|
|
367
|
+
declare const Input: {
|
|
368
|
+
({ label, error, ...rest }: InputProps): react_jsx_runtime.JSX.Element;
|
|
369
|
+
types: readonly ["number", "text", "email", "date"];
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
declare const positions: readonly ["top", "center", "bottom"];
|
|
373
|
+
type ContentPosition = (typeof positions)[number];
|
|
374
|
+
interface ModalProps {
|
|
375
|
+
visible: boolean;
|
|
376
|
+
onClose: () => void;
|
|
377
|
+
dismissable?: boolean;
|
|
378
|
+
contentPosition?: ContentPosition;
|
|
379
|
+
children: ReactNode;
|
|
380
|
+
}
|
|
381
|
+
declare const Modal: ({ visible, contentPosition, dismissable, onClose, children, }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
382
|
+
|
|
383
|
+
interface OverviewRowItemProps {
|
|
384
|
+
isComplete: boolean;
|
|
385
|
+
title: string;
|
|
386
|
+
isMainHeader: boolean;
|
|
387
|
+
}
|
|
388
|
+
declare const OverviewRowItem: ({ isComplete, isMainHeader, title }: OverviewRowItemProps) => react_jsx_runtime.JSX.Element;
|
|
389
|
+
|
|
390
|
+
interface PageLayoutProps {
|
|
391
|
+
title: string;
|
|
392
|
+
children: ReactNode;
|
|
393
|
+
isLoading?: boolean;
|
|
394
|
+
rightElement?: ReactElement;
|
|
395
|
+
}
|
|
396
|
+
declare const PageLayout: ({ title, children, isLoading, rightElement }: PageLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
397
|
+
|
|
398
|
+
interface PDFPreviewerProps {
|
|
399
|
+
url: string;
|
|
400
|
+
}
|
|
401
|
+
declare const PDFPreviewer: ({ url }: PDFPreviewerProps) => react_jsx_runtime.JSX.Element;
|
|
402
|
+
|
|
403
|
+
type TextColor$7 = keyof typeof colors.text;
|
|
404
|
+
interface ProductInfoItemProps {
|
|
405
|
+
image: string;
|
|
406
|
+
logoImage: string;
|
|
407
|
+
title: string;
|
|
408
|
+
buttonText: string;
|
|
409
|
+
onButtonClick?: () => void;
|
|
410
|
+
titleVariant?: 'h1' | 'h2' | 'h3';
|
|
411
|
+
titleColor?: TextColor$7;
|
|
412
|
+
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
413
|
+
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
414
|
+
buttonTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
415
|
+
}
|
|
416
|
+
declare const ProductInfo: ({ image, logoImage, title, buttonText, onButtonClick, titleVariant, titleColor, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: ProductInfoItemProps) => react_jsx_runtime.JSX.Element;
|
|
417
|
+
|
|
418
|
+
type RadioGroupProps<T extends string | number> = {
|
|
419
|
+
label?: string;
|
|
420
|
+
options: readonly Option<T>[];
|
|
421
|
+
value: T;
|
|
422
|
+
onClick: (value: T) => void;
|
|
423
|
+
className?: string;
|
|
424
|
+
};
|
|
425
|
+
declare const RadioGroup: <T extends string | number>({ label, options, value, onClick, className, }: RadioGroupProps<T>) => react_jsx_runtime.JSX.Element;
|
|
426
|
+
|
|
427
|
+
declare const variants$1: readonly ["primary", "secondary", "subtle"];
|
|
428
|
+
type Variant$1 = (typeof variants$1)[number];
|
|
429
|
+
interface RateItem {
|
|
430
|
+
transactionType: string;
|
|
431
|
+
price: string;
|
|
432
|
+
}
|
|
433
|
+
interface RatesChartProps {
|
|
434
|
+
title?: string;
|
|
435
|
+
rates: RateItem[];
|
|
436
|
+
onClose: () => void;
|
|
437
|
+
variant?: Variant$1;
|
|
438
|
+
}
|
|
439
|
+
declare const RatesChart: {
|
|
440
|
+
({ title, rates, onClose, variant, }: RatesChartProps): react_jsx_runtime.JSX.Element;
|
|
441
|
+
variants: readonly ["primary", "secondary", "subtle"];
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
type BorderColor = keyof typeof colors.border;
|
|
445
|
+
declare const NavItem: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, never>> & string;
|
|
446
|
+
interface NavItem {
|
|
447
|
+
label: string;
|
|
448
|
+
href: string;
|
|
449
|
+
}
|
|
450
|
+
interface SideNavProps {
|
|
451
|
+
items: NavItem[];
|
|
452
|
+
activeItem?: string;
|
|
453
|
+
onBackToTop?: () => void;
|
|
454
|
+
triangleColor?: BorderColor;
|
|
455
|
+
dividerColor?: BorderColor;
|
|
456
|
+
activeTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
457
|
+
activeTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
458
|
+
inactiveTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
459
|
+
inactiveTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
460
|
+
backToTopBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
461
|
+
backToTopTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
462
|
+
}
|
|
463
|
+
declare const SideNav: ({ items, activeItem, onBackToTop, triangleColor, dividerColor, activeTextBgVariant, activeTextVariant, inactiveTextBgVariant, inactiveTextVariant, backToTopBgVariant, backToTopTextVariant, }: SideNavProps) => react_jsx_runtime.JSX.Element;
|
|
464
|
+
|
|
465
|
+
type BackgroundColor$3 = keyof typeof colors.background;
|
|
466
|
+
type TextColor$6 = keyof typeof colors.text;
|
|
467
|
+
interface SidePanelProps {
|
|
468
|
+
isOpen: boolean;
|
|
469
|
+
onClose: () => void;
|
|
470
|
+
icon: React.ReactNode;
|
|
471
|
+
title: string;
|
|
472
|
+
description: string;
|
|
473
|
+
buttonText: string;
|
|
474
|
+
onButtonClick?: () => void;
|
|
475
|
+
closeButtonBgColor?: BackgroundColor$3;
|
|
476
|
+
titleColor?: TextColor$6;
|
|
477
|
+
descriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
478
|
+
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
479
|
+
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
480
|
+
buttonTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
481
|
+
}
|
|
482
|
+
declare const SidePanel: ({ isOpen, onClose, icon, title, description, buttonText, onButtonClick, closeButtonBgColor, titleColor, descriptionVariant, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: SidePanelProps) => react_jsx_runtime.JSX.Element;
|
|
483
|
+
|
|
484
|
+
interface StepperHeaderTabProps {
|
|
485
|
+
onClick?: () => void;
|
|
486
|
+
title: string;
|
|
487
|
+
isSelected: boolean;
|
|
488
|
+
}
|
|
489
|
+
declare const StepperHeaderTab: ({ title, isSelected, onClick, }: StepperHeaderTabProps) => react_jsx_runtime.JSX.Element;
|
|
490
|
+
|
|
491
|
+
interface TextareaProps extends ComponentProps<typeof Textarea$1> {
|
|
492
|
+
label?: string;
|
|
493
|
+
error?: string;
|
|
494
|
+
}
|
|
495
|
+
declare const Textarea: ({ label, error, ...rest }: TextareaProps) => react_jsx_runtime.JSX.Element;
|
|
496
|
+
|
|
497
|
+
interface ContactFormProps {
|
|
498
|
+
}
|
|
499
|
+
declare const ContactForm: ({}: ContactFormProps) => react_jsx_runtime.JSX.Element;
|
|
500
|
+
|
|
501
|
+
interface DocumentListAccordionProps extends Pick<ComponentProps<typeof FileButton>, 'accept' | 'onFileSelect'> {
|
|
502
|
+
title: string;
|
|
503
|
+
files: DocumentListAccordionFileType[];
|
|
504
|
+
onViewDetail: (id: string) => void;
|
|
505
|
+
onSortBy?: (accessor: keyof DocumentListAccordionFileType) => void;
|
|
506
|
+
}
|
|
507
|
+
declare const DocumentListAccordion: ({ title, files, onSortBy, onViewDetail, accept, onFileSelect, }: DocumentListAccordionProps) => react_jsx_runtime.JSX.Element;
|
|
508
|
+
|
|
509
|
+
type TextColor$5 = keyof typeof colors.text;
|
|
510
|
+
type BackgroundColor$2 = keyof typeof colors.background;
|
|
511
|
+
interface CarouselCard {
|
|
512
|
+
thumbnail: React.ReactNode;
|
|
513
|
+
title: string;
|
|
514
|
+
description: string;
|
|
515
|
+
onArrowClick?: () => void;
|
|
516
|
+
}
|
|
517
|
+
interface CarouselProps {
|
|
518
|
+
cards: CarouselCard[];
|
|
519
|
+
cardTitleColor?: TextColor$5;
|
|
520
|
+
cardDescriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
521
|
+
cardArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
522
|
+
cardThumbnailBgColor?: BackgroundColor$2;
|
|
523
|
+
navButtonColor?: TextColor$5;
|
|
524
|
+
indicatorColor?: TextColor$5;
|
|
525
|
+
}
|
|
526
|
+
declare const FeatureCarousel: ({ cards, cardTitleColor, cardDescriptionVariant, cardArrowVariant, cardThumbnailBgColor, navButtonColor, indicatorColor, }: CarouselProps) => react_jsx_runtime.JSX.Element;
|
|
527
|
+
|
|
528
|
+
declare const variants: readonly ["primary", "secondary"];
|
|
529
|
+
type Variant = (typeof variants)[number];
|
|
530
|
+
interface AddressData {
|
|
531
|
+
title: string;
|
|
532
|
+
phone?: string;
|
|
533
|
+
email?: string;
|
|
534
|
+
addressLines: string[];
|
|
535
|
+
}
|
|
536
|
+
interface SocialLink {
|
|
537
|
+
icon: React.ReactNode;
|
|
538
|
+
url: string;
|
|
539
|
+
ariaLabel: string;
|
|
540
|
+
}
|
|
541
|
+
declare const LegalLink: styled_components_dist_types.IStyledComponentBase<"web", styled_components.FastOmit<react.DetailedHTMLProps<react.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, never>> & string;
|
|
542
|
+
interface LegalLink {
|
|
543
|
+
text: string;
|
|
544
|
+
url: string;
|
|
545
|
+
}
|
|
546
|
+
interface FooterProps {
|
|
547
|
+
logo: string;
|
|
548
|
+
primaryButtonText: string;
|
|
549
|
+
secondaryButtonText: string;
|
|
550
|
+
onPrimaryClick?: () => void;
|
|
551
|
+
onSecondaryClick?: () => void;
|
|
552
|
+
addresses: AddressData[];
|
|
553
|
+
socialLinks: SocialLink[];
|
|
554
|
+
legalLinks: LegalLink[];
|
|
555
|
+
copyrightText: string;
|
|
556
|
+
variant?: Variant;
|
|
557
|
+
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
558
|
+
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
559
|
+
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
560
|
+
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
561
|
+
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
562
|
+
}
|
|
563
|
+
declare const Footer: {
|
|
564
|
+
({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, addresses, socialLinks, legalLinks, copyrightText, variant, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
565
|
+
variants: readonly ["primary", "secondary"];
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
interface HeaderProps {
|
|
569
|
+
logo: string;
|
|
570
|
+
primaryButtonText: string;
|
|
571
|
+
secondaryButtonText: string;
|
|
572
|
+
onPrimaryClick?: () => void;
|
|
573
|
+
onSecondaryClick?: () => void;
|
|
574
|
+
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
575
|
+
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
576
|
+
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
577
|
+
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
578
|
+
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
579
|
+
}
|
|
580
|
+
declare const Header: ({ logo, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
581
|
+
|
|
582
|
+
type OverviewItem = {
|
|
583
|
+
title: string;
|
|
584
|
+
isComplete: boolean;
|
|
585
|
+
};
|
|
586
|
+
type Overview = {
|
|
587
|
+
header: string;
|
|
588
|
+
overviewItems: OverviewItem[];
|
|
589
|
+
};
|
|
590
|
+
interface OverviewListProps {
|
|
591
|
+
overviews: Overview[];
|
|
592
|
+
}
|
|
593
|
+
declare const OverviewList: ({ overviews }: OverviewListProps) => react_jsx_runtime.JSX.Element;
|
|
594
|
+
|
|
595
|
+
type ShowToastInput = {
|
|
596
|
+
type?: ToastType;
|
|
597
|
+
message: string;
|
|
598
|
+
};
|
|
599
|
+
type ToastContextProps = {
|
|
600
|
+
showToast: (input: ShowToastInput) => void;
|
|
601
|
+
};
|
|
602
|
+
declare const useToast: () => ToastContextProps;
|
|
603
|
+
interface ToastProvider {
|
|
604
|
+
children: ReactNode;
|
|
605
|
+
}
|
|
606
|
+
declare const ToastProvider: ({ children }: ToastProvider) => react_jsx_runtime.JSX.Element;
|
|
607
|
+
|
|
608
|
+
interface VersionLabelProps {
|
|
609
|
+
versionNumber: string;
|
|
610
|
+
}
|
|
611
|
+
declare const VersionLabel: ({ versionNumber }: VersionLabelProps) => react_jsx_runtime.JSX.Element;
|
|
612
|
+
|
|
613
|
+
type TextColor$4 = keyof typeof colors.text;
|
|
614
|
+
interface AboutUsProps {
|
|
615
|
+
image: string;
|
|
616
|
+
pillText: string;
|
|
617
|
+
headerText: string;
|
|
618
|
+
description: string;
|
|
619
|
+
buttonText: string;
|
|
620
|
+
onButtonClick?: () => void;
|
|
621
|
+
pillVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
622
|
+
headerColor?: TextColor$4;
|
|
623
|
+
descriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
624
|
+
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
625
|
+
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
626
|
+
buttonTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
627
|
+
}
|
|
628
|
+
declare const AboutUs: ({ image, pillText, headerText, description, buttonText, onButtonClick, pillVariant, headerColor, descriptionVariant, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: AboutUsProps) => react_jsx_runtime.JSX.Element;
|
|
629
|
+
|
|
630
|
+
type TextColor$3 = keyof typeof colors.text;
|
|
631
|
+
type ComponentTextColor$1 = Exclude<TextColor$3, 'active' | 'hover' | 'focus'>;
|
|
632
|
+
interface ContactProps {
|
|
633
|
+
image: string;
|
|
634
|
+
headerText: string;
|
|
635
|
+
termsChecked: boolean;
|
|
636
|
+
onTermsChange: (checked: boolean) => void;
|
|
637
|
+
buttonText: string;
|
|
638
|
+
onButtonClick?: () => void;
|
|
639
|
+
headerColor?: ComponentTextColor$1;
|
|
640
|
+
termsVariant?: 'primary' | 'secondary' | 'subtle';
|
|
641
|
+
buttonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
642
|
+
buttonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
643
|
+
buttonTextVariant?: ComponentProps<typeof ExtendedButton>['textVariant'];
|
|
644
|
+
}
|
|
645
|
+
declare const Contact: ({ image, headerText, termsChecked, onTermsChange, buttonText, onButtonClick, headerColor, termsVariant, buttonArrowVariant, buttonTextBgVariant, buttonTextVariant, }: ContactProps) => react_jsx_runtime.JSX.Element;
|
|
646
|
+
|
|
647
|
+
type TextColor$2 = keyof typeof colors.text;
|
|
648
|
+
interface AccordionItem {
|
|
649
|
+
number: string;
|
|
650
|
+
title: string;
|
|
651
|
+
content: string;
|
|
652
|
+
defaultOpen?: boolean;
|
|
653
|
+
}
|
|
654
|
+
interface FAQProps {
|
|
655
|
+
pillText: string;
|
|
656
|
+
headerText: string;
|
|
657
|
+
headerVariant?: 'h1' | 'h2' | 'h3';
|
|
658
|
+
accordionItems: AccordionItem[];
|
|
659
|
+
pillVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
660
|
+
headerColor?: TextColor$2;
|
|
661
|
+
accordionNumberColor?: TextColor$2;
|
|
662
|
+
accordionTitleColor?: TextColor$2;
|
|
663
|
+
accordionIconColor?: TextColor$2;
|
|
664
|
+
accordionContentVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
665
|
+
}
|
|
666
|
+
declare const FAQ: ({ pillText, headerText, headerVariant, accordionItems, pillVariant, headerColor, accordionNumberColor, accordionTitleColor, accordionIconColor, accordionContentVariant, }: FAQProps) => react_jsx_runtime.JSX.Element;
|
|
667
|
+
|
|
668
|
+
type TextColor$1 = keyof typeof colors.text;
|
|
669
|
+
type BackgroundColor$1 = keyof typeof colors.background;
|
|
670
|
+
interface FeatureCard {
|
|
671
|
+
thumbnail: React.ReactNode;
|
|
672
|
+
title: string;
|
|
673
|
+
description: string;
|
|
674
|
+
onArrowClick?: () => void;
|
|
675
|
+
}
|
|
676
|
+
interface FeaturesProps {
|
|
677
|
+
pillText: string;
|
|
678
|
+
headerText: string;
|
|
679
|
+
cards: FeatureCard[];
|
|
680
|
+
pillVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
681
|
+
headerColor?: TextColor$1;
|
|
682
|
+
cardTitleColor?: TextColor$1;
|
|
683
|
+
cardDescriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
684
|
+
cardArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
685
|
+
cardThumbnailBgColor?: BackgroundColor$1;
|
|
686
|
+
navButtonColor?: TextColor$1;
|
|
687
|
+
indicatorColor?: TextColor$1;
|
|
688
|
+
}
|
|
689
|
+
declare const Features: ({ pillText, headerText, cards, pillVariant, headerColor, cardTitleColor, cardDescriptionVariant, cardArrowVariant, cardThumbnailBgColor, navButtonColor, indicatorColor, }: FeaturesProps) => react_jsx_runtime.JSX.Element;
|
|
690
|
+
|
|
691
|
+
type BackgroundColor = keyof typeof colors.background;
|
|
692
|
+
interface FeatureItemData {
|
|
693
|
+
thumbnail: React.ReactNode;
|
|
694
|
+
title: string;
|
|
695
|
+
description: string;
|
|
696
|
+
thumbnailSize?: string;
|
|
697
|
+
}
|
|
698
|
+
interface HeroProps {
|
|
699
|
+
ctaHeader: string;
|
|
700
|
+
ctaDescription: string;
|
|
701
|
+
primaryButtonText: string;
|
|
702
|
+
secondaryButtonText?: string;
|
|
703
|
+
onPrimaryClick?: () => void;
|
|
704
|
+
onSecondaryClick?: () => void;
|
|
705
|
+
featureItems: FeatureItemData[];
|
|
706
|
+
bgImage?: string;
|
|
707
|
+
overlayColor?: string;
|
|
708
|
+
ctaHeaderTextColor?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
709
|
+
ctaDescriptionTextColor?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
710
|
+
primaryArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
711
|
+
primaryTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
712
|
+
primaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
713
|
+
secondaryBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
714
|
+
secondaryTextVariant?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
715
|
+
featureThumbnailBgColor?: BackgroundColor;
|
|
716
|
+
featureTitleColor?: 'brand' | 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'light' | 'error' | 'blue';
|
|
717
|
+
featureDescriptionVariant?: 'primary' | 'secondary' | 'subtle' | 'error';
|
|
718
|
+
}
|
|
719
|
+
declare const Hero: ({ ctaHeader, ctaDescription, primaryButtonText, secondaryButtonText, onPrimaryClick, onSecondaryClick, featureItems, bgImage, overlayColor, ctaHeaderTextColor, ctaDescriptionTextColor, primaryArrowVariant, primaryTextBgVariant, primaryTextVariant, secondaryBgVariant, secondaryTextVariant, featureThumbnailBgColor, featureTitleColor, featureDescriptionVariant, }: HeroProps) => react_jsx_runtime.JSX.Element;
|
|
720
|
+
|
|
721
|
+
type TextColor = keyof typeof colors.text;
|
|
722
|
+
type ComponentTextColor = Exclude<TextColor, 'active' | 'hover' | 'focus'>;
|
|
723
|
+
interface Product {
|
|
724
|
+
image: string;
|
|
725
|
+
logoImage: string;
|
|
726
|
+
title: string;
|
|
727
|
+
buttonText: string;
|
|
728
|
+
onButtonClick?: () => void;
|
|
729
|
+
titleVariant?: 'h1' | 'h2' | 'h3';
|
|
730
|
+
}
|
|
731
|
+
interface OtherProductsProps {
|
|
732
|
+
headerText: string;
|
|
733
|
+
headerVariant?: 'h1' | 'h2' | 'h3';
|
|
734
|
+
products: Product[];
|
|
735
|
+
headerColor?: ComponentTextColor;
|
|
736
|
+
productTitleColor?: ComponentTextColor;
|
|
737
|
+
productButtonArrowVariant?: 'brand' | 'teal' | 'blue';
|
|
738
|
+
productButtonTextBgVariant?: 'primary' | 'secondary' | 'tertiary' | 'subtle' | 'blue' | 'brand' | 'light' | 'transparent';
|
|
739
|
+
productButtonTextVariant?: ComponentProps<typeof ProductInfo>['buttonTextVariant'];
|
|
740
|
+
}
|
|
741
|
+
declare const OtherProducts: ({ headerText, headerVariant, products, headerColor, productTitleColor, productButtonArrowVariant, productButtonTextBgVariant, productButtonTextVariant, }: OtherProductsProps) => react_jsx_runtime.JSX.Element;
|
|
742
|
+
|
|
743
|
+
export { AboutUs, Accordion, Address, CTAContainer, Checkbox, Contact, ContactForm, ContentCard, DocumentListAccordion, type DocumentListAccordionFileType, Dropdown, FAQ, FAQAccordion, FeatureCarousel, FeatureContainer, Features, FileButton, Filter, Footer, Header, Hero, Input, Modal, NavMenu, OtherProducts, OverviewList, OverviewRowItem, PDFPreviewer, PageLayout, ProductInfo, RadioGroup, RatesChart, Search, SideNav, SidePanel, SortBy, Spinner, StepperHeaderTab, Table, TableHeader, type TableHeaderConfig, TableInner, TableListItem, TableRow, Tabs, Textarea, Toast, ToastProvider, TopMenu, VersionLabel, useToast };
|