@sinco/react 1.1.2-rc.1 → 1.1.2-rc.3
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +10 -10
- package/package.json +1 -1
- package/src/lib/Components/Drawer.d.ts +4 -4
- package/src/lib/Theme/components.d.ts +0 -10
- package/src/lib/Theme/palette.d.ts +0 -11
package/index.js
CHANGED
@@ -6746,7 +6746,7 @@ const palette = {
|
|
6746
6746
|
focus: "#1018401f"
|
6747
6747
|
},
|
6748
6748
|
background: {
|
6749
|
-
default: "#
|
6749
|
+
default: "#f5f5f5",
|
6750
6750
|
paper: "#fff"
|
6751
6751
|
},
|
6752
6752
|
common: {
|
@@ -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
|
};
|
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;
|
@@ -1,12 +1,2 @@
|
|
1
1
|
import { Components } from "@mui/material";
|
2
|
-
declare module "@mui/material/Radio" {
|
3
|
-
interface RadioPropsSizeOverrides {
|
4
|
-
large: true;
|
5
|
-
}
|
6
|
-
}
|
7
|
-
declare module "@mui/material/Checkbox" {
|
8
|
-
interface CheckboxPropsSizeOverrides {
|
9
|
-
large: true;
|
10
|
-
}
|
11
|
-
}
|
12
2
|
export declare const components: Components;
|
@@ -1,14 +1,3 @@
|
|
1
1
|
import { PaletteOptions } from "@mui/material";
|
2
|
-
declare module "@mui/material/styles" {
|
3
|
-
interface PaletteColor {
|
4
|
-
50?: string;
|
5
|
-
100?: string;
|
6
|
-
200?: string;
|
7
|
-
300?: string;
|
8
|
-
600?: string;
|
9
|
-
700?: string;
|
10
|
-
800?: string;
|
11
|
-
}
|
12
|
-
}
|
13
2
|
export declare const palette: PaletteOptions;
|
14
3
|
export declare const paletteAdpro: PaletteOptions;
|