@solace-health/ui 0.9.61 → 0.9.63

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
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import dayjs from 'dayjs';
3
2
  import * as react from 'react';
4
3
  import { CSSProperties } from 'react';
4
+ import dayjs from 'dayjs';
5
5
  import * as contentful from 'contentful';
6
6
  import { FunctionalComponent } from 'preact';
7
7
  import { TabsProps, MenuProps as MenuProps$1, DropDownProps, SubMenuProps } from 'antd';
@@ -53,8 +53,9 @@ declare type Item = {
53
53
  declare type Props$b = {
54
54
  items: Item[] | Item;
55
55
  onChange?: (key: string | string[]) => void;
56
+ style?: CSSProperties;
56
57
  };
57
- declare const Collapse: ({ items, onChange }: Props$b) => react_jsx_runtime.JSX.Element;
58
+ declare const Collapse: ({ items, onChange, ...rest }: Props$b) => react_jsx_runtime.JSX.Element;
58
59
 
59
60
  declare type Props$a = {
60
61
  value?: string | null;
@@ -467,22 +468,21 @@ declare const _default$2: {
467
468
  children: react.ReactNode;
468
469
  className?: string | undefined;
469
470
  }) => react_jsx_runtime.JSX.Element;
470
- Checkbox: ({ option, name, inputOptions, previewOnly, errorMessage, required, inGroup, hasError, ...inputProps }: {
471
+ Checkbox: ({ option, name, formOptions, previewOnly, errorMessage, inGroup, hasError, ...inputProps }: {
471
472
  [inputProps: string]: unknown;
472
473
  option: {
473
474
  label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
474
475
  value: string;
475
476
  };
476
477
  name: string;
477
- inputOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
478
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
478
479
  previewOnly?: boolean | undefined;
479
480
  errorMessage?: string | undefined;
480
481
  defaultValue?: string | undefined;
481
- required?: boolean | undefined;
482
482
  hasError?: boolean | undefined;
483
483
  inGroup?: boolean | undefined;
484
484
  }) => react_jsx_runtime.JSX.Element;
485
- CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, required, ...inputProps }: {
485
+ CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, formOptions, ...inputProps }: {
486
486
  [inputProps: string]: unknown;
487
487
  name: string;
488
488
  label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
@@ -490,6 +490,7 @@ declare const _default$2: {
490
490
  inline?: boolean | undefined;
491
491
  previewOnly?: boolean | undefined;
492
492
  errorMessage?: string | undefined;
493
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
493
494
  defaultValue?: string | undefined;
494
495
  required?: boolean | undefined;
495
496
  other?: {
@@ -510,13 +511,13 @@ declare const _default$2: {
510
511
  defaultValue?: string | undefined;
511
512
  options?: object | undefined;
512
513
  }) => react_jsx_runtime.JSX.Element;
513
- TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
514
+ TextInput: ({ name, label, details, type, formOptions, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, ...inputProps }: {
514
515
  [inputProps: string]: unknown;
515
516
  name: string;
516
517
  label?: string | JSX.Element | null | undefined;
517
518
  details?: string | null | undefined;
518
519
  type?: string | undefined;
519
- options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
520
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
520
521
  previewOnly?: boolean | undefined;
521
522
  textArea?: boolean | undefined;
522
523
  marginBottom?: string | undefined;
@@ -525,7 +526,6 @@ declare const _default$2: {
525
526
  controlled?: boolean | undefined;
526
527
  format?: any;
527
528
  errorMessage?: string | undefined;
528
- required?: boolean | undefined;
529
529
  }) => react_jsx_runtime.JSX.Element;
530
530
  TimeSelect: ({ label, name, ...inputProps }: {
531
531
  [inputProps: string]: unknown;
@@ -545,7 +545,7 @@ declare const _default$2: {
545
545
  hasError?: boolean | undefined;
546
546
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
547
547
  }) => react_jsx_runtime.JSX.Element;
548
- RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, ...inputProps }: {
548
+ RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, formOptions, errorMessage, ...inputProps }: {
549
549
  [inputProps: string]: unknown;
550
550
  name: string;
551
551
  label: string | JSX.Element;
@@ -555,7 +555,6 @@ declare const _default$2: {
555
555
  previewOnly?: boolean | undefined;
556
556
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
557
557
  errorMessage?: string | undefined;
558
- required?: boolean | undefined;
559
558
  options: {
560
559
  label: string;
561
560
  value: string;
@@ -578,9 +577,9 @@ declare const _default$2: {
578
577
  label?: string | JSX.Element | undefined;
579
578
  name: string;
580
579
  details?: string | undefined;
581
- placeholder?: any;
580
+ placeholder?: string | JSX.Element | undefined;
582
581
  options: {
583
- label: any;
582
+ label: string | JSX.Element;
584
583
  value: string;
585
584
  }[];
586
585
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -588,12 +587,12 @@ declare const _default$2: {
588
587
  previewOnly?: boolean | undefined;
589
588
  isLabelBold?: boolean | undefined;
590
589
  onChange?: (({ value, label }: {
591
- label: any;
590
+ label: string | JSX.Element;
592
591
  value: string;
593
592
  }) => void) | undefined;
594
593
  containerStyle?: react.CSSProperties | undefined;
595
594
  }) => react_jsx_runtime.JSX.Element;
596
- SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, required, errorMessage, defaultValue, }: {
595
+ SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, errorMessage, defaultValue, }: {
597
596
  label?: string | JSX.Element | undefined;
598
597
  name: string;
599
598
  details?: string | undefined;
@@ -621,13 +620,12 @@ declare const _default$2: {
621
620
  value: string | number;
622
621
  } | undefined;
623
622
  defaultValue?: string | undefined;
624
- required?: boolean | undefined;
625
623
  }) => react_jsx_runtime.JSX.Element;
626
- Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
624
+ Signature: ({ label: labelText, name, formOptions, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
627
625
  [inputProps: string]: unknown;
628
626
  label: string;
629
627
  name: string;
630
- options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
628
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
631
629
  previewOnly?: boolean | undefined;
632
630
  description?: string | JSX.Element | undefined;
633
631
  errorMessage?: string | undefined;
@@ -668,7 +666,7 @@ declare const _default$2: {
668
666
  disabled?: boolean | undefined;
669
667
  loading?: boolean | undefined;
670
668
  }) => react_jsx_runtime.JSX.Element;
671
- FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, required, errorMessage, }: {
669
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, errorMessage, }: {
672
670
  label?: string | JSX.Element | undefined;
673
671
  name: string;
674
672
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -679,7 +677,6 @@ declare const _default$2: {
679
677
  containerStyle?: react.CSSProperties | undefined;
680
678
  errorMessage?: string | undefined;
681
679
  defaultValue?: string | undefined;
682
- required?: boolean | undefined;
683
680
  }) => react_jsx_runtime.JSX.Element;
684
681
  };
685
682
 
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import dayjs from 'dayjs';
3
2
  import * as react from 'react';
4
3
  import { CSSProperties } from 'react';
4
+ import dayjs from 'dayjs';
5
5
  import * as contentful from 'contentful';
6
6
  import { FunctionalComponent } from 'preact';
7
7
  import { TabsProps, MenuProps as MenuProps$1, DropDownProps, SubMenuProps } from 'antd';
@@ -53,8 +53,9 @@ declare type Item = {
53
53
  declare type Props$b = {
54
54
  items: Item[] | Item;
55
55
  onChange?: (key: string | string[]) => void;
56
+ style?: CSSProperties;
56
57
  };
57
- declare const Collapse: ({ items, onChange }: Props$b) => react_jsx_runtime.JSX.Element;
58
+ declare const Collapse: ({ items, onChange, ...rest }: Props$b) => react_jsx_runtime.JSX.Element;
58
59
 
59
60
  declare type Props$a = {
60
61
  value?: string | null;
@@ -467,22 +468,21 @@ declare const _default$2: {
467
468
  children: react.ReactNode;
468
469
  className?: string | undefined;
469
470
  }) => react_jsx_runtime.JSX.Element;
470
- Checkbox: ({ option, name, inputOptions, previewOnly, errorMessage, required, inGroup, hasError, ...inputProps }: {
471
+ Checkbox: ({ option, name, formOptions, previewOnly, errorMessage, inGroup, hasError, ...inputProps }: {
471
472
  [inputProps: string]: unknown;
472
473
  option: {
473
474
  label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
474
475
  value: string;
475
476
  };
476
477
  name: string;
477
- inputOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
478
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
478
479
  previewOnly?: boolean | undefined;
479
480
  errorMessage?: string | undefined;
480
481
  defaultValue?: string | undefined;
481
- required?: boolean | undefined;
482
482
  hasError?: boolean | undefined;
483
483
  inGroup?: boolean | undefined;
484
484
  }) => react_jsx_runtime.JSX.Element;
485
- CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, required, ...inputProps }: {
485
+ CheckboxGroup: ({ name, label, details, options, inline, previewOnly, other, errorMessage, formOptions, ...inputProps }: {
486
486
  [inputProps: string]: unknown;
487
487
  name: string;
488
488
  label: string | react.ReactElement<any, string | react.JSXElementConstructor<any>>;
@@ -490,6 +490,7 @@ declare const _default$2: {
490
490
  inline?: boolean | undefined;
491
491
  previewOnly?: boolean | undefined;
492
492
  errorMessage?: string | undefined;
493
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
493
494
  defaultValue?: string | undefined;
494
495
  required?: boolean | undefined;
495
496
  other?: {
@@ -510,13 +511,13 @@ declare const _default$2: {
510
511
  defaultValue?: string | undefined;
511
512
  options?: object | undefined;
512
513
  }) => react_jsx_runtime.JSX.Element;
513
- TextInput: ({ name, label, details, type, options, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, required, ...inputProps }: {
514
+ TextInput: ({ name, label, details, type, formOptions, previewOnly, textArea, marginBottom, isLabelBold, format, errorMessage, ...inputProps }: {
514
515
  [inputProps: string]: unknown;
515
516
  name: string;
516
517
  label?: string | JSX.Element | null | undefined;
517
518
  details?: string | null | undefined;
518
519
  type?: string | undefined;
519
- options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
520
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
520
521
  previewOnly?: boolean | undefined;
521
522
  textArea?: boolean | undefined;
522
523
  marginBottom?: string | undefined;
@@ -525,7 +526,6 @@ declare const _default$2: {
525
526
  controlled?: boolean | undefined;
526
527
  format?: any;
527
528
  errorMessage?: string | undefined;
528
- required?: boolean | undefined;
529
529
  }) => react_jsx_runtime.JSX.Element;
530
530
  TimeSelect: ({ label, name, ...inputProps }: {
531
531
  [inputProps: string]: unknown;
@@ -545,7 +545,7 @@ declare const _default$2: {
545
545
  hasError?: boolean | undefined;
546
546
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
547
547
  }) => react_jsx_runtime.JSX.Element;
548
- RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, required, formOptions, errorMessage, ...inputProps }: {
548
+ RadioGroup: ({ name, label, details, options, inline, allowOther, previewOnly, formOptions, errorMessage, ...inputProps }: {
549
549
  [inputProps: string]: unknown;
550
550
  name: string;
551
551
  label: string | JSX.Element;
@@ -555,7 +555,6 @@ declare const _default$2: {
555
555
  previewOnly?: boolean | undefined;
556
556
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
557
557
  errorMessage?: string | undefined;
558
- required?: boolean | undefined;
559
558
  options: {
560
559
  label: string;
561
560
  value: string;
@@ -578,9 +577,9 @@ declare const _default$2: {
578
577
  label?: string | JSX.Element | undefined;
579
578
  name: string;
580
579
  details?: string | undefined;
581
- placeholder?: any;
580
+ placeholder?: string | JSX.Element | undefined;
582
581
  options: {
583
- label: any;
582
+ label: string | JSX.Element;
584
583
  value: string;
585
584
  }[];
586
585
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -588,12 +587,12 @@ declare const _default$2: {
588
587
  previewOnly?: boolean | undefined;
589
588
  isLabelBold?: boolean | undefined;
590
589
  onChange?: (({ value, label }: {
591
- label: any;
590
+ label: string | JSX.Element;
592
591
  value: string;
593
592
  }) => void) | undefined;
594
593
  containerStyle?: react.CSSProperties | undefined;
595
594
  }) => react_jsx_runtime.JSX.Element;
596
- SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, required, errorMessage, defaultValue, }: {
595
+ SelectMenu: ({ label, name, details, placeholder, className, options, disabled, mode, previewOnly, isLabelBold, formOptions, onChange, containerStyle, allowClear, loading, value, errorMessage, defaultValue, }: {
597
596
  label?: string | JSX.Element | undefined;
598
597
  name: string;
599
598
  details?: string | undefined;
@@ -621,13 +620,12 @@ declare const _default$2: {
621
620
  value: string | number;
622
621
  } | undefined;
623
622
  defaultValue?: string | undefined;
624
- required?: boolean | undefined;
625
623
  }) => react_jsx_runtime.JSX.Element;
626
- Signature: ({ label: labelText, name, options, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
624
+ Signature: ({ label: labelText, name, formOptions, description, previewOnly, errorMessage, advocateSignatureNeeded, showIcon, formStyle, ...inputProps }: {
627
625
  [inputProps: string]: unknown;
628
626
  label: string;
629
627
  name: string;
630
- options?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
628
+ formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
631
629
  previewOnly?: boolean | undefined;
632
630
  description?: string | JSX.Element | undefined;
633
631
  errorMessage?: string | undefined;
@@ -668,7 +666,7 @@ declare const _default$2: {
668
666
  disabled?: boolean | undefined;
669
667
  loading?: boolean | undefined;
670
668
  }) => react_jsx_runtime.JSX.Element;
671
- FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, required, errorMessage, }: {
669
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, errorMessage, }: {
672
670
  label?: string | JSX.Element | undefined;
673
671
  name: string;
674
672
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
@@ -679,7 +677,6 @@ declare const _default$2: {
679
677
  containerStyle?: react.CSSProperties | undefined;
680
678
  errorMessage?: string | undefined;
681
679
  defaultValue?: string | undefined;
682
- required?: boolean | undefined;
683
680
  }) => react_jsx_runtime.JSX.Element;
684
681
  };
685
682