@sinco/react 1.2.2-rc.6 → 1.2.2-rc.7

Sign up to get free protection for your applications and to get access to all the features.
package/index.esm.js CHANGED
@@ -17045,7 +17045,7 @@ function PageHeaderWraps(_ref) {
17045
17045
  }
17046
17046
  return React__default.createElement(React__default.Fragment, null, item);
17047
17047
  }
17048
- var PageHeader = function PageHeader(_ref2) {
17048
+ var PageHeaderComponent = function PageHeaderComponent(_ref2) {
17049
17049
  var title = _ref2.title,
17050
17050
  subtitle = _ref2.subtitle,
17051
17051
  actions = _ref2.actions,
@@ -17059,27 +17059,30 @@ var PageHeader = function PageHeader(_ref2) {
17059
17059
  boxShadow: function boxShadow(theme) {
17060
17060
  return theme.shadows[1];
17061
17061
  },
17062
- zIndex: 1000
17062
+ zIndex: 10
17063
17063
  }
17064
17064
  }, React__default.createElement(Stack, {
17065
- px: 3,
17066
- py: 1.25,
17065
+ padding: "5px 24px 5px 6px",
17067
17066
  justifyContent: "space-between",
17068
17067
  flexDirection: "row",
17069
17068
  alignItems: "center"
17070
17069
  }, React__default.createElement(Stack, {
17071
- gap: 1.5,
17070
+ gap: 1,
17072
17071
  flexDirection: "row",
17073
17072
  alignItems: "center"
17074
- }, buttonBack, React__default.createElement(Stack, null, React__default.createElement(PageHeaderWraps, {
17073
+ }, buttonBack, React__default.createElement(Stack, null, React__default.createElement(Stack, null, React__default.createElement(PageHeaderWraps, {
17075
17074
  color: "text.primary",
17076
17075
  item: title,
17077
17076
  variant: "h6"
17078
- }), subtitle && React__default.createElement(PageHeaderWraps, {
17077
+ })), subtitle && React__default.createElement(Stack, {
17078
+ alignItems: "center",
17079
+ flexDirection: "row",
17080
+ gap: 2
17081
+ }, React__default.createElement(PageHeaderWraps, {
17079
17082
  color: "text.secondary",
17080
17083
  item: subtitle,
17081
17084
  variant: "caption"
17082
- }))), actions && React__default.createElement(Stack, {
17085
+ })))), actions && React__default.createElement(Stack, {
17083
17086
  gap: 1,
17084
17087
  alignItems: "center",
17085
17088
  flexDirection: "row"
@@ -21702,4 +21705,4 @@ var useDynamicColor = function useDynamicColor(url) {
21702
21705
  };
21703
21706
  };
21704
21707
 
21705
- export { AdproSincoTheme, CardRadio, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, FooterAction, Incognit, IncognitIcon, IncognitIconOutlined, IncognitOutlined, PageHeader, PageHeaderWraps, ProgressSinco, SincoTheme, ToastNotification, useDynamicColor };
21708
+ export { AdproSincoTheme, CardRadio, DrawerComponent as Drawer, DrawerComponent, DynamicColor, EmptyStateComponent as EmptyState, EmptyStateComponent, FooterAction, Incognit, IncognitIcon, IncognitIconOutlined, IncognitOutlined, PageHeaderComponent as PageHeader, PageHeaderComponent, PageHeaderWraps, ProgressSinco, SincoTheme, ToastNotification, useDynamicColor };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinco/react",
3
- "version": "1.2.2-rc.6",
3
+ "version": "1.2.2-rc.7",
4
4
  "description": "package for the configuration of mui react sinco",
5
5
  "private": false,
6
6
  "license": "MIT",
@@ -12,4 +12,5 @@ export declare function PageHeaderWraps({ item, color, variant, }: {
12
12
  color: string;
13
13
  variant: Variant;
14
14
  }): React.JSX.Element;
15
- export declare const PageHeader: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
15
+ export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
16
+ export { PageHeaderComponent as PageHeader };