@solace-health/ui 0.9.67 → 0.9.69

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
@@ -4,12 +4,15 @@ import { CSSProperties } from 'react';
4
4
  import dayjs from 'dayjs';
5
5
  import * as contentful from 'contentful';
6
6
  import { FunctionalComponent } from 'preact';
7
+ import * as antd from 'antd';
7
8
  import { TabsProps, MenuProps as MenuProps$1, DropDownProps, SubMenuProps } from 'antd';
8
9
  import { MenuProps } from '@szhsin/react-menu';
9
10
  import * as _emotion_styled from '@emotion/styled';
10
11
  export { default as styled } from '@emotion/styled';
11
12
  import * as _emotion_react from '@emotion/react';
12
13
  import * as preact_hooks from 'preact/hooks';
14
+ import * as antd_es_upload_interface from 'antd/es/upload/interface';
15
+ import * as antd_es_upload from 'antd/es/upload';
13
16
  import * as react_hook_form from 'react-hook-form';
14
17
  import { UseFormReturn } from 'react-hook-form';
15
18
  export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
@@ -667,17 +670,23 @@ declare const _default$2: {
667
670
  disabled?: boolean | undefined;
668
671
  loading?: boolean | undefined;
669
672
  }) => react_jsx_runtime.JSX.Element;
670
- FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, errorMessage, }: {
673
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, onRemove, onDownload, defaultValue, containerStyle, errorMessage, action, headers, uploadData, defaultFileList }: {
671
674
  label?: string | JSX.Element | undefined;
672
675
  name: string;
673
676
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
674
677
  disabled?: boolean | undefined;
675
678
  isLabelBold?: boolean | undefined;
676
679
  description?: string | JSX.Element | undefined;
677
- onChange?: (() => void) | undefined;
680
+ onChange?: ((uploadChange: antd_es_upload.UploadChangeParam<antd.UploadFile<any>>) => void) | undefined;
681
+ onRemove?: ((file: antd.UploadFile<any>) => void) | undefined;
682
+ onDownload?: ((file: antd.UploadFile<any>) => void) | undefined;
678
683
  containerStyle?: react.CSSProperties | undefined;
679
684
  errorMessage?: string | undefined;
680
685
  defaultValue?: string | undefined;
686
+ action: string;
687
+ headers?: antd_es_upload_interface.HttpRequestHeader | undefined;
688
+ uploadData?: Record<string, unknown> | undefined;
689
+ defaultFileList?: antd.UploadFile<any>[] | undefined;
681
690
  }) => react_jsx_runtime.JSX.Element;
682
691
  };
683
692
 
package/dist/index.d.ts CHANGED
@@ -4,12 +4,15 @@ import { CSSProperties } from 'react';
4
4
  import dayjs from 'dayjs';
5
5
  import * as contentful from 'contentful';
6
6
  import { FunctionalComponent } from 'preact';
7
+ import * as antd from 'antd';
7
8
  import { TabsProps, MenuProps as MenuProps$1, DropDownProps, SubMenuProps } from 'antd';
8
9
  import { MenuProps } from '@szhsin/react-menu';
9
10
  import * as _emotion_styled from '@emotion/styled';
10
11
  export { default as styled } from '@emotion/styled';
11
12
  import * as _emotion_react from '@emotion/react';
12
13
  import * as preact_hooks from 'preact/hooks';
14
+ import * as antd_es_upload_interface from 'antd/es/upload/interface';
15
+ import * as antd_es_upload from 'antd/es/upload';
13
16
  import * as react_hook_form from 'react-hook-form';
14
17
  import { UseFormReturn } from 'react-hook-form';
15
18
  export { Controller, FormProvider, useFieldArray, useForm, useFormContext } from 'react-hook-form';
@@ -667,17 +670,23 @@ declare const _default$2: {
667
670
  disabled?: boolean | undefined;
668
671
  loading?: boolean | undefined;
669
672
  }) => react_jsx_runtime.JSX.Element;
670
- FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, defaultValue, containerStyle, errorMessage, }: {
673
+ FileUpload: ({ label, name, disabled, description, isLabelBold, formOptions, onChange, onRemove, onDownload, defaultValue, containerStyle, errorMessage, action, headers, uploadData, defaultFileList }: {
671
674
  label?: string | JSX.Element | undefined;
672
675
  name: string;
673
676
  formOptions?: react_hook_form.RegisterOptions<react_hook_form.FieldValues, string> | undefined;
674
677
  disabled?: boolean | undefined;
675
678
  isLabelBold?: boolean | undefined;
676
679
  description?: string | JSX.Element | undefined;
677
- onChange?: (() => void) | undefined;
680
+ onChange?: ((uploadChange: antd_es_upload.UploadChangeParam<antd.UploadFile<any>>) => void) | undefined;
681
+ onRemove?: ((file: antd.UploadFile<any>) => void) | undefined;
682
+ onDownload?: ((file: antd.UploadFile<any>) => void) | undefined;
678
683
  containerStyle?: react.CSSProperties | undefined;
679
684
  errorMessage?: string | undefined;
680
685
  defaultValue?: string | undefined;
686
+ action: string;
687
+ headers?: antd_es_upload_interface.HttpRequestHeader | undefined;
688
+ uploadData?: Record<string, unknown> | undefined;
689
+ defaultFileList?: antd.UploadFile<any>[] | undefined;
681
690
  }) => react_jsx_runtime.JSX.Element;
682
691
  };
683
692