@sinco/react 1.0.15-rc.30 → 1.0.15-rc.31
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +8 -9
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +3 -3
package/index.js
CHANGED
@@ -2,7 +2,6 @@ import { createTheme } from '@mui/material/styles';
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
3
3
|
import { CheckCircleRounded, ErrorRounded, WarningRounded, InfoRounded, Close, KeyboardArrowDown, KeyboardArrowUp } from '@mui/icons-material';
|
4
4
|
import { Stack, Typography, Drawer, IconButton, AppBar, Toolbar, Box as Box$1, Divider, Button, LinearProgress, alpha } from '@mui/material';
|
5
|
-
import CloseIcon from '@mui/icons-material/Close';
|
6
5
|
|
7
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
8
7
|
|
@@ -2658,10 +2657,10 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
2658
2657
|
|
2659
2658
|
const borderStyles = {
|
2660
2659
|
left: {
|
2661
|
-
borderTopRightRadius:
|
2660
|
+
borderTopRightRadius: "4px"
|
2662
2661
|
},
|
2663
2662
|
right: {
|
2664
|
-
borderTopLeftRadius:
|
2663
|
+
borderTopLeftRadius: "4px"
|
2665
2664
|
}
|
2666
2665
|
};
|
2667
2666
|
const DrawerComponent = ({
|
@@ -2669,7 +2668,7 @@ const DrawerComponent = ({
|
|
2669
2668
|
children,
|
2670
2669
|
actions,
|
2671
2670
|
showActions,
|
2672
|
-
anchor: _anchor =
|
2671
|
+
anchor: _anchor = "left",
|
2673
2672
|
width,
|
2674
2673
|
open,
|
2675
2674
|
onClose,
|
@@ -2685,11 +2684,11 @@ const DrawerComponent = ({
|
|
2685
2684
|
open: open,
|
2686
2685
|
onClose: onClose,
|
2687
2686
|
sx: {
|
2688
|
-
|
2689
|
-
backgroundColor:
|
2690
|
-
backdropFilter:
|
2687
|
+
"& .MuiBackdrop-root": {
|
2688
|
+
backgroundColor: "#F0f0f099 !important",
|
2689
|
+
backdropFilter: "blur(4px)"
|
2691
2690
|
},
|
2692
|
-
|
2691
|
+
"& .MuiDrawer-paper": Object.assign({
|
2693
2692
|
width: width
|
2694
2693
|
}, paperSx)
|
2695
2694
|
}
|
@@ -2708,7 +2707,7 @@ const DrawerComponent = ({
|
|
2708
2707
|
}, title), /*#__PURE__*/React.createElement(IconButton, {
|
2709
2708
|
onClick: onClose,
|
2710
2709
|
size: "small"
|
2711
|
-
}, /*#__PURE__*/React.createElement(
|
2710
|
+
}, /*#__PURE__*/React.createElement(Close, {
|
2712
2711
|
fontSize: "small"
|
2713
2712
|
}))), /*#__PURE__*/React.createElement(Stack, {
|
2714
2713
|
py: 1.5,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
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;
|