@solace-health/ui 0.9.69 → 0.10.0
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 +319 -297
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +146 -111
- package/dist/index.d.ts +146 -111
- package/dist/index.js +288 -267
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,15 +2,15 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import { CSSProperties } from 'react';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
-
import * as contentful from 'contentful';
|
|
6
|
-
import { FunctionalComponent } from 'preact';
|
|
7
|
-
import * as antd from 'antd';
|
|
8
|
-
import { TabsProps, MenuProps as MenuProps$1, DropDownProps, SubMenuProps } from 'antd';
|
|
9
|
-
import { MenuProps } from '@szhsin/react-menu';
|
|
10
5
|
import * as _emotion_styled from '@emotion/styled';
|
|
11
6
|
export { default as styled } from '@emotion/styled';
|
|
12
|
-
import * as _emotion_react from '@emotion/react';
|
|
13
7
|
import * as preact_hooks from 'preact/hooks';
|
|
8
|
+
import * as _emotion_react from '@emotion/react';
|
|
9
|
+
import * as antd from 'antd';
|
|
10
|
+
import { MenuProps, DropDownProps, TabsProps, SubMenuProps } from 'antd';
|
|
11
|
+
import * as contentful from 'contentful';
|
|
12
|
+
import { MenuProps as MenuProps$1 } from '@szhsin/react-menu';
|
|
13
|
+
import { FunctionalComponent } from 'preact';
|
|
14
14
|
import * as antd_es_upload_interface from 'antd/es/upload/interface';
|
|
15
15
|
import * as antd_es_upload from 'antd/es/upload';
|
|
16
16
|
import * as react_hook_form from 'react-hook-form';
|
|
@@ -40,7 +40,7 @@ declare type Props$c = {
|
|
|
40
40
|
};
|
|
41
41
|
[extraProps: string]: unknown;
|
|
42
42
|
};
|
|
43
|
-
declare const _default$
|
|
43
|
+
declare const _default$7: {
|
|
44
44
|
Primary: ({ children, isSubmitting, toolTip, ...extraProps }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
45
45
|
Outline: ({ children, isSubmitting, toolTip, ...extraProps }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
46
46
|
Unstyled: ({ children, isSubmitting, toolTip, ...extraProps }: Props$c) => react_jsx_runtime.JSX.Element;
|
|
@@ -85,6 +85,16 @@ declare type Props$9 = {
|
|
|
85
85
|
};
|
|
86
86
|
declare const Drawer: ({ isOpen, onClose, children, title, placement, headerStyle, ...extraProps }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
87
87
|
|
|
88
|
+
declare const Dropdown: _emotion_styled.StyledComponent<{
|
|
89
|
+
items: MenuProps["items"];
|
|
90
|
+
children: React.ReactNode;
|
|
91
|
+
className?: string | undefined;
|
|
92
|
+
} & DropDownProps & {
|
|
93
|
+
theme?: _emotion_react.Theme | undefined;
|
|
94
|
+
}, {}, {
|
|
95
|
+
ref?: preact_hooks.Ref<any> | undefined;
|
|
96
|
+
}>;
|
|
97
|
+
|
|
88
98
|
declare const ErrorTypography: ({ children, text, includeIcon, marginBottom, }: {
|
|
89
99
|
children?: React.ReactNode;
|
|
90
100
|
text?: string | undefined;
|
|
@@ -92,6 +102,30 @@ declare const ErrorTypography: ({ children, text, includeIcon, marginBottom, }:
|
|
|
92
102
|
marginBottom?: number | undefined;
|
|
93
103
|
}) => react_jsx_runtime.JSX.Element;
|
|
94
104
|
|
|
105
|
+
declare type File = {
|
|
106
|
+
id: string;
|
|
107
|
+
name: string;
|
|
108
|
+
};
|
|
109
|
+
declare enum FileDisplay {
|
|
110
|
+
Card = "card",
|
|
111
|
+
List = "list"
|
|
112
|
+
}
|
|
113
|
+
declare type FileProps = {
|
|
114
|
+
file: File;
|
|
115
|
+
display?: FileDisplay;
|
|
116
|
+
handleDownload: (file: File) => void;
|
|
117
|
+
className?: string;
|
|
118
|
+
};
|
|
119
|
+
declare type GroupProps = {
|
|
120
|
+
files: File[];
|
|
121
|
+
handleDownload: (file: File) => void;
|
|
122
|
+
className?: string;
|
|
123
|
+
};
|
|
124
|
+
declare const _default$6: {
|
|
125
|
+
Group: ({ files, handleDownload, className }: GroupProps) => react_jsx_runtime.JSX.Element;
|
|
126
|
+
Display: ({ file, display, handleDownload, className, }: FileProps) => react_jsx_runtime.JSX.Element | null;
|
|
127
|
+
};
|
|
128
|
+
|
|
95
129
|
declare const _default$5: {
|
|
96
130
|
AddCircle: ({ color }: {
|
|
97
131
|
color?: string | undefined;
|
|
@@ -132,6 +166,9 @@ declare const _default$5: {
|
|
|
132
166
|
color?: string | undefined;
|
|
133
167
|
}) => react_jsx_runtime.JSX.Element;
|
|
134
168
|
Draggable: () => react_jsx_runtime.JSX.Element;
|
|
169
|
+
DownloadArrow: ({ fill }: {
|
|
170
|
+
fill?: string | undefined;
|
|
171
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
135
172
|
Invoice: ({ active, color }: {
|
|
136
173
|
active?: boolean | undefined;
|
|
137
174
|
color?: string | undefined;
|
|
@@ -175,6 +212,9 @@ declare const _default$5: {
|
|
|
175
212
|
}) => react_jsx_runtime.JSX.Element;
|
|
176
213
|
HeartPulse: () => JSX.Element;
|
|
177
214
|
IdBadge: () => react_jsx_runtime.JSX.Element;
|
|
215
|
+
Image: ({ color }: {
|
|
216
|
+
color?: string | undefined;
|
|
217
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
178
218
|
Key: ({ active, color }: {
|
|
179
219
|
active?: boolean | undefined;
|
|
180
220
|
color?: string | undefined;
|
|
@@ -229,21 +269,6 @@ declare const _default$5: {
|
|
|
229
269
|
Filter: () => react_jsx_runtime.JSX.Element;
|
|
230
270
|
};
|
|
231
271
|
|
|
232
|
-
declare enum PillStatus {
|
|
233
|
-
Success = "success",
|
|
234
|
-
Error = "error",
|
|
235
|
-
Warning = "warning",
|
|
236
|
-
Processing = "processing",
|
|
237
|
-
Label = "label",
|
|
238
|
-
Default = "default"
|
|
239
|
-
}
|
|
240
|
-
declare type Props$8 = {
|
|
241
|
-
children: React.ReactNode;
|
|
242
|
-
status?: PillStatus | string;
|
|
243
|
-
icon?: React.ReactNode | null;
|
|
244
|
-
};
|
|
245
|
-
declare const Pill: ({ children, status, icon, }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
246
|
-
|
|
247
272
|
declare enum Size {
|
|
248
273
|
XL = "xl",
|
|
249
274
|
LG = "lg",
|
|
@@ -252,11 +277,11 @@ declare enum Size {
|
|
|
252
277
|
XS = "xs"
|
|
253
278
|
}
|
|
254
279
|
|
|
255
|
-
declare type Props$
|
|
280
|
+
declare type Props$8 = {
|
|
256
281
|
color?: string;
|
|
257
282
|
size?: Size;
|
|
258
283
|
};
|
|
259
|
-
declare const LoadingSpinner: ({ color, size, }: Props$
|
|
284
|
+
declare const LoadingSpinner: ({ color, size, }: Props$8) => react_jsx_runtime.JSX.Element;
|
|
260
285
|
|
|
261
286
|
declare enum ContentfulLottieFileSlug {
|
|
262
287
|
LOADING_LISTINGS = "loadingListings",
|
|
@@ -276,7 +301,7 @@ declare class Contentful {
|
|
|
276
301
|
getImage(slug: string): Promise<any>;
|
|
277
302
|
}
|
|
278
303
|
|
|
279
|
-
declare type Props$
|
|
304
|
+
declare type Props$7 = {
|
|
280
305
|
height: number | string;
|
|
281
306
|
width: number | string;
|
|
282
307
|
loop: boolean;
|
|
@@ -286,49 +311,7 @@ declare type Props$6 = {
|
|
|
286
311
|
accessToken: string;
|
|
287
312
|
};
|
|
288
313
|
};
|
|
289
|
-
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$
|
|
290
|
-
|
|
291
|
-
declare type Props$5 = {
|
|
292
|
-
children: React.ReactNode;
|
|
293
|
-
isOpen: boolean;
|
|
294
|
-
onClose?: () => void;
|
|
295
|
-
width?: number;
|
|
296
|
-
style?: any;
|
|
297
|
-
bodyStyle?: any;
|
|
298
|
-
};
|
|
299
|
-
declare const Modal: ({ children, isOpen, onClose, width, style, bodyStyle, ...props }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
300
|
-
|
|
301
|
-
declare const Progress: ({ percent, size, }: {
|
|
302
|
-
percent?: number | undefined;
|
|
303
|
-
size?: number | undefined;
|
|
304
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
305
|
-
|
|
306
|
-
declare type Props$4 = {
|
|
307
|
-
onChange: (value: string) => void;
|
|
308
|
-
options: string[] | number[] | Array<{
|
|
309
|
-
label: FunctionalComponent;
|
|
310
|
-
value: string;
|
|
311
|
-
icon?: FunctionalComponent;
|
|
312
|
-
disabled?: boolean;
|
|
313
|
-
className?: string;
|
|
314
|
-
}>;
|
|
315
|
-
size: "small" | "middle" | "large";
|
|
316
|
-
defaultValue: string;
|
|
317
|
-
block: boolean;
|
|
318
|
-
};
|
|
319
|
-
declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
320
|
-
|
|
321
|
-
declare type Props$3 = {
|
|
322
|
-
color: string;
|
|
323
|
-
};
|
|
324
|
-
declare const SolaceLogo: ({ color }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
325
|
-
|
|
326
|
-
declare type Props$2 = {
|
|
327
|
-
className?: string;
|
|
328
|
-
navigate?: (url: string) => void;
|
|
329
|
-
pathname?: string;
|
|
330
|
-
} & TabsProps;
|
|
331
|
-
declare const Tabs: ({ className, items, navigate, activeKey, pathname, ...otherProps }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
314
|
+
declare const LottieAnimation: ({ height, width, loop, slug, contentfulConfig, }: Props$7) => react_jsx_runtime.JSX.Element | null;
|
|
332
315
|
|
|
333
316
|
declare type ContainerProps = {
|
|
334
317
|
cta: string | JSX.Element;
|
|
@@ -336,7 +319,7 @@ declare type ContainerProps = {
|
|
|
336
319
|
onItemClick?: (e: any) => void;
|
|
337
320
|
onMenuChange?: (e: any) => void;
|
|
338
321
|
className?: string;
|
|
339
|
-
menuProps?: MenuProps;
|
|
322
|
+
menuProps?: MenuProps$1;
|
|
340
323
|
caretColor?: string;
|
|
341
324
|
borderColor?: string;
|
|
342
325
|
};
|
|
@@ -373,6 +356,78 @@ declare const _default$4: {
|
|
|
373
356
|
Item: ({ label, value, selected, onClick, disabled, linkTo, className, }: ItemProps) => react_jsx_runtime.JSX.Element;
|
|
374
357
|
};
|
|
375
358
|
|
|
359
|
+
declare type Props$6 = {
|
|
360
|
+
children: React.ReactNode;
|
|
361
|
+
isOpen: boolean;
|
|
362
|
+
onClose?: () => void;
|
|
363
|
+
width?: number;
|
|
364
|
+
style?: any;
|
|
365
|
+
bodyStyle?: any;
|
|
366
|
+
};
|
|
367
|
+
declare const Modal: ({ children, isOpen, onClose, width, style, bodyStyle, ...props }: Props$6) => react_jsx_runtime.JSX.Element;
|
|
368
|
+
|
|
369
|
+
interface Step {
|
|
370
|
+
title: string;
|
|
371
|
+
description: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
declare const _default$3: {
|
|
375
|
+
Horizontal: ({ currentStep, steps, }: {
|
|
376
|
+
currentStep: number;
|
|
377
|
+
steps: string[];
|
|
378
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
Vertical: ({ steps }: {
|
|
380
|
+
steps: Step[];
|
|
381
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
382
|
+
};
|
|
383
|
+
|
|
384
|
+
declare enum PillStatus {
|
|
385
|
+
Success = "success",
|
|
386
|
+
Error = "error",
|
|
387
|
+
Warning = "warning",
|
|
388
|
+
Processing = "processing",
|
|
389
|
+
Label = "label",
|
|
390
|
+
Default = "default"
|
|
391
|
+
}
|
|
392
|
+
declare type Props$5 = {
|
|
393
|
+
children: React.ReactNode;
|
|
394
|
+
status?: PillStatus | string;
|
|
395
|
+
icon?: React.ReactNode | null;
|
|
396
|
+
};
|
|
397
|
+
declare const Pill: ({ children, status, icon, }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
398
|
+
|
|
399
|
+
declare const Progress: ({ percent, size, }: {
|
|
400
|
+
percent?: number | undefined;
|
|
401
|
+
size?: number | undefined;
|
|
402
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
403
|
+
|
|
404
|
+
declare type Props$4 = {
|
|
405
|
+
onChange: (value: string) => void;
|
|
406
|
+
options: string[] | number[] | Array<{
|
|
407
|
+
label: FunctionalComponent;
|
|
408
|
+
value: string;
|
|
409
|
+
icon?: FunctionalComponent;
|
|
410
|
+
disabled?: boolean;
|
|
411
|
+
className?: string;
|
|
412
|
+
}>;
|
|
413
|
+
size: "small" | "middle" | "large";
|
|
414
|
+
defaultValue: string;
|
|
415
|
+
block: boolean;
|
|
416
|
+
};
|
|
417
|
+
declare const Segmented: ({ onChange, options, size, defaultValue, block, }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
418
|
+
|
|
419
|
+
declare type Props$3 = {
|
|
420
|
+
color: string;
|
|
421
|
+
};
|
|
422
|
+
declare const SolaceLogo: ({ color }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
424
|
+
declare type Props$2 = {
|
|
425
|
+
className?: string;
|
|
426
|
+
navigate?: (url: string) => void;
|
|
427
|
+
pathname?: string;
|
|
428
|
+
} & TabsProps;
|
|
429
|
+
declare const Tabs: ({ className, items, navigate, activeKey, pathname, ...otherProps }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
430
|
+
|
|
376
431
|
declare type Props$1 = {
|
|
377
432
|
startTime?: string;
|
|
378
433
|
endTime?: string;
|
|
@@ -413,31 +468,6 @@ declare type ProviderProps = {
|
|
|
413
468
|
};
|
|
414
469
|
declare const SolaceThemeProvider: ({ children, theme, }: ProviderProps) => react_jsx_runtime.JSX.Element;
|
|
415
470
|
|
|
416
|
-
interface Step {
|
|
417
|
-
title: string;
|
|
418
|
-
description: string;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
declare const _default$3: {
|
|
422
|
-
Horizontal: ({ currentStep, steps, }: {
|
|
423
|
-
currentStep: number;
|
|
424
|
-
steps: string[];
|
|
425
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
426
|
-
Vertical: ({ steps }: {
|
|
427
|
-
steps: Step[];
|
|
428
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
429
|
-
};
|
|
430
|
-
|
|
431
|
-
declare const Dropdown: _emotion_styled.StyledComponent<{
|
|
432
|
-
items: MenuProps$1["items"];
|
|
433
|
-
children: React.ReactNode;
|
|
434
|
-
className?: string | undefined;
|
|
435
|
-
} & DropDownProps & {
|
|
436
|
-
theme?: _emotion_react.Theme | undefined;
|
|
437
|
-
}, {}, {
|
|
438
|
-
ref?: preact_hooks.Ref<any> | undefined;
|
|
439
|
-
}>;
|
|
440
|
-
|
|
441
471
|
declare const _default$2: {
|
|
442
472
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
443
473
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
@@ -504,6 +534,11 @@ declare const _default$2: {
|
|
|
504
534
|
value: string;
|
|
505
535
|
}[];
|
|
506
536
|
}) => react_jsx_runtime.JSX.Element;
|
|
537
|
+
InputLabel: ({ label, isLabelBold, required, }: {
|
|
538
|
+
label: string | JSX.Element | null;
|
|
539
|
+
isLabelBold?: boolean | undefined;
|
|
540
|
+
required?: boolean | undefined;
|
|
541
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
507
542
|
DateSelect: ({ label, isLabelBold, name, required, disabled, defaultValue, options, ...inputProps }: {
|
|
508
543
|
[inputProps: string]: unknown;
|
|
509
544
|
label?: string | JSX.Element | null | undefined;
|
|
@@ -670,7 +705,7 @@ declare const _default$2: {
|
|
|
670
705
|
disabled?: boolean | undefined;
|
|
671
706
|
loading?: boolean | undefined;
|
|
672
707
|
}) => react_jsx_runtime.JSX.Element;
|
|
673
|
-
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, onRemove, onDownload, defaultValue, containerStyle, errorMessage, action, headers, uploadData, defaultFileList }: {
|
|
708
|
+
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, onRemove, onDownload, defaultValue, containerStyle, errorMessage, action, headers, uploadData, defaultFileList, }: {
|
|
674
709
|
label?: string | JSX.Element | undefined;
|
|
675
710
|
name: string;
|
|
676
711
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
@@ -690,7 +725,22 @@ declare const _default$2: {
|
|
|
690
725
|
}) => react_jsx_runtime.JSX.Element;
|
|
691
726
|
};
|
|
692
727
|
|
|
728
|
+
declare type NavigationMenuProps = {
|
|
729
|
+
children: React.ReactNode;
|
|
730
|
+
} & Omit<MenuProps, "ref" | "theme">;
|
|
693
731
|
declare const _default$1: {
|
|
732
|
+
Container: ({ children, ...rest }: NavigationMenuProps) => react_jsx_runtime.JSX.Element;
|
|
733
|
+
MenuDivider: (props: MenuDividerProps) => react_jsx_runtime.JSX.Element;
|
|
734
|
+
MenuItem: ({ children, ...rest }: {
|
|
735
|
+
children: react.ReactNode;
|
|
736
|
+
} & MenuItemType) => react_jsx_runtime.JSX.Element;
|
|
737
|
+
SubMenuContainer: ({ children, ...rest }: {
|
|
738
|
+
children: react.ReactNode;
|
|
739
|
+
hideExpandIcon?: boolean | undefined;
|
|
740
|
+
} & SubMenuProps) => react_jsx_runtime.JSX.Element;
|
|
741
|
+
};
|
|
742
|
+
|
|
743
|
+
declare const _default: {
|
|
694
744
|
Body: ({ className, children, size, color, center, }: {
|
|
695
745
|
className?: string | undefined;
|
|
696
746
|
size?: Size | undefined;
|
|
@@ -726,19 +776,4 @@ declare const VantaLogo: ({ contentfulConfig, size, }: {
|
|
|
726
776
|
size?: number | undefined;
|
|
727
777
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
728
778
|
|
|
729
|
-
|
|
730
|
-
children: React.ReactNode;
|
|
731
|
-
} & Omit<MenuProps$1, "ref" | "theme">;
|
|
732
|
-
declare const _default: {
|
|
733
|
-
Container: ({ children, ...rest }: NavigationMenuProps) => react_jsx_runtime.JSX.Element;
|
|
734
|
-
MenuDivider: (props: MenuDividerProps) => react_jsx_runtime.JSX.Element;
|
|
735
|
-
MenuItem: ({ children, ...rest }: {
|
|
736
|
-
children: react.ReactNode;
|
|
737
|
-
} & MenuItemType) => react_jsx_runtime.JSX.Element;
|
|
738
|
-
SubMenuContainer: ({ children, ...rest }: {
|
|
739
|
-
children: react.ReactNode;
|
|
740
|
-
hideExpandIcon?: boolean | undefined;
|
|
741
|
-
} & SubMenuProps) => react_jsx_runtime.JSX.Element;
|
|
742
|
-
};
|
|
743
|
-
|
|
744
|
-
export { Avatar, _default$6 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, Dropdown, ErrorTypography, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default$1 as Typography, VantaLogo };
|
|
779
|
+
export { Avatar, _default$7 as Button, Collapse, Contentful, ContentfulLottieFileSlug, DateSelect, Drawer, Dropdown, ErrorTypography, _default$6 as File, _default$2 as Form, _default$5 as Icons, LoadingSpinner, LottieAnimation, _default$4 as Menu, Modal, _default$1 as NavigationMenu, _default$3 as NumberedProgressSteps, Pill, Progress, Segmented, Size, SolaceLogo, SolaceThemeProvider, Tabs, TimeSelect, Toggle, Tooltip, _default as Typography, VantaLogo };
|