@solace-health/ui 0.9.55 → 0.9.57
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 +185 -184
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -32
- package/dist/index.d.ts +29 -32
- package/dist/index.js +153 -152
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ export { default as styled } from '@emotion/styled';
|
|
|
11
11
|
import * as _emotion_react from '@emotion/react';
|
|
12
12
|
import * as preact_hooks from 'preact/hooks';
|
|
13
13
|
import * as react_hook_form from 'react-hook-form';
|
|
14
|
-
import {
|
|
14
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
15
15
|
export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
|
|
16
16
|
import { MenuDividerProps } from 'antd/es/menu';
|
|
17
17
|
import { MenuItemType } from 'antd/es/menu/hooks/useItems';
|
|
@@ -66,8 +66,9 @@ declare type Props$a = {
|
|
|
66
66
|
placeholder?: string | null;
|
|
67
67
|
className?: string | null;
|
|
68
68
|
hasError?: boolean;
|
|
69
|
+
disabled?: boolean;
|
|
69
70
|
};
|
|
70
|
-
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, disabled, }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
71
72
|
|
|
72
73
|
declare type Props$9 = {
|
|
73
74
|
isOpen: boolean;
|
|
@@ -433,19 +434,6 @@ declare const Dropdown: _emotion_styled.StyledComponent<{
|
|
|
433
434
|
ref?: preact_hooks.Ref<any> | undefined;
|
|
434
435
|
}>;
|
|
435
436
|
|
|
436
|
-
declare function Radio({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
|
|
437
|
-
option: {
|
|
438
|
-
label: string;
|
|
439
|
-
value: string;
|
|
440
|
-
};
|
|
441
|
-
name: string;
|
|
442
|
-
inline: boolean;
|
|
443
|
-
previewOnly?: boolean;
|
|
444
|
-
hasError?: boolean;
|
|
445
|
-
formOptions?: RegisterOptions;
|
|
446
|
-
[inputProps: string]: unknown;
|
|
447
|
-
}): react_jsx_runtime.JSX.Element;
|
|
448
|
-
|
|
449
437
|
declare const _default$2: {
|
|
450
438
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
451
439
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
@@ -489,11 +477,12 @@ declare const _default$2: {
|
|
|
489
477
|
inputOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
490
478
|
previewOnly?: boolean | undefined;
|
|
491
479
|
errorMessage?: string | undefined;
|
|
480
|
+
defaultValue?: string | undefined;
|
|
492
481
|
required?: boolean | undefined;
|
|
493
482
|
hasError?: boolean | undefined;
|
|
494
483
|
inGroup?: boolean | undefined;
|
|
495
484
|
}) => react_jsx_runtime.JSX.Element;
|
|
496
|
-
CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, required, ...inputProps }: {
|
|
485
|
+
CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, defaultValue, required, ...inputProps }: {
|
|
497
486
|
[inputProps: string]: unknown;
|
|
498
487
|
name: string;
|
|
499
488
|
label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
@@ -501,6 +490,7 @@ declare const _default$2: {
|
|
|
501
490
|
inline?: boolean | undefined;
|
|
502
491
|
previewOnly?: boolean | undefined;
|
|
503
492
|
errorMessage?: string | undefined;
|
|
493
|
+
defaultValue?: string | undefined;
|
|
504
494
|
required?: boolean | undefined;
|
|
505
495
|
other?: {
|
|
506
496
|
label?: string | react.ReactElement<any, string | react.JSXElementConstructor<any>> | undefined;
|
|
@@ -510,15 +500,17 @@ declare const _default$2: {
|
|
|
510
500
|
value: string;
|
|
511
501
|
}[];
|
|
512
502
|
}) => react_jsx_runtime.JSX.Element;
|
|
513
|
-
DateSelect: ({ label, isLabelBold, name, required, options, ...inputProps }: {
|
|
503
|
+
DateSelect: ({ label, isLabelBold, name, required, disabled, defaultValue, options, ...inputProps }: {
|
|
514
504
|
[inputProps: string]: unknown;
|
|
515
505
|
label?: string | JSX.Element | null | undefined;
|
|
516
506
|
isLabelBold?: boolean | undefined;
|
|
517
507
|
name: string;
|
|
518
508
|
required?: boolean | undefined;
|
|
509
|
+
disabled?: boolean | undefined;
|
|
510
|
+
defaultValue?: string | undefined;
|
|
519
511
|
options?: object | undefined;
|
|
520
512
|
}) => react_jsx_runtime.JSX.Element;
|
|
521
|
-
TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom,
|
|
513
|
+
TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
|
|
522
514
|
[inputProps: string]: unknown;
|
|
523
515
|
name: string;
|
|
524
516
|
label?: string | JSX.Element | null | undefined;
|
|
@@ -531,7 +523,6 @@ declare const _default$2: {
|
|
|
531
523
|
placeholder?: string | undefined;
|
|
532
524
|
isLabelBold?: boolean | undefined;
|
|
533
525
|
controlled?: boolean | undefined;
|
|
534
|
-
defaultValue?: string | undefined;
|
|
535
526
|
format?: any;
|
|
536
527
|
errorMessage?: string | undefined;
|
|
537
528
|
required?: boolean | undefined;
|
|
@@ -542,8 +533,20 @@ declare const _default$2: {
|
|
|
542
533
|
name: string;
|
|
543
534
|
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
544
535
|
}) => react_jsx_runtime.JSX.Element;
|
|
545
|
-
Radio:
|
|
546
|
-
|
|
536
|
+
Radio: ({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
|
|
537
|
+
[inputProps: string]: unknown;
|
|
538
|
+
option: {
|
|
539
|
+
label: string;
|
|
540
|
+
value: string;
|
|
541
|
+
};
|
|
542
|
+
name: string;
|
|
543
|
+
inline: boolean;
|
|
544
|
+
previewOnly?: boolean | undefined;
|
|
545
|
+
hasError?: boolean | undefined;
|
|
546
|
+
defaultValue?: string | undefined;
|
|
547
|
+
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
548
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
549
|
+
RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, defaultValue, ...inputProps }: {
|
|
547
550
|
[inputProps: string]: unknown;
|
|
548
551
|
name: string;
|
|
549
552
|
label: string | JSX.Element;
|
|
@@ -554,6 +557,7 @@ declare const _default$2: {
|
|
|
554
557
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
555
558
|
errorMessage?: string | undefined;
|
|
556
559
|
required?: boolean | undefined;
|
|
560
|
+
defaultValue?: string | undefined;
|
|
557
561
|
options: {
|
|
558
562
|
label: string;
|
|
559
563
|
value: string;
|
|
@@ -618,13 +622,10 @@ declare const _default$2: {
|
|
|
618
622
|
label: react.ReactNode;
|
|
619
623
|
value: string | number;
|
|
620
624
|
} | undefined;
|
|
621
|
-
defaultValue?:
|
|
622
|
-
label: react.ReactNode;
|
|
623
|
-
value: string | number;
|
|
624
|
-
} | undefined;
|
|
625
|
+
defaultValue?: string | undefined;
|
|
625
626
|
required?: boolean | undefined;
|
|
626
627
|
}) => react_jsx_runtime.JSX.Element;
|
|
627
|
-
Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon,
|
|
628
|
+
Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
|
|
628
629
|
[inputProps: string]: unknown;
|
|
629
630
|
label: string;
|
|
630
631
|
name: string;
|
|
@@ -633,7 +634,6 @@ declare const _default$2: {
|
|
|
633
634
|
description?: string | JSX.Element | undefined;
|
|
634
635
|
errorMessage?: string | undefined;
|
|
635
636
|
showIcon?: boolean | undefined;
|
|
636
|
-
required?: boolean | undefined;
|
|
637
637
|
advocateSignatureNeeded?: boolean | undefined;
|
|
638
638
|
formStyle?: string | undefined;
|
|
639
639
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -670,7 +670,7 @@ declare const _default$2: {
|
|
|
670
670
|
disabled?: boolean | undefined;
|
|
671
671
|
loading?: boolean | undefined;
|
|
672
672
|
}) => react_jsx_runtime.JSX.Element;
|
|
673
|
-
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange,
|
|
673
|
+
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, required, errorMessage, }: {
|
|
674
674
|
label?: string | JSX.Element | undefined;
|
|
675
675
|
name: string;
|
|
676
676
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
@@ -680,10 +680,7 @@ declare const _default$2: {
|
|
|
680
680
|
onChange?: (() => void) | undefined;
|
|
681
681
|
containerStyle?: react.CSSProperties | undefined;
|
|
682
682
|
errorMessage?: string | undefined;
|
|
683
|
-
|
|
684
|
-
label: react.ReactNode;
|
|
685
|
-
value: string | number;
|
|
686
|
-
} | undefined;
|
|
683
|
+
defaultValue?: string | undefined;
|
|
687
684
|
required?: boolean | undefined;
|
|
688
685
|
}) => react_jsx_runtime.JSX.Element;
|
|
689
686
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export { default as styled } from '@emotion/styled';
|
|
|
11
11
|
import * as _emotion_react from '@emotion/react';
|
|
12
12
|
import * as preact_hooks from 'preact/hooks';
|
|
13
13
|
import * as react_hook_form from 'react-hook-form';
|
|
14
|
-
import {
|
|
14
|
+
import { UseFormReturn } from 'react-hook-form';
|
|
15
15
|
export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
|
|
16
16
|
import { MenuDividerProps } from 'antd/es/menu';
|
|
17
17
|
import { MenuItemType } from 'antd/es/menu/hooks/useItems';
|
|
@@ -66,8 +66,9 @@ declare type Props$a = {
|
|
|
66
66
|
placeholder?: string | null;
|
|
67
67
|
className?: string | null;
|
|
68
68
|
hasError?: boolean;
|
|
69
|
+
disabled?: boolean;
|
|
69
70
|
};
|
|
70
|
-
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
71
|
+
declare const DateSelect: ({ value, onChange, startRange, endRange, defaultValue, format, placeholder, className, hasError, disabled, }: Props$a) => react_jsx_runtime.JSX.Element;
|
|
71
72
|
|
|
72
73
|
declare type Props$9 = {
|
|
73
74
|
isOpen: boolean;
|
|
@@ -433,19 +434,6 @@ declare const Dropdown: _emotion_styled.StyledComponent<{
|
|
|
433
434
|
ref?: preact_hooks.Ref<any> | undefined;
|
|
434
435
|
}>;
|
|
435
436
|
|
|
436
|
-
declare function Radio({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
|
|
437
|
-
option: {
|
|
438
|
-
label: string;
|
|
439
|
-
value: string;
|
|
440
|
-
};
|
|
441
|
-
name: string;
|
|
442
|
-
inline: boolean;
|
|
443
|
-
previewOnly?: boolean;
|
|
444
|
-
hasError?: boolean;
|
|
445
|
-
formOptions?: RegisterOptions;
|
|
446
|
-
[inputProps: string]: unknown;
|
|
447
|
-
}): react_jsx_runtime.JSX.Element;
|
|
448
|
-
|
|
449
437
|
declare const _default$2: {
|
|
450
438
|
Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
|
|
451
439
|
formMethods?: UseFormReturn<any, any> | null | undefined;
|
|
@@ -489,11 +477,12 @@ declare const _default$2: {
|
|
|
489
477
|
inputOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
490
478
|
previewOnly?: boolean | undefined;
|
|
491
479
|
errorMessage?: string | undefined;
|
|
480
|
+
defaultValue?: string | undefined;
|
|
492
481
|
required?: boolean | undefined;
|
|
493
482
|
hasError?: boolean | undefined;
|
|
494
483
|
inGroup?: boolean | undefined;
|
|
495
484
|
}) => react_jsx_runtime.JSX.Element;
|
|
496
|
-
CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, required, ...inputProps }: {
|
|
485
|
+
CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, defaultValue, required, ...inputProps }: {
|
|
497
486
|
[inputProps: string]: unknown;
|
|
498
487
|
name: string;
|
|
499
488
|
label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
|
|
@@ -501,6 +490,7 @@ declare const _default$2: {
|
|
|
501
490
|
inline?: boolean | undefined;
|
|
502
491
|
previewOnly?: boolean | undefined;
|
|
503
492
|
errorMessage?: string | undefined;
|
|
493
|
+
defaultValue?: string | undefined;
|
|
504
494
|
required?: boolean | undefined;
|
|
505
495
|
other?: {
|
|
506
496
|
label?: string | react.ReactElement<any, string | react.JSXElementConstructor<any>> | undefined;
|
|
@@ -510,15 +500,17 @@ declare const _default$2: {
|
|
|
510
500
|
value: string;
|
|
511
501
|
}[];
|
|
512
502
|
}) => react_jsx_runtime.JSX.Element;
|
|
513
|
-
DateSelect: ({ label, isLabelBold, name, required, options, ...inputProps }: {
|
|
503
|
+
DateSelect: ({ label, isLabelBold, name, required, disabled, defaultValue, options, ...inputProps }: {
|
|
514
504
|
[inputProps: string]: unknown;
|
|
515
505
|
label?: string | JSX.Element | null | undefined;
|
|
516
506
|
isLabelBold?: boolean | undefined;
|
|
517
507
|
name: string;
|
|
518
508
|
required?: boolean | undefined;
|
|
509
|
+
disabled?: boolean | undefined;
|
|
510
|
+
defaultValue?: string | undefined;
|
|
519
511
|
options?: object | undefined;
|
|
520
512
|
}) => react_jsx_runtime.JSX.Element;
|
|
521
|
-
TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom,
|
|
513
|
+
TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
|
|
522
514
|
[inputProps: string]: unknown;
|
|
523
515
|
name: string;
|
|
524
516
|
label?: string | JSX.Element | null | undefined;
|
|
@@ -531,7 +523,6 @@ declare const _default$2: {
|
|
|
531
523
|
placeholder?: string | undefined;
|
|
532
524
|
isLabelBold?: boolean | undefined;
|
|
533
525
|
controlled?: boolean | undefined;
|
|
534
|
-
defaultValue?: string | undefined;
|
|
535
526
|
format?: any;
|
|
536
527
|
errorMessage?: string | undefined;
|
|
537
528
|
required?: boolean | undefined;
|
|
@@ -542,8 +533,20 @@ declare const _default$2: {
|
|
|
542
533
|
name: string;
|
|
543
534
|
options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
544
535
|
}) => react_jsx_runtime.JSX.Element;
|
|
545
|
-
Radio:
|
|
546
|
-
|
|
536
|
+
Radio: ({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
|
|
537
|
+
[inputProps: string]: unknown;
|
|
538
|
+
option: {
|
|
539
|
+
label: string;
|
|
540
|
+
value: string;
|
|
541
|
+
};
|
|
542
|
+
name: string;
|
|
543
|
+
inline: boolean;
|
|
544
|
+
previewOnly?: boolean | undefined;
|
|
545
|
+
hasError?: boolean | undefined;
|
|
546
|
+
defaultValue?: string | undefined;
|
|
547
|
+
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
548
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
549
|
+
RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, defaultValue, ...inputProps }: {
|
|
547
550
|
[inputProps: string]: unknown;
|
|
548
551
|
name: string;
|
|
549
552
|
label: string | JSX.Element;
|
|
@@ -554,6 +557,7 @@ declare const _default$2: {
|
|
|
554
557
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
555
558
|
errorMessage?: string | undefined;
|
|
556
559
|
required?: boolean | undefined;
|
|
560
|
+
defaultValue?: string | undefined;
|
|
557
561
|
options: {
|
|
558
562
|
label: string;
|
|
559
563
|
value: string;
|
|
@@ -618,13 +622,10 @@ declare const _default$2: {
|
|
|
618
622
|
label: react.ReactNode;
|
|
619
623
|
value: string | number;
|
|
620
624
|
} | undefined;
|
|
621
|
-
defaultValue?:
|
|
622
|
-
label: react.ReactNode;
|
|
623
|
-
value: string | number;
|
|
624
|
-
} | undefined;
|
|
625
|
+
defaultValue?: string | undefined;
|
|
625
626
|
required?: boolean | undefined;
|
|
626
627
|
}) => react_jsx_runtime.JSX.Element;
|
|
627
|
-
Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon,
|
|
628
|
+
Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
|
|
628
629
|
[inputProps: string]: unknown;
|
|
629
630
|
label: string;
|
|
630
631
|
name: string;
|
|
@@ -633,7 +634,6 @@ declare const _default$2: {
|
|
|
633
634
|
description?: string | JSX.Element | undefined;
|
|
634
635
|
errorMessage?: string | undefined;
|
|
635
636
|
showIcon?: boolean | undefined;
|
|
636
|
-
required?: boolean | undefined;
|
|
637
637
|
advocateSignatureNeeded?: boolean | undefined;
|
|
638
638
|
formStyle?: string | undefined;
|
|
639
639
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -670,7 +670,7 @@ declare const _default$2: {
|
|
|
670
670
|
disabled?: boolean | undefined;
|
|
671
671
|
loading?: boolean | undefined;
|
|
672
672
|
}) => react_jsx_runtime.JSX.Element;
|
|
673
|
-
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange,
|
|
673
|
+
FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, required, errorMessage, }: {
|
|
674
674
|
label?: string | JSX.Element | undefined;
|
|
675
675
|
name: string;
|
|
676
676
|
formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
|
|
@@ -680,10 +680,7 @@ declare const _default$2: {
|
|
|
680
680
|
onChange?: (() => void) | undefined;
|
|
681
681
|
containerStyle?: react.CSSProperties | undefined;
|
|
682
682
|
errorMessage?: string | undefined;
|
|
683
|
-
|
|
684
|
-
label: react.ReactNode;
|
|
685
|
-
value: string | number;
|
|
686
|
-
} | undefined;
|
|
683
|
+
defaultValue?: string | undefined;
|
|
687
684
|
required?: boolean | undefined;
|
|
688
685
|
}) => react_jsx_runtime.JSX.Element;
|
|
689
686
|
};
|