@sinco/react 1.0.15-rc.38 → 1.0.15-rc.39

Sign up to get free protection for your applications and to get access to all the features.
package/index.js CHANGED
@@ -2747,16 +2747,21 @@ const FooterActionComponent = ({
2747
2747
  }), /*#__PURE__*/React.createElement(Box$1, null, labelChangeCounter), renderRightContent));
2748
2748
  };
2749
2749
 
2750
- function PageHeaderWraps({
2751
- item,
2752
- Color,
2753
- variant
2754
- }) {
2755
- return /*#__PURE__*/React.createElement(Typography, {
2756
- variant: variant,
2757
- color: Color
2758
- }, item);
2759
- }
2750
+ // export function PageHeaderWraps({
2751
+ // item,
2752
+ // Color,
2753
+ // variant,
2754
+ // }: {
2755
+ // item: string | React.ReactNode;
2756
+ // Color: string;
2757
+ // variant: Variant;
2758
+ // }) {
2759
+ // return (
2760
+ // <Typography variant={variant} color={Color}>
2761
+ // {item}
2762
+ // </Typography>
2763
+ // );
2764
+ // }
2760
2765
  const PageHeaderComponent = ({
2761
2766
  title,
2762
2767
  subtitle,
@@ -2782,19 +2787,14 @@ const PageHeaderComponent = ({
2782
2787
  gap: 1.5,
2783
2788
  flexDirection: "row",
2784
2789
  alignItems: "center"
2785
- }, buttonBack, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(PageHeaderWraps, {
2786
- Color: "text.primary",
2787
- item: title,
2788
- variant: "h6"
2789
- })), subtitle && /*#__PURE__*/React.createElement(Stack, {
2790
+ }, buttonBack, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Stack, null, /*#__PURE__*/React.createElement(Typography, {
2791
+ variant: "h6",
2792
+ color: "text.primary"
2793
+ }, title)), subtitle && /*#__PURE__*/React.createElement(Stack, {
2790
2794
  alignItems: "center",
2791
2795
  flexDirection: "row",
2792
2796
  gap: 2
2793
- }, /*#__PURE__*/React.createElement(PageHeaderWraps, {
2794
- Color: "text.secondary",
2795
- item: subtitle,
2796
- variant: "caption"
2797
- })))), actions && /*#__PURE__*/React.createElement(Stack, {
2797
+ }))), actions && /*#__PURE__*/React.createElement(Stack, {
2798
2798
  gap: 1,
2799
2799
  alignItems: "center",
2800
2800
  flexDirection: "row"
@@ -8305,4 +8305,4 @@ const useDynamicColor = url => {
8305
8305
  };
8306
8306
  };
8307
8307
 
8308
- export { AdproSincoTheme, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, EmptyStateImageUrls, FooterActionComponent, PageHeaderComponent, PageHeaderWraps, SincoTheme, useDynamicColor };
8308
+ export { AdproSincoTheme, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, EmptyStateImageUrls, FooterActionComponent, PageHeaderComponent, SincoTheme, useDynamicColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.0.15-rc.38",
3
+ "version": "1.0.15-rc.39",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -1,4 +1,3 @@
1
- import { Variant } from "@mui/material/styles/createTypography";
2
1
  import React from "react";
3
2
  export interface PageheaderProperties {
4
3
  title: string | React.ReactNode;
@@ -7,9 +6,4 @@ export interface PageheaderProperties {
7
6
  buttonBack?: React.ReactNode;
8
7
  fixed?: boolean;
9
8
  }
10
- export declare function PageHeaderWraps({ item, Color, variant, }: {
11
- item: string | React.ReactNode;
12
- Color: string;
13
- variant: Variant;
14
- }): JSX.Element;
15
9
  export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => JSX.Element;