@sinco/react 1.0.11-rc.6 → 1.0.11-rc.7
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 +18 -20
- package/package.json +1 -1
package/index.js
CHANGED
@@ -17437,29 +17437,23 @@ var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("p
|
|
17437
17437
|
}), 'Close');
|
17438
17438
|
default_1 = Close.default = _default;
|
17439
17439
|
|
17440
|
-
const DrawerContainer =
|
17441
|
-
theme
|
17442
|
-
}) => ({
|
17440
|
+
const DrawerContainer = {
|
17443
17441
|
display: 'flex',
|
17444
17442
|
flexDirection: 'column',
|
17445
17443
|
alignContent: 'flex-start',
|
17446
17444
|
justifyContent: 'space-between',
|
17447
17445
|
height: '100%',
|
17448
17446
|
overflow: 'hidden'
|
17449
|
-
}
|
17450
|
-
const DrawerHeader =
|
17451
|
-
theme
|
17452
|
-
}) => ({
|
17447
|
+
};
|
17448
|
+
const DrawerHeader = {
|
17453
17449
|
display: 'flex',
|
17454
17450
|
alignContent: 'center',
|
17455
17451
|
justifyContent: 'space-between',
|
17456
17452
|
backgroundColor: 'secondary.main',
|
17457
17453
|
py: '12px',
|
17458
17454
|
px: '8px'
|
17459
|
-
}
|
17460
|
-
const DrawerContent =
|
17461
|
-
theme
|
17462
|
-
}) => ({
|
17455
|
+
};
|
17456
|
+
const DrawerContent = {
|
17463
17457
|
display: 'flex',
|
17464
17458
|
overflow: 'auto',
|
17465
17459
|
alignItems: 'flex-start',
|
@@ -17467,10 +17461,8 @@ const DrawerContent = styled$1(Box$2)(({
|
|
17467
17461
|
height: '-webkit-fill-available',
|
17468
17462
|
py: '12px',
|
17469
17463
|
px: '8px'
|
17470
|
-
}
|
17471
|
-
const DrawerActions =
|
17472
|
-
theme
|
17473
|
-
}) => ({
|
17464
|
+
};
|
17465
|
+
const DrawerActions = {
|
17474
17466
|
display: 'flex',
|
17475
17467
|
alignContent: 'center',
|
17476
17468
|
justifyContent: 'flex-end',
|
@@ -17480,7 +17472,7 @@ const DrawerActions = styled$1(Box$2)(({
|
|
17480
17472
|
mt: '4px',
|
17481
17473
|
py: '12px',
|
17482
17474
|
px: '8px'
|
17483
|
-
}
|
17475
|
+
};
|
17484
17476
|
const DrawerComponent = ({
|
17485
17477
|
title,
|
17486
17478
|
children,
|
@@ -17501,18 +17493,24 @@ const DrawerComponent = ({
|
|
17501
17493
|
anchor: position,
|
17502
17494
|
open: open,
|
17503
17495
|
onClose: onClose
|
17504
|
-
}, /*#__PURE__*/React__default.createElement(
|
17496
|
+
}, /*#__PURE__*/React__default.createElement(Box$2, {
|
17497
|
+
sx: DrawerContainer,
|
17505
17498
|
width: width
|
17506
|
-
}, /*#__PURE__*/React__default.createElement(
|
17499
|
+
}, /*#__PURE__*/React__default.createElement(Box$2, {
|
17500
|
+
sx: DrawerHeader
|
17501
|
+
}, /*#__PURE__*/React__default.createElement(Typography$1, {
|
17507
17502
|
variant: "h6"
|
17508
17503
|
}, title), /*#__PURE__*/React__default.createElement(Box$2, null, /*#__PURE__*/React__default.createElement(IconButton$1, {
|
17509
17504
|
onClick: onClose,
|
17510
17505
|
size: "small"
|
17511
17506
|
}, /*#__PURE__*/React__default.createElement(default_1, {
|
17512
17507
|
fontSize: "small"
|
17513
|
-
})))), /*#__PURE__*/React__default.createElement(
|
17508
|
+
})))), /*#__PURE__*/React__default.createElement(Box$2, {
|
17509
|
+
sx: DrawerContent,
|
17514
17510
|
onClick: handleDrawerActions
|
17515
|
-
}, children), stateActions && /*#__PURE__*/React__default.createElement(
|
17511
|
+
}, children), stateActions && /*#__PURE__*/React__default.createElement(Box$2, {
|
17512
|
+
sx: DrawerActions
|
17513
|
+
}, renderActions))));
|
17516
17514
|
};
|
17517
17515
|
|
17518
17516
|
const ToastContainer = styled$1(Stack$1)(() => ({
|