@sinco/react 1.1.2-rc.0 → 1.1.2-rc.2
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 +9 -10
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +4 -4
- package/src/lib/Theme/typography.d.ts +5 -0
package/index.js
CHANGED
@@ -14432,10 +14432,10 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
14432
14432
|
|
14433
14433
|
const borderStyles = {
|
14434
14434
|
left: {
|
14435
|
-
borderTopRightRadius:
|
14435
|
+
borderTopRightRadius: "4px"
|
14436
14436
|
},
|
14437
14437
|
right: {
|
14438
|
-
borderTopLeftRadius:
|
14438
|
+
borderTopLeftRadius: "4px"
|
14439
14439
|
}
|
14440
14440
|
};
|
14441
14441
|
const DrawerComponent = ({
|
@@ -14445,8 +14445,8 @@ const DrawerComponent = ({
|
|
14445
14445
|
children,
|
14446
14446
|
actions,
|
14447
14447
|
showActions,
|
14448
|
-
anchor: _anchor =
|
14449
|
-
anchorActions: _anchorActions =
|
14448
|
+
anchor: _anchor = "left",
|
14449
|
+
anchorActions: _anchorActions = "flex-end",
|
14450
14450
|
width,
|
14451
14451
|
open,
|
14452
14452
|
onClose,
|
@@ -14462,11 +14462,11 @@ const DrawerComponent = ({
|
|
14462
14462
|
open: open,
|
14463
14463
|
onClose: onClose,
|
14464
14464
|
sx: Object.assign({
|
14465
|
-
|
14466
|
-
backgroundColor:
|
14467
|
-
backdropFilter:
|
14465
|
+
"& .MuiBackdrop-root": {
|
14466
|
+
backgroundColor: "#F0f0f099 !important",
|
14467
|
+
backdropFilter: "blur(4px)"
|
14468
14468
|
},
|
14469
|
-
|
14469
|
+
"& .MuiDrawer-paper": Object.assign({
|
14470
14470
|
width: width
|
14471
14471
|
}, paperSx)
|
14472
14472
|
}, sx)
|
@@ -14502,7 +14502,7 @@ const DrawerComponent = ({
|
|
14502
14502
|
py: 1.5,
|
14503
14503
|
px: 1,
|
14504
14504
|
sx: {
|
14505
|
-
bgcolor:
|
14505
|
+
bgcolor: theme => theme.palette.background.default
|
14506
14506
|
}
|
14507
14507
|
}, actions)));
|
14508
14508
|
};
|
@@ -14598,7 +14598,6 @@ const ToastNotification = toast => {
|
|
14598
14598
|
}, /*#__PURE__*/React__default.createElement(Stack$1, {
|
14599
14599
|
p: 1,
|
14600
14600
|
gap: 1,
|
14601
|
-
height: 20,
|
14602
14601
|
borderRadius: 50,
|
14603
14602
|
sx: {
|
14604
14603
|
backgroundColor: {
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
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:
|
10
|
+
anchorActions: "flex-end" | "flex-start";
|
11
11
|
width: string;
|
12
12
|
open: boolean;
|
13
13
|
onClose: () => void;
|