@sinco/react 1.0.15-rc.16 → 1.0.15-rc.18
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/index.js +10 -8
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +3 -2
package/index.js
CHANGED
@@ -16623,27 +16623,29 @@ const DrawerComponent = ({
|
|
16623
16623
|
const handleDrawerActions = () => {
|
16624
16624
|
setActionsState(true);
|
16625
16625
|
};
|
16626
|
-
const borderStyles = anchor ===
|
16627
|
-
borderTopRightRadius:
|
16626
|
+
const borderStyles = anchor === 'left' ? {
|
16627
|
+
borderTopRightRadius: '4px'
|
16628
16628
|
} : {
|
16629
|
-
borderTopLeftRadius:
|
16629
|
+
borderTopLeftRadius: '4px'
|
16630
16630
|
};
|
16631
16631
|
return /*#__PURE__*/React__default.createElement(Drawer$1, {
|
16632
16632
|
anchor: anchor,
|
16633
16633
|
open: open,
|
16634
16634
|
onClose: onClose,
|
16635
|
-
sx:
|
16635
|
+
sx: {
|
16636
|
+
'& .MuiDrawer-paper': Object.assign({
|
16637
|
+
width: width
|
16638
|
+
}, borderStyles)
|
16639
|
+
}
|
16636
16640
|
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
16637
|
-
height: "100%"
|
16638
|
-
width: width
|
16641
|
+
height: "100%"
|
16639
16642
|
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
16640
16643
|
justifyContent: "space-between",
|
16641
16644
|
alignItems: "center",
|
16642
16645
|
direction: "row",
|
16643
16646
|
py: 1.5,
|
16644
16647
|
px: 1,
|
16645
|
-
bgcolor: SincoTheme.palette.secondary.main
|
16646
|
-
sx: borderStyles
|
16648
|
+
bgcolor: SincoTheme.palette.secondary.main
|
16647
16649
|
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
16648
16650
|
sx: Object.assign({}, SincoTheme.typography.h6, sx),
|
16649
16651
|
variant: "h6"
|
package/package.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { SxProps } from '@mui/material';
|
2
3
|
export type handleDrawerPosition = 'left' | 'right';
|
3
4
|
export interface DrawerComponentProperties {
|
4
5
|
title: string;
|
@@ -9,6 +10,6 @@ export interface DrawerComponentProperties {
|
|
9
10
|
width: string;
|
10
11
|
open: boolean;
|
11
12
|
onClose: () => void;
|
12
|
-
sx?:
|
13
|
+
sx?: SxProps;
|
13
14
|
}
|
14
15
|
export declare const DrawerComponent: ({ title, children, renderActions, showActions, anchor, width, open, onClose, sx, }: DrawerComponentProperties) => JSX.Element;
|