@sinco/react 1.2.2-rc.5 → 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
@@ -7856,7 +7856,7 @@ var components = {
|
|
7856
7856
|
height: 16
|
7857
7857
|
},
|
7858
7858
|
sizeMedium: {
|
7859
|
-
height:
|
7859
|
+
height: 20
|
7860
7860
|
},
|
7861
7861
|
avatarMedium: {
|
7862
7862
|
height: 18,
|
@@ -17045,7 +17045,7 @@ function PageHeaderWraps(_ref) {
|
|
17045
17045
|
}
|
17046
17046
|
return React__default.createElement(React__default.Fragment, null, item);
|
17047
17047
|
}
|
17048
|
-
var
|
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:
|
17062
|
+
zIndex: 10
|
17063
17063
|
}
|
17064
17064
|
}, React__default.createElement(Stack, {
|
17065
|
-
|
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
|
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(
|
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
@@ -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
|
15
|
+
export declare const PageHeaderComponent: ({ title, subtitle, actions, buttonBack, fixed, }: PageheaderProperties) => React.JSX.Element;
|
16
|
+
export { PageHeaderComponent as PageHeader };
|
@@ -2,8 +2,7 @@ import React from "react";
|
|
2
2
|
import { SxProps } from "@mui/material";
|
3
3
|
export interface AdjuntarProps {
|
4
4
|
controlArchivo: (archivos: File[]) => any;
|
5
|
-
controlCarga: (progress: number, error?: string) => any;
|
6
5
|
compact?: boolean;
|
7
6
|
sx?: SxProps;
|
8
7
|
}
|
9
|
-
export declare const AdjuntarArchivo: ({ compact, sx, controlArchivo
|
8
|
+
export declare const AdjuntarArchivo: ({ compact, sx, controlArchivo }: AdjuntarProps) => React.JSX.Element;
|