@solace-health/ui 0.9.53 → 0.9.55

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.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 { UseFormReturn } from 'react-hook-form';
14
+ import { RegisterOptions, 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';
@@ -91,6 +91,9 @@ declare const _default$5: {
91
91
  AddCircle: ({ color }: {
92
92
  color?: string | undefined;
93
93
  }) => react_jsx_runtime.JSX.Element;
94
+ Attachment: ({ fill }: {
95
+ fill?: string | undefined;
96
+ }) => react_jsx_runtime.JSX.Element;
94
97
  Books: ({ active, color }: {
95
98
  active?: boolean | undefined;
96
99
  color?: string | undefined;
@@ -430,6 +433,19 @@ declare const Dropdown: _emotion_styled.StyledComponent<{
430
433
  ref?: preact_hooks.Ref<any> | undefined;
431
434
  }>;
432
435
 
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
+
433
449
  declare const _default$2: {
434
450
  Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
435
451
  formMethods?: UseFormReturn<any, any> | null | undefined;
@@ -494,14 +510,15 @@ declare const _default$2: {
494
510
  value: string;
495
511
  }[];
496
512
  }) => react_jsx_runtime.JSX.Element;
497
- DateSelect: ({ label, isLabelBold, name, options, ...inputProps }: {
513
+ DateSelect: ({ label, isLabelBold, name, required, options, ...inputProps }: {
498
514
  [inputProps: string]: unknown;
499
515
  label?: string | JSX.Element | null | undefined;
500
516
  isLabelBold?: boolean | undefined;
501
517
  name: string;
518
+ required?: boolean | undefined;
502
519
  options?: object | undefined;
503
520
  }) => react_jsx_runtime.JSX.Element;
504
- TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
521
+ TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, defaultValue, isLabelBold, format, errorMessage, required, ...inputProps }: {
505
522
  [inputProps: string]: unknown;
506
523
  name: string;
507
524
  label?: string | JSX.Element | null | undefined;
@@ -514,6 +531,7 @@ declare const _default$2: {
514
531
  placeholder?: string | undefined;
515
532
  isLabelBold?: boolean | undefined;
516
533
  controlled?: boolean | undefined;
534
+ defaultValue?: string | undefined;
517
535
  format?: any;
518
536
  errorMessage?: string | undefined;
519
537
  required?: boolean | undefined;
@@ -524,18 +542,7 @@ declare const _default$2: {
524
542
  name: string;
525
543
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
526
544
  }) => react_jsx_runtime.JSX.Element;
527
- Radio: ({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
528
- [inputProps: string]: unknown;
529
- option: {
530
- label: string;
531
- value: string;
532
- };
533
- name: string;
534
- inline: boolean;
535
- previewOnly?: boolean | undefined;
536
- hasError?: boolean | undefined;
537
- formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
538
- }) => react_jsx_runtime.JSX.Element;
545
+ Radio: typeof Radio;
539
546
  RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, ...inputProps }: {
540
547
  [inputProps: string]: unknown;
541
548
  name: string;
@@ -617,14 +624,18 @@ declare const _default$2: {
617
624
  } | undefined;
618
625
  required?: boolean | undefined;
619
626
  }) => react_jsx_runtime.JSX.Element;
620
- Signature: ({ label, name, options, description, previewOnly, showIcon, ...inputProps }: {
627
+ Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, required, formStyle, ...inputProps }: {
621
628
  [inputProps: string]: unknown;
622
629
  label: string;
623
630
  name: string;
624
631
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
625
632
  previewOnly?: boolean | undefined;
626
- description?: string | undefined;
633
+ description?: string | JSX.Element | undefined;
634
+ errorMessage?: string | undefined;
627
635
  showIcon?: boolean | undefined;
636
+ required?: boolean | undefined;
637
+ advocateSignatureNeeded?: boolean | undefined;
638
+ formStyle?: string | undefined;
628
639
  }) => react_jsx_runtime.JSX.Element;
629
640
  Submit: ({ label, isSubmitting, hideWhenInvalid, ...extraProps }: {
630
641
  [extraProps: string]: unknown;
@@ -659,6 +670,22 @@ declare const _default$2: {
659
670
  disabled?: boolean | undefined;
660
671
  loading?: boolean | undefined;
661
672
  }) => react_jsx_runtime.JSX.Element;
673
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, containerStyle, value, required, errorMessage, }: {
674
+ label?: string | JSX.Element | undefined;
675
+ name: string;
676
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
677
+ disabled?: boolean | undefined;
678
+ isLabelBold?: boolean | undefined;
679
+ description?: string | JSX.Element | undefined;
680
+ onChange?: (() => void) | undefined;
681
+ containerStyle?: react.CSSProperties | undefined;
682
+ errorMessage?: string | undefined;
683
+ value?: {
684
+ label: react.ReactNode;
685
+ value: string | number;
686
+ } | undefined;
687
+ required?: boolean | undefined;
688
+ }) => react_jsx_runtime.JSX.Element;
662
689
  };
663
690
 
664
691
  declare const _default$1: {
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 { UseFormReturn } from 'react-hook-form';
14
+ import { RegisterOptions, 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';
@@ -91,6 +91,9 @@ declare const _default$5: {
91
91
  AddCircle: ({ color }: {
92
92
  color?: string | undefined;
93
93
  }) => react_jsx_runtime.JSX.Element;
94
+ Attachment: ({ fill }: {
95
+ fill?: string | undefined;
96
+ }) => react_jsx_runtime.JSX.Element;
94
97
  Books: ({ active, color }: {
95
98
  active?: boolean | undefined;
96
99
  color?: string | undefined;
@@ -430,6 +433,19 @@ declare const Dropdown: _emotion_styled.StyledComponent<{
430
433
  ref?: preact_hooks.Ref<any> | undefined;
431
434
  }>;
432
435
 
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
+
433
449
  declare const _default$2: {
434
450
  Container: ({ formMethods, formOptions, onSubmit, children, className, }: {
435
451
  formMethods?: UseFormReturn<any, any> | null | undefined;
@@ -494,14 +510,15 @@ declare const _default$2: {
494
510
  value: string;
495
511
  }[];
496
512
  }) => react_jsx_runtime.JSX.Element;
497
- DateSelect: ({ label, isLabelBold, name, options, ...inputProps }: {
513
+ DateSelect: ({ label, isLabelBold, name, required, options, ...inputProps }: {
498
514
  [inputProps: string]: unknown;
499
515
  label?: string | JSX.Element | null | undefined;
500
516
  isLabelBold?: boolean | undefined;
501
517
  name: string;
518
+ required?: boolean | undefined;
502
519
  options?: object | undefined;
503
520
  }) => react_jsx_runtime.JSX.Element;
504
- TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
521
+ TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, defaultValue, isLabelBold, format, errorMessage, required, ...inputProps }: {
505
522
  [inputProps: string]: unknown;
506
523
  name: string;
507
524
  label?: string | JSX.Element | null | undefined;
@@ -514,6 +531,7 @@ declare const _default$2: {
514
531
  placeholder?: string | undefined;
515
532
  isLabelBold?: boolean | undefined;
516
533
  controlled?: boolean | undefined;
534
+ defaultValue?: string | undefined;
517
535
  format?: any;
518
536
  errorMessage?: string | undefined;
519
537
  required?: boolean | undefined;
@@ -524,18 +542,7 @@ declare const _default$2: {
524
542
  name: string;
525
543
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
526
544
  }) => react_jsx_runtime.JSX.Element;
527
- Radio: ({ option, name, inline, previewOnly, hasError, formOptions, ...inputProps }: {
528
- [inputProps: string]: unknown;
529
- option: {
530
- label: string;
531
- value: string;
532
- };
533
- name: string;
534
- inline: boolean;
535
- previewOnly?: boolean | undefined;
536
- hasError?: boolean | undefined;
537
- formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
538
- }) => react_jsx_runtime.JSX.Element;
545
+ Radio: typeof Radio;
539
546
  RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, ...inputProps }: {
540
547
  [inputProps: string]: unknown;
541
548
  name: string;
@@ -617,14 +624,18 @@ declare const _default$2: {
617
624
  } | undefined;
618
625
  required?: boolean | undefined;
619
626
  }) => react_jsx_runtime.JSX.Element;
620
- Signature: ({ label, name, options, description, previewOnly, showIcon, ...inputProps }: {
627
+ Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, required, formStyle, ...inputProps }: {
621
628
  [inputProps: string]: unknown;
622
629
  label: string;
623
630
  name: string;
624
631
  options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
625
632
  previewOnly?: boolean | undefined;
626
- description?: string | undefined;
633
+ description?: string | JSX.Element | undefined;
634
+ errorMessage?: string | undefined;
627
635
  showIcon?: boolean | undefined;
636
+ required?: boolean | undefined;
637
+ advocateSignatureNeeded?: boolean | undefined;
638
+ formStyle?: string | undefined;
628
639
  }) => react_jsx_runtime.JSX.Element;
629
640
  Submit: ({ label, isSubmitting, hideWhenInvalid, ...extraProps }: {
630
641
  [extraProps: string]: unknown;
@@ -659,6 +670,22 @@ declare const _default$2: {
659
670
  disabled?: boolean | undefined;
660
671
  loading?: boolean | undefined;
661
672
  }) => react_jsx_runtime.JSX.Element;
673
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, containerStyle, value, required, errorMessage, }: {
674
+ label?: string | JSX.Element | undefined;
675
+ name: string;
676
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
677
+ disabled?: boolean | undefined;
678
+ isLabelBold?: boolean | undefined;
679
+ description?: string | JSX.Element | undefined;
680
+ onChange?: (() => void) | undefined;
681
+ containerStyle?: react.CSSProperties | undefined;
682
+ errorMessage?: string | undefined;
683
+ value?: {
684
+ label: react.ReactNode;
685
+ value: string | number;
686
+ } | undefined;
687
+ required?: boolean | undefined;
688
+ }) => react_jsx_runtime.JSX.Element;
662
689
  };
663
690
 
664
691
  declare const _default$1: {