@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 CHANGED
@@ -14432,10 +14432,10 @@ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
14432
14432
 
14433
14433
  const borderStyles = {
14434
14434
  left: {
14435
- borderTopRightRadius: '4px'
14435
+ borderTopRightRadius: "4px"
14436
14436
  },
14437
14437
  right: {
14438
- borderTopLeftRadius: '4px'
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 = 'left',
14449
- anchorActions: _anchorActions = 'flex-end',
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
- '& .MuiBackdrop-root': {
14466
- backgroundColor: '#F0f0f099 !important',
14467
- backdropFilter: 'blur(4px)'
14465
+ "& .MuiBackdrop-root": {
14466
+ backgroundColor: "#F0f0f099 !important",
14467
+ backdropFilter: "blur(4px)"
14468
14468
  },
14469
- '& .MuiDrawer-paper': Object.assign({
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: 'grey.400'
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.1.2-rc.0",
3
+ "version": "1.1.2-rc.2",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,13 +1,13 @@
1
- import { ReactNode } from 'react';
2
- import { SxProps } from '@mui/material';
3
- export type DrawerPosition = 'left' | 'right';
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
+ anchorActions: "flex-end" | "flex-start";
11
11
  width: string;
12
12
  open: boolean;
13
13
  onClose: () => void;
@@ -8,4 +8,9 @@ declare module '@mui/material/styles' {
8
8
  body3?: React.CSSProperties;
9
9
  }
10
10
  }
11
+ declare module "@mui/material/Typography" {
12
+ interface TypographyPropsVariantOverrides {
13
+ body3: true;
14
+ }
15
+ }
11
16
  export declare const typography: TypographyOptions;