@solace-health/ui 0.10.73 → 0.10.75
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/index.cjs +579 -456
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +176 -154
- package/dist/index.d.ts +176 -154
- package/dist/index.js +528 -406
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as antd from 'antd';
|
|
3
|
-
import { AvatarProps, BadgeProps, DividerProps, DrawerProps, MenuProps, DropDownProps,
|
|
3
|
+
import { AutoCompleteProps, AvatarProps, BadgeProps, DividerProps, DrawerProps, MenuProps, DropDownProps, FlexProps, ModalProps, ProgressProps, TabsProps, TagProps, SubMenuProps, DatePickerProps } from 'antd';
|
|
4
4
|
import * as react from 'react';
|
|
5
5
|
import react__default, { CSSProperties } from 'react';
|
|
6
6
|
import dayjs, { Dayjs } from 'dayjs';
|
|
@@ -8,10 +8,10 @@ import * as _emotion_styled from '@emotion/styled';
|
|
|
8
8
|
export { default as styled } from '@emotion/styled';
|
|
9
9
|
import * as preact_hooks from 'preact/hooks';
|
|
10
10
|
import * as _emotion_react from '@emotion/react';
|
|
11
|
+
import * as contentful from 'contentful';
|
|
11
12
|
import { MenuProps as MenuProps$1 } from '@szhsin/react-menu';
|
|
12
13
|
import { FunctionalComponent } from 'preact';
|
|
13
14
|
import { ColumnsType, TablePaginationConfig, TableProps } from 'antd/es/table';
|
|
14
|
-
import * as contentful from 'contentful';
|
|
15
15
|
import * as antd_es_upload_interface from 'antd/es/upload/interface';
|
|
16
16
|
import * as rc_select_lib_Select from 'rc-select/lib/Select';
|
|
17
17
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -21,6 +21,31 @@ import * as rc_input_number from 'rc-input-number';
|
|
|
21
21
|
import { MenuDividerProps } from 'antd/es/menu';
|
|
22
22
|
import { MenuItemType } from 'antd/es/menu/hooks/useItems';
|
|
23
23
|
|
|
24
|
+
declare const _default$a: {
|
|
25
|
+
HandHeart: ({ color, active }: {
|
|
26
|
+
active?: boolean | undefined;
|
|
27
|
+
color?: string | undefined;
|
|
28
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
29
|
+
HandMoney: ({ color, active }: {
|
|
30
|
+
active?: boolean | undefined;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
33
|
+
Hospital: ({ color, active }: {
|
|
34
|
+
active?: boolean | undefined;
|
|
35
|
+
color?: string | undefined;
|
|
36
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
37
|
+
Heart: ({ color, active }: {
|
|
38
|
+
active?: boolean | undefined;
|
|
39
|
+
color?: string | undefined;
|
|
40
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
Person: ({ color, active }: {
|
|
42
|
+
active?: boolean | undefined;
|
|
43
|
+
color?: string | undefined;
|
|
44
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare function AutoComplete({ ...rest }: AutoCompleteProps): react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
24
49
|
declare enum UserTypes {
|
|
25
50
|
Client = "client",
|
|
26
51
|
Patient = "patient",
|
|
@@ -28,7 +53,7 @@ declare enum UserTypes {
|
|
|
28
53
|
HybridAdvocate = "hybridAdvocate",
|
|
29
54
|
CHWorker = "chw"
|
|
30
55
|
}
|
|
31
|
-
declare type Props$
|
|
56
|
+
declare type Props$j = {
|
|
32
57
|
size?: number;
|
|
33
58
|
style?: React.CSSProperties;
|
|
34
59
|
src?: string;
|
|
@@ -40,9 +65,11 @@ declare type Props$i = {
|
|
|
40
65
|
type?: UserTypes;
|
|
41
66
|
[extraProps: string]: unknown;
|
|
42
67
|
} & AvatarProps;
|
|
43
|
-
declare const Avatar: ({ size, src, type, user, ...extraProps }: Props$
|
|
68
|
+
declare const Avatar: ({ size, src, type, user, ...extraProps }: Props$j) => react_jsx_runtime.JSX.Element;
|
|
44
69
|
|
|
45
|
-
declare
|
|
70
|
+
declare const Badge: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
|
|
72
|
+
declare type Props$i = {
|
|
46
73
|
children: React.ReactNode;
|
|
47
74
|
isSubmitting?: boolean;
|
|
48
75
|
toolTip?: {
|
|
@@ -52,24 +79,22 @@ declare type Props$h = {
|
|
|
52
79
|
color?: string;
|
|
53
80
|
[extraProps: string]: unknown;
|
|
54
81
|
};
|
|
55
|
-
declare const _default$
|
|
56
|
-
Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$
|
|
57
|
-
Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$
|
|
58
|
-
Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$
|
|
59
|
-
Secondary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$
|
|
60
|
-
Link: ({ children, toolTip, color, ...extraProps }: Props$
|
|
82
|
+
declare const _default$9: {
|
|
83
|
+
Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
84
|
+
Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
85
|
+
Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
86
|
+
Secondary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
87
|
+
Link: ({ children, toolTip, color, ...extraProps }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
61
88
|
};
|
|
62
89
|
|
|
63
|
-
declare
|
|
64
|
-
|
|
65
|
-
declare type Props$g = {
|
|
90
|
+
declare type Props$h = {
|
|
66
91
|
children: React.ReactNode;
|
|
67
92
|
color?: string;
|
|
68
93
|
background?: string;
|
|
69
94
|
[extraProps: string]: unknown;
|
|
70
95
|
};
|
|
71
|
-
declare const _default$
|
|
72
|
-
Primary: ({ children, ...extraProps }: Props$
|
|
96
|
+
declare const _default$8: {
|
|
97
|
+
Primary: ({ children, ...extraProps }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
73
98
|
};
|
|
74
99
|
|
|
75
100
|
declare type Item = {
|
|
@@ -77,14 +102,14 @@ declare type Item = {
|
|
|
77
102
|
label: JSX.Element | React.RefObject<HTMLDivElement> | string;
|
|
78
103
|
children: JSX.Element | React.RefObject<HTMLDivElement> | string;
|
|
79
104
|
};
|
|
80
|
-
declare type Props$
|
|
105
|
+
declare type Props$g = {
|
|
81
106
|
items: Item[] | Item;
|
|
82
107
|
onChange?: (key: string | string[]) => void;
|
|
83
108
|
style?: CSSProperties;
|
|
84
109
|
};
|
|
85
|
-
declare const Collapse: ({ items, onChange, ...rest }: Props$
|
|
110
|
+
declare const Collapse: ({ items, onChange, ...rest }: Props$g) => react_jsx_runtime.JSX.Element;
|
|
86
111
|
|
|
87
|
-
declare type Props$
|
|
112
|
+
declare type Props$f = {
|
|
88
113
|
value?: string | null;
|
|
89
114
|
onChange: (dateString: string, date: Date) => void;
|
|
90
115
|
startRange?: Date | null;
|
|
@@ -96,15 +121,15 @@ declare type Props$e = {
|
|
|
96
121
|
hasError?: boolean;
|
|
97
122
|
disabled?: boolean;
|
|
98
123
|
};
|
|
99
|
-
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, disabled, ...extraProps }: Props$
|
|
124
|
+
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, disabled, ...extraProps }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
100
125
|
|
|
101
|
-
declare type Props$
|
|
126
|
+
declare type Props$e = {
|
|
102
127
|
style?: react__default.CSSProperties;
|
|
103
128
|
type?: "horizontal" | "vertical";
|
|
104
129
|
} & DividerProps;
|
|
105
|
-
declare const Divider: react__default.FC<Props$
|
|
130
|
+
declare const Divider: react__default.FC<Props$e>;
|
|
106
131
|
|
|
107
|
-
declare type Props$
|
|
132
|
+
declare type Props$d = {
|
|
108
133
|
isOpen: boolean;
|
|
109
134
|
onClose: () => void;
|
|
110
135
|
children: React.ReactNode;
|
|
@@ -115,7 +140,7 @@ declare type Props$c = {
|
|
|
115
140
|
title?: string;
|
|
116
141
|
[inputProps: string]: unknown;
|
|
117
142
|
} & DrawerProps;
|
|
118
|
-
declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, contentWrapperStyle, ...inputProps }: Props$
|
|
143
|
+
declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, contentWrapperStyle, ...inputProps }: Props$d) => react_jsx_runtime.JSX.Element;
|
|
119
144
|
|
|
120
145
|
declare const Dropdown: _emotion_styled.StyledComponent<{
|
|
121
146
|
items: MenuProps["items"];
|
|
@@ -153,12 +178,17 @@ declare type GroupProps = {
|
|
|
153
178
|
handleDownload: (file: File) => void;
|
|
154
179
|
className?: string;
|
|
155
180
|
};
|
|
156
|
-
declare const _default$
|
|
181
|
+
declare const _default$7: {
|
|
157
182
|
Group: ({ files, handleDownload, className }: GroupProps) => react_jsx_runtime.JSX.Element;
|
|
158
183
|
Display: ({ file, display, handleDownload, className, }: FileProps) => react_jsx_runtime.JSX.Element | null;
|
|
159
184
|
};
|
|
160
185
|
|
|
161
|
-
declare
|
|
186
|
+
declare type Props$c = {
|
|
187
|
+
children: React.ReactNode | React.ReactNode[];
|
|
188
|
+
} & FlexProps;
|
|
189
|
+
declare const Flex: ({ children, ...otherProps }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
190
|
+
|
|
191
|
+
declare const _default$6: {
|
|
162
192
|
AddCircle: ({ color }: {
|
|
163
193
|
color?: string | undefined;
|
|
164
194
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -412,28 +442,49 @@ declare const _default$7: {
|
|
|
412
442
|
}) => JSX.Element;
|
|
413
443
|
};
|
|
414
444
|
|
|
415
|
-
declare
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
color?: string | undefined;
|
|
427
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
428
|
-
Heart: ({ color, active }: {
|
|
429
|
-
active?: boolean | undefined;
|
|
430
|
-
color?: string | undefined;
|
|
431
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
432
|
-
Person: ({ color, active }: {
|
|
433
|
-
active?: boolean | undefined;
|
|
434
|
-
color?: string | undefined;
|
|
435
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
445
|
+
declare enum Size {
|
|
446
|
+
XL = "xl",
|
|
447
|
+
LG = "lg",
|
|
448
|
+
MD = "md",
|
|
449
|
+
SM = "sm",
|
|
450
|
+
XS = "xs"
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare type Props$b = {
|
|
454
|
+
color?: string;
|
|
455
|
+
size?: Size;
|
|
436
456
|
};
|
|
457
|
+
declare const LoadingSpinner: ({ color, size, }: Props$b) => react_jsx_runtime.JSX.Element;
|
|
458
|
+
|
|
459
|
+
declare enum ContentfulLottieFileSlug {
|
|
460
|
+
LOADING_LISTINGS = "loadingListings",
|
|
461
|
+
LOADING_ACCOUNT = "loadingAccount",
|
|
462
|
+
LOADING_LOGO_SUCCESSFUL = "logoLoadingSuccessful"
|
|
463
|
+
}
|
|
464
|
+
declare type ContentfulConfig = {
|
|
465
|
+
space: string;
|
|
466
|
+
accessToken: string;
|
|
467
|
+
};
|
|
468
|
+
declare class Contentful {
|
|
469
|
+
client: contentful.ContentfulClientApi<undefined>;
|
|
470
|
+
constructor(contentfulConfig: ContentfulConfig);
|
|
471
|
+
getLottieFile({ slug }: {
|
|
472
|
+
slug: ContentfulLottieFileSlug;
|
|
473
|
+
}): Promise<null>;
|
|
474
|
+
getImage(slug: string): Promise<any>;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
declare type Props$a = {
|
|
478
|
+
height: number | string;
|
|
479
|
+
width: number | string;
|
|
480
|
+
loop: boolean;
|
|
481
|
+
slug: ContentfulLottieFileSlug;
|
|
482
|
+
contentfulConfig: {
|
|
483
|
+
space: string;
|
|
484
|
+
accessToken: string;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$a) => react_jsx_runtime.JSX.Element | null;
|
|
437
488
|
|
|
438
489
|
declare type ContainerProps = {
|
|
439
490
|
cta: string | JSX.Element;
|
|
@@ -480,6 +531,23 @@ declare const _default$5: {
|
|
|
480
531
|
Item: ({ label, value, selected, onClick, disabled, linkTo, className, }: ItemProps) => react_jsx_runtime.JSX.Element;
|
|
481
532
|
};
|
|
482
533
|
|
|
534
|
+
declare type Props$9 = {
|
|
535
|
+
children: React.ReactNode;
|
|
536
|
+
isOpen: boolean;
|
|
537
|
+
onClose?: () => void;
|
|
538
|
+
width?: number;
|
|
539
|
+
style?: any;
|
|
540
|
+
styles?: ModalProps["styles"];
|
|
541
|
+
/**
|
|
542
|
+
* @deprecated Use { styles: { body: CSSProperties } }
|
|
543
|
+
*/
|
|
544
|
+
bodyStyle?: CSSProperties;
|
|
545
|
+
centered?: boolean;
|
|
546
|
+
className?: string;
|
|
547
|
+
[extraProps: string]: unknown;
|
|
548
|
+
};
|
|
549
|
+
declare const Modal: ({ children, isOpen, onClose, width, centered, style, styles, bodyStyle, className, ...props }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
550
|
+
|
|
483
551
|
interface Step {
|
|
484
552
|
title: string;
|
|
485
553
|
description: string;
|
|
@@ -503,14 +571,24 @@ declare enum PillStatus {
|
|
|
503
571
|
Label = "label",
|
|
504
572
|
Default = "default"
|
|
505
573
|
}
|
|
506
|
-
declare type Props$
|
|
574
|
+
declare type Props$8 = {
|
|
507
575
|
children: React.ReactNode;
|
|
508
576
|
status?: PillStatus | string;
|
|
509
577
|
icon?: React.ReactNode | null;
|
|
510
578
|
};
|
|
511
|
-
declare const Pill: ({ children, status, icon, }: Props$
|
|
579
|
+
declare const Pill: ({ children, status, icon, }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
512
580
|
|
|
513
|
-
declare type
|
|
581
|
+
declare const Progress: ({ percent, type, strokeColor, strokeLinecap, ...rest }: Omit<ProgressProps, "aria-label" | "aria-labelledby">) => react_jsx_runtime.JSX.Element;
|
|
582
|
+
|
|
583
|
+
declare const Ribbon: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
584
|
+
|
|
585
|
+
declare const SearchInput: ({ searchValue, displaySmall, ...props }: {
|
|
586
|
+
[extraProps: string]: unknown;
|
|
587
|
+
searchValue?: string | undefined;
|
|
588
|
+
displaySmall?: boolean | undefined;
|
|
589
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
590
|
+
|
|
591
|
+
declare type Props$7 = {
|
|
514
592
|
onChange: (value: string) => void;
|
|
515
593
|
options: string[] | number[] | Array<{
|
|
516
594
|
label: FunctionalComponent;
|
|
@@ -523,7 +601,12 @@ declare type Props$a = {
|
|
|
523
601
|
defaultValue: string;
|
|
524
602
|
block: boolean;
|
|
525
603
|
};
|
|
526
|
-
declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$
|
|
604
|
+
declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$7) => react_jsx_runtime.JSX.Element;
|
|
605
|
+
|
|
606
|
+
declare type Props$6 = {
|
|
607
|
+
color: string;
|
|
608
|
+
};
|
|
609
|
+
declare const SolaceLogo: ({ color }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
527
610
|
|
|
528
611
|
declare type Element = {
|
|
529
612
|
id: string;
|
|
@@ -539,37 +622,40 @@ declare type SortableListProps = {
|
|
|
539
622
|
};
|
|
540
623
|
declare function SortableList({ id, onClickElement, elements, onChange, onDragOver, className, }: SortableListProps): react_jsx_runtime.JSX.Element;
|
|
541
624
|
|
|
542
|
-
declare type Props$
|
|
625
|
+
declare type Props$5<T> = {
|
|
543
626
|
rowClassName?: string;
|
|
544
627
|
columns: ColumnsType<T>;
|
|
545
628
|
dataSource: T[];
|
|
546
629
|
showPagination?: boolean;
|
|
547
630
|
pagination?: TablePaginationConfig;
|
|
548
631
|
} & TableProps<T>;
|
|
549
|
-
declare const Table: <T extends object>({ rowClassName, columns, dataSource, pagination, showPagination, ...otherProps }: Props$
|
|
632
|
+
declare const Table: <T extends object>({ rowClassName, columns, dataSource, pagination, showPagination, ...otherProps }: Props$5<T>) => react_jsx_runtime.JSX.Element;
|
|
550
633
|
|
|
551
|
-
declare type Props$
|
|
634
|
+
declare type Props$4 = {
|
|
552
635
|
className?: string;
|
|
553
636
|
navigate?: (url: string) => void;
|
|
554
637
|
pathname?: string;
|
|
555
638
|
} & TabsProps;
|
|
556
|
-
declare const Tabs: ({ className, items, navigate, activeKey, pathname, ...otherProps }: Props$
|
|
639
|
+
declare const Tabs: ({ className, items, navigate, activeKey, pathname, ...otherProps }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
557
640
|
|
|
558
|
-
declare type Props$
|
|
641
|
+
declare type Props$3 = TagProps;
|
|
642
|
+
declare function Tag({ children, style, ...rest }: Props$3): react_jsx_runtime.JSX.Element;
|
|
643
|
+
|
|
644
|
+
declare type Props$2 = {
|
|
559
645
|
onChange?: (time: Dayjs, timeString: string) => void;
|
|
560
646
|
format?: string;
|
|
561
647
|
[pickerProps: string]: unknown;
|
|
562
648
|
};
|
|
563
|
-
declare const TimePicker: ({ onChange, format, ...pickerProps }: Props$
|
|
649
|
+
declare const TimePicker: ({ onChange, format, ...pickerProps }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
564
650
|
|
|
565
|
-
declare type Props$
|
|
651
|
+
declare type Props$1 = {
|
|
566
652
|
startTime?: string;
|
|
567
653
|
endTime?: string;
|
|
568
654
|
interval?: number;
|
|
569
655
|
defaultValue?: string;
|
|
570
656
|
onChange?: (e: unknown) => void;
|
|
571
657
|
};
|
|
572
|
-
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$
|
|
658
|
+
declare const TimeSelect: ({ startTime, endTime, interval, defaultValue, onChange, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
573
659
|
|
|
574
660
|
declare type ToggleProps = {
|
|
575
661
|
defaultState?: boolean;
|
|
@@ -585,93 +671,17 @@ declare type ToggleProps = {
|
|
|
585
671
|
};
|
|
586
672
|
declare const Toggle: ({ defaultState, name, label, handleEvent, value, disabled, loading, }: ToggleProps) => react_jsx_runtime.JSX.Element;
|
|
587
673
|
|
|
588
|
-
declare type Props
|
|
674
|
+
declare type Props = {
|
|
589
675
|
children: React.ReactNode;
|
|
590
676
|
content: React.ReactNode | string | null;
|
|
591
677
|
className?: string;
|
|
592
678
|
};
|
|
593
|
-
declare const Tooltip: _emotion_styled.StyledComponent<Props
|
|
679
|
+
declare const Tooltip: _emotion_styled.StyledComponent<Props & {
|
|
594
680
|
theme?: _emotion_react.Theme | undefined;
|
|
595
681
|
}, {}, {
|
|
596
682
|
ref?: react.Ref<any> | undefined;
|
|
597
683
|
}>;
|
|
598
684
|
|
|
599
|
-
declare enum Size {
|
|
600
|
-
XL = "xl",
|
|
601
|
-
LG = "lg",
|
|
602
|
-
MD = "md",
|
|
603
|
-
SM = "sm",
|
|
604
|
-
XS = "xs"
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
declare type Props$4 = {
|
|
608
|
-
color?: string;
|
|
609
|
-
size?: Size;
|
|
610
|
-
};
|
|
611
|
-
declare const LoadingSpinner: ({ color, size, }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
612
|
-
|
|
613
|
-
declare enum ContentfulLottieFileSlug {
|
|
614
|
-
LOADING_LISTINGS = "loadingListings",
|
|
615
|
-
LOADING_ACCOUNT = "loadingAccount",
|
|
616
|
-
LOADING_LOGO_SUCCESSFUL = "logoLoadingSuccessful"
|
|
617
|
-
}
|
|
618
|
-
declare type ContentfulConfig = {
|
|
619
|
-
space: string;
|
|
620
|
-
accessToken: string;
|
|
621
|
-
};
|
|
622
|
-
declare class Contentful {
|
|
623
|
-
client: contentful.ContentfulClientApi<undefined>;
|
|
624
|
-
constructor(contentfulConfig: ContentfulConfig);
|
|
625
|
-
getLottieFile({ slug }: {
|
|
626
|
-
slug: ContentfulLottieFileSlug;
|
|
627
|
-
}): Promise<null>;
|
|
628
|
-
getImage(slug: string): Promise<any>;
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
declare type Props$3 = {
|
|
632
|
-
height: number | string;
|
|
633
|
-
width: number | string;
|
|
634
|
-
loop: boolean;
|
|
635
|
-
slug: ContentfulLottieFileSlug;
|
|
636
|
-
contentfulConfig: {
|
|
637
|
-
space: string;
|
|
638
|
-
accessToken: string;
|
|
639
|
-
};
|
|
640
|
-
};
|
|
641
|
-
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$3) => react_jsx_runtime.JSX.Element | null;
|
|
642
|
-
|
|
643
|
-
declare type Props$2 = {
|
|
644
|
-
children: React.ReactNode;
|
|
645
|
-
isOpen: boolean;
|
|
646
|
-
onClose?: () => void;
|
|
647
|
-
width?: number;
|
|
648
|
-
style?: any;
|
|
649
|
-
styles?: ModalProps["styles"];
|
|
650
|
-
/**
|
|
651
|
-
* @deprecated Use { styles: { body: CSSProperties } }
|
|
652
|
-
*/
|
|
653
|
-
bodyStyle?: CSSProperties;
|
|
654
|
-
centered?: boolean;
|
|
655
|
-
className?: string;
|
|
656
|
-
[extraProps: string]: unknown;
|
|
657
|
-
};
|
|
658
|
-
declare const Modal: ({ children, isOpen, onClose, width, centered, style, styles, bodyStyle, className, ...props }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
659
|
-
|
|
660
|
-
declare const Progress: ({ percent, type, strokeColor, strokeLinecap, ...rest }: Omit<ProgressProps, "aria-label" | "aria-labelledby">) => react_jsx_runtime.JSX.Element;
|
|
661
|
-
|
|
662
|
-
declare const Ribbon: (props: BadgeProps) => react_jsx_runtime.JSX.Element;
|
|
663
|
-
|
|
664
|
-
declare const SearchInput: ({ searchValue, displaySmall, ...props }: {
|
|
665
|
-
[extraProps: string]: unknown;
|
|
666
|
-
searchValue?: string | undefined;
|
|
667
|
-
displaySmall?: boolean | undefined;
|
|
668
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
669
|
-
|
|
670
|
-
declare type Props$1 = {
|
|
671
|
-
color: string;
|
|
672
|
-
};
|
|
673
|
-
declare const SolaceLogo: ({ color }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
674
|
-
|
|
675
685
|
declare const Breakpoint: {
|
|
676
686
|
Small: string;
|
|
677
687
|
SmallMax: string;
|
|
@@ -686,11 +696,6 @@ declare type ProviderProps = {
|
|
|
686
696
|
};
|
|
687
697
|
declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
|
|
688
698
|
|
|
689
|
-
declare type Props = TagProps;
|
|
690
|
-
declare function Tag({ children, style, ...rest }: Props): react_jsx_runtime.JSX.Element;
|
|
691
|
-
|
|
692
|
-
declare function AutoComplete({ ...rest }: AutoCompleteProps): react_jsx_runtime.JSX.Element;
|
|
693
|
-
|
|
694
699
|
declare const _default$3: {
|
|
695
700
|
ButtonRadioGroup: ({ name, label, className, options, formOptions, }: {
|
|
696
701
|
name: string;
|
|
@@ -698,7 +703,7 @@ declare const _default$3: {
|
|
|
698
703
|
options: {
|
|
699
704
|
label: string | JSX.Element;
|
|
700
705
|
value: string;
|
|
701
|
-
icon
|
|
706
|
+
icon: "HandHeart" | "HandMoney" | "Hospital" | "Heart" | "Person";
|
|
702
707
|
}[];
|
|
703
708
|
className?: string | undefined;
|
|
704
709
|
formOptions?: react_hook_form.RegisterOptions<FieldValues, string> | undefined;
|
|
@@ -707,7 +712,7 @@ declare const _default$3: {
|
|
|
707
712
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
708
713
|
formOptions?: Partial<{
|
|
709
714
|
mode: keyof react_hook_form.ValidationMode;
|
|
710
|
-
reValidateMode: "
|
|
715
|
+
reValidateMode: "onChange" | "onBlur" | "onSubmit";
|
|
711
716
|
defaultValues: {
|
|
712
717
|
[x: string]: any;
|
|
713
718
|
} | ((payload?: unknown) => Promise<FieldValues>);
|
|
@@ -768,6 +773,23 @@ declare const _default$3: {
|
|
|
768
773
|
value: string;
|
|
769
774
|
}[];
|
|
770
775
|
}) => react_jsx_runtime.JSX.Element;
|
|
776
|
+
CheckboxCardGroup: ({ name, label, details, options, previewOnly, other, errorMessage, formOptions, ...inputProps }: {
|
|
777
|
+
[inputProps: string]: unknown;
|
|
778
|
+
name: string;
|
|
779
|
+
label?: string | react.ReactElement<any, string | react.JSXElementConstructor<any>> | undefined;
|
|
780
|
+
details?: string | undefined;
|
|
781
|
+
inline?: boolean | undefined;
|
|
782
|
+
previewOnly?: boolean | undefined;
|
|
783
|
+
errorMessage?: string | undefined;
|
|
784
|
+
formOptions?: react_hook_form.RegisterOptions<FieldValues, string> | undefined;
|
|
785
|
+
defaultValue?: string | undefined;
|
|
786
|
+
required?: boolean | undefined;
|
|
787
|
+
options: {
|
|
788
|
+
label: string;
|
|
789
|
+
value: string;
|
|
790
|
+
illustration: "Clock" | "Coffee" | "Medication" | "Notepad";
|
|
791
|
+
}[];
|
|
792
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
771
793
|
InputLabel: ({ label, isLabelBold, required, details, }: {
|
|
772
794
|
label?: string | JSX.Element | null | undefined;
|
|
773
795
|
isLabelBold?: boolean | undefined;
|
|
@@ -1000,6 +1022,14 @@ declare const _default$3: {
|
|
|
1000
1022
|
} & antd.UploadProps<any>) => react_jsx_runtime.JSX.Element;
|
|
1001
1023
|
};
|
|
1002
1024
|
|
|
1025
|
+
declare enum FormatType {
|
|
1026
|
+
Phone = "phone",
|
|
1027
|
+
Currency = "currency",
|
|
1028
|
+
Email = "email",
|
|
1029
|
+
Zipcode = "zipcode",
|
|
1030
|
+
ShortDate = "shortDate"
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1003
1033
|
declare const _default$2: {
|
|
1004
1034
|
Area: ({ ...inputProps }: antd.InputProps) => react_jsx_runtime.JSX.Element;
|
|
1005
1035
|
Text: ({ ...inputProps }: antd.InputProps) => react_jsx_runtime.JSX.Element;
|
|
@@ -1022,7 +1052,7 @@ declare const _default$1: {
|
|
|
1022
1052
|
NavigationMenuMain: ({ items, ...rest }: {
|
|
1023
1053
|
items: MenuItemType;
|
|
1024
1054
|
hideExpandIcon?: boolean | undefined;
|
|
1025
|
-
} & Omit<MenuProps, "
|
|
1055
|
+
} & Omit<MenuProps, "ref" | "theme">) => react_jsx_runtime.JSX.Element;
|
|
1026
1056
|
};
|
|
1027
1057
|
|
|
1028
1058
|
declare const _default: {
|
|
@@ -1056,14 +1086,6 @@ declare const _default: {
|
|
|
1056
1086
|
}) => react_jsx_runtime.JSX.Element;
|
|
1057
1087
|
};
|
|
1058
1088
|
|
|
1059
|
-
declare enum FormatType {
|
|
1060
|
-
Phone = "phone",
|
|
1061
|
-
Currency = "currency",
|
|
1062
|
-
Email = "email",
|
|
1063
|
-
Zipcode = "zipcode",
|
|
1064
|
-
ShortDate = "shortDate"
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
1089
|
declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
1068
1090
|
contentfulConfig: {
|
|
1069
1091
|
space: string;
|
|
@@ -1074,4 +1096,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
1074
1096
|
|
|
1075
1097
|
declare const DatePicker: ({ style, ...props }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1076
1098
|
|
|
1077
|
-
export { _default$
|
|
1099
|
+
export { _default$a as AnimatedIcon, AutoComplete, Avatar, Badge, Breakpoint, _default$9 as Button, _default$8 as Card, Collapse, Contentful, ContentfulLottieFileSlug, DatePicker, DateSelect, Divider, Drawer, Dropdown, ErrorTypography, _default$7 as File, Flex, _default$3 as Form, FormatType, _default$6 as Icons, _default$2 as Input, LoadingSpinner, LottieAnimation, _default$5 as Menu, Modal, _default$1 as NavigationMenu, _default$4 as NumberedProgressSteps, Pill, Progress, Ribbon, SearchInput, Segmented, Size, SolaceLogo, SolaceThemeProvider, SortableList, Table, Tabs, Tag, TimePicker, TimeSelect, Toggle, Tooltip, _default as Typography, UserTypes, VantaLogo };
|