@sinco/react 1.0.15-rc.41 → 1.0.15-rc.42
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -16
- package/package.json +1 -1
- package/src/lib/Components/PageHeader.d.ts +2 -1
package/index.js
CHANGED
@@ -2746,21 +2746,6 @@ const FooterActionComponent = ({
|
|
2746
2746
|
}), /*#__PURE__*/React.createElement(Box$1, null, labelChangeCounter), renderRightContent));
|
2747
2747
|
};
|
2748
2748
|
|
2749
|
-
// export function PageHeaderWraps({
|
2750
|
-
// item,
|
2751
|
-
// Color,
|
2752
|
-
// variant,
|
2753
|
-
// }: {
|
2754
|
-
// item: string | React.ReactNode;
|
2755
|
-
// Color: string;
|
2756
|
-
// variant: Variant;
|
2757
|
-
// }) {
|
2758
|
-
// return (
|
2759
|
-
// <Typography variant={variant} color={Color}>
|
2760
|
-
// {item}
|
2761
|
-
// </Typography>
|
2762
|
-
// );
|
2763
|
-
// }
|
2764
2749
|
const PageHeaderComponent = ({
|
2765
2750
|
title,
|
2766
2751
|
subtitle,
|
@@ -2773,6 +2758,7 @@ const PageHeaderComponent = ({
|
|
2773
2758
|
width: fixed ? "100%" : "inherit",
|
2774
2759
|
bgcolor: "background.paper",
|
2775
2760
|
sx: {
|
2761
|
+
boxShadow: theme => theme.shadows[1],
|
2776
2762
|
zIndex: 100
|
2777
2763
|
}
|
2778
2764
|
}, /*#__PURE__*/React.createElement(Stack, {
|
@@ -2792,7 +2778,10 @@ const PageHeaderComponent = ({
|
|
2792
2778
|
alignItems: "center",
|
2793
2779
|
flexDirection: "row",
|
2794
2780
|
gap: 2
|
2795
|
-
}
|
2781
|
+
}, /*#__PURE__*/React.createElement(Typography, {
|
2782
|
+
variant: "caption",
|
2783
|
+
color: "text.secondary"
|
2784
|
+
}, subtitle)))), actions && /*#__PURE__*/React.createElement(Stack, {
|
2796
2785
|
gap: 1,
|
2797
2786
|
alignItems: "center",
|
2798
2787
|
flexDirection: "row"
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
-
|
2
|
+
interface PageheaderProperties {
|
3
3
|
title: string | React.ReactNode;
|
4
4
|
subtitle?: string | React.ReactNode;
|
5
5
|
actions?: React.ReactNode;
|
@@ -7,3 +7,4 @@ export interface PageheaderProperties {
|
|
7
7
|
fixed?: boolean;
|
8
8
|
}
|
9
9
|
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;
|
10
|
+
export {};
|