@movable/ui 2.14.4 → 2.15.0
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/lib/components/InkChart/InkChart.d.ts +15 -0
- package/lib/components/InkChart/index.d.ts +1 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.mjs +7971 -7159
- package/lib/index.mjs.map +1 -1
- package/package.json +13 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type ChartTypes = 'line' | 'bar' | 'pie';
|
|
2
|
+
import type { ChartOptions, ChartData } from 'chart.js';
|
|
3
|
+
export type ChartProps<T extends ChartTypes> = {
|
|
4
|
+
type: T;
|
|
5
|
+
data?: ChartData<T>;
|
|
6
|
+
chartOptions?: ChartOptions<T>;
|
|
7
|
+
legend?: boolean;
|
|
8
|
+
customColors?: string[];
|
|
9
|
+
height?: number;
|
|
10
|
+
isLoading?: boolean;
|
|
11
|
+
stacked?: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
};
|
|
14
|
+
export default function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): import("react/jsx-runtime").JSX.Element | undefined;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as InkChart } from './InkChart';
|
package/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ import { BoxProps } from '@mui/material';
|
|
|
3
3
|
import { BoxProps as BoxProps_2 } from '@mui/material/Box';
|
|
4
4
|
import { ButtonProps } from '@mui/material';
|
|
5
5
|
import { ButtonProps as ButtonProps_2 } from '@mui/material/Button';
|
|
6
|
+
import type { ChartData } from 'chart.js';
|
|
7
|
+
import type { ChartOptions } from 'chart.js';
|
|
6
8
|
import { CheckboxProps } from '@mui/material/Checkbox';
|
|
7
9
|
import { ChipProps } from '@mui/material';
|
|
8
10
|
import { CustomContentProps } from 'notistack';
|
|
@@ -81,6 +83,20 @@ declare type ButtonPropsType = ButtonProps & {
|
|
|
81
83
|
label: ReactNode;
|
|
82
84
|
};
|
|
83
85
|
|
|
86
|
+
declare type ChartProps<T extends ChartTypes> = {
|
|
87
|
+
type: T;
|
|
88
|
+
data?: ChartData<T>;
|
|
89
|
+
chartOptions?: ChartOptions<T>;
|
|
90
|
+
legend?: boolean;
|
|
91
|
+
customColors?: string[];
|
|
92
|
+
height?: number;
|
|
93
|
+
isLoading?: boolean;
|
|
94
|
+
stacked?: boolean;
|
|
95
|
+
title?: string;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
declare type ChartTypes = 'line' | 'bar' | 'pie';
|
|
99
|
+
|
|
84
100
|
declare type closeButtonType = {
|
|
85
101
|
onClick: (e?: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
86
102
|
};
|
|
@@ -207,6 +223,8 @@ declare type InkAttributeProps = ListItemTextProps & {
|
|
|
207
223
|
};
|
|
208
224
|
};
|
|
209
225
|
|
|
226
|
+
export declare function InkChart<T extends ChartTypes>({ chartOptions, type, data, customColors, height, isLoading, stacked, legend, title, }: ChartProps<T>): JSX_2.Element | undefined;
|
|
227
|
+
|
|
210
228
|
export declare const InkCheckboxGroup: ForwardRefExoticComponent<InkCheckboxGroupProps & RefAttributes<HTMLDivElement>>;
|
|
211
229
|
|
|
212
230
|
export declare class inkCheckboxGroup {
|