@sinco/react 1.0.14-rc.53 → 1.0.14-rc.54
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +754 -1246
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +2 -3
- package/src/lib/Components/EmptyState.d.ts +7 -8
- package/src/lib/Theme/components.d.ts +10 -0
package/package.json
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ReactNode } from 'react';
|
2
2
|
export type handleDrawerPosition = 'left' | 'right';
|
3
3
|
export interface DrawerComponentProperties {
|
4
4
|
title: string;
|
@@ -9,6 +9,5 @@ export interface DrawerComponentProperties {
|
|
9
9
|
width: string;
|
10
10
|
open: boolean;
|
11
11
|
onClose: () => void;
|
12
|
-
sx: React.CSSProperties;
|
13
12
|
}
|
14
|
-
export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose,
|
13
|
+
export declare const DrawerComponent: ({ title, children, renderActions, showActions, position, width, open, onClose, }: DrawerComponentProperties) => JSX.Element;
|
@@ -1,15 +1,14 @@
|
|
1
|
-
import { ReactNode } from 'react';
|
1
|
+
import React, { ReactNode } from 'react';
|
2
2
|
export type EmptyStateStates = 'create' | 'error' | 'noResult' | 'search';
|
3
|
-
export declare
|
4
|
-
error = "error",
|
5
|
-
search = "search",
|
6
|
-
noResult = "noResult",
|
7
|
-
create = "create"
|
8
|
-
}
|
3
|
+
export declare const EmptyStateImageUrls: Record<EmptyStateStates, string>;
|
9
4
|
export interface EmptyStateProperties {
|
10
5
|
state?: EmptyStateStates;
|
11
6
|
title?: string;
|
12
7
|
content?: string;
|
8
|
+
imageWidth?: string;
|
9
|
+
imageHeight?: string;
|
13
10
|
actions?: ReactNode;
|
11
|
+
icon?: ReactNode;
|
12
|
+
iconStyle?: React.CSSProperties;
|
14
13
|
}
|
15
|
-
export declare const EmptyStateComponent: ({ state, title, content, actions, }: EmptyStateProperties) => JSX.Element;
|
14
|
+
export declare const EmptyStateComponent: ({ state, title, content, actions, icon, }: EmptyStateProperties) => JSX.Element;
|
@@ -1,2 +1,12 @@
|
|
1
1
|
import { Components } from '@mui/material';
|
2
|
+
declare module '@mui/material/Chip' {
|
3
|
+
interface ChipPropsSizeOverrides {
|
4
|
+
xsmall: true;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
declare module "@mui/material/Checkbox" {
|
8
|
+
interface CheckboxPropsSizeOverrides {
|
9
|
+
xsmall: true;
|
10
|
+
}
|
11
|
+
}
|
2
12
|
export declare const components: Components;
|