@sinco/react 1.2.5-rc.2 → 1.2.5-rc.3

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.esm.js CHANGED
@@ -17029,7 +17029,9 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
17029
17029
  subtitle = _ref.subtitle,
17030
17030
  actions = _ref.actions,
17031
17031
  buttonBack = _ref.buttonBack,
17032
- fixed = _ref.fixed;
17032
+ fixed = _ref.fixed,
17033
+ _ref$showShadow = _ref.showShadow,
17034
+ showShadow = _ref$showShadow === void 0 ? true : _ref$showShadow;
17033
17035
  return React__default.createElement(Stack, {
17034
17036
  id: "main-container",
17035
17037
  height: 48,
@@ -17037,9 +17039,9 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
17037
17039
  width: fixed ? "100%" : "inherit",
17038
17040
  bgcolor: "background.paper",
17039
17041
  sx: {
17040
- boxShadow: function boxShadow(theme) {
17042
+ boxShadow: showShadow ? function (theme) {
17041
17043
  return theme.shadows[1];
17042
- },
17044
+ } : "none",
17043
17045
  zIndex: 10
17044
17046
  }
17045
17047
  }, React__default.createElement(Stack, {
@@ -17056,7 +17058,7 @@ var PageHeaderComponent = function PageHeaderComponent(_ref) {
17056
17058
  id: "action-one"
17057
17059
  }, buttonBack, React__default.createElement(Stack, {
17058
17060
  id: "title-container",
17059
- gap: .5
17061
+ gap: 0.5
17060
17062
  }, React__default.createElement(Typography, {
17061
17063
  color: "text.primary",
17062
17064
  variant: "h6"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.5-rc.2",
3
+ "version": "1.2.5-rc.3",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -5,6 +5,7 @@ export interface PageheaderProperties {
5
5
  actions?: React.ReactNode;
6
6
  buttonBack?: React.ReactNode;
7
7
  fixed?: boolean;
8
+ showShadow?: boolean;
8
9
  }
9
- export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
10
+ export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, showShadow, }: PageheaderProperties) => React.JSX.Element;
10
11
  export { PageHeaderComponent as PageHeader };