digitinary-ui 1.0.78 → 1.0.80

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.
@@ -6,7 +6,7 @@ type DataItem = {
6
6
  fill: string;
7
7
  };
8
8
  type DonutChartProps = {
9
- data: DataItem[];
9
+ data: DataItem[] | undefined;
10
10
  height?: number;
11
11
  width?: number;
12
12
  innerRadius?: number;
@@ -12,7 +12,7 @@ interface FileUploaderProps {
12
12
  placeholder?: string | number;
13
13
  required?: boolean;
14
14
  key?: any;
15
- handleDownload: (value: FileOrUrl) => void;
15
+ handleDownload?: (value: FileOrUrl) => void;
16
16
  }
17
17
  declare const FileUploader: ({ multiple, disabled, accept, value, onChange, size, label, placeholder, required, key, handleDownload, }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
18
18
  export default FileUploader;
@@ -3,6 +3,6 @@ type FileOrUrl = File | string;
3
3
  declare const ViewFiles: ({ files, onChange, handleDownload, }: {
4
4
  files: FileOrUrl[];
5
5
  onChange: (value: FileOrUrl[]) => void;
6
- handleDownload: (value: FileOrUrl) => void;
6
+ handleDownload?: ((value: FileOrUrl) => void) | undefined;
7
7
  }) => import("react/jsx-runtime").JSX.Element;
8
8
  export default ViewFiles;
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
2
  import './style.scss';
3
3
  interface InputRangeProps {
4
- value: string;
5
- onChange: (value: string) => void;
4
+ value: number;
5
+ onChange: (value: number) => void;
6
6
  disabled?: boolean;
7
- min?: string;
8
- max?: string;
7
+ min?: number;
8
+ max?: number;
9
9
  label?: JSX.Element | string | number;
10
10
  required?: boolean;
11
11
  }
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './style.scss';
3
3
  type SimpleLabelValueProps = {
4
4
  label: string | JSX.Element;
5
- value: string;
5
+ value: string | number | JSX.Element;
6
6
  color?: string;
7
7
  className?: string;
8
8
  dataId?: string;
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import './style.scss';
3
3
  type DataItem = {
4
4
  name: string;
5
- [key: string]: number | string;
5
+ [key: string]: number | string | undefined;
6
6
  };
7
7
  type StackedBarChartProps = {
8
8
  data: DataItem[];