@sinco/react 1.0.15 → 1.0.16-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3723 -3826
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +6 -4
- package/src/lib/Components/EmptyState.d.ts +1 -2
- package/src/lib/Components/FooterAction.d.ts +3 -3
- package/src/lib/Components/PageHeader.d.ts +1 -2
- package/src/lib/Components/ToastNotification.d.ts +1 -2
package/package.json
CHANGED
@@ -1,15 +1,17 @@
|
|
1
|
-
import { ReactNode } from
|
2
|
-
import { SxProps } from
|
3
|
-
export type DrawerPosition =
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { SxProps } from '@mui/material';
|
3
|
+
export type DrawerPosition = 'left' | 'right';
|
4
4
|
export interface DrawerComponentProperties {
|
5
5
|
title: string;
|
6
6
|
children: ReactNode;
|
7
7
|
actions: ReactNode;
|
8
8
|
showActions?: boolean;
|
9
9
|
anchor?: DrawerPosition;
|
10
|
+
anchorActions: 'flex-end' | 'flex-start';
|
10
11
|
width: string;
|
11
12
|
open: boolean;
|
12
13
|
onClose: () => void;
|
13
14
|
sx?: SxProps;
|
14
15
|
}
|
15
|
-
export declare const DrawerComponent: ({ title, children, actions, showActions, anchor, width, open, onClose, sx, }: DrawerComponentProperties) => JSX.Element;
|
16
|
+
export declare const DrawerComponent: ({ title, children, actions, showActions, anchor, anchorActions, width, open, onClose, sx, }: DrawerComponentProperties) => JSX.Element;
|
17
|
+
export { DrawerComponent as Drawer };
|
@@ -10,5 +10,4 @@ export interface EmptyStateProperties {
|
|
10
10
|
iconStyle?: React.CSSProperties;
|
11
11
|
containerHeight?: string;
|
12
12
|
}
|
13
|
-
export declare const
|
14
|
-
export { EmptyStateComponent as EmptyState };
|
13
|
+
export declare const EmptyState: ({ state, title, subtitle, actions, containerHeight, iconStyle, icon, }: EmptyStateProperties) => JSX.Element;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
interface FooterActionsProperties {
|
3
3
|
labelChangeCounter: React.ReactNode;
|
4
|
-
|
5
|
-
|
4
|
+
leftContent?: React.ReactNode;
|
5
|
+
rightContent?: React.ReactNode;
|
6
6
|
}
|
7
|
-
export declare const
|
7
|
+
export declare const FooterAction: ({ leftContent, rightContent, labelChangeCounter, }: FooterActionsProperties) => JSX.Element;
|
8
8
|
export {};
|
@@ -12,5 +12,4 @@ export declare function PageHeaderWraps({ item, color, variant, }: {
|
|
12
12
|
color: string;
|
13
13
|
variant: Variant;
|
14
14
|
}): JSX.Element;
|
15
|
-
export declare const
|
16
|
-
export { PageHeaderComponent as PageHeader };
|
15
|
+
export declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
|
@@ -9,5 +9,4 @@ export interface ToastBaseProperties {
|
|
9
9
|
actions?: React.ReactNode;
|
10
10
|
seeMore?: boolean;
|
11
11
|
}
|
12
|
-
export declare const
|
13
|
-
export { ToastNotificationComponent as ToastNotification };
|
12
|
+
export declare const ToastNotification: (toast: ToastBaseProperties) => JSX.Element;
|