@sinco/react 1.0.15 → 1.0.16-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +3720 -3823
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +6 -4
- package/src/lib/Components/FooterAction.d.ts +3 -3
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 };
|
@@ -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 {};
|